*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Montserrat als Variable Font (WOFF2, Latin-Subset):
   eine Datei ~37 KB deckt alle Schnitte 100-900 ab.
   Ersetzt die frueheren drei TTF-Dateien (zusammen ~975 KB). */
@font-face {
    font-family: "Montserrat";
    src: url("/fonts/montserrat-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}


:root {
    --gold: #c9a23f;
    --text-dark: #1e293b;
    /* Ein satteres, moderneres Dunkelblau-Grau statt hartem Schwarz */
    --text-light: #f8fafc;
    --light-bg: #f1f5f9;
    /* Ein frischerer, sauberer Hintergrund für Sektionen */
    --white-bg: #ffffff;
    --dark-bg: #0f172a;
    /* Ein extrem tiefes, edles Dunkelblau-Schwarz für den Header/Footer */
    --currency: "CHF";
}

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    background-color: #f8fafc;
    /* Das neue, super saubere Hintergrund-Weiss-Grau */
    color: var(--text-dark);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

section {
    padding: 80px 20px;

}


#ueber-mich,
#kontakt,
#service,
#preis {
    scroll-margin-top: 120px;
}


.main,
.service,
.preise,
.kontakt {
    position: relative;
    z-index: 3;
}


.header {
    position: relative;
    min-height: 80vh;
    cursor: default;
    background: #0f0f0f;
    cursor: default;
}

.header-nav {

    --nav-h: 72px;
    position: static;
    width: 100%;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 clamp(16px, 6vw, 56px);
    background: rgba(15, 15, 15, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    z-index: 100;
}


.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0.95;
    padding: 10px 0;
}

.brand:hover {
    opacity: 1;
}


.header-nav ul {
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;

    display: flex;
    align-items: center;
    gap: 18px;
}

.header-nav .nav-link {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;

    padding: 10px 10px;
    border-radius: 10px;
    white-space: nowrap;

    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.header-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.header-nav .nav-link.active {
    color: var(--gold);
}

/* Hamburger (Desktop aus) */
.hamburger {
    display: none;
    margin-left: 12px;

    flex-direction: column;
    justify-content: space-between;

    width: 26px;
    height: 20px;

    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}


.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}


.header-nav a:focus-visible,
.hamburger:focus-visible {
    outline: 3px solid rgba(201, 162, 63, 0.55);
    outline-offset: 2px;
}


@media (max-width: 900px) {
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .header-nav ul {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;

        margin: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 6px;

        padding: 12px 16px 14px;
        background: rgba(0, 0, 0, 0.92);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

        border-radius: 0 0 16px 16px;
        z-index: 999;
    }

    .header-nav ul.active {
        display: flex;
    }

    .header-nav .nav-link {
        width: 100%;
        padding: 12px 12px;
        border-radius: 12px;
    }
}


.hero-split {
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-left {
    color: #F2F7FD;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px 6vw 60px;
    padding-top: 110px;
    background: #101212;
    background: linear-gradient(270deg, rgba(16, 18, 18, 1) 0%, rgba(46, 42, 40, 1) 100%);
    cursor: default;

}

.hero-right {
    background-image: url("/img/helm-hero.jpg");
    background-size: cover;
    background-position: 35% 35%;
    background-repeat: no-repeat;
    position: relative;
}


.hero-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 15, 15, .65) 0%, rgba(15, 15, 15, 0) 55%);
}


@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    /* Auf dem Handy sitzt der Helm als Bildband ueber der Ueberschrift.
       Eigene, kleinere Bilddatei: 70 statt 140 KB. */
    .hero-right {
        min-height: 38vh;
        order: -1;
        background-image: url("/img/helm-hero-800.jpg");
        background-position: 50% 40%;
    }

    /* Statt des seitlichen Verlaufs (Desktop-Splitlayout) hier ein
       Uebergang nach unten, damit das Band in den Textbereich laeuft. */
    .hero-right::before {
        background: linear-gradient(180deg,
                rgba(15, 15, 15, 0) 45%,
                rgba(16, 18, 18, 0.9) 100%);
    }

    .hero-left {
        padding: 40px 16px 48px;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }
}


.hero-left h1 {
    margin: 0 0 .6rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 3px 10px rgba(0, 0, 0, .7);
}

.hero-tagline {
    margin: 0 0 .6rem;
    opacity: .85;
    font-size: .95rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, .7);
}


.btn-header {
    text-decoration: none;
    color: #fff;
    background-color: rgba(218, 165, 32, 0.85);
    border: 1px solid rgba(218, 165, 32, 0.7);
    border-radius: 8px;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}


.btn-header.btn-ghost {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: none;
}

.btn-header.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    transform: scale(1.02);
}


.preise {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 80px 20px;
    cursor: default;
}

.preise h2 {
    font-size: 36px;
    color: darkgoldenrod;
    margin-bottom: 10px;
}

.preise-text {
    font-size: 18px;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.preis-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
}

.preis-box {
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 16px;
    width: 300px;
    padding: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}


.icon-preis {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    color: darkgoldenrod;
    font-size: 42px;
    transition: transform 0.3s ease-in-out;
}

.icon-preis svg {
    width: 48px;
    height: 48px;
    fill: darkgoldenrod;
    transition: fill 0.3s ease, transform 0.3s ease;
}

.preis-box:hover .icon-preis svg {
    fill: #a57c1b;
    transform: scale(1.1);
}

.preis-box h3 {
    color: darkgoldenrod;
    font-size: 24px;
    margin-bottom: 10px;
}

.preis {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.preis-box ul {
    list-style: none;
    padding: 0;
    text-align: left;
    color: #ccc;
    flex-grow: 1;
    margin-bottom: 20px;
}

.preis-box ul li {
    margin: 10px 0;
}

.btn-preis {
    display: inline-block;
    background-color: darkgoldenrod;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: auto;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    text-align: center;
}

.btn-preis:hover {
    background-color: #a57c1b;
    transform: scale(1.05);
}

.btn-preis-highlight {
    display: inline-block;
    background-color: darkgoldenrod;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: -10px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    text-align: center;

}

.btn-preis-highlight:hover {
    background-color: #a57c1b;
    transform: scale(1.05);
}

.preis-box.highlight {
    position: relative;
    border-color: darkgoldenrod;
    transform: scale(1.05);


}

.preis-box.highlight:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 15px 30px rgba(218, 165, 32, 0.4);
}


.badge {
    position: absolute;
    top: -12px;
    left: -12px;
    background-color: darkgoldenrod;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


@keyframes pulse {
    0% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.075);
    }

    100% {
        transform: scale(1.05);
    }
}

.preis-box.highlight .icon-preis svg {
    animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}


.about {
    background: #FBFCF6;
    padding: 90px 20px;
    cursor: default;
}

.about-wrap {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.about-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-areas:
        "text profile"
        "extras profile";
    gap: 36px;
    align-items: start;
}

.about-text {
    grid-area: text;
}


.about-profile {
    grid-area: profile;
    width: 100%;
    max-width: 420px;
    justify-self: start;
}


.about-text h2 {
    margin: 0 0 14px;
    font-size: 42px;
    color: #222;
}

.about-text p {
    margin: 0 0 14px;
    line-height: 1.8;
    color: #444;
    max-width: 70ch;
}


.about-process {
    background: #fff;
    border: 1px solid rgba(218, 165, 32, 0.18);
    border-radius: 16px;
    padding: 18px 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
}


.about-process h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #222;
}


.process-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 12px;
}

.process-steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: start;
}


.process-steps li::before {
    content: counter(step);
    grid-column: 1;
    grid-row: 1 / span 2;

    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(201, 162, 63, 0.18);
    border: 1px solid rgba(201, 162, 63, 0.35);
    color: var(--gold);
    font-weight: 800;
    display: grid;
    place-items: center;
    margin-top: 1px;
}


.process-steps strong {
    grid-column: 2;
    grid-row: 1;

    display: block;
    color: #222;
    margin: 0;
    font-size: 15px;
}

.process-steps span {
    grid-column: 2;
    grid-row: 2;

    display: block;
    color: #555;
    line-height: 1.6;
    font-size: 14.5px;
}


.profile-card {
    margin: 0;
    background: #fff;
    border: 1px solid rgba(218, 165, 32, 0.18);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.profile-card img {
    width: 100%;
    display: block;
    border-radius: 14px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    max-height: 520px;
    height: auto;

    background: #f1f1f1;
}


.profile-meta {
    margin-top: 12px;
    display: grid;
    gap: 4px;
    color: #333;
}

.profile-meta span {
    color: #666;
    font-size: 0.95rem;
}


/* =========================
   Service
========================= */
.service {
    background-color: #FBFCF6;
    text-align: center;
    padding: 100px 20px;
    cursor: default;
}

.service-title {
    font-size: 42px;
    color: #222;
    margin-bottom: 60px;
    font-weight: 700;
}

.service-sub {
    margin: -42px auto 52px;
    max-width: 60ch;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
}


.service-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 70px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}


.service-card {
    background-color: #ffffff;
    border: 1px solid rgba(218, 165, 32, 0.35);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    width: 100%;
    max-width: 320px;
    justify-self: center;
    /* Kein transition hier: die massgebende Regel steht weiter unten bei
       .service-card { transform-style: preserve-3d; ... } und wuerde diese
       ohnehin ueberschreiben. Das Einblenden beim Scrollen macht jetzt
       [data-reveal] per Keyframe-Animation (siehe reveal.js). */
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(218, 165, 32, 0.25);
    border-color: rgba(218, 165, 32, 0.65);
}

.service-icon {
    font-size: 52px;
    color: #333;
    margin-bottom: 20px;
    transition: color 0.4s ease, transform 0.3s ease;

}

.service-card:hover .service-icon {
    color: darkgoldenrod;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 22px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.service .service-card:hover h3 {
    color: darkgoldenrod;
    transition: color 0.35s ease;
}

.service-wrapper {
    perspective: 900px;
}

.service-card {
    transform-style: preserve-3d;
    transition: box-shadow 180ms ease, border-color 180ms ease;
    will-change: transform;
}

.service-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
    background: radial-gradient(420px 220px at var(--mx, 80%) var(--my, 20%),
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0) 60%);
}

.service-card:hover::after {
    opacity: 1;
}


/* =========================
   Kontakt
========================= */
.kontakt {
    padding: 80px 20px;
    background:
        radial-gradient(900px 520px at 25% 10%, rgba(201, 162, 63, .10) 0%, rgba(201, 162, 63, 0) 55%),
        linear-gradient(180deg, #11131a 0%, #0b0c10 100%);
    cursor: default;
}

.kontakt-container {

    width: min(860px, 100%);
    margin: 0 auto;
    border-radius: 22px;
    padding: 48px 42px;
    background: rgba(18, 18, 22, .72);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: start;
}

.kontakt-info {
    flex: 1;
    min-width: 260px;
    text-align: left;
}

.kontakt-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
    margin-top: 1rem;
    color: darkgoldenrod;
}

.kontakt-info p {
    margin: 0.4rem 0;
    font-size: 18px;
}

.kontakt-info i {
    margin-right: 10px;
    color: darkgoldenrod;
}

.kontakt-info p+p {
    margin-top: 1rem;
}

.kontakt-intro {
    margin-top: 1.8rem;
    font-size: 0.98rem;
    line-height: 1.8;
    max-width: 30rem;
    color: whitesmoke;
}

.kontakt-form {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .10);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder {
    color: rgba(255, 255, 255, .45);
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    border-color: rgba(201, 162, 63, .70);
    box-shadow: 0 0 0 3px rgba(201, 162, 63, .18);
}

.kontakt-form button {
    background-color: darkgoldenrod;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

.kontakt-form button:hover {
    background-color: #a57c1b;
    transform: scale(1.05);
}

.kontakt-form textarea {
    resize: none;
}

.form-status {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    min-height: 20px;
}

.form-status.show {
    opacity: 1;
}


.kontakt-form input:-webkit-autofill,
.kontakt-form textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #222 inset;
    -webkit-text-fill-color: white;
    transition: background-color 5000s ease-in-out 0s;
}

.kontakt-form input:-moz-autofill,
.kontakt-form textarea:-moz-autofill {
    box-shadow: 0 0 0px 1000px #222 inset;
    -moz-text-fill-color: white;
}


.kontakt-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    color: rgba(255, 255, 255, .90);
}

.kontakt-mail .vp-icon {
    font-size: 1.1rem;
    color: var(--gold);
    flex: 0 0 auto;
}

.kontakt-mail-link {
    text-decoration: none;
    font-size: 1.1rem;
    color: inherit;
    font-weight: 500;
    overflow-wrap: break-word;
    word-break: break-word;
}

.kontakt-mail-link:hover {
    color: var(--gold);
    text-decoration: underline;
}


.kontakt-form button {
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}


.price-line {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: .5rem;
    flex-wrap: nowrap;
}

.price-line .preis {
    white-space: nowrap;
}


.btn-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: darkgoldenrod;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.btn-top:hover {
    background-color: #a57c1b;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-top.show {
    opacity: 1;
    pointer-events: all;
}


.footer {
    background: #16161D;
    color: rgba(255, 255, 255, .86);
    border-top: 1px solid rgba(255, 255, 255, .08);
    width: 100%;
    cursor: default;
}

.footer-inner.slim {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 44px 20px 18px;

    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
    align-items: start;
}

.footer-title {
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .95rem;
    margin-bottom: 10px;
}

.footer-desc {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .68);
    max-width: 58ch;
    line-height: 1.6;
    font-size: .95rem;
}

.footer-mail {
    display: inline-block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    font-weight: 600;
}

.footer-mail:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-legal {
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    transition: .2s ease;
    white-space: nowrap;
}

.footer-legal a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.footer-bottom {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .55);
    font-size: .9rem;
}


.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-bottom .instagram {
    margin-left: auto;
    /* schiebt nach rechts */
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 8px 12px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .instagram .vp-icon {
    font-size: 18px;
    line-height: 1;
}

.footer-bottom .instagram a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.footer-bottom .instagram a:hover {
    text-decoration: underline;
}

/* Mobile: sauber umbrechen */
@media (max-width: 560px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom .instagram {
        margin-left: 0;
        align-self: flex-end;
        /* rechts im Column-Layout */
    }
}


@media (max-width: 900px) {
    .footer-inner.slim {
        grid-template-columns: 1fr;
        padding: 38px 16px 16px;
        gap: 18px;
    }

    .footer-legal {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-legal a {
        padding: 6px 0;
    }
}


.kontakt-form textarea,
.anfrage-form textarea {
    resize: none;
    min-height: 140px;
    max-height: 40vh;

    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}


@media (max-width: 900px) {


    .preis-container {
        max-width: 420px;
        margin: 0 auto;
        gap: 24px;
    }

    .service-card,
    .preis-box {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 24px;
        box-sizing: border-box;
    }

    .preise,
    .service,
    .kontakt {
        padding-inline: 16px;
    }
}


@media (max-width: 900px) {
    .service-wrapper {
        grid-template-columns: 1fr;
        max-width: 420px;
        gap: 24px;
    }
}


@media (max-width: 768px) {
    .btn-top {
        display: none;
    }

    .header-nav {
        right: 0;
        left: 0px;

    }

    .header-nav ul {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;

        width: auto;
        display: none;
        flex-direction: column;
        gap: 8px;

        background: rgba(0, 0, 0, .92);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 14px;
        padding: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
        z-index: 999;
    }

    .header-nav ul.active {
        display: flex;
    }


.header-nav a {
        font-size: 0.95rem;
        color: #fff;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 700px) {
    section {
        padding: 60px 16px;
    }

    .service,
    .preise,
    .kontakt {
        padding: 60px 16px;
    }

    .preis-container {
        flex-direction: column;
        align-items: center;
    }

    .preis-box {
        width: 90%;
    }

    .service-wrapper,
    .preis-container {
        gap: 24px;
    }

    .service-card,
    .preis-box {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 24px;
    }


    .preis-box.highlight {
        transform: none;
        animation: none;
        border-width: 2px;
        background-color: #1d1a12;
        box-shadow: 0 0 12px rgba(212, 160, 50, 0.25);
    }


    .preis-box.highlight:hover {
        transform: none;
    }

    .kontakt-container {
        align-items: center;
        text-align: center;
    }

    .kontakt-info {
        text-align: center;
    }

    .kontakt-form {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .kontakt-mail-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {

    .hero-cta {
        justify-content: center;
    }
}


@media (max-width: 900px) {
    .about-top {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "profile"
            "extras";
        gap: 18px;
    }

    .about-profile {
        justify-self: stretch;
        max-width: 100%;
    }

    .profile-card img {
        max-height: 360px;
        aspect-ratio: 16 / 11;
    }
}


@media (max-width: 520px) {
    .about {
        padding: 64px 16px !important;
    }

    .about .about-text h2 {
        font-size: 32px !important;
    }
}

@media (max-width: 900px) {
    .kontakt-container {
        width: min(520px, 100%);
        grid-template-columns: 1fr;
        padding: 34px 18px;
        gap: 18px;
    }
}


/* ====== Overlay wenn Mobile-Menü offen ====== */
body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
    z-index: 90;
}

/* Header über Overlay */
.header-nav {
    position: sticky;
    /* hast du evtl. schon */
    top: 0;
    z-index: 100;
}

/* Mobile Panel stärker abgesetzt */
@media (max-width: 900px) {
    .header-nav ul {
        z-index: 110;
        /* über Overlay */
        background: #0b0d0f;
        /* NICHT transparent */
        border-top: 1px solid rgba(201, 162, 63, 0.28);
        box-shadow:
            0 30px 90px rgba(0, 0, 0, 0.70),
            0 0 0 1px rgba(255, 255, 255, 0.06);
    }

    .header-nav .nav-link {
        background: rgba(22, 27, 31, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header-nav .nav-link:hover {
        background: rgba(22, 27, 31, 0.85);
    }
}

/* ===================================================================
   Scroll-Reveal: Slide-Animationen (gehoert zu reveal.js)

   Die Regeln haengen an :where(.js), damit sie
   a) nur greifen, wenn JavaScript laeuft (sonst bliebe alles unsichtbar) und
   b) eine Spezifitaet von 0,1,0 behalten - so gewinnen bestehende
      Hover-Regeln wie .preis-box:hover weiterhin.
   =================================================================== */

:where(.js) [data-reveal] {
    opacity: 0;
}

:where(.js) [data-reveal].is-revealed {
    animation: vp-reveal-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}

:where(.js) [data-reveal="left"].is-revealed {
    animation-name: vp-reveal-left;
}

:where(.js) [data-reveal="right"].is-revealed {
    animation-name: vp-reveal-right;
}

/* Nach dem Durchlauf die Animation entfernen, damit transform wieder
   fuer Hover- und Tilt-Effekte frei ist. */
:where(.js) [data-reveal].reveal-done {
    opacity: 1;
    animation: none;
}

@keyframes vp-reveal-up {
    from {
        opacity: 0;
        transform: translate3d(0, 34px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes vp-reveal-left {
    from {
        opacity: 0;
        transform: translate3d(-52px, 0, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes vp-reveal-right {
    from {
        opacity: 0;
        transform: translate3d(52px, 0, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    :where(.js) [data-reveal],
    :where(.js) [data-reveal].is-revealed {
        opacity: 1;
        animation: none;
    }
}


/* ===================================================================
   Inline-Icons statt Font-Awesome-Webfont

   Ersetzt das komplette Font-Awesome-Paket (123 KB CSS + 293 KB
   Schriftdateien) durch neun eingebettete SVG-Pfade von zusammen ~7 KB.
   Icons: Font Awesome Free 6.7.2, CC BY 4.0
   https://fontawesome.com/license/free
   =================================================================== */

.vp-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex: 0 0 auto;
}


/* ===== Handlungsaufforderung im Hero ===== */

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 1.6rem;
}

.hero-cta .btn-header {
    display: inline-block;
}


/* Die Puls-Animation des Nordstar-Sterns lief bisher ins Leere, weil sie
   .icon-preis svg adressiert, dort aber ein <i> stand. Jetzt greift sie -
   deshalb hier fuer Nutzer mit reduzierter Bewegung abschalten. */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .preis-box.highlight .icon-preis svg {
        animation: none;
    }
}
