/* ============================================
   Sue-Kreativ Papeterie- Stylesheet
   ============================================ */

/* Reset und Basis */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*outline: 1px solid red;*/
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*====================================*/

:root {
    --color-red: #e4301e;
    --color-gold: #D4AF37;
    --color-red-hover: #e4301e;
    --color-dark-gray: #1a1a1a;
    --color-light-gray: #f6f3f3;
    --color-mid-gray: #4d4d4d;
    --color-middle-gray: #b3b3b3;
    --color-white: #ffffff;
    --color-black: #000000;
    --font-main: 'Noto Sans', sans-serif;
    --frame-offset: 3%;

    /* Grundfarben */
    --color-red: #e4301e;

    /* THEME – Standard (Light Mode) */
    --bg-gradient-start: #1a1a1a;
    --bg-gradient-end: #4d4d4d;

    --text-color: black;
    --link-color: #000000;
    --link-hover: var(--color-gold);

    --footer-text: #000000;

    /* Wash-Overlay über dem Hintergrund-Gradient (body-background) */
    --overlay-color: rgba(255, 255, 255, 0.95);

}

/*====================================*/


html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-white);
}

/*====================================*/


body {
    background:
        linear-gradient(var(--overlay-color), var(--overlay-color)),
        linear-gradient(
            to bottom,
            var(--bg-gradient-start) -20%,
            var(--bg-gradient-end) 80%
        );
    background-blend-mode: screen;
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode {

    --bg-gradient-start: #0d0d0d;
    --bg-gradient-end: #2b2b2b;
    --overlay-color: rgba(10, 10, 10, 0.92);

    --text-color: #ffffff;
    --link-color: #ffffff;
    --footer-text: #ffffff;

}

/* Heller statt dunkler Nebel um den roten Rahmen im Dark Mode */
body.dark-mode .red-frame {
    box-shadow:
        0 0 40px 15px rgba(255, 255, 255, 0.08);
}

/*====================================*/


/* =====================
   Links
===================== */

a {
    text-decoration: none;
    color: var(--link-color);
    transition: color 0.3s ease;
}

a:focus, a:active {
    color: var(--link-color);
}

a:hover {
    color: var(--link-hover);
}

/*====================================*/

/* =====================
   Frame Container
===================== */

.frame-container {
    min-height: 100%;
    padding: var(--frame-offset);
}

/*====================================*/


/* =====================
 Goldener Rahmen
===================== */

.red-frame {
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    min-height: calc(90vh - (2 * var(--frame-offset)));
    border: none;
    border-radius: 10vw 1.5vw 1.5vw 1.5vw;
    position: relative;
    padding: 0rem 0rem 0rem 0rem;
    box-shadow:
        /* Äußerer grauer Nebel */
        0 0 40px 15px rgba(28, 28, 28, 0.15)
        /*0 0 80px 30px rgba(28, 28, 28, 0.08),
        0 0 120px 50px rgba(28, 28, 28, 0.04)*/;
}

.red-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 6px solid var(--color-gold);
    border-left: 6px solid transparent;
    border-top-left-radius: 10vw;

    -webkit-mask-image: linear-gradient(to right, black 0%, black 65%, transparent 88%);
            mask-image: linear-gradient(to right, black 0%, black 65%, transparent 88%);

    pointer-events: none;
/*
    background-image: url("../images/Herz.png");
    background-color: silver;
    background-size: 45%;
    background-position: 116% 180%;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
    border-radius: inherit;*/
}

.red-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 6px solid var(--color-gold);
    border-top: 6px solid transparent;
    border-top-left-radius: 10vw;

    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 88%);
            mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 88%);

    pointer-events: none;
}

/*Damit liegt der Content über dem Bild*/
.red-frame>* {
    position: relative;
    z-index: 1;
}

/*====================================*/


/* =====================
   Header
===================== */

.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}       

.header-inner {
    display: flex;
    justify-content: space-between;
    /* Logo links, Nav rechts */
    align-items: flex-start;
    width: 100%;
    padding: 0.7rem 0rem 0 1rem;
    /* padding-top (0.7rem) = Abstand roter Rahmen → Schrift;
       dient unten als Referenzwert für den Linien-Abstand */
}

/*Dadurch bleibt der Footer unten*/
.site-main {
    flex: 1;
    margin-top: 2rem;
}

/*====================================*/


/* =====================
   Footer
===================== */

.main-footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    font-weight: 400;
    gap: 0.5em;
}

.footer-link {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-gold);
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
    border-radius: 50%;
    margin: 0 0.6em;
    vertical-align: middle;
}

/* Setting-Button im Footer soll wie ein normaler Footer-Link aussehen,
   nicht wie ein Browser-Button */
button.footer-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}
/*====================================*/


/* =====================
   Logo
===================== */

.logo-container {
    position: relative;
}

.logo {
    width: 14vw;
    height: auto;
    animation: pulse 3s ease-in-out infinite;
    margin-left: 1.2vw; /* abstand zur gebogenen linken oberen ecke */
    margin-top: .6vh; /* abstand zur gebogenen linken oberen ecke */

}

.logo-klein {
    width: 1.8vw;
    height: auto;
    position: relative;
    top: 5px;   /* 5px nach unten */

}


@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/*====================================*/


/* =====================
   Navigation
===================== */

.main-nav {
    display: flex;
    align-items: center;
    margin: 0 0 0 0;
    position: relative; /* Bezugspunkt für die goldene Linie unter der Schrift */
}

/* goldene Linie direkt unter dem Menütext*/

.main-nav::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.2rem;
    width: 85vw;
    height: 4px;
    background: linear-gradient(
        to left,
        var(--color-gold) 0%,
        var(--color-gold) 65%,
        transparent 88%
    );
    pointer-events: none;
    z-index: 2222;
}

/* Menü rechts */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2vw;
    flex-direction: row;
    z-index: 2223;
    padding: 0.8rem;
}

nav a {
    font-size: 3vh;
    color: var(--text-color);
}

.nav-link {
    color: var(--text-color);
    font-weight: 400;
    font-size: 2vw;
    position: relative;
    padding: .5rem 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--color-white);
    transition: width 0.4s ease 0.1s;
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-link:hover::after {
    width: 100%;
}

/*====================================*/


/* =======================
   Hamburger (Standard: Desktop aus)
======================= */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: var(--color-gold);
    border-radius: 3px;
    transition: 0.3s;
}

/*====================================*/


/* =====================
   Überschriften
===================== */

h1 {
    color: var(--color-gold);
    font-style: italic;
    font-size: 2rem;
    line-height: 2.5;
    text-shadow:
        0 0 20px rgba(196, 30, 58, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    display: inline;
    pointer-events: none;
    user-select: none;
}

h2 {
    color: var(--text-color);
    display: inline;
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 4vh;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

h3 {
    color: var(--color-gold);
    display: inline;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    pointer-events: none;
    user-select: none;
}

h4 {
    color: var(--text-color);
    display: inline;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    pointer-events: none;
    user-select: none;
    font-weight: 300;
}

h5 {
    color: var(--color-gold);
    display: inline;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    pointer-events: none;
    user-select: none;
}

/*====================================*/

/* =====================
   Schreibmaschinen-Outline (Überschriften)
   (wird von main.js auf .main-title, .text_main h1 und
   .text_main .quote_text_red angewendet: jeder Buchstabe wird
   in ein .sk-letter-Span eingepackt. Der Text bleibt dabei immer
   vollständig sichtbar – kein Glühen mehr, stattdessen läuft nur
   eine dünne weiße Outline durch, begleitet von einer minimalen
   Vergrößerung der Schrift. Während des Schreibmaschinen-Zyklus
   läuft zusätzlich ein "Cursor" per .sk-typing Buchstabe für
   Buchstabe darüber und zeigt Outline + Vergrößerung sofort an.)
===================== */

.sk-letter {
    -webkit-text-stroke-width: 0px;
    -webkit-text-stroke-color: transparent;
    font-size: 1em;
    animation: sk-outline-cycle 6s ease-in-out infinite;
}

.sk-letter.sk-typing {
    color: var(--color-white);
    -webkit-text-stroke-width: 0.3px;
    -webkit-text-stroke-color: var(--color-white);
    font-size: calc(1em + 0.5pt);
    transition: color 0.12s ease, -webkit-text-stroke-width 0.12s ease, font-size 0.12s ease;
}

@keyframes sk-outline-cycle {
    0%, 100% {
        -webkit-text-stroke-width: 0px;
        -webkit-text-stroke-color: transparent;
        font-size: 1em;
    }
    50% {
        -webkit-text-stroke-width: 0.3px;
        -webkit-text-stroke-color: var(--color-white);
        font-size: calc(1em + 0.5pt);
    }
}
/*====================================*/


/* =====================
   Hauptinhalt
===================== */

::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 8px;
}

.content {
    margin: 3rem 1rem 1rem 10rem;
    /* oben | rechts | unten | links */
    user-select: none;
}

.content_impressum {
    margin: 3rem 1rem 1rem 6.7rem;
    /* oben | rechts | unten | links */
    flex: 1;
    /* nimmt restliche Höhe ein */
    overflow-y: auto;
    /* Scrollbalken wenn nötig */
    overflow-x: hidden;
}

.content_leistungen {
    margin: 3rem 1rem 1rem 6.7rem;
    /* oben | rechts | unten | links */
    flex: 1;
    /* nimmt restliche Höhe ein */
    overflow-y: auto;
    /* Scrollbalken wenn nötig */
    overflow-x: hidden;
}

.content_kontakt {
    margin: 0rem 2rem 1rem 15rem;
    /* oben | rechts | unten | links */
    flex: 1;
    /* nimmt restliche Höhe ein */
    overflow-y: auto;
    /* Scrollbalken wenn nötig */
    overflow-x: hidden;
}

.content_muster {
    margin: 1rem 2rem 1rem 8rem;
    /* oben | rechts | unten | links */
    flex: 1;
    /* nimmt restliche Höhe ein */
    overflow-y: hidden;
    /* Scrollbalken wenn nötig */
    overflow-x: hidden;
}

/*====================================*/


/* =================================
   Menüpunkt
==================================== */

.menupunkt {

    position: absolute;
    display: flex;
    flex-direction: column;
    /* untereinander */
    left: 1rem;
    bottom: 7rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    z-index: 100;
}

.mp_haupt {
    color: var(--color-gold);
    font-size: 2rem;
    font-weight: 400;
    text-shadow:
        1px 1px 2px black,
        0 0 1em #f5f3f3,
        0 0 0.2em #f5f3f3;
}


.menupunkt .mp_sub {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow:
        1px 1px 2px black,
        0 0 1em #f5f3f3,
        0 0 0.2em #f5f3f3;
}

/*====================================*/

/* =====================
   LEISTUNGEN
===================== */

.grid_leistungen {
    display: grid;
    gap: 5rem;
    grid-template-columns: 1fr 1fr;
}

.text_main p {
    margin-bottom: 1rem;
}

/*====================================*/


/* =====================
    DATENSCHUTZ
===================== */

.grid_datenschutz {
    display: grid;
    grid-template-columns: 1fr;
}

/*====================================*/

/* =====================
   REFERENZEN
===================== */

.content_referenzen {
    margin: 0rem 2rem 1rem 20rem;
        /* oben | rechts | unten | links */
    flex: 1;              /* nimmt restliche Höhe ein */
    overflow-y: hidden;     /* Scrollbalken wenn nötig */
    overflow-x: hidden;
}

.grid_referenzen {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 1fr;
}

/*====================================*/


/* =====================
   Submenu
===================== */

    .submenu {
        font-size: 1.1rem;
    }

    .submenu_referenzen {
        list-style: disc;
        color: red;
    }

    .submenu_referenzen li {
        margin-bottom: 0.6rem;
    }

    .submenu_referenzen a {
        color: var(--link-color);
        transition: color 0.3s;
        white-space: nowrap;
    }

    .submenu_referenzen a:hover {
        color: red;
    }

    #submenu {
        position: absolute;
        top: 25vh;
        right: 10vw;
        width: 7%;
        text-align: left;
        font-size: 2.5vh;
        z-index: 1;
        color: red;
    }

    /* Lupe über dem Submenu – erscheint erst, wenn der Pfeil zu pulsieren
       beginnt, und schwebt danach zufällig von Zeile zu Zeile */
    .lupe-icon {
        position: absolute;
        top: 0;
        left: 0;
        width: 3.6rem;
        height: 3.6rem;
        color: var(--color-red);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
        transform: translate(-50%, -50%);
        transition: opacity 0.4s ease, top 1s ease-in-out, left 1s ease-in-out;
        z-index: 5;
    }

    .lupe-icon.show {
        opacity: 0.9;
        visibility: visible;
    }

    /* Nur die Buchstaben, die sich gerade unter der Lupe befinden,
       werden vergrößert */
    .submenu_referenzen a .letter {
        display: inline-block;
        transform-origin: center;
        transition: transform 0.15s ease;
    }

    .submenu_referenzen a .letter.magnify {
        transform: scale(1.5);
    }

    .submenu_referenzen_mobile {
        display: flex;
        flex-wrap: wrap;
        /* ← automatischer Zeilenumbruch */
        gap: 0.8rem 1.2rem;
        /* vertikal | horizontaler Abstand */
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .submenu_referenzen_mobile li a {
        display: inline-block;
        white-space: nowrap;
        color: var(--link-color);
    }

/* =====================
   SLIDER
===================== */

.slider_main_REF {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.image-container-REF {
    position: relative;
    display: inline-block;
}

.image-container-REF img {
    max-width: 600px;
}

.nav {
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.nav:hover {
    transform: scale(1.2);
}

/* Pulsieren des Vorwärtspfeils nach 5 Sek. Inaktivität */
.nav.pulse-attention {
    animation: navPulse 1s ease-in-out infinite;
}

@keyframes navPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        text-shadow: 0 0 12px var(--color-white), 0 0 24px rgba(228, 48, 30, 0.6);
    }
}
/*====================================*/

*,
header,
nav,
.site-header,
.header-inner,
.main-nav,
.nav-menu,
.nav-link {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}