/*
| Sprechstunde — "Alles Wichtige zuerst"
|
| Die konsequenteste Antwort auf "sachlich informativ": nicht der Name
| beherrscht die erste Bildschirmhöhe, sondern die ERREICHBARKEIT. Rechts
| oben steht ein Kasten mit Zustand, Rufnummer und der ganzen Woche — der
| Besucher muss nicht scrollen und nicht suchen.
|
| Alles andere ordnet sich unter. Der Name bleibt ruhig, die Abschnitte
| darunter sind knapp gesetzt. Für Betriebe, bei denen die Frage immer
| dieselbe ist: habt ihr offen, und wie erreiche ich euch.
|
| Eine Schrift, Inter, variabel. Liegt als Datei daneben.
*/

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-latin.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
}

/* Farbwelt Friseur/Kosmetik/Praxis: sehr helles Warmgrau, Tinte, und ein
   ruhiges Grün als Handlungsfarbe — es trägt die Aussage "offen". */
:root {
    --papier: #f7f6f3;
    --karte: #ffffff;
    --tinte: #191b1a;
    --tinte-leise: #5e6462;
    --linie: #dcdbd6;
    --flut: #14312a;
    --akzent: #0e6b52;
    --akzent-hell: #7fd3b6;
    --offen: #16a34a;

    --rand: clamp(1.25rem, 4.5vw, 4.5rem);
}

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

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

body {
    margin: 0;
    background: var(--papier);
    color: var(--tinte);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    line-height: 1.6;
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--akzent);
    outline-offset: 3px;
}

.zahl {
    font-variant-numeric: tabular-nums;
}

/* ── Kopf ────────────────────────────────────────────────────────────── */

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding: 1.1rem var(--rand);
}

.wortmarke {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.015em;
    text-decoration: none;
}

.wortmarke img {
    display: block;
    height: 30px;
    width: auto;
}

.sprungmarken {
    display: flex;
    gap: clamp(0.9rem, 2.5vw, 1.5rem);
    font-size: 0.85rem;
    font-weight: 500;
}

.sprungmarken a {
    text-decoration: none;
    color: var(--tinte-leise);
    padding: 0.4rem 0;
}

.sprungmarken a:hover {
    color: var(--akzent);
}

/* ── Kopfbereich: links der Name, rechts die Erreichbarkeit ──────────── */

.plakat {
    padding: clamp(1rem, 3vw, 2.5rem) var(--rand) clamp(1rem, 2vw, 1.5rem);
    max-width: 44rem;
}

.branche {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--akzent);
}

.name {
    margin: 0;
    font-size: clamp(2.1rem, 1.5rem + 3vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.claim {
    margin: 0.75rem 0 0;
    max-width: 44ch;
    font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
    color: var(--tinte-leise);
    line-height: 1.45;
}

/*
| Der Kasten ist das Herzstück dieser Vorlage. Auf breiten Schirmen sitzt er
| neben dem Namen und ist ohne Scrollen vollständig zu sehen; auf dem Telefon
| rutscht er darunter, bleibt aber über allem anderen.
*/
.kontaktband {
    padding: 0 var(--rand) clamp(1.5rem, 4vw, 3rem);
}

.kontaktband-innen {
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: 14px;
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    display: grid;
    gap: 1rem;
    max-width: 30rem;
}

@media (min-width: 64rem) {
    /* Der Kasten wandert nach rechts oben, neben den Namen. Die reservierte
       Breite ist knapp bemessen: bei 34rem blieb fuer den Namen so wenig
       Platz, dass er auf drei Zeilen umbrach. */
    .plakat {
        max-width: none;
        padding-right: 28rem;
    }

    .kontaktband {
        margin-top: -13rem;
        padding-bottom: clamp(2rem, 5vw, 3.5rem);
    }

    .kontaktband-innen {
        margin-left: auto;
        margin-right: 0;
        width: 24rem;
    }
}


.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: -1;
    font-size: 0.95rem;
    font-weight: 600;
}

.status[hidden] {
    display: none;
}

.punkt {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--tinte-leise);
    flex: none;
}

.status[data-offen='ja'] .punkt {
    background: var(--offen);
    box-shadow: 0 0 0 4px rgb(22 163 74 / 0.16);
}

/* Die Rufnummer ist hier kein Text, sondern die Handlung: eine Schaltfläche
   über die volle Breite des Kastens. */
.anrufen {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    background: var(--akzent);
    color: #fff;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
    letter-spacing: -0.02em;
    transition: background-color 0.15s;
}

.anrufen:hover {
    background: #0b5741;
}

.anrufen .vorsatz {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
}

.anschrift {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--tinte-leise);
    padding-top: 0.75rem;
    border-top: 1px solid var(--linie);
}

/* ── Abschnitte ──────────────────────────────────────────────────────── */

.block {
    padding: clamp(2rem, 5vw, 3.5rem) var(--rand);
    max-width: 66rem;
}

.block--flut {
    background: var(--flut);
    color: var(--papier);
    max-width: none;
}

.block-kopf {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin: 0 0 1.25rem;
}

.zaehler {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--akzent);
}

.block--flut .zaehler {
    color: var(--akzent-hell);
}

h2 {
    margin: 0;
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.text {
    max-width: 66ch;
}

.text p {
    margin: 0 0 0.9rem;
}

.text p:last-child {
    margin-bottom: 0;
}

/* Leistungen als ruhige Kacheln — nicht als Plakat, nicht als Kursblatt.
   Was der Betrieb anbietet, soll überflogen werden können. */
.leistungen {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.leistungen li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    background: rgb(247 246 243 / 0.08);
    border: 1px solid rgb(247 246 243 / 0.18);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
}

.leistungen .nr {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--akzent-hell);
    flex: none;
}

/* ── Bilder ──────────────────────────────────────────────────────────── */

/* ── Das Plakatbild ──────────────────────────────────────────────────── */

/* Sprechstunde ist freundlich: gerundet, eingerueckt, nichts schneidet. */
.plakatbild {
    /* Unten genauso viel Luft wie oben: sonst stoesst der naechste farbige
       Block an das Bild und die runden Ecken sind nicht mehr zu sehen. */
    padding: clamp(1rem, 3vw, 2rem) var(--rand);
}
.plakatbild img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    border-radius: 14px;
    filter: saturate(0.9);
}

@media (max-width: 47.99rem) {
    .plakatbild img {
        aspect-ratio: 4 / 3;
    }
}

.galerie {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    margin: 0;
}

.galerie figure {
    margin: 0;
}

.galerie img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    filter: saturate(0.85);
    transition: filter 0.2s;
}

.galerie a:hover img {
    filter: saturate(1.05);
}

.galerie figcaption {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--tinte-leise);
}

.lupe {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    padding: 1.5rem;
    background: rgb(20 49 42 / 0.94);
}

.lupe:target {
    display: grid;
}

.lupe img {
    max-width: min(100%, 56rem);
    max-height: 88vh;
    width: auto;
    border-radius: 12px;
}

.lupe .zu {
    position: absolute;
    inset: 0;
}

/* ── Öffnungszeiten ──────────────────────────────────────────────────── */

/* Die Woche steht doppelt: knapp im Kasten oben, vollständig hier. Das ist
   Absicht — oben für den Blick, hier zum Nachlesen. */
.zeiten {
    width: 100%;
    max-width: 30rem;
    border-collapse: collapse;
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: 12px;
    overflow: hidden;
}

.zeiten th,
.zeiten td {
    text-align: left;
    padding: 0.6rem 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--linie);
}

.zeiten tr:last-child th,
.zeiten tr:last-child td {
    border-bottom: 0;
}

.zeiten td {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.zeiten .zu {
    color: var(--tinte-leise);
    font-weight: 500;
}

.hinweis {
    margin: 0.85rem 0 0;
    max-width: 60ch;
    font-size: 0.92rem;
    color: var(--tinte-leise);
}

/* ── Kontakt ─────────────────────────────────────────────────────────── */

.kontaktgitter {
    display: grid;
    gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    margin: 0;
}

.kontaktgitter dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--akzent-hell);
    margin-bottom: 0.3rem;
}

.kontaktgitter dd {
    margin: 0;
    line-height: 1.5;
}

.netze {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fuss {
    padding: clamp(1.25rem, 3vw, 2rem) var(--rand) clamp(5rem, 8vw, 2.5rem);
    font-size: 0.85rem;
    color: var(--tinte-leise);
}

.fuss summary {
    cursor: pointer;
    color: var(--tinte);
    font-weight: 600;
}

.fuss address {
    font-style: normal;
    margin-top: 0.6rem;
    line-height: 1.6;
}

/* ── Anrufleiste ─────────────────────────────────────────────────────── */

.anrufleiste {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--flut);
    color: #fff;
    padding-bottom: env(safe-area-inset-bottom);
}

.anrufleiste a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    text-decoration: none;
    font-weight: 700;
}

.anrufleiste a + a {
    border-left: 1px solid rgb(255 255 255 / 0.2);
}

.anrufleiste .haupt {
    background: var(--akzent);
}

@media (min-width: 64rem) {
    .anrufleiste {
        display: none;
    }

    .fuss {
        padding-bottom: clamp(1.5rem, 4vw, 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media print {
    .sprungmarken,
    .anrufleiste,
    .lupe {
        display: none;
    }

    .block--flut {
        background: #fff;
        color: #000;
    }
}
