/* Zaehler App (Counter Pur): eigener Auftritt, unabhaengig von der Firmenseite.
 *
 * Die App ist gestaltet wie ein Kontorbuch, und so ist es auch die Seite:
 *   Marine          seit 16.11.2026 der Grund der Seite, wie das dunkle Design der App; das
 *                   Buettenpapier traegt die Karten (vorher war die ganze Seite Papier und
 *                   sah der beigen Firmenseite zu aehnlich)
 *   Marine          Zahlen, Ueberschriften, der Plus-Knopf
 *   Ochsenblut      der zweite Zaehler, Darts
 *   Messing         Zierlinien, Ziel, das Uhrwerk im Hintergrund
 *   Zahnraeder      zwei Raeder, die sich langsam drehen (wie in der App abschaltbar,
 *                   hier ueber die Systemeinstellung "weniger Bewegung")
 * Schrift der Ueberschriften und Zahlen ist Playfair Display (OFL 1.1), wie in der App.
 */
@font-face { font-family: 'Playfair Display'; font-weight: 600; font-display: swap; src: url('assets/schrift/playfair-display-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+20AC; }
@font-face { font-family: 'Playfair Display'; font-weight: 600; font-display: swap; src: url('assets/schrift/playfair-display-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F; }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url('assets/schrift/playfair-display-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+20AC; }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url('assets/schrift/playfair-display-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F; }

:root {
    --grund: #0F2247; --grund-tief: #0A1936; --papier: #EDE9D2; --papier-tief: #E3DDBF; --blatt: #F7F4E6; --hell: #F1ECD6; --hell-matt: #B9C2D8;
    --marine: #1B3566; --tinte: #031C42; --blut: #7A1F2B; --kupfer: #9A5429; --messing: #B08D4F; --messing-hell: #D9C48E;
    --matt: #5C5A4A; --linie: #CFC59A; --breite: 1060px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--hell); background: var(--grund); font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--messing-hell); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--kupfer); outline-offset: 3px; }
h1, h2, h3, .zahl, .knopf, .schritt, dt { font-family: 'Playfair Display', Georgia, serif; }
h1 { margin: 0; font-weight: 700; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.02; }
h2 { margin: 0 0 0.3rem; font-weight: 700; font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.15; }
h3 { margin: 0 0 0.3rem; font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 0.9rem; max-width: 60ch; }
.kupfer { color: var(--messing-hell); font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }
.bahn { max-width: var(--breite); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; position: relative; }
.teil { padding-top: clamp(2.6rem, 7vw, 4.2rem); padding-bottom: clamp(2.6rem, 7vw, 4.2rem); }
.matt { color: var(--hell-matt); }
/* Doppellinie wie im Kontorbuch */
.regel { border: 0; height: 5px; margin: 0; border-top: 2px solid var(--messing); border-bottom: 1px solid var(--messing); }

/* Uhrwerk: zwei Zahnraeder aus CSS */
.rad { position: absolute; border-radius: 50%; pointer-events: none; opacity: 0.28;
    background:
        radial-gradient(circle, transparent 0 18%, var(--messing) 18% 23%, transparent 23% 52%, var(--messing) 52% 64%, transparent 64%),
        repeating-conic-gradient(var(--messing) 0 9deg, transparent 9deg 18deg);
    -webkit-mask: radial-gradient(circle, #000 0 70%, transparent 70.5%); mask: radial-gradient(circle, #000 0 70%, transparent 70.5%);
    animation: drehen 80s linear infinite; }
.rad.a { width: 340px; height: 340px; right: -110px; top: -70px; }
.rad.b { width: 220px; height: 220px; right: 150px; top: 150px; animation-direction: reverse; animation-duration: 52s; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ---------- Kopf ---------- */
.kopf { position: relative; overflow: hidden; padding: clamp(1.4rem, 4vw, 2.6rem) 0 clamp(2.2rem, 6vw, 3.4rem); }
.kopf .bahn { display: grid; gap: 2.4rem 3rem; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
.zeile-marke { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.5rem; }
.zeile-marke img { width: 46px; height: 46px; border-radius: 12px; }
.knopf { display: inline-block; padding: 0.8rem 1.5rem; border-radius: 12px; border: 0; cursor: pointer; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--tinte); background: var(--messing-hell); }
.knopf:hover { background: #E9D9AC; }
.reihe { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.klein { margin-top: 1rem; font-size: 0.95rem; color: var(--hell-matt); }

/* Der Zaehler zum Ausprobieren: eine Karte wie in der App */
.karte { color: var(--tinte); position: relative; z-index: 1; background: var(--blatt); border: 1px solid var(--linie); border-radius: 22px; padding: 1.1rem 1.2rem 1.2rem; max-width: 400px; width: 100%; justify-self: center; box-shadow: 0 22px 44px -24px rgba(0, 0, 0, 0.7); border-left: 5px solid var(--messing); }
.karte .kopfzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.karte .name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.15rem; }
.karte .ort { font-size: 0.86rem; color: var(--matt); }
.tippflaeche { display: block; width: 100%; margin: 0.8rem 0 0.6rem; padding: 1.3rem 0 1rem; border: 1px solid var(--linie); border-radius: 14px; background: #F1EDD9; cursor: pointer; text-align: center; color: var(--marine); }
.tippflaeche:active { background: var(--papier-tief); }
.zahl { display: block; font-weight: 700; font-size: clamp(3.4rem, 15vw, 4.6rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.tippflaeche small { display: block; margin-top: 0.4rem; font-family: Georgia, serif; font-size: 0.86rem; color: var(--matt); }
.ziel { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--matt); }
.balken { height: 6px; border-radius: 3px; background: var(--papier-tief); margin: 0.25rem 0 0.9rem; overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; background: var(--marine); transition: width 0.25s; }
.tasten { display: grid; grid-template-columns: 1fr 2.2fr; gap: 0.6rem; }
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.6rem; }
.schritt { padding: 0.55rem 0; border-radius: 10px; border: 1.5px solid var(--marine); background: transparent; color: var(--marine); font-weight: 700; font-size: 1rem; cursor: pointer; }
.schritt.voll { background: var(--marine); color: #fff; font-size: 1.4rem; line-height: 1; }
.schritt:hover { background: var(--marine); color: #fff; }
.karte .hinweis { margin: 0.8rem 0 0; font-size: 0.86rem; color: var(--matt); text-align: center; min-height: 1.4em; }

/* ---------- Vier Wege ohne App ---------- */
.wege { margin: 1.6rem 0 0; display: grid; gap: 0; }
.weg { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 1.2rem; padding: 1.2rem 0; border-top: 1px solid rgba(217, 196, 142, 0.35); }
.weg:last-child { border-bottom: 1px solid rgba(217, 196, 142, 0.35); }
.weg .nr { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--messing-hell); }
.weg p { margin: 0; max-width: 64ch; }

/* ---------- Bilder ---------- */
.streifen { display: flex; gap: 1rem; overflow-x: auto; padding: 0.4rem 1.25rem 1.2rem; scroll-snap-type: x mandatory; max-width: calc(var(--breite) + 2.5rem); margin: 1.2rem auto 0; }
.streifen img { flex: 0 0 auto; width: min(62vw, 240px); border-radius: 18px; border: 1px solid rgba(217, 196, 142, 0.35); scroll-snap-align: start; display: block; }

/* ---------- Vorlagen als Etiketten ---------- */
.etiketten { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.etiketten li { color: var(--tinte); padding: 0.35rem 0.95rem; border-radius: 999px; background: var(--blatt); border: 1px solid var(--linie); font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }
.etiketten li.darts { border-color: var(--blut); color: var(--blut); }

.zwei { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: start; }
.band { background: var(--grund-tief); }
.seite { color: var(--tinte); background: var(--blatt); border: 1px solid var(--linie); border-radius: 16px; padding: 1.3rem 1.4rem; }
.seite.pro { border: 2px solid var(--messing); background: linear-gradient(180deg, #F6EFD2, #EFE3B8); }
.seite ul { margin: 0.6rem 0 0; padding-left: 1.15rem; }
.seite li { margin-bottom: 0.3rem; }

/* Darts-Tafel */
.darts { color: var(--tinte); background: var(--blatt); border: 1px solid var(--linie); border-top: 5px solid var(--blut); border-radius: 16px; padding: 1.2rem 1.3rem; text-align: center; }
.darts .zahl { color: var(--blut); font-size: 3.4rem; }
.darts .wurf { display: flex; justify-content: center; gap: 0.5rem; margin: 0.7rem 0 0.4rem; }
.darts .wurf span { min-width: 3.4rem; padding: 0.3rem 0.5rem; border: 1px solid var(--linie); border-radius: 8px; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }

.fragen details { border-top: 1px solid rgba(217, 196, 142, 0.35); max-width: 800px; }
.fragen details:last-of-type { border-bottom: 1px solid rgba(217, 196, 142, 0.35); }
.fragen summary { cursor: pointer; padding: 0.95rem 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.1rem; }
.fragen details p { padding-bottom: 0.9rem; margin: 0; }

.fuss { background: #06112A; color: #E9E4CB; padding: 2rem 0 2.4rem; font-size: 0.96rem; }
.fuss a { color: #fff; margin-right: 1.3rem; }
.fuss p { margin: 0.9rem 0 0; color: #B9B694; max-width: 80ch; font-size: 0.9rem; }

@media (max-width: 800px) { .kopf .bahn { grid-template-columns: 1fr; } .rad.b { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rad { animation: none; } .balken i { transition: none; } }

/* Auf Marine: in den Papierkarten bleibt alles dunkel wie im Kontorbuch. */
.karte .kupfer, .seite .kupfer, .darts .kupfer { color: var(--kupfer); }
.karte .klein, .seite .klein, .darts .klein, .darts .matt { color: var(--matt); }
.karte a, .seite a, .darts a { color: var(--marine); }
