/* =========================================================
   DC by Waldera – globale Styles
   Gilt fuer alle Seiten. Seitenspezifische Abschnitte
   stehen in salon.css, die nach dieser Datei geladen wird.
   ========================================================= */

/* --------------------------------------------------------
   Schriftart
   Ausgeliefert werden nur die tatsaechlich genutzten
   Schnitte als woff2. Die TTF-Dateien im Ordner /fonts
   werden nicht mehr eingebunden.
   -------------------------------------------------------- */

@font-face {
    font-family: 'Abhaya Libre';
    src: url('/fonts/AbhayaLibre-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abhaya Libre';
    src: url('/fonts/AbhayaLibre-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abhaya Libre';
    src: url('/fonts/AbhayaLibre-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------
   HTML & Body
   -------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Abhaya Libre', serif;
    font-size: 18px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@media (max-width: 950px) {
    body {
        font-size: 16px;
    }
}

p {
    margin: 0;
}

img {
    max-width: 100%;
}

/* --------------------------------------------------------
   Grundlayout der Abschnitte
   -------------------------------------------------------- */

.section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sec {
    width: 90vw;
    max-width: 1280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --------------------------------------------------------
   Hilfsklassen
   -------------------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Platzhalter, die vor dem Livegang ersetzt werden muessen.
   Bewusst auffaellig gestaltet, damit nichts uebersehen wird. */
.todo {
    background: #ffe066;
    color: #7a5b00;
    padding: 0 0.35em;
    border: 1px dashed #b38f00;
    font-size: 0.9em;
    white-space: nowrap;
}

/* --------------------------------------------------------
   Links und Hover-Effekt
   -------------------------------------------------------- */

a {
    text-decoration: none;
    position: relative;
    transition: all 0.5s;
    z-index: 2;
}

a::before,
a::after {
    content: "";
    position: absolute;
    height: 50%;
    width: 0%;
    background-color: #c1c1c1;
    transition: all 0.5s;
    z-index: -1;
}

a::before {
    right: 0;
    top: 0;
}

a::after {
    left: 0;
    bottom: 0;
}

a:hover::before,
a:hover::after {
    width: 100%;
}

a:hover {
    color: #2b281d;
}

/* Der Hover-Balken gehoert nur an Textlinks.
   Auf Logos, Social-Icons und Partnerlogos wirkt er stoerend –
   dort bleibt es beim Mauszeiger. */
.logo-header::before,
.logo-header::after,
.social-header a::before,
.social-header a::after,
.img-block-seven a::before,
.img-block-seven a::after,
.button::before,
.button::after {
    content: none;
}

a:focus-visible {
    outline: 2px solid #2b281d;
    outline-offset: 3px;
}

/* --------------------------------------------------------
   Buttons
   -------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* noetig, sobald einem Button eine Breite gesetzt wird –
       sonst kommen Innenabstand und Rahmen obendrauf und er
       laeuft aus seinem Container heraus */
    box-sizing: border-box;
    /* Abhaya Libre hat eine sehr tiefe Unterlaenge (Descent 0,31em).
       Bei symmetrischem Innenabstand sitzt der Text dadurch optisch
       rund 1 px zu hoch. Der untere Wert ist deshalb bewusst kleiner. */
    padding: 0.78em 1.6em 0.62em;
    line-height: 1;
    background-color: #2b281d;
    color: #fffffb;
    border: 1px solid #2b281d;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    margin: 0.3em 0.2em;
}

.button:hover {
    background-color: #12110d;
    border-color: #12110d;
    color: #fffffb;
}

.button-ghost {
    background-color: transparent;
    color: #2b281d;
}

.button-ghost:hover {
    background-color: #2b281d;
    border-color: #2b281d;
    color: #fffffb;
}

/* Buttonreihe: alle Buttons exakt gleich breit */

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-left: 0;
    margin-right: 0;
}

/* Feste gemeinsame Breite statt Strecken auf die volle Zeile:
   alle Buttons einer Reihe gleich lang, aber kompakt. */
.button-row .button {
    flex: 0 1 15rem;
    margin: 0;
}

/* --------------------------------------------------------
   Section Zero – schmales Band oben
   -------------------------------------------------------- */

.section-zero {
    background-color: #2b281d;
    color: #fffffb;
    height: 4vh;
}

.img-zero {
    height: 1.5vh;
    width: auto;
}

.sec-zero {
    gap: 1vw;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.zero-text {
    font-size: 14px;
}

/* Leistungsband */

.section-zero-cl {
    background-color: #12110d !important;
    height: 6vh;
}

@media (max-width: 550px) {
    .section-zero-cl {
        height: 11vh;
    }
}

@media (max-width: 420px) {
    .section-zero-cl {
        height: 13vh;
    }
}

/* --------------------------------------------------------
   Header
   -------------------------------------------------------- */

.section-one {
    background-color: #fffffb;
}

.sec-one {
    font-size: 18px;
    gap: 3vw;
    height: 10vh;
    color: #2b281d;
    position: relative;
}

.menu {
    display: flex;
    gap: 2vw;
    width: 25vw;
}

.menu-left {
    display: flex;
    justify-content: flex-end;
}

.logo-header {
    display: flex;
    align-items: center;
}

.img-logo-header {
    height: 8vh;
    width: auto;
}

.social-header {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
}

/* Auf Seiten ohne Standortbezug stehen beide Instagram-Kanaele
   nebeneinander. Das Kuerzel darunter unterscheidet sie. */
.social-header a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2b281d;
}

.img-social-header {
    height: 3.5vh;
    width: auto;
    padding: 5px 5px 0px 5px;
}

/* Instagram-Icon auf Seiten ohne Standortbezug: oeffnet die
   Kanalauswahl, sieht aber aus wie die uebrigen Social-Icons. */
.social-ig-trigger {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

@media (max-width: 620px) {
    .img-social-header {
        height: 3vh;
        padding: 4px 3px 0px 3px;
    }
}

/* --------------------------------------------------------
   Modal
   -------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(18, 17, 13, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

/* muss die display-Regel oben schlagen */
.modal[hidden] {
    display: none;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 24rem;
    box-sizing: border-box;
    background-color: #fffffb;
    color: #2b281d;
    border-top: 3px solid #2b281d;
    padding: 2.6rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 18px 44px rgba(18, 17, 13, 0.28);
}

.modal-close {
    position: absolute;
    top: 0.3rem;
    right: 0.7rem;
    background: none;
    border: none;
    font-size: 1.9rem;
    line-height: 1;
    color: #6b6558;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #2b281d;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-text {
    color: #4a4638;
    margin-bottom: 1.8rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-actions .button {
    width: 100%;
    margin: 0;
}

.header-links {
    text-decoration: none;
    color: #2b281d;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

/* --------------------------------------------------------
   Aufklappmenue Oeffnungszeiten (Desktop-Navigation)
   Ein Eintrag je Salon. Oeffnet per Maus ueber :hover, per
   Klick und Tastatur ueber .open (setzt script.js).
   -------------------------------------------------------- */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Hover-Balken wie bei den Textlinks (siehe a::before / a::after) */
.nav-dropdown-trigger::before,
.nav-dropdown-trigger::after {
    content: "";
    position: absolute;
    height: 50%;
    width: 0%;
    background-color: #c1c1c1;
    transition: all 0.5s;
    z-index: -1;
}

.nav-dropdown-trigger::before {
    right: 0;
    top: 0;
}

.nav-dropdown-trigger::after {
    left: 0;
    bottom: 0;
}

.nav-dropdown:hover .nav-dropdown-trigger::before,
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown.open .nav-dropdown-trigger::before,
.nav-dropdown.open .nav-dropdown-trigger::after {
    width: 100%;
}

.nav-dropdown-trigger:focus-visible {
    outline: 2px solid #2b281d;
    outline-offset: 3px;
}

/* Kleiner Pfeil, dreht sich beim Oeffnen */
.nav-caret {
    width: 0.4em;
    height: 0.4em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-0.15em) rotate(45deg);
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret {
    transform: translateY(0.1em) rotate(225deg);
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 13rem;
    padding: 0.5rem 0;
    background-color: #fffffb;
    border: 1px solid #e3e0d7;
    box-shadow: 0 12px 30px rgba(43, 40, 29, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.4rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 1002;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.nav-dropdown-link {
    display: block;
    padding: 0.55rem 1.2rem;
    color: #2b281d;
    white-space: nowrap;
}

/* Im Aufklappmenue hebt ein beiger Hintergrund hervor, kein Balken */
.nav-dropdown-link::before,
.nav-dropdown-link::after {
    content: none;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
    background-color: #f4f2ec;
}

.nav-dropdown-link:focus-visible {
    outline-offset: -2px;
}

.nav-dropdown-link[aria-current="page"] {
    font-weight: 600;
}

/* --------------------------------------------------------
   Burger Menu
   Unter 1100 px ersetzt ein Burger oben rechts die beiden
   Desktop-Navigationen. Das Menue selbst legt sich als
   vollflaechiges Overlay ueber die Seite.
   -------------------------------------------------------- */

.burger-menu {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background-color: #2b281d;
    border-radius: 2px;
    transition: top 0.3s ease, transform 0.3s ease, opacity 0.2s ease, background-color 0.3s ease;
}

.burger-menu span:nth-child(1) { top: 14px; }
.burger-menu span:nth-child(2) { top: 21px; }
.burger-menu span:nth-child(3) { top: 28px; }

/* Offen: die Balken werden zum X und hell, damit sie auf dem
   dunklen Overlay sichtbar bleiben */
.burger-menu.active span {
    background-color: #fffffb;
}

.burger-menu.active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.burger-menu:focus-visible {
    outline: 2px solid #2b281d;
    outline-offset: 2px;
}

.burger-menu.active:focus-visible {
    outline-color: #fffffb;
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    padding: 4rem 1.5rem;
    box-sizing: border-box;
    overflow-y: auto;
    background-color: #2b281d;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
    z-index: 1000;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s;
}

.mobile-link {
    color: #fffffb;
    font-size: clamp(1.9rem, 8.2vw, 2.6rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

/* Der Hover-Balken der Textlinks passt nicht aufs dunkle Overlay */
.mobile-link::before,
.mobile-link::after {
    content: none;
}

.mobile-link:hover,
.mobile-link:focus-visible {
    color: #c1c1c1;
}

.mobile-link:focus-visible {
    outline-color: #fffffb;
}

/* Die Links laufen beim Oeffnen leicht versetzt ein */
.mobile-nav.active .mobile-link {
    opacity: 1;
    transform: none;
}

.mobile-nav.active .mobile-link:nth-of-type(1) { transition-delay: 0.10s; }
.mobile-nav.active .mobile-link:nth-of-type(2) { transition-delay: 0.16s; }
.mobile-nav.active .mobile-link:nth-of-type(3) { transition-delay: 0.22s; }
.mobile-nav.active .mobile-link:nth-of-type(4) { transition-delay: 0.28s; }
.mobile-nav.active .mobile-link:nth-of-type(5) { transition-delay: 0.34s; }

/* Untergruppe Oeffnungszeiten: kleine Ueberschrift, darunter
   die beiden Salons nebeneinander. Laeuft als Ganzes zuletzt ein. */
.mobile-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 251, 0.2);
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-group-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 251, 0.6);
}

.mobile-group-links {
    display: flex;
    gap: 1.5rem;
}

.mobile-link-sub {
    font-size: clamp(1.3rem, 5.5vw, 1.7rem);
}

.mobile-nav.active .mobile-group {
    opacity: 1;
    transform: none;
    transition-delay: 0.34s;
}

/* Die Trennlinien des frueheren Seitenmenues braucht das Overlay nicht */
.mobile-separator {
    display: none;
}

/* Solange das Overlay offen ist, scrollt die Seite dahinter nicht */
body.nav-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .burger-menu {
        display: block;
        position: absolute;
        top: 50%;
        right: -9px; /* Balken enden buendig mit der Inhaltskante */
        transform: translateY(-50%);
    }

    .menu-left,
    .menu-right {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    /* Die Social-Icons wandern nach links, der Burger sitzt rechts */
    .social-header {
        right: auto;
        left: 0;
    }

    .sec-one {
        justify-content: center;
    }
}

/* Querformat auf dem Handy: weniger Hoehe, dichter setzen */
@media (max-width: 1100px) and (max-height: 500px) {
    .mobile-nav {
        gap: 0.8rem;
        padding: 2rem 1.5rem;
    }

    .mobile-link {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .burger-menu span,
    .mobile-nav,
    .mobile-link,
    .mobile-group,
    .nav-dropdown-panel,
    .nav-caret {
        transition: none;
    }
}

/* --------------------------------------------------------
   Hero – Section Two
   -------------------------------------------------------- */

.section-two {
    background-image: linear-gradient(rgba(43, 37, 28, 0.30), rgba(43, 37, 28, 0.30)), url("/img/friseursalon-haarstyling-hero-image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    color: #fffffb;
}

.sec-two {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1200px) {
    .section-two {
        background-position: 60% center;
    }
}

@media (max-width: 900px) {
    .section-two {
        background-position: 70% center;
    }
}

@media (max-width: 700px) {
    .section-two {
        background-position: 80% center;
    }
}

/* Hero-Inhalt sitzt unten statt mittig. Gilt bewusst nur fuer
   .section-two, alle anderen Abschnitte bleiben zentriert. */
@media (max-width: 900px) {
    .section-two {
        align-items: flex-end;
    }
}

h1 {
    font-size: clamp(1.5rem, 3.75vw, 3rem);
    font-weight: 400;
    margin-bottom: 1vh;
}

/* --------------------------------------------------------
   Hero der Startseite
   Inhalt sitzt unten auf dem Bild, linksbuendig, damit das
   Gesicht rechts oben frei bleibt. Ab 1100 px zweispaltig:
   links die Ansprache, rechts die Standortwahl – beide auf
   einer gemeinsamen Unterkante.
   -------------------------------------------------------- */

.hero-home {
    /* dunkler nur unten, wo der Text steht */
    background-image:
        linear-gradient(to top, rgba(18, 17, 13, 0.80) 0%, rgba(18, 17, 13, 0.38) 45%, rgba(43, 37, 28, 0.18) 100%),
        url("/img/friseursalon-haarstyling-hero-image.jpg");
    height: auto;
    min-height: 80vh;
    align-items: flex-end;
}

.hero-home-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: 2.4rem;
    padding: 5rem 0 2.6rem;
    text-align: left;
}

/* die Standortwahl bekommt etwas mehr Breite, damit die
   Stadtteil-Zeile in den Karten einzeilig bleibt */
@media (min-width: 1101px) {
    .hero-home-inner {
        grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
        gap: 3rem;
        padding: 7rem 0 3.5rem;
    }
}

@media (min-width: 1101px) and (max-width: 1160px) {
    .divine-place-long {
        display: none;
    }
}

.hero-copy {
    max-width: 36rem;
}

/* Kleine Kapitaelchen-Zeile mit Strich davor – dient als
   Vorzeile ueber der H1 und als Label ueber der Standortwahl */
.hero-eyebrow,
.divine-hint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.85;
    margin: 0;
}

.hero-eyebrow::before,
.divine-hint::before {
    content: "";
    flex: none;
    width: 2rem;
    height: 1px;
    background-color: currentColor;
}

.hero-h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0.7rem 0 1rem;
    /* Markenorange der alten Seite (#a8412d), fuer den dunklen
       Hero-Hintergrund aufgehellt */
    color: #c9573a;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 26rem;
    opacity: 0.92;
    margin-bottom: 1.6rem;
}

/* Icon-Reihe auf der Startseite: linksbuendig unter der Subline,
   kleiner als auf den Salonseiten */
.hero-copy .hero-icons {
    justify-content: flex-start;
    gap: 0.6rem;
    margin-bottom: 0;
}

.hero-icons .img-two {
    height: 2.4rem;
}

/* Standortwahl auf der Startseite.
   Jeder Salon ist eine vollstaendig klickbare Karte, damit auf den
   ersten Blick erkennbar ist, dass hier eine Auswahl getroffen wird. */

.hero-choice {
    width: 100%;
    max-width: 720px;
}

.divine-hint {
    margin-bottom: 1rem;
}

.divine {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.divine-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1.4rem 1.4rem 1.3rem;
    color: #fffffb;
    border: 1px solid rgba(255, 255, 251, 0.28);
    background-color: rgba(18, 17, 13, 0.38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

/* der Hover-Balken der Textlinks passt hier nicht */
.divine-option::before,
.divine-option::after {
    content: none;
}

.divine-option:hover,
.divine-option:focus-visible {
    background-color: rgba(18, 17, 13, 0.62);
    border-color: rgba(255, 255, 251, 0.85);
    color: #fffffb;
    transform: translateY(-3px);
}

.divine-option:focus-visible {
    outline-color: #fffffb;
}

.divine-place {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.8;
}

.divine-name {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0.15rem 0 0;
}

.divine-addr {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.75;
}

/* sitzt in beiden Karten auf gleicher Hoehe */
.divine-go {
    margin-top: auto;
    padding-top: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divine-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.divine-option:hover .divine-arrow {
    transform: translateX(4px);
}

/* Mobil bleiben beide Karten nebeneinander – gestapelt wirkt die
   Auswahl wie eine Liste. Stattdessen entfaellt die Adresse, die
   weiter unten ohnehin vollstaendig steht. */
@media (max-width: 620px) {
    .divine {
        gap: 0.7rem;
    }
    .divine-option {
        padding: 1rem 0.9rem 0.95rem;
        gap: 0.2rem;
    }
    .divine-name {
        font-size: 1.05rem;
    }
    .divine-place {
        font-size: 0.66rem;
        letter-spacing: 0.1em;
    }
    .divine-place-long,
    .divine-addr {
        display: none;
    }
    .divine-go {
        padding-top: 0.8rem;
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }
    .hero-eyebrow,
    .divine-hint {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }
    .hero-sub {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    .hero-icons .img-two {
        height: 2rem;
    }
    .hero-home-inner {
        gap: 1.8rem;
        padding: 4rem 0 2rem;
    }
}

/* Icon-Reihe */

.logo-part-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 4vh;
}

.img-two {
    height: 5vh;
    width: auto;
}

.logo-part {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

/* --------------------------------------------------------
   Brotkrumennavigation
   -------------------------------------------------------- */

.breadcrumb {
    background-color: #fffffb;
    color: #2b281d;
}

.breadcrumb-inner {
    justify-content: flex-start;
    gap: 0.5em;
    padding: 1.2vh 0;
    font-size: 0.9rem;
}

.breadcrumb-inner a {
    color: #2b281d;
}

.breadcrumb-inner span[aria-current] {
    color: #6b6558;
}

/* --------------------------------------------------------
   Startseite – Textabschnitt
   -------------------------------------------------------- */

.section-intro {
    background-color: #fffffb;
    color: #2b281d;
}

.sec-intro {
    flex-direction: column;
    text-align: center;
    gap: 2vh;
    padding-top: 8vh;
    padding-bottom: 6vh;
    max-width: 900px;
}

/* --------------------------------------------------------
   Karten-Raster (Leistungen auf der Startseite)
   -------------------------------------------------------- */

.section-cards {
    background-color: #fffffb;
    color: #2b281d;
}

.sec-cards {
    flex-direction: column;
    padding-top: 80px;
    padding-bottom: 8vh;
}

.cards-head {
    text-align: center;
    margin-bottom: 4vh;
    max-width: 760px;
}

/* Feste Spaltenzahl statt auto-fit: sechs Karten ergeben so
   immer zwei volle Reihen ohne Luecke am Zeilenende. */
.card-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Rasterelemente werden gestreckt, dadurch sind alle Karten
   einer Reihe automatisch gleich hoch. */
.card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid #e3e0d7;
    border-top: 3px solid #2b281d;
    padding: 2rem 1.6rem;
    background-color: #fffffb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(43, 40, 29, 0.13);
}

.card h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
}

.card p {
    color: #4a4638;
}

.cards-cta {
    margin-top: 5vh;
    width: 100%;
}

/* --------------------------------------------------------
   Standortkarten
   -------------------------------------------------------- */

.section-locations {
    background-color: #f4f2ec;
    color: #2b281d;
}

.sec-locations {
    flex-direction: column;
    padding-top: 8vh;
    padding-bottom: 8vh;
}

.location-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.location-card {
    display: flex;
    flex-direction: column;
    background-color: #fffffb;
    border: 1px solid #e3e0d7;
    border-top: 3px solid #2b281d;
    padding: 2rem 1.8rem;
}

/* Schiebt den Button ans Kartenende. Beide Karten sind durch das
   Raster gleich hoch, damit stehen die Buttons auf gleicher Hoehe –
   auch wenn die Oeffnungszeiten unterschiedlich viele Zeilen haben. */
.location-cta {
    margin-top: auto;
    padding-top: 1.6rem;
    display: grid;
    gap: 0.6rem;
}

.location-cta .button {
    margin: 0;
    width: 100%;
}

.location-card h3 {
    margin: 0 0 0.8rem 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.location-card h3 a {
    color: #2b281d;
}

.location-note {
    margin-bottom: 1.4rem;
}

.location-nap {
    margin-bottom: 1.1rem;
}

.location-nap a {
    color: #2b281d;
}

.nap-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6558;
}

/* --------------------------------------------------------
   Section Three – Fotoreihe
   Auf Startseite und beiden Standortseiten im Einsatz.
   -------------------------------------------------------- */

.section-three {
    background-color: #12110d;
}

.three-fotobox {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1vw;
    padding-top: 2%;
    padding-bottom: 2%;
}

.img-three {
    height: 40vh;
    width: auto;
    /* ohne min-width: 0 verhindert die Eigenbreite des Bildes das
       Schrumpfen im Flexlayout – die Reihe lief sonst aus dem
       Inhaltsrahmen heraus. Der Zuschnitt uebernimmt object-fit. */
    min-width: 0;
    max-width: 100%;
    object-fit: cover;
}

@media (max-width: 1280px) {
    .img-middle {
        max-width: 40%;
        object-fit: cover;
        object-position: center;
    }
}

/* Ab hier bleibt es durchgehend bei einem einzelnen Bild.
   Die beiden aeusseren Aufnahmen entfallen und kommen auf
   schmaleren Schirmen bewusst nicht zurueck. */
@media (max-width: 750px) {
    .three-fotobox {
        flex-direction: column;
        gap: 2vh;
        padding-top: 7%;
        padding-bottom: 7%;
    }

    .img-three, .img-middle {
        max-width: 100%;
        height: auto;
    }

    .cheater {
        display: none;
    }
}

/* Variante mit einer einzelnen Panorama-Aufnahme statt drei Bildern */

.fotobox-wide {
    display: block;
    padding-top: 4%;
    padding-bottom: 5%;
}

.img-wide {
    display: block;
    width: 100%;
    height: auto;
}

/* --------------------------------------------------------
   Produktpartner – auf mehreren Seiten im Einsatz
   -------------------------------------------------------- */

.section-seven {
    background-color: #fffffb;
    color: #2b281d;
}

.sec-seven {
    flex-direction: column;
    text-align: center;
    padding-top: 8vh;
    padding-bottom: 8vh;
}

.textblock-seven {
    max-width: 900px;
}

.img-block-seven {
    width: 100%;
    gap: 1vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-seven {
    height: 20vh;
    width: auto;
}

/* KMS-Wortmarke füllt ihre Bildfläche komplett aus,
   Goldwell/hairtalk nur zu ca. 40 % – daher deutlich kleinere Höhe */
.img-kms {
    height: 7vh;
}

@media (max-width: 1080px) {
    .img-seven {
        height: 15vh;
    }

    .img-kms {
        height: 5vh;
    }
}

@media (max-width: 850px) {
    .img-seven {
        height: 10vh;
    }

    .img-kms {
        height: 3.5vh;
    }
}

@media (max-width: 600px) {
    .img-block-seven {
        height: auto;
        flex-direction: column;
        padding-top: 3vh;
    }
}

/* --------------------------------------------------------
   Footer – auf allen Seiten identisch
   -------------------------------------------------------- */

.section-footer-cl {
    background-color: #12110d;
    color: #fffffb;
    padding-top: 5vh;
    padding-bottom: 4vh;
}

/* Kein width: 100% – sonst ueberschreibt der Footer die 90vw
   von .sec und liegt bündig am Fensterrand, waehrend der Rest
   der Seite Seitenabstand haelt. */
.sec-footer {
    flex-direction: column;
    align-items: center;
    gap: 4vh;
}

/* Feste Spaltenzahl statt auto-fit: bei drei Bloecken wuerde
   auto-fit auf breiten Schirmen eine vierte, leere Spalte anlegen. */
.footer-salons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vh 3vw;
    align-items: start;
}

.footer-salon {
    display: flex;
    flex-direction: column;
    gap: 1.2vh;
    font-size: 1rem;
}

.footer-salon a {
    color: #fffffb;
}

.footer-salon-name {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.footer-brand {
    align-items: flex-start;
}

.footer-linkbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #2b281d;
    padding-top: 3vh;
    width: 100%;
}

.footer-links {
    text-decoration: none;
    color: #fffffb;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 16px;
}

.footer-separator {
    display: inline-flex;
    align-items: center;
    color: #fffffb;
    padding: 0 0.2rem;
    line-height: 1;
}

@media (max-width: 850px) {
    .footer-salons {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        justify-items: center;
    }
    /* dritter Block sitzt allein in der Zeile und wird deshalb
       ueber beide Spalten zentriert */
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-salon {
        align-items: center;
    }
    .footer-brand {
        align-items: center;
    }
}

@media (max-width: 560px) {
    .footer-salons {
        grid-template-columns: 1fr;
    }
}
