/* Schwimmen 31: eigener Auftritt, unabhaengig von der Firmenseite.
 *
 * Alles hier kommt aus dem Spiel selbst (Stand 16.11.2026):
 *   Kachelgrund     der helle Fliesenboden hinter jedem Bildschirm
 *   Becken          das blaue Feld, auf dem die Karten liegen
 *   Bahnleine       rot-weiss-blaue Schwimmer, trennt im Spiel Tisch und Hand
 *   Beckenrand      die Reihe kleiner Tintenquadrate ueber und unter dem Becken
 *   Knoepfe         weiss, Tintenrand, harter Schatten nach rechts unten
 *   Schild          gelb mit Tintenrand ("DU BIST DRAN")
 * Farben aus den Store-Bildern gemessen, Schrift ist die Spielschrift Fira Sans
 * (SIL Open Font License 1.1), Karten sind das eigene Blatt B.
 */
@font-face { font-family: 'Fira Sans Condensed'; font-weight: 800; font-display: swap; src: url('assets/schrift/FiraSansCondensed-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans Condensed'; font-weight: 600; font-display: swap; src: url('assets/schrift/FiraSansCondensed-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-weight: 400; font-display: swap; src: url('assets/schrift/FiraSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-weight: 500; font-display: swap; src: url('assets/schrift/FiraSans-Medium.woff2') format('woff2'); }

:root {
    --tinte: #140F0A;
    --becken: #0F6A8E;
    --becken-tief: #0B587A;
    --kachel: #E2EEF0;
    --fuge: #F6FBFC;
    --rot: #D23A2A;
    --gelb: #F2C02A;
    --leine-blau: #1C5FA8;
    --grau: #4C5A60;
    --schatten: 5px 5px 0 var(--tinte);
    --breite: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; color: var(--tinte);
    font-family: 'Fira Sans', system-ui, sans-serif; font-size: 1.06rem; line-height: 1.6;
    background-color: var(--kachel);
    background-image: linear-gradient(var(--fuge) 2px, transparent 2px), linear-gradient(90deg, var(--fuge) 2px, transparent 2px);
    background-size: 28px 28px;
}
img { max-width: 100%; height: auto; }
a { color: var(--becken-tief); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
h1, h2, h3, .knopf, .weg b, .schild, .zuege dt, .tafel th { font-family: 'Fira Sans Condensed', 'Fira Sans', sans-serif; }
h2 { margin: 0 0 0.9rem; font-weight: 800; font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; }
h3 { margin: 1.4rem 0 0.3rem; font-weight: 600; font-size: 1.25rem; }
p { margin: 0 0 0.9rem; max-width: 62ch; }
.bahn { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }
.teil { padding-top: clamp(2.6rem, 7vw, 4.2rem); padding-bottom: clamp(2.6rem, 7vw, 4.2rem); }

/* ---------- Kopf: wie der Startbildschirm des Spiels ---------- */
.kopf { padding: clamp(1.6rem, 5vw, 3rem) 0 clamp(2rem, 5vw, 3rem); }
.kopf .bahn { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.faecher { display: flex; height: clamp(110px, 24vw, 160px); margin: 0.6rem 0 1.9rem 0.6rem; }
.faecher img { height: 100%; width: auto; margin-right: -26px; filter: drop-shadow(4px 4px 0 var(--tinte)); }
.faecher img:nth-child(1) { transform: rotate(-12deg) translateY(10px); }
.faecher img:nth-child(2) { transform: rotate(-1deg); }
.faecher img:nth-child(3) { transform: rotate(11deg) translateY(9px); }
h1 { margin: 0; font-weight: 800; font-size: clamp(3.2rem, 13vw, 6.4rem); line-height: 0.92; text-transform: uppercase; letter-spacing: -0.01em; }
.marke { display: flex; align-items: center; gap: 0.6rem; margin: 0.7rem 0 1.2rem; font-family: 'Fira Sans Condensed', sans-serif; font-weight: 600; font-size: clamp(1.05rem, 3.4vw, 1.4rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); }
.marke b { display: inline-block; padding: 0 0.45rem; font-weight: 800; font-size: 1.35em; letter-spacing: 0; color: var(--tinte); background: #fff; border: 3px solid var(--tinte); box-shadow: 3px 3px 0 var(--tinte); }
.kopf p { font-size: 1.15rem; }
.schild {
    display: inline-block; margin: 0.5rem 0 0; padding: 0.35rem 0.9rem; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em;
    background: var(--gelb); border: 3px solid var(--tinte); box-shadow: var(--schatten);
}
.namen { margin-top: 1.3rem; font-size: 0.98rem; color: var(--grau); }

/* Telefonbild im Tintenrahmen */
.geraet { margin: 0; justify-self: center; max-width: 330px; }
.geraet img, .bilder img { display: block; border: 4px solid var(--tinte); border-radius: 18px; box-shadow: 8px 8px 0 var(--tinte); background: #fff; }

/* ---------- Becken mit Rand und Bahnleine ---------- */
.rand { height: 12px; background: repeating-linear-gradient(90deg, var(--tinte) 0 6px, transparent 6px 12px); }
.becken {
    color: #fff; background-color: var(--becken);
    background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}
.becken a { color: #fff; }
.leine {
    height: 14px; border: 0; margin: 0;
    background:
        radial-gradient(circle at 7px 7px, var(--rot) 0 5px, var(--tinte) 5px 6.4px, transparent 6.8px) 0 0 / 42px 14px repeat-x,
        radial-gradient(circle at 7px 7px, #fff 0 5px, var(--tinte) 5px 6.4px, transparent 6.8px) 14px 0 / 42px 14px repeat-x,
        radial-gradient(circle at 7px 7px, var(--leine-blau) 0 5px, var(--tinte) 5px 6.4px, transparent 6.8px) 28px 0 / 42px 14px repeat-x,
        linear-gradient(var(--tinte), var(--tinte)) 0 6px / 100% 2px no-repeat;
}

/* Die drei Wege: die drei Zeilen des Startbildschirms */
.wege { list-style: none; margin: 0; padding: 0; }
.weg { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1.2rem; align-items: start; padding: 1.5rem 0; }
.weg .nr {
    grid-row: span 2; width: 3.1rem; height: 3.1rem; display: grid; place-items: center;
    font-family: 'Fira Sans Condensed', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--tinte);
    background: #fff; border: 3px solid var(--tinte); box-shadow: 4px 4px 0 var(--tinte);
}
.weg:first-child .nr { background: var(--gelb); }
.weg b { font-weight: 800; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.1; text-transform: uppercase; }
.weg span { max-width: 56ch; color: #E4F1F5; }

/* ---------- Tafeln: weisse Flaechen mit Tintenrand ---------- */
.tafel-kasten { background: #fff; border: 3px solid var(--tinte); box-shadow: var(--schatten); padding: clamp(1.1rem, 3.5vw, 1.8rem); }
.zwei { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: start; }
.gleich { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.4rem; }
.gleich .hand img { width: 76px; margin-right: -8px; filter: drop-shadow(3px 3px 0 var(--tinte)); }
.gleich strong { font-family: 'Fira Sans Condensed', sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1; padding-left: 0.6rem; }

/* Die vier Zuege als die vier Knoepfe */
.zuege { margin: 1rem 0 0; display: grid; gap: 0.9rem 1.1rem; grid-template-columns: max-content 1fr; align-items: start; }
.zuege dt, .knopf {
    display: inline-block; min-width: 7rem; padding: 0.5rem 0.9rem; text-align: center; text-decoration: none;
    font-weight: 600; font-size: 1.12rem; line-height: 1.2; color: var(--tinte);
    background: #fff; border: 3px solid var(--tinte); box-shadow: 4px 4px 0 var(--tinte);
}
.zuege dt.klopfen { background: var(--rot); color: #fff; }
.zuege dd { margin: 0; padding-top: 0.35rem; }
.knopf.gelb { background: var(--gelb); }
.knopf:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--tinte); }
@media (max-width: 520px) {
    .zuege { grid-template-columns: 1fr; gap: 0.35rem; }
    .zuege dt { justify-self: start; }
    .zuege dd { padding: 0 0 0.7rem; }
}

/* Bilder aus dem Spiel */
.bilder { display: grid; gap: 2rem 1.6rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.4rem; }
.bilder figure { margin: 0; }
.bilder figcaption { margin-top: 1rem; font-size: 0.95rem; color: var(--grau); }
@media (max-width: 860px) { .bilder { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bilder img { border-radius: 12px; box-shadow: 5px 5px 0 var(--tinte); } }

/* Beckenordnung: das Schild am Beckenrand. Einmal auf der Seite. */
.ordnung { background: #fff; border: 4px solid var(--tinte); box-shadow: 8px 8px 0 var(--tinte); max-width: 720px; }
.ordnung h2 { margin: 0; padding: 0.7rem 1.2rem; background: var(--tinte); color: #fff; font-size: clamp(1.4rem, 4.4vw, 1.9rem); }
.ordnung ul { list-style: none; margin: 0; padding: 0.3rem 1.2rem 0.6rem; }
.ordnung li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: center; padding: 0.8rem 0; border-bottom: 2px solid var(--kachel); }
.ordnung li:last-child { border-bottom: 0; }
.ordnung li b { font-family: 'Fira Sans Condensed', sans-serif; font-weight: 600; font-size: 1.2rem; display: block; line-height: 1.2; }
.ordnung li span { font-size: 0.98rem; color: var(--grau); }
/* Verbotszeichen: roter Ring mit Schraegstrich, gezeichnet */
.verbot { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 5px solid var(--rot); background: linear-gradient(45deg, transparent 44%, var(--rot) 44% 56%, transparent 56%); }

/* Fragen */
.fragen details { background: #fff; border: 3px solid var(--tinte); box-shadow: 4px 4px 0 var(--tinte); margin-bottom: 1rem; max-width: 760px; }
.fragen summary { cursor: pointer; padding: 0.8rem 1.1rem; font-family: 'Fira Sans Condensed', sans-serif; font-weight: 600; font-size: 1.2rem; }
.fragen details p { margin: 0; padding: 0 1.1rem 1rem; }

/* Regelseite */
.seitenkopf { padding: clamp(1.4rem, 4vw, 2.4rem) 0 clamp(1.6rem, 4vw, 2.4rem); }
.seitenkopf h1 { font-size: clamp(2.3rem, 9vw, 4.2rem); }
.zurueck { display: inline-block; margin-bottom: 1.2rem; font-family: 'Fira Sans Condensed', sans-serif; font-weight: 600; text-decoration: none; padding: 0.3rem 0.8rem; background: #fff; border: 3px solid var(--tinte); box-shadow: 3px 3px 0 var(--tinte); color: var(--tinte); }
.regeln .abschnitt { padding: 1.6rem 0; }
.regeln .abschnitt h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.regeln ul { max-width: 62ch; padding-left: 1.2rem; margin: 0.3rem 0 0.9rem; }
.regeln li { margin-bottom: 0.35rem; }
.blaetter { display: grid; gap: 1.6rem 1.2rem; margin: 1.3rem 0 0; padding: 1.6rem 1.2rem 1.3rem; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); border: 3px solid var(--tinte); box-shadow: var(--schatten); }
.blatt { margin: 0; text-align: center; }
.blatt .hand { display: flex; justify-content: center; padding: 0.3rem 0 0.9rem; }
.blatt .hand img { width: 30%; max-width: 86px; margin: 0 1px; filter: drop-shadow(3px 3px 0 rgba(20, 15, 10, 0.55)); }
.blatt .hand img:nth-child(1) { transform: rotate(-5deg) translateY(3px); }
.blatt .hand img:nth-child(3) { transform: rotate(5deg) translateY(4px); }
.blatt .wert { display: inline-block; padding: 0.1rem 0.7rem; font-family: 'Fira Sans Condensed', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--tinte); background: #fff; border: 3px solid var(--tinte); box-shadow: 3px 3px 0 var(--tinte); }
.blatt .wert.feuer { background: var(--gelb); }
.blatt figcaption { margin: 0.75rem auto 0; max-width: 30ch; font-size: 0.95rem; line-height: 1.45; color: #fff; }
.tafel-rahmen { overflow-x: auto; margin-top: 1rem; }
.tafel { width: 100%; max-width: 720px; border-collapse: collapse; background: #fff; border: 3px solid var(--tinte); box-shadow: var(--schatten); }
.tafel th, .tafel td { padding: 0.55rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 2px solid var(--kachel); }
.tafel th { background: var(--tinte); color: #fff; font-weight: 600; font-size: 1.05rem; }
.tafel td.punkte { font-family: 'Fira Sans Condensed', sans-serif; font-weight: 800; font-size: 1.15rem; white-space: nowrap; }

/* ---------- Fuss: die dunkle Ergebnistafel ---------- */
.fuss { background: var(--tinte); color: #fff; padding: 2rem 0 2.4rem; font-size: 0.98rem; }
.fuss .bahn { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: baseline; }
.fuss a { color: #fff; margin-right: 1.3rem; }
.fuss small { color: #B9C6CB; font-size: 0.92rem; }

@media (max-width: 760px) {
    .kopf .bahn { grid-template-columns: 1fr; }
    .geraet { max-width: 270px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .knopf:hover { transform: none; } }
