/* ===========================================================
   LimparTudo - limpartudo.de
   Farben und Schrift nach dem Markenhandbuch (styleguide/)
   =========================================================== */

/* DejaVu LimparTudo ist DejaVu Sans 2.37, verlustfrei nach WOFF2 gewandelt und
   dabei umbenannt - die Bitstream-Vera-Lizenz verlangt bei jeder Änderung einen
   anderen Namen. Umrisse, Glyphenzahl und Darstellung sind unverändert, siehe
   fonts/LIESMICH.txt. */
@font-face {
    font-family: "DejaVu LimparTudo";
    src: url("fonts/DejaVuLimparTudo.woff2") format("woff2");
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "DejaVu LimparTudo";
    src: url("fonts/DejaVuLimparTudo-Bold.woff2") format("woff2");
    font-weight: bold; font-style: normal; font-display: swap;
}

:root {
    --primaer:   #006699;
    --sekundaer: #004D73;
    --dunkel:    #00334D;
    --hell:      #90C4DC;
    --grund:     #f4f7f9;
    --linie:     #d6e0e7;
    --text:      #1a2e3a;
    --leise:     #5d7a8a;
    --breite:    1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "DejaVu LimparTudo", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: #ffffff;
}

.bahn { max-width: var(--breite); margin: 0 auto; padding: 0 28px; }

/* ── Kopfleiste ──────────────────────────────────────────── */
header.kopf {
    background: var(--dunkel);
    border-bottom: 3px solid var(--primaer);
    /* Bleibt beim Blättern oben stehen. Der Grund ist deckend, darunter darf nichts
       durchscheinen; z-index hält die Leiste über den Bildschirmfotos. */
    position: sticky;
    top: 0;
    z-index: 10;
}
.kopf .bahn {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 82px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}
.marke {
    background: #ffffff;
    border-radius: 6px;
    padding: 7px 11px;
    display: flex;
    align-items: center;
}
.marke img { display: block; width: 186px; height: auto; }

/* Die Einträge brechen um, wenn die Zeile zu schmal wird - seit „Downloads"
   dazugekommen ist, passen sie auf dem Telefon nicht mehr nebeneinander. */
nav.haupt { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 26px; }
nav.haupt a {
    color: #cfe3ee;
    text-decoration: none;
    font-size: 15px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
nav.haupt a:hover { color: #ffffff; border-bottom-color: var(--hell); }

/* ── Titelbereich ────────────────────────────────────────── */
.titel {
    background: var(--sekundaer);
    color: #F8FAFC;
    padding: 60px 0 56px;
}
.titel h1 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: bold;
    letter-spacing: 0.2px;
    max-width: 22em;
}
.titel .unterzeile {
    color: var(--hell);
    font-size: 18px;
    margin-top: 12px;
}

/* ── Abschnitte ──────────────────────────────────────────── */
section {
    padding: 62px 0;
    border-bottom: 1px solid var(--linie);
    /* Höhe der stehenden Kopfleiste (82 px plus Linie) und etwas Luft, damit die
       Überschrift nach einem Sprung nicht darunter verschwindet. */
    scroll-margin-top: 100px;
}
section.getoent { background: var(--grund); }

h2 {
    font-size: 24px;
    color: var(--sekundaer);
    margin-bottom: 6px;
}
h2 + .vorsatz {
    color: var(--leise);
    font-size: 15px;
    margin-bottom: 26px;
}
h3 { font-size: 18px; color: var(--dunkel); margin-bottom: 8px; }

p + p { margin-top: 12px; }
.spalte-schmal { max-width: 46em; }

/* ── Bild mit Text daneben ───────────────────────────────── */
.zeile {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    align-items: start;
    margin-top: 34px;
}
.zeile.gedreht { grid-template-columns: 1.25fr 1fr; }
.zeile.gedreht .text { order: 2; }

figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--linie);
}
figcaption {
    font-size: 13px;
    color: var(--leise);
    margin-top: 8px;
}

/* ── Modulliste ──────────────────────────────────────────── */
.module {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 1px;
    background: var(--linie);
    border: 1px solid var(--linie);
}
.modul {
    background: #ffffff;
    padding: 20px 22px;
    display: flex;
    gap: 16px;
}
section.getoent .modul { background: var(--grund); }
.zeichen {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    background: var(--sekundaer);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zeichen img { width: 24px; height: 24px; }
.modul h3 { margin-bottom: 2px; }
.modul p { font-size: 15px; color: #33505f; }

/* ── Aufzählung mit Doppelpunkt-Begriff ──────────────────── */
dl.fakten { margin-top: 26px; }
dl.fakten > div {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid var(--linie);
}
dl.fakten dt { font-weight: bold; color: var(--dunkel); }
dl.fakten dd { color: #33505f; }

/* ── Karte: hervorgehobener Kasten für Kontakt und Hinweise ─ */
.karte {
    margin-top: 26px;
    border-left: 4px solid var(--primaer);
    background: var(--grund);
    padding: 22px 26px;
}
section.getoent .karte { background: #ffffff; }
.karte .adresse { font-size: 19px; margin-top: 4px; }
.karte h3 { margin-bottom: 6px; }
.dateiangabe { color: var(--leise); font-size: 14px; overflow-wrap: anywhere; }
a { color: var(--primaer); }
a:hover { color: var(--sekundaer); }

/* ── Bild groß anzeigen ──────────────────────────────────── */
/* Gleiche Mechanik wie in der Hilfe (help/script.js, help/style.css): Ein Klick
   legt das Bild über die Seite, ein weiterer schließt es wieder. */
figure img.zoom { cursor: zoom-in; }
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
#lightbox.visible { opacity: 1; pointer-events: auto; }
#lightbox img {
    max-width: 94vw;
    max-height: 94vh;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}
@media print { #lightbox { display: none !important; } }

/* ── Fußzeile ────────────────────────────────────────────── */
footer.fuss {
    background: var(--dunkel);
    color: #b9d3e0;
    padding: 34px 0;
    font-size: 14px;
}
footer.fuss .bahn {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
footer.fuss img.signet { width: 34px; height: 34px; }
footer.fuss nav { margin-left: auto; display: flex; gap: 22px; }
footer.fuss a { color: #cfe3ee; text-decoration: none; }
footer.fuss a:hover { color: #ffffff; text-decoration: underline; }

/* ── Rechtsseiten ────────────────────────────────────────── */
.recht { padding: 52px 0 66px; }
.recht h1 { font-size: 28px; color: var(--sekundaer); }
.recht .stand { color: var(--leise); font-size: 14px; margin-top: 4px; }
.recht section {
    padding: 26px 0;
    border-bottom: none;
    border-top: 1px solid var(--linie);
    max-width: 48em;
}
.recht h2 { font-size: 17px; margin-bottom: 10px; }
.recht address { font-style: normal; margin: 10px 0; }
.recht h3 { margin-top: 18px; font-size: 16px; }
.recht ul { margin: 10px 0 0 22px; }
.recht li { margin: 4px 0; }
.zurueck {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 15px;
    text-decoration: none;
}

/* ── Schmale Fenster ─────────────────────────────────────── */
@media (max-width: 860px) {
    .zeile, .zeile.gedreht { grid-template-columns: 1fr; gap: 26px; }
    .zeile.gedreht .text { order: 0; }
    .titel h1 { font-size: 27px; }
    .titel { padding: 44px 0 40px; }
    section { padding: 44px 0; }
    dl.fakten > div { grid-template-columns: 1fr; gap: 2px; }
    nav.haupt { gap: 18px; font-size: 14px; }
    section { scroll-margin-top: 140px; }
}

/* ── Neu 2026-11: Startseite und Unterseiten ─────────────── */
nav.haupt a.aktiv { color: #ffffff; border-bottom-color: var(--hell); }
.hinweis {
    margin-top: 30px;
    border-left: 4px solid var(--hell);
    background: rgba(255, 255, 255, 0.07);
    padding: 14px 20px;
    margin-right: 200px;   /* endet vor der Blase rechts oben (168 px, gedreht) */
    color: #dceaf2;
    font-size: 15px;
}
.hinweis a { color: #ffffff; }
/* Nur auf der Startseite steht rechts die Blase: Die Unterzeile bricht davor um. */
.titel .unterzeile:has(~ .blase) { margin-right: 200px; }
.titel .bahn { position: relative; }
.titel.unterseite { padding: 44px 0 40px; }
.titel.unterseite h1 { font-size: 30px; }

/* Gelbe Blase im Kopf der Startseite: Gelb der gelben Knöpfe der App (style.py). */
.blase {
    position: absolute; right: 28px; top: -24px;
    width: 168px; height: 168px; border-radius: 50%;
    background: #FFC107; color: #00334D;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; transform: rotate(8deg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    padding: 14px; text-decoration: none;
}
.blase:hover { color: #00334D; transform: rotate(8deg) scale(1.04); }
.blase b { font-size: 20px; line-height: 1.15; }
.blase span { font-size: 13px; margin-top: 6px; line-height: 1.3; }

.raster3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--linie); border: 1px solid var(--linie); margin-top: 26px;
}
.raster3 > div { background: #ffffff; padding: 22px; display: flex; gap: 16px; }
section.getoent .raster3 > div { background: var(--grund); }
.raster3 h3 { font-size: 17px; margin-bottom: 4px; }
.raster3 p { font-size: 15px; color: #33505f; }

.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; }
.schritte h3 { margin-top: 12px; }
.schritte p { font-size: 15px; color: #33505f; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 10px; }
.zwei .karte { max-width: none; margin-top: 0; }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; margin-top: 26px; }
.kacheln h3 { margin-top: 12px; }
.kacheln p { font-size: 15px; color: #33505f; }
.weiter { display: inline-block; margin-top: 12px; font-size: 15px; }
.klein { font-size: 13px; color: var(--leise); }
ul.punkte { margin: 12px 0 0 20px; }
ul.punkte li { margin: 5px 0; }

.stufen {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
    background: var(--linie); border: 1px solid var(--linie); margin-top: 22px;
}
.stufen div { background: #ffffff; padding: 16px 10px; text-align: center; font-size: 15px; color: #33505f; }
.stufen b { display: block; color: var(--sekundaer); font-size: 18px; }

/* Formular der Benachrichtigung */
.formular input[type=email] {
    padding: 9px 12px; border: 1px solid var(--linie); font: inherit;
    width: 100%; max-width: 340px; margin-top: 12px;
}
.formular label { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.formular label input { margin-top: 4px; }
.formular button {
    margin-top: 12px; padding: 9px 18px; background: var(--primaer);
    color: #ffffff; border: 0; font: inherit; cursor: pointer;
}
.formular button:hover { background: var(--sekundaer); }
.formular .falle { position: absolute; left: -5000px; }
/* Rechenaufgabe gegen automatische Eintragungen; Frage und Prüfzeichen holt main.js */
.aufgabe-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.aufgabe-zeile input[name=antwort] {
    padding: 9px 12px; border: 1px solid var(--linie); font: inherit; width: 7em;
}

/* Wichtiger Hinweis auf der Download-Seite */
.wichtig {
    margin-top: 22px; border-left: 4px solid #FFC107; background: #fff8e1;
    padding: 18px 22px;
}
.wichtig b { color: var(--dunkel); }
.download { margin-top: 14px; }
.download a { font-weight: bold; }
code { font-family: inherit; background: var(--grund); padding: 1px 5px; }

@media (max-width: 860px) {
    .raster3, .schritte, .zwei, .kacheln { grid-template-columns: 1fr; }
    .stufen { grid-template-columns: 1fr 1fr; }
    .blase {
        position: static; transform: none; width: auto; height: auto;
        border-radius: 10px; margin-top: 22px;
    }
    .blase:hover { transform: none; }
}
/* Ungerade Zahl an Modulen: das letzte füllt die Zeile, sonst bliebe eine leere Zelle. */
.module .modul:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Unter 860 px reicht der Platz rechts neben Überschrift, Unterzeile und Hinweis nicht:
   Die Blase steht dann als Kasten unter dem Hinweis. */
@media (max-width: 860px) {
    .blase {
        position: static; transform: none; width: auto; height: auto; max-width: 44em;
        border-radius: 10px; margin-top: 22px; flex-direction: row; gap: 10px;
        justify-content: flex-start; padding: 12px 20px;
    }
    .blase:hover { transform: none; }
    .blase span { margin-top: 0; }
    .hinweis, .titel .unterzeile:has(~ .blase) { margin-right: 0; }
}
/* „Datenschutzerklärung" passt in 28 px nicht auf ein 375 px breites Telefon. */
@media (max-width: 860px) { .recht h1 { font-size: 24px; } }

/* ── Shop (Bestellung, Anmeldung, Konto; website/shop/rahmen.php) ── */
.shop h2 { margin-top: 28px; }
.shop-form { margin-top: 18px; max-width: 720px; }
.shop-form label.feld { display: block; margin-top: 14px; max-width: 480px; }
.shop-form label.feld span { display: block; font-size: 14px; color: var(--leise); margin-bottom: 4px; }
.shop-form input[type=text], .shop-form input[type=email],
.shop-form input[type=password], .shop-form input[type=tel],
.shop-form input[type=date], .shop-form input[type=time], .shop-form input[type=number],
.shop-form select, .shop-form textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--linie); font: inherit;
}
.shop-form .feldzeile { display: grid; grid-template-columns: 7em 1fr; gap: 0 12px; max-width: 480px; }
.shop-form .feldzeile label.feld { max-width: none; }
/* Ja/nein und Auswahl der Dienstleistungen (shop/dienstleistung.php) */
.shop-form fieldset.feld { border: 0; padding: 0; margin: 14px 0 0; max-width: 480px; }
.shop-form fieldset.feld legend { font-size: 14px; color: var(--leise); margin-bottom: 4px; padding: 0; }
.shop-form .optionen { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.shop-form .optionen label { display: flex; gap: 6px; align-items: baseline; cursor: pointer; }
.shop-form label.feld small, .shop-form fieldset.feld small { display: block; margin-top: 4px; }
.shop-form .feldzeile.wunsch { grid-template-columns: 1fr 1fr; }
.shop-form details { margin-top: 18px; }
.shop-form summary { cursor: pointer; color: var(--primaer); }
.shop-form label.haken { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; }
.shop-form label.haken input { margin-top: 5px; }
.shop-form button {
    margin-top: 18px; padding: 9px 18px; background: var(--primaer);
    color: #ffffff; border: 1px solid var(--primaer); font: inherit; cursor: pointer;
}
.shop-form button:hover { background: var(--sekundaer); }
/* Zweiter, leiserer Knopf neben dem Hauptknopf */
.shop-form button.zweit { background: #ffffff; color: var(--primaer); }
.shop-form button.zweit:hover { background: var(--grund); }
.wahl { display: grid; gap: 8px; margin-top: 12px; }
.wahl label {
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline;
    padding: 12px 16px; border: 1px solid var(--linie); background: #ffffff; cursor: pointer;
}
.wahl label:has(input:checked) { border-color: var(--primaer); background: var(--grund); }
.wahl b { white-space: nowrap; }
.wahl small { color: var(--leise); font-size: 14px; }
table.korb { border-collapse: collapse; margin-top: 12px; width: 100%; max-width: 720px; }
table.korb th, table.korb td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
table.korb th:last-child, table.korb td:last-child { text-align: right; white-space: nowrap; }
table.korb tfoot td { border-bottom: 0; }
table.korb tr.gesamt td { font-weight: bold; border-top: 2px solid var(--dunkel); }

/* Lizenzschlüssel im Konto: 96 Zeichen ohne Leerzeichen, darf überall umbrechen. */
.shop .schluessel code { word-break: break-all; }

/* Aufklappbare Fragen (sites/faq.html, tools/website_erzeugen.py frage()) */
details.frage { border-bottom: 1px solid var(--linie); }
details.frage:first-of-type { border-top: 1px solid var(--linie); }
details.frage summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between;
    align-items: baseline; gap: 16px; padding: 14px 0;
}
details.frage summary::-webkit-details-marker { display: none; }
details.frage summary h3 { margin: 0; }
details.frage summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primaer); }
details.frage[open] summary::after { content: "\2212"; }
details.frage .antwort { padding: 6px 0 18px; }
details.frage .antwort p:first-child { margin-top: 0; }
