/* ===================================================================
   branchen.css – Landingpages fuer einzelne Branchen
   Gemeinsames Stylesheet von barber.html und physio.html.

   Bewusst mobile-first geschrieben (Grundregeln gelten fuer das Handy,
   die @media-Bloecke erweitern nach oben). Farben, Radien und Schatten
   sind aus style.css uebernommen, damit die Seiten wie der Rest von
   vikingpixels.ch aussehen.

   Wird zusammen mit nav-footer.css und whatsapp.css geladen.
   =================================================================== */

/* Montserrat als Variable Font (WOFF2, Latin-Subset):
   eine Datei ~37 KB deckt alle Schnitte 100-900 ab.
   Diese Seiten laden style.css nicht, darum hier eigens deklariert. */
@font-face {
    font-family: "Montserrat";
    src: url("/fonts/montserrat-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --gold: #c9a23f;
    --gold-dunkel: #a57c1b;
    --text-dark: #222;
    --text-mid: #555;
    --light-bg: #fbfcf6;
    --white-bg: #ffffff;
    --dark-bg: #111;
    --dark-card: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white-bg);
}

img {
    max-width: 100%;
    height: auto;
}

.branche-wrap {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* Ankersprunge sollen nicht unter der Navigation landen */
[id] {
    scroll-margin-top: 96px;
}

/* Sprunglink: nur sichtbar, wenn er per Tab fokussiert wird */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1000;

    padding: 12px 18px;
    border-radius: 8px;

    background: var(--gold);
    color: #fff;
    font-weight: 600;
    text-decoration: none;

    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}


/* ===================================================================
   Hero
   =================================================================== */

.branche-hero {
    padding: 56px 0 48px;
    color: #f2f7fd;
    background: linear-gradient(270deg,
            rgba(16, 18, 18, 1) 0%,
            rgba(46, 42, 40, 1) 100%);
    text-align: center;
    cursor: default;
}

.branche-hero h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.9rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
}

.branche-hero-text {
    margin: 0 auto 1.8rem;
    max-width: 56ch;
    font-size: 1.02rem;
    opacity: 0.88;
}

.branche-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Die Kopfleiste traegt denselben Verlauf wie der Hero. Da er waagrecht
   laeuft, stimmt die Farbe an jeder x-Position ueberein - Leiste und Hero
   werden so zu einem durchgehenden dunklen Block. Die Trennlinie faellt
   dafuer weg, sonst zoge sie quer durch diesen Block. */
.header-nav {
    background: linear-gradient(270deg,
            rgba(16, 18, 18, 1) 0%,
            rgba(46, 42, 40, 1) 100%);
    border-bottom: 0;
}

/* Handy-Mockup im Hero. Unter 901px ausgeblendet: dort wuerde es den Hero
   fast verdoppeln, und ein Handy auf einem Handy zeigt wenig Zusaetzliches.
   Der Knopf "Demo ansehen" steht ohnehin direkt daneben. */
/* Handy: unter dem Text, horizontal zentriert. margin-left und -right auf
   auto ergeben denselben Abstand zu beiden Fensterraendern, weil
   .branche-wrap links und rechts gleich viel Innenabstand hat. Das Bild
   wird hier nicht beschnitten - es laeuft mit height:auto in seinem
   eigenen Seitenverhaeltnis. */
.branche-mockup {
    width: min(260px, 68vw);
    margin: 34px auto 0;
    padding: 8px;

    border-radius: 32px;
    background: #0b0d0f;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.branche-mockup img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    /* Haarlinie, damit sich der dunkle Barber-Screenshot vom ebenso
       dunklen Rahmen abhebt. */
    border: 1px solid rgba(255, 255, 255, 0.10);
}

@media (min-width: 901px) {
    /* Oben und unten gleich viel: vorher 96/84, wodurch das mittig
       ausgerichtete Mockup 12px zu hoch sass. */
    .branche-hero {
        padding: 96px 0;
        text-align: left;
    }

    .branche-hero-text {
        margin-left: 0;
    }

    .branche-hero-cta {
        justify-content: flex-start;
    }

    .branche-hero-raster {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: clamp(32px, 5vw, 64px);
    }

    /* Desktop: neben dem Text, feste Hoehe. Hier wird bewusst beschnitten,
       sonst waere das Geraet ueber 500px hoch und wuerde den Hero
       auseinanderziehen. align-items:center des Rasters setzt es auf die
       Mitte der Textspalte. */
    .branche-mockup {
        width: 262px;
        margin: 0;
        padding: 9px;
        border-radius: 36px;
        box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
    }

    .branche-mockup img {
        height: 510px;
        object-fit: cover;
        object-position: top center;
        border-radius: 27px;
    }
}


/* ===================================================================
   Sektionen und Ueberschriften
   =================================================================== */

.branche-sektion {
    padding: 64px 0;
}

.branche-sektion--hell {
    background-color: var(--light-bg);
}

.branche-sektion--dunkel {
    background-color: var(--dark-bg);
    color: #fff;
}

@media (min-width: 701px) {
    .branche-sektion {
        padding: 90px 0;
    }
}

.branche-kopf {
    /* Feste Breite statt ch: ch bezieht sich auf die Schriftgroesse des
       Containers, nicht der Ueberschrift – die h2 waere sonst zu schmal
       und braeche mitten im Satz um. */
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.branche-kopf h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text-dark);
}

.branche-sektion--dunkel .branche-kopf h2 {
    color: darkgoldenrod;
}

.branche-kopf p {
    /* Fliesstext schmaler als die Ueberschrift: angenehmere Zeilenlaenge */
    max-width: 62ch;
    margin: 0 auto;
    color: var(--text-mid);
    font-size: 1.02rem;
    line-height: 1.7;
}

.branche-sektion--dunkel .branche-kopf p {
    color: #ccc;
}


/* ===================================================================
   Problem-Loesung-Karten
   =================================================================== */

.branche-karten {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 701px) {
    .branche-karten {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }
}

.branche-karte {
    padding: 32px 26px;
    background-color: var(--white-bg);
    border: 1px solid rgba(218, 165, 32, 0.35);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);

    transition: transform 0.25s ease, box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.branche-karte:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(218, 165, 32, 0.25);
    border-color: rgba(218, 165, 32, 0.65);
}

.branche-karte-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    margin-bottom: 18px;

    border-radius: 14px;
    background: rgba(201, 162, 63, 0.14);
    color: darkgoldenrod;
    font-size: 24px;
}

.branche-karte-icon .vp-icon {
    width: 26px;
    height: 26px;
}

.branche-karte h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.branche-karte p {
    margin: 0;
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.65;
}


/* ===================================================================
   "Was drin ist" – Merkmalsliste
   =================================================================== */

.branche-liste {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 760px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 701px) {
    .branche-liste {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 32px;
    }
}

.branche-liste li {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 12px 16px;
    border: 1px solid rgba(218, 165, 32, 0.28);
    border-radius: 12px;
    background: var(--white-bg);

    font-size: 1rem;
    line-height: 1.5;
}

.branche-liste .vp-icon {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    fill: darkgoldenrod;
    flex: 0 0 auto;
}


/* ===================================================================
   Preisblock
   =================================================================== */

.branche-preis {
    max-width: 520px;
    margin: 0 auto;
    padding: 34px 28px;

    background-color: var(--dark-card);
    border: 2px solid darkgoldenrod;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);

    text-align: center;
}

.branche-preis .preis-zahl {
    display: block;
    margin-bottom: 14px;
    font-size: clamp(1.35rem, 4.2vw, 1.7rem);
    font-weight: 800;
    color: #fff;
}

.branche-preis .btn-preis {
    display: inline-block;
    padding: 13px 26px;
    border: none;
    border-radius: 8px;

    background-color: darkgoldenrod;
    color: #fff;

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;

    transition: background-color 0.3s ease, transform 0.3s ease;
}

.branche-preis .btn-preis:hover {
    background-color: var(--gold-dunkel);
    transform: scale(1.04);
}


/* ===================================================================
   Ablauf in drei Schritten
   =================================================================== */

.branche-ablauf {
    list-style: none;
    counter-reset: schritt;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;

    display: grid;
    gap: 18px;
}

.branche-ablauf li {
    counter-increment: schritt;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;

    padding: 18px 20px;
    background: var(--white-bg);
    border: 1px solid rgba(218, 165, 32, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.branche-ablauf li::before {
    content: counter(schritt);
    grid-column: 1;
    grid-row: 1 / span 2;

    width: 32px;
    height: 32px;
    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;
}

.branche-ablauf strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.branche-ablauf span {
    grid-column: 2;
    grid-row: 2;
    color: var(--text-mid);
    font-size: 0.97rem;
    line-height: 1.6;
}


/* ===================================================================
   FAQ – native <details>, damit es ohne JavaScript funktioniert
   =================================================================== */

.branche-faq {
    max-width: 760px;
    margin: 0 auto;
}

.branche-faq details {
    margin-bottom: 14px;
    border: 1px solid rgba(218, 165, 32, 0.28);
    border-radius: 12px;
    background: var(--white-bg);
    overflow: hidden;
}

.branche-faq summary {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 18px 20px;
    cursor: pointer;

    font-size: 1.03rem;
    font-weight: 600;
    color: var(--text-dark);

    /* Eigenes Plus-Zeichen statt des Browser-Dreiecks */
    list-style: none;
}

.branche-faq summary::-webkit-details-marker {
    display: none;
}

.branche-faq summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: darkgoldenrod;
    transition: transform 0.25s ease;
}

.branche-faq details[open] summary::after {
    content: "\2212";
    /* Minuszeichen */
}

.branche-faq summary:hover {
    background: rgba(201, 162, 63, 0.06);
}

.branche-faq summary:focus-visible {
    outline: 3px solid rgba(201, 162, 63, 0.55);
    outline-offset: -3px;
}

.branche-faq .faq-antwort {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.7;
}


/* ===================================================================
   Abschluss-Aufruf
   =================================================================== */

.branche-cta {
    text-align: center;
}

.branche-cta h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 4.5vw, 2.1rem);
    color: darkgoldenrod;
}

.branche-cta p {
    max-width: 52ch;
    margin: 0 auto 28px;
    color: #ccc;
    font-size: 1.05rem;
}

.branche-cta-knoepfe {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}


/* ===================================================================
   Gemeinsame Buttons (aus style.css uebernommen, damit die
   Branchenseiten ohne das grosse Stylesheet auskommen)
   =================================================================== */

.btn-header {
    display: inline-block;
    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);
}

/* Kleines Symbol hinter "Demo ansehen": der Link oeffnet ein eigenes
   Register. Das aria-label am Link nennt das fuer Screenreader, das
   Symbol fuer alle anderen. */
.neu-fenster {
    width: .85em;
    height: .85em;
    margin-left: .45em;
    fill: currentColor;
    vertical-align: -.08em;
}

.btn-header:hover {
    background-color: rgba(218, 165, 32, 1);
    transform: scale(1.02);
}

.btn-header.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.btn-header.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.vp-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex: 0 0 auto;
}

.branche-zurueck {
    margin-top: 36px;
    text-align: center;
}

.branche-zurueck a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: darkgoldenrod;
    font-weight: 600;
    text-decoration: none;
}

.branche-zurueck a:hover {
    text-decoration: underline;
}


/* ===================================================================
   Scroll-Reveal (siehe js/reveal.js) – gleiche Regeln wie in style.css
   =================================================================== */

: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 die Hover-Effekte der Karten 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) {

    html {
        scroll-behavior: auto;
    }

    :where(.js) [data-reveal],
    :where(.js) [data-reveal].is-revealed {
        opacity: 1;
        animation: none;
    }

    .branche-karte:hover,
    .branche-preis .btn-preis:hover,
    .btn-header:hover {
        transform: none;
    }
}
