/* =====================================================================
   Haarstern - Barbara Harbarth
   Aufbau: Schriften, Farbwerte, Grundlagen, dann Bausteine von oben
   nach unten (Kopf, Titelbild, Inhalt, Preise, Galerie, Fuss).
   Mobil zuerst; groessere Bildschirme kommen ueber min-width dazu.
   ===================================================================== */

/* --- Schriften ------------------------------------------------------ */
/* Liegen lokal. Bewusst nicht von Google geladen: das uebertraegt die
   IP-Adresse jeder Besucherin an einen Drittanbieter. */
@font-face {
    font-family: 'Lato';
    src: url('../schriften/lato-light.woff') format('woff');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../schriften/lato-regular.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('../schriften/lato-bold.woff') format('woff');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Cookie';
    src: url('../schriften/cookie-regular.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}

/* --- Farbwerte ------------------------------------------------------ */
/* Alle Farben ausschliesslich hier. Wer eine Farbe direkt in eine Regel
   schreibt, bricht den Dunkelmodus. */
:root {
    --grund:        #ffffff;
    --grund-sanft:  #f4f9f9;
    --karte:        #ffffff;
    --text:         #1c2829;
    --text-leise:   #56686a;
    --marke:        #0f6b71;
    --marke-hell:   #148087;
    --marke-sanft:  #e6f2f2;
    --rand:         #dae7e8;
    --schatten:     0 1px 2px rgba(16, 60, 63, .06), 0 8px 28px rgba(16, 60, 63, .07);
    --schatten-tief:0 4px 12px rgba(16, 60, 63, .12), 0 18px 48px rgba(16, 60, 63, .14);
    --radius:       14px;
    --breite:       min(72rem, 100% - 2.5rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        --grund:        #10191a;
        --grund-sanft:  #172224;
        --karte:        #1a2527;
        --text:         #e7f0f0;
        --text-leise:   #9db1b3;
        --marke:        #63c8ce;
        --marke-hell:   #7fd6db;
        --marke-sanft:  #16302f;
        --rand:         #2a3739;
        --schatten:     0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
        --schatten-tief:0 4px 12px rgba(0,0,0,.5), 0 18px 48px rgba(0,0,0,.45);
    }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

body {
    margin: 0;
    font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--grund);
    -webkit-font-smoothing: antialiased;
    /* Platz fuer die feste Anrufleiste am unteren Rand (nur mobil sichtbar) */
    padding-bottom: env(safe-area-inset-bottom);
}

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

a { color: var(--marke); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--marke-hell); }

/* Sichtbarer Fokusrahmen - nur bei Tastaturbedienung, nicht bei Mausklick */
:focus-visible {
    outline: 3px solid var(--marke);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }

.inhalt { width: var(--breite); margin-inline: auto; }
.abschnitt { padding: 3rem 0; }
.abschnitt--sanft { background: var(--grund-sanft); }

/* Nur fuer Screenreader */
.nur-vorlesen {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Sprungmarke fuer Tastaturnutzer */
.sprung {
    position: absolute; left: -9999px;
    background: var(--marke); color: #fff;
    padding: .8rem 1.2rem; z-index: 200; border-radius: 0 0 8px 0;
}
.sprung:focus { left: 0; top: 0; }

/* --- Schaltflaechen ------------------------------------------------- */
.knopf {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .55rem;
    /* min-height 3rem: Fingerkuppen brauchen rund 44 px Trefferflaeche */
    min-height: 3rem;
    padding: .75rem 1.6rem;
    border: 2px solid transparent; border-radius: 999px;
    font: inherit; font-weight: 700; text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.knopf:hover { transform: translateY(-1px); }
.knopf:active { transform: translateY(0); }

.knopf--haupt { background: var(--marke); color: #fff; }
.knopf--haupt:hover { background: var(--marke-hell); color: #fff; }
@media (prefers-color-scheme: dark) {
    .knopf--haupt { color: #06201f; }
    .knopf--haupt:hover { color: #06201f; }
}

.knopf--rand {
    background: transparent; color: var(--marke); border-color: var(--marke);
}
.knopf--rand:hover { background: var(--marke-sanft); }

/* --- Kopfbereich ---------------------------------------------------- */
.kopf {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--grund) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rand);
}
.kopf__innen {
    width: var(--breite); margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .6rem 0;
}
.kopf__logo img { width: 132px; }
@media (prefers-color-scheme: dark) {
    /* Das Logo hat einen weissen Hintergrund - im Dunkelmodus etwas
       zuruecknehmen, damit es nicht als greller Block wirkt. */
    .kopf__logo img, .fuss__logo img { filter: brightness(.92) saturate(1.1); }
}

.menue-schalter {
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 2.75rem; padding: .5rem .9rem;
    background: transparent; border: 1px solid var(--rand);
    border-radius: 999px; color: var(--text);
    font: inherit; font-weight: 700; cursor: pointer;
}
.menue-schalter__strich {
    display: block; width: 18px; height: 2px;
    background: currentColor; border-radius: 2px;
    position: relative;
}
.menue-schalter__strich::before,
.menue-schalter__strich::after {
    content: ''; position: absolute; left: 0;
    width: 18px; height: 2px; background: currentColor; border-radius: 2px;
}
.menue-schalter__strich::before { top: -6px; }
.menue-schalter__strich::after  { top:  6px; }

.navi ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: .2rem;
}
.navi a {
    display: block; padding: .75rem .25rem;
    color: var(--text); text-decoration: none; font-weight: 700;
    border-bottom: 1px solid var(--rand);
}
.navi a:hover, .navi a[aria-current="page"] { color: var(--marke); }

/* Mobil: Menue eingeklappt, oeffnet unter dem Kopf */
@media (max-width: 47.99em) {
    .navi {
        display: none;
        width: var(--breite); margin-inline: auto;
        padding-bottom: .8rem;
    }
    .navi.ist-offen { display: block; }
}

/* Ab Tablet: Menue immer sichtbar, Schalter weg */
@media (min-width: 48em) {
    .menue-schalter { display: none; }
    .navi { display: block !important; }
    .navi ul { flex-direction: row; gap: 1.6rem; }
    .navi a { padding: .4rem 0; border-bottom: 2px solid transparent; }
    .navi a[aria-current="page"] { border-bottom-color: var(--marke); }
    .kopf__logo img { width: 158px; }
}

/* --- Titelbild ------------------------------------------------------ */
.titel { position: relative; background: var(--grund-sanft); }
.titel__bild {
    width: 100%; height: clamp(20rem, 58vh, 34rem);
    object-fit: cover; object-position: center 38%;
}
.titel__text {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    width: var(--breite); margin-inline: auto;
    padding-bottom: 2rem;
    /* Verlauf, damit die Schrift auf jedem Bildausschnitt lesbar bleibt */
    color: #fff;
}
.titel::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top,
        rgba(8, 32, 34, .82) 0%,
        rgba(8, 32, 34, .45) 38%,
        rgba(8, 32, 34, .08) 70%,
        rgba(8, 32, 34, 0) 100%);
}
.titel__text { z-index: 2; }
.titel__marke {
    font-family: 'Cookie', cursive;
    font-size: clamp(2.4rem, 8vw, 4rem);
    line-height: 1; margin: 0 0 .1em; color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.titel__spruch {
    font-size: clamp(1.05rem, 2.6vw, 1.4rem);
    font-weight: 300; margin: 0 0 1.4rem;
    max-width: 34rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.titel__knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; }
.titel .knopf--rand { color: #fff; border-color: rgba(255,255,255,.75); }
.titel .knopf--rand:hover { background: rgba(255,255,255,.16); color: #fff; }

/* --- Textbausteine -------------------------------------------------- */
.fliess { max-width: 40rem; }
.fliess p:last-child { margin-bottom: 0; }
.vorspann {
    font-size: 1.2rem; font-weight: 300; color: var(--text-leise);
    max-width: 38rem;
}

.karten { display: grid; gap: 1.2rem; }
@media (min-width: 40em) { .karten--drei { grid-template-columns: repeat(3, 1fr); } }
.karte {
    background: var(--karte); border: 1px solid var(--rand);
    border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--schatten);
}
.karte h3 { color: var(--marke); margin-bottom: .35rem; }
.karte p { margin: 0; color: var(--text-leise); }

/* Profilseite: Bild neben Text ab Tablet */
.profil { display: grid; gap: 2rem; }
@media (min-width: 48em) {
    .profil { grid-template-columns: 18rem 1fr; align-items: start; }
}
.profil__bild { border-radius: var(--radius); box-shadow: var(--schatten); }

.liste-schlicht { list-style: none; margin: 0; padding: 0; }
.liste-schlicht li {
    padding: .5rem 0 .5rem 1.6rem; position: relative;
    border-bottom: 1px solid var(--rand);
}
.liste-schlicht li::before {
    content: '★'; position: absolute; left: 0; top: .5rem;
    color: var(--marke); font-size: .85em;
}

/* --- Preise --------------------------------------------------------- */
.preisgruppe {
    background: var(--karte); border: 1px solid var(--rand);
    border-radius: var(--radius); margin-bottom: 1rem;
    box-shadow: var(--schatten); overflow: hidden;
}
.preisgruppe > summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 1.1rem 1.3rem;
    font-size: 1.2rem; font-weight: 700; color: var(--marke);
    cursor: pointer; list-style: none;
    min-height: 3.25rem;
}
.preisgruppe > summary::-webkit-details-marker { display: none; }
.preisgruppe > summary::after {
    content: ''; flex: none;
    width: .6rem; height: .6rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .2s ease;
}
.preisgruppe[open] > summary::after { transform: rotate(-135deg); }
.preisgruppe > summary:hover { background: var(--marke-sanft); }

.preisliste { list-style: none; margin: 0; padding: 0 1.3rem 1.1rem; }
.preisliste li {
    display: flex; align-items: baseline; gap: .75rem;
    padding: .6rem 0; border-top: 1px solid var(--rand);
}
.preisliste__was { flex: 1 1 auto; }
/* Punktreihe zwischen Leistung und Preis */
.preisliste__fuell {
    flex: 1 1 auto; min-width: 1.5rem;
    border-bottom: 1px dotted var(--rand);
    transform: translateY(-.25em);
}
.preisliste__preis {
    flex: none; font-weight: 700; color: var(--marke);
    white-space: nowrap; font-variant-numeric: tabular-nums;
}

.hinweis {
    background: var(--marke-sanft); border-radius: var(--radius);
    padding: 1.2rem 1.4rem; margin-top: 1.5rem;
}
.hinweis h3 { color: var(--marke); margin-bottom: .3rem; }
.hinweis p:last-child { margin-bottom: 0; }

/* --- Galerie -------------------------------------------------------- */
.galerie {
    display: grid; gap: .8rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.galerie__stueck {
    margin: 0; border-radius: var(--radius); overflow: hidden;
    background: var(--grund-sanft); box-shadow: var(--schatten);
    aspect-ratio: 1 / 1;
}
.galerie__stueck a { display: block; height: 100%; }
.galerie__stueck img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.galerie__stueck a:hover img { transform: scale(1.04); }

/* Grossansicht */
.lupe {
    position: fixed; inset: 0; z-index: 300;
    display: none; align-items: center; justify-content: center;
    gap: .5rem;
    background: rgba(6, 22, 24, .94);
    padding: 1rem;
}
.lupe.ist-offen { display: flex; }

.lupe__rahmen {
    margin: 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.lupe img {
    max-width: 100%; max-height: 78vh;
    border-radius: 8px; box-shadow: var(--schatten-tief);
}

/* Beschriftung und Zaehler unter dem Bild */
.lupe__unten {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    justify-content: center;
    color: rgba(255,255,255,.9); font-size: .95rem; text-align: center;
}
.lupe__zaehler {
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px; padding: .15rem .7rem; white-space: nowrap;
}

/* Schliessen und Blaettern */
.lupe__zu, .lupe__blaettern {
    flex: none;
    width: 3rem; height: 3rem; border-radius: 999px;
    background: rgba(255,255,255,.14); color: #fff;
    border: 0; line-height: 1; cursor: pointer;
    display: grid; place-items: center;
    transition: background-color .18s ease;
}
.lupe__zu:hover, .lupe__blaettern:hover { background: rgba(255,255,255,.3); }
.lupe__zu {
    position: absolute; top: 1rem; right: 1rem; z-index: 2;
    font-size: 1.6rem;
}
.lupe__blaettern { font-size: 2.2rem; }
.lupe__blaettern[hidden] { display: none; }

/* Am Handy ist seitlich kein Platz - dort liegen die Pfeile unten,
   wo der Daumen sie ohnehin erreicht. Gewischt werden kann zusaetzlich. */
@media (max-width: 40em) {
    .lupe { flex-wrap: wrap; align-content: center; }
    .lupe__rahmen { order: 1; flex-basis: 100%; }
    .lupe__zurueck { order: 2; }
    .lupe__vor { order: 3; }
    .lupe__blaettern { width: 3.5rem; height: 3.5rem; }
    .lupe img { max-height: 66vh; }
}

/* --- Kontakt -------------------------------------------------------- */
.kontaktgitter { display: grid; gap: 1.2rem; }
@media (min-width: 40em) { .kontaktgitter { grid-template-columns: 1fr 1fr; } }
.kontaktzeile {
    display: flex; align-items: flex-start; gap: .85rem;
    padding: .9rem 0; border-bottom: 1px solid var(--rand);
}
.kontaktzeile__symbol {
    flex: none; width: 2.5rem; height: 2.5rem; border-radius: 999px;
    background: var(--marke-sanft); color: var(--marke);
    display: grid; place-items: center; font-size: 1.1rem;
}
.kontaktzeile__wert { font-weight: 700; }
.kontaktzeile__wert a { text-decoration: none; }

/* --- Fussbereich ---------------------------------------------------- */
.fuss {
    background: var(--marke); color: #fff;
    margin-top: 3rem; padding: 2.5rem 0 1.5rem;
    /* Luft fuer die feste Anrufleiste, damit sie nichts verdeckt */
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}
@media (prefers-color-scheme: dark) {
    .fuss { background: #0d2f31; }
}
@media (min-width: 48em) {
    .fuss { padding-bottom: 1.5rem; }
}
.fuss a { color: #fff; }
.fuss__gitter { display: grid; gap: 1.6rem; }
@media (min-width: 40em) { .fuss__gitter { grid-template-columns: repeat(3, 1fr); } }
.fuss h3 { color: #fff; font-size: 1rem; text-transform: uppercase;
           letter-spacing: .08em; opacity: .85; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { padding: .25rem 0; }
.fuss__unten {
    margin-top: 1.8rem; padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.22);
    display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
    justify-content: space-between; font-size: .92rem; opacity: .9;
}

/* --- Feste Anrufleiste (nur mobil) ---------------------------------- */
/* Der wichtigste Weg zum Geschaeft ist der Anruf. Auf dem Handy bleibt
   die Schaltflaeche deshalb dauerhaft erreichbar. */
.anrufleiste {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--grund) 94%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--rand);
}
.anrufleiste .knopf { width: 100%; }
@media (min-width: 48em) { .anrufleiste { display: none; } }
