/*
 * Klartext (Layout 1, Phase 2): hell, ruhig, zeitgemaess.
 *
 * Uebernommen aus dem Scribble resources/scribbles/klartext.css (v=21); die
 * Scribbles sind das Pflichtenheft. Eine Schrift (Inter), viel Luft,
 * gerundete Flaechen, ein farbiger Knopf. Die Flaechen kommen aus der
 * Farbwelt des Kunden, der Akzent aus seiner Branche — beides setzt der
 * style-Block der Seite; die Werte hier sind nur der Rueckfall (Farbwelt
 * hell, ein neutraler Akzent). Bilder stehen immer ganz da, nie beschnitten.
 *
 * Gegenueber dem Scribble angepasst: der Statuspunkt (Skript der Plattform),
 * die Haken der Listen ohne eingebrannte Farbe, Fuss und Anrufleiste aus den
 * gemeinsamen Bausteinen, Karten ohne Bild und das Menue ab sechs
 * Unterseiten.
 */

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

:root {
    /* Rueckfall: Farbwelt hell. */
    --papier: #fafafa;
    --papier-tief: #eeeeee;
    --karte: #ffffff;
    --tinte: #141414;
    --tinte-leise: #5e5e5e;
    --linie: #d8d8d8;
    --flut: #161616;
    --offen: #178a4a;
    --offen-flut: #178a4a;
    /* Rueckfall ohne Branche: ein ruhiges Blau, hell auf der Flut. */
    --akzent: #1d4e89;
    --akzent-hell: #ffd27a;
    --breite: 72rem;
    --rund: 18px;
    --schatten: 0 18px 40px -18px rgb(0 0 0 / 0.28);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--papier);
    color: var(--tinte);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

.innen {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Kopf: bleibt beim Scrollen stehen ─────────────────────────────────── */

.kopf {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--papier) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--linie);
}

.kopf .innen {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    min-height: 4.25rem;
}

.marke {
    margin-right: auto;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-decoration: none;
}

/* Mit Logo steht das Logo statt des Namens, so hoch wie die Kopfzeile es
   zulaesst — im Scribble stand nur der Name. */
.marke img {
    width: auto;
    max-width: 12rem;
    max-height: 2.75rem;
    object-fit: contain;
}

.navi {
    display: none;
    gap: 1.6rem;
}

.navi a {
    color: var(--tinte-leise);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.navi a:hover,
.navi a[aria-current] {
    color: var(--tinte);
}

.kopf .anrufen {
    display: none;
}

@media (min-width: 900px) {
    .navi,
    .kopf .anrufen {
        display: flex;
    }

    .menue {
        display: none;
    }
}

.menue summary {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--linie);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

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

.menue nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: grid;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--papier);
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten);
}

.menue nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--linie);
    font-weight: 500;
    text-decoration: none;
}

/* ── Knoepfe ───────────────────────────────────────────────────────────── */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem 1.35rem;
    border: 1.5px solid transparent;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.knopf:hover {
    transform: translateY(-1px);
}

.knopf svg {
    width: 1.1rem;
    height: 1.1rem;
}

.knopf-voll {
    background: var(--akzent);
    color: #fff;
}

.knopf-rand {
    border-color: var(--linie);
    background: var(--papier);
    color: var(--tinte);
}

.kopf .anrufen {
    min-height: 2.6rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
}

/* ── Oben: geteilt, das Bild ganz ──────────────────────────────────────── */

.held {
    display: grid;
    gap: 2.75rem;
    align-items: center;
    padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

@media (min-width: 900px) {
    .held {
        grid-template-columns: 1.02fr 1fr;
    }
}

.branche {
    display: inline-flex;
    margin: 0;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--akzent) 12%, var(--papier));
    color: var(--akzent);
    font-size: 0.84rem;
    font-weight: 600;
}

.held h1 {
    margin: 0.9rem 0 1rem;
    font-size: clamp(2.7rem, 6.2vw, 4.7rem);
    font-weight: 760;
    line-height: 1.02;
    letter-spacing: -0.038em;
}

.leitsatz {
    max-width: 30rem;
    margin: 0;
    color: var(--tinte-leise);
    font-size: clamp(1.1rem, 2vw, 1.32rem);
    line-height: 1.5;
}

.knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.9rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.35rem;
    color: var(--tinte-leise);
    font-size: 0.93rem;
}

.status::before {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--offen);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--offen) 18%, transparent);
}

.status[data-offen="nein"]::before {
    background: var(--tinte-leise);
    box-shadow: none;
}

.held-bild {
    position: relative;
}

.held-bild::before {
    content: '';
    position: absolute;
    inset: 9% -5% -7% 12%;
    border-radius: 30px;
    background: var(--papier-tief);
}

.held-bild img {
    position: relative;
    width: 100%;
    border-radius: var(--rund);
    box-shadow: var(--schatten);
}

/* ── Baender und Ueberschriften ────────────────────────────────────────── */

.band {
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

.band.tief {
    background: var(--papier-tief);
}

.dachzeile {
    margin: 0;
    color: var(--akzent);
    font-size: 0.84rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h2 {
    margin: 0.4rem 0 1.1rem;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 720;
    line-height: 1.1;
    letter-spacing: -0.028em;
}

.kopf-abschnitt {
    max-width: 40rem;
    margin-bottom: 2.25rem;
}

.kopf-abschnitt p {
    margin: 0;
    color: var(--tinte-leise);
}

/* ── Karten fuer die Unterseiten ───────────────────────────────────────── */

/* auto-fill statt auto-fit: bei einer oder zwei Unterseiten bleibt eine
   Karte kartengross, statt sich ueber die ganze Breite zu ziehen. */
.karten {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

.karte {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--linie);
    border-radius: var(--rund);
    background: var(--papier);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.karte:hover {
    transform: translateY(-4px);
    box-shadow: var(--schatten);
}

/* Das Bild steht ganz in seinem Feld (contain), beschnitten wird nichts. */
.karte-bild {
    display: grid;
    place-items: center;
    height: 11.5rem;
    padding: 0.9rem;
    background: var(--papier-tief);
}

/* Die Hoehe ausdruecklich: ein Prozentwert loeste sich im Raster nicht auf,
   und breite Karten schoben ihr Bild ueber die Ueberschrift. */
.karte-bild img {
    width: auto;
    max-width: 100%;
    max-height: calc(11.5rem - 1.8rem);
    border-radius: 10px;
}

.karte-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem 1.3rem 1.3rem;
}

.karte h3 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    letter-spacing: -0.015em;
}

.karte p {
    flex: 1;
    margin: 0 0 0.9rem;
    color: var(--tinte-leise);
    font-size: 0.97rem;
}

.mehr {
    color: var(--akzent);
    font-weight: 650;
}

/* ── Abschnitte: Text und Bild im Wechsel ──────────────────────────────── */

.abschnitt {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.abschnitt + .abschnitt {
    margin-top: clamp(3.5rem, 8vw, 6rem);
}

@media (min-width: 900px) {
    .abschnitt.mit-bild {
        grid-template-columns: 1fr 1fr;
    }

    .abschnitt.mit-bild:nth-of-type(even) .abschnitt-bild {
        order: -1;
    }
}

.abschnitt-text p {
    margin: 0 0 1rem;
}

.abschnitt-bild img {
    width: 100%;
    border-radius: var(--rund);
    box-shadow: var(--schatten);
}

.abschnitt:not(.mit-bild) .abschnitt-text {
    max-width: 44rem;
}

.liste {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.liste li {
    position: relative;
    min-height: 1.6rem;
    padding-left: 2.2rem;
}

/* Haken im Kreis, beides in der Farbe der Branche. Im Scribble war der
   Haken ein Bild mit eingebranntem Braun; hier zeichnet ihn der Rand, damit
   er dem Akzent folgt. */
.liste li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--akzent) 14%, var(--papier));
}

.liste li::after {
    content: '';
    position: absolute;
    top: 0.38rem;
    left: 0.6rem;
    width: 0.38rem;
    height: 0.68rem;
    border: solid var(--akzent);
    border-width: 0 0.16rem 0.16rem 0;
    transform: rotate(45deg);
}

/* ── Zeiten und Kontakt ────────────────────────────────────────────────── */

.info {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .info {
        grid-template-columns: 1fr 1fr;
    }
}

.info-karte {
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--linie);
    border-radius: var(--rund);
    background: var(--papier);
}

.info-karte h3 {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.zeiten {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.zeiten td {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--linie);
}

.zeiten td:last-child {
    text-align: right;
}

.zeiten tr.heute td {
    color: var(--akzent);
    font-weight: 650;
}

.fussnote {
    margin: 0.9rem 0 0;
    color: var(--tinte-leise);
    font-size: 0.92rem;
}

.telefon {
    display: block;
    margin-bottom: 0.4rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 720;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.kontakt-zeilen {
    margin: 0 0 1.25rem;
    color: var(--tinte-leise);
}

.netze {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.netze a {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--linie);
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
}

/* ── Unterseite ────────────────────────────────────────────────────────── */

.seitenkopf {
    padding-block: clamp(2.5rem, 6vw, 4rem);
    background: var(--papier-tief);
}

.pfad {
    margin: 0 0 0.8rem;
    color: var(--tinte-leise);
    font-size: 0.9rem;
}

.pfad a {
    text-decoration: none;
}

.seitenkopf h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 760;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.aufruf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--rund);
    background: var(--flut);
    color: var(--papier);
}

.aufruf h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.aufruf .knopf-voll {
    background: var(--papier);
    color: var(--tinte);
}

/* ── Fuss und Leiste auf dem Telefon ───────────────────────────────────── */
/* Die Bausteine fuss und anrufleiste sind dieselben wie bei den alten
   Vorlagen; hier bekommen sie das Aussehen aus dem Scribble. */

.fuss {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem 1.5rem;
    max-width: var(--breite);
    margin: 0 auto;
    padding: 2.25rem 1.25rem;
    border-top: 1px solid var(--linie);
    color: var(--tinte-leise);
    font-size: 0.9rem;
}

.fuss p {
    margin: 0;
}


/* Impressum, Datenschutz, AGB als Verweise im Fuss (Phase 2). */
.fuss .rechtliches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
}

.fuss .rechtliches a[aria-current] {
    color: var(--tinte);
}

.anrufleiste {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem calc(0.65rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--papier) 92%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--linie);
}

.anrufleiste a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    border: 1.5px solid var(--linie);
    border-radius: 999px;
    color: var(--tinte);
    font-weight: 650;
    text-decoration: none;
}

.anrufleiste a.haupt {
    border-color: var(--akzent);
    background: var(--akzent);
    color: var(--papier);
}

@media (max-width: 899px) {
    body {
        padding-bottom: 4.6rem;
    }
}

@media (min-width: 900px) {
    .anrufleiste {
        display: none;
    }
}

[hidden] {
    display: none !important;
}

/* ── Kontaktformular (K12, Entscheide 17.10.2026) ──────────────────────
   Auf der Startseite im Kontaktbereich. Danke und Fehler zeigt die Seite
   ohne Skript: der Empfaenger leitet zurueck auf #kontakt-gesendet bzw.
   #kontakt-fehler, und :target blendet die Zeile ein. */

.formular-karte {
    margin-top: 1.25rem;
}

.formular-karte[hidden],
.meldung {
    display: none;
}

.formular {
    display: grid;
    gap: 1rem;
}

@media (min-width: 700px) {
    .formular {
        grid-template-columns: 1fr 1fr;
    }

    .formular .breit {
        grid-column: 1 / -1;
    }
}

.formular .feld span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.formular .feld small {
    color: var(--tinte-leise);
    font-weight: 400;
}

.formular input,
.formular textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--linie);
    border-radius: 12px;
    background: #fff;
    color: var(--tinte);
    font: inherit;
}

.formular textarea {
    min-height: 9rem;
    resize: vertical;
}

.formular input:focus,
.formular textarea:focus {
    border-color: var(--akzent);
    outline: 2px solid color-mix(in srgb, var(--akzent) 35%, transparent);
    outline-offset: 1px;
}

.formular .knopf {
    border: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.formular .knopf:disabled {
    background: var(--linie);
    color: var(--tinte-leise);
    cursor: not-allowed;
    transform: none;
}

.absenden {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.hinweis-klein {
    margin: 0;
    color: var(--tinte-leise);
    font-size: 0.88rem;
}

/* Die Ruecksprung-Marke landet unter der Kopfleiste, nicht dahinter. */
.meldung {
    scroll-margin-top: 6rem;
}

/* Fuer Menschen unsichtbar, fuer Automaten ein Feld wie jedes andere. */
.lockfeld {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.meldung:target {
    display: block;
    margin: 0 0 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
}

.meldung-gut:target {
    border: 1px solid var(--akzent);
    background: color-mix(in srgb, var(--akzent) 10%, var(--papier));
}

/* Nach dem Senden steht nur noch der Dank da, kein leeres Formular. */
.meldung-gut:target ~ .formular {
    display: none;
}

.meldung-fehler:target {
    border: 1px solid #b42318;
    background: #fdecea;
    color: #7a1a12;
}

/* Impressum, Datenschutz, AGB (Entscheid 14.10.2026): eigene Seiten mit
   einer Lesespalte, fuer Suchmaschinen gesperrt. */
.rechtstext {
    max-width: 44rem;
    padding-bottom: 3rem;
}

.rechtstext h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.15rem;
}

.rechtstext p {
    margin: 0 0 1rem;
}

.rechtstext .platzhalter {
    padding: 0.8rem 1rem;
    border: 1px dashed var(--linie);
    color: var(--tinte-leise);
}

.rechtstext .pdf {
    font-weight: 600;
}

/* Die AGB des Kunden bringen Zwischenueberschriften, Listen und Tabellen
   mit (AgbBereiniger). Eine breite Tabelle scrollt fuer sich, die Seite
   nicht. */
.rechtstext h3,
.rechtstext h4 {
    margin: 1.5rem 0 0.4rem;
    font-size: 1rem;
}

.rechtstext ul,
.rechtstext ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}

.rechtstext li {
    margin-bottom: 0.3rem;
}

.rechtstext table {
    display: block;
    max-width: 100%;
    margin: 0 0 1rem;
    overflow-x: auto;
    border-collapse: collapse;
}

.rechtstext th,
.rechtstext td {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--linie);
    text-align: left;
    vertical-align: top;
}

.rechtstext a {
    overflow-wrap: anywhere;
}

/* Lange Woerter wie "Geschaeftsbedingungen" oder ein langer Firmenname
   sprengen sonst am Telefon die grosse Ueberschrift (Befund 14.10.2026). */
h1, h2 {
    hyphens: auto;
    overflow-wrap: break-word;
}

/* ── Phase 2: Karten ohne Bild, Menue ab sechs Unterseiten ─────────────── */

/* Eine Karte ohne Bild hat kein Bildfeld und wird niedriger (Entscheid
   ChiefDev 14.10.2026). */
.karte--ohne-bild .karte-text {
    padding-top: 1.4rem;
}

/* Ab sechs Unterseiten passt die Kopfzeile nicht mehr: dann zeigt auch der
   Rechner das aufklappbare Menue. */
@media (min-width: 900px) {
    .kopf--aufklappen .navi {
        display: none;
    }

    .kopf--aufklappen .menue {
        display: block;
    }
}

/* ── Google-Karte (Zusatzleistung karte, Entscheide 19.10.2026) ────────
   Aus dem Scribble klartext.css. Nur auf der Startseite, unter
   Oeffnungszeiten und Kontakt ueber die volle Breite. Bis zum Klick eine
   ruhige Flaeche mit Adresse und Knopf; erst der Klick laedt Google Maps. */

.karte-karte {
    margin-top: 1.25rem;
}

.karte-flaeche {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.9rem;
    min-height: 20rem;
    padding: 1.5rem;
    border-radius: calc(var(--rund) * 0.6);
    background: var(--papier-tief);
    text-align: center;
}

.karte-flaeche .hinweis-klein {
    max-width: 30rem;
    margin: 0;
}

.karte-adresse {
    margin: 0;
    font-weight: 600;
}

.karte-flaeche.geladen {
    display: block;
    padding: 0;
    overflow: hidden;
}

.karte-flaeche iframe {
    display: block;
    width: 100%;
    height: 22rem;
    border: 0;
}
