/* SMV-App. Gestaltung nach Lucas Entwurf (vorlage/smv-entwurf-luca-2026-11-18.html), ohne Tailwind und ohne Schriften von außen. */
@font-face { font-family: 'Fredoka'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --tinte: #1E1E24;
  --papier: #FFFDF7;
  --gelb: #FFDE59;
  --rosa: #FF90B3;
  --rosa-hell: #FFD6E0;
  --mint: #A3E4D7;
  --gruen: #C4F1BE;
  --blau-hell: #D4F1F9;
  --lila-hell: #E8DAFF;
  --orange-hell: #FFE4B5;
  --grau: #55555F;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-bottom: 6.5rem;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tinte);
  background-color: var(--papier);
  background-image: radial-gradient(#DED9CE 1.75px, transparent 1.75px);
  background-size: 22px 22px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: 'Fredoka', system-ui, sans-serif; letter-spacing: .01em; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; margin-top: 1.25rem; }
p { margin: 0 0 .75rem; }
ul { margin: 0 0 .75rem; padding-left: 1.2rem; }
a { color: inherit; font-weight: 600; text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
.springen { position: absolute; left: -999rem; }
.springen:focus { left: .5rem; top: .5rem; z-index: 60; background: var(--gelb); padding: .5rem .75rem; border: 2.5px solid var(--tinte); border-radius: .75rem; }
.breite { max-width: 56rem; margin: 0 auto; padding: 0 .9rem; }
#inhalt { margin-top: 1.25rem; }
.klein { font-size: .82rem; }
.leise { color: var(--grau); }
.gross { font-size: 1.05rem; font-weight: 500; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 30; background: rgba(255, 253, 247, .95); backdrop-filter: blur(8px); border-bottom: 3px solid var(--tinte); padding: .7rem 0; }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.marke-text strong { display: block; font-family: 'Fredoka', system-ui, sans-serif; font-size: 1.1rem; line-height: 1.1; }
.marke-text small { display: block; font-size: .72rem; font-weight: 500; color: var(--grau); margin-top: .15rem; }
.kopf-rechts { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* Aufkleber, Karten, Pillen */
.sticker { display: inline-flex; align-items: center; gap: .3rem; border: 2.5px solid var(--tinte); box-shadow: 3px 3px 0 var(--tinte); border-radius: 1rem; padding: .3rem .7rem; background: #fff; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.links { transform: rotate(-2deg); }
.rechts { transform: rotate(2deg); }
.karte { border: 3px solid var(--tinte); box-shadow: 5px 5px 0 var(--tinte); border-radius: 1.5rem; padding: 1.25rem; background: #fff; margin-bottom: 1.25rem; }
.karte-klein { border: 2.5px solid var(--tinte); box-shadow: 3px 3px 0 var(--tinte); border-radius: 1rem; padding: 1rem; background: #fff; margin-bottom: 1rem; }
.karte-klein > h3:first-child, .karte-klein > h4:first-child { margin-top: 0; }
a.karte-klein { display: block; text-decoration: none; font-weight: inherit; transition: transform .12s ease, box-shadow .12s ease; }
a.karte-klein:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--tinte); }
.pillen { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.pille { display: inline-flex; align-items: center; gap: .25rem; border: 2px solid var(--tinte); border-radius: 99px; padding: .1rem .6rem; background: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.hinweis { display: flex; gap: .6rem; align-items: flex-start; background: rgba(255, 255, 255, .85); border: 2px solid var(--tinte); border-radius: 1rem; padding: .75rem; font-size: .85rem; margin-bottom: 1rem; }
.hinweis .bild { font-size: 1.2rem; line-height: 1; }
.einzug { animation: einzug .22s ease-out forwards; }
@keyframes einzug { 0% { opacity: 0; transform: translateY(8px) scale(.99); } 100% { opacity: 1; transform: none; } }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 2.5px solid var(--tinte); box-shadow: 4px 4px 0 var(--tinte); border-radius: 1rem; padding: .6rem 1rem; background: #fff; color: var(--tinte); font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: .95rem; line-height: 1.25; text-decoration: none; cursor: pointer; user-select: none; transition: transform .1s cubic-bezier(.34, 1.56, .64, 1), box-shadow .1s ease, background-color .15s ease; }
.knopf:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tinte); }
.knopf:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinte); }
.knopf:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--tinte); }
.knopf.klein { padding: .35rem .7rem; font-size: .8rem; border-radius: .8rem; box-shadow: 3px 3px 0 var(--tinte); white-space: nowrap; }
.knopf.breit { width: 100%; padding: .9rem 1rem; font-size: 1.05rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.knoepfe.oben { margin-top: .7rem; }

/* Eingaben */
label, .beschriftung { display: block; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; }
.feld { display: block; width: 100%; border: 2.5px solid var(--tinte); box-shadow: 3px 3px 0 var(--tinte); border-radius: 1rem; padding: .75rem .9rem; background: #fff; color: var(--tinte); font: inherit; font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease; }
.feld:focus { outline: none; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tinte); }
textarea.feld { resize: vertical; min-height: 5rem; }
select.feld { font-weight: 600; cursor: pointer; }
.gruppe { margin-bottom: 1.1rem; }
.zeile { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.raster { display: grid; gap: .7rem; }
.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .5rem; }
.wahl .knopf { font-size: .85rem; padding: .6rem .5rem; text-align: center; }
.stimmungen { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
.stimmungen .knopf { flex-direction: column; gap: .1rem; padding: .5rem .15rem; font-size: .7rem; border-radius: .8rem; }
.stimmungen .bild { font-size: 1.3rem; line-height: 1.2; }
details summary { cursor: pointer; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; }
details[open] summary { margin-bottom: .6rem; }

/* Reiter oben und Leiste unten */
.reiter { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .6rem; margin: 1.25rem 0; }
.reiter .knopf { flex-direction: column; gap: .15rem; padding: .7rem .3rem; font-size: .78rem; text-align: center; }
.reiter .bild, .unten .bild { font-size: 1.25rem; line-height: 1; }
.unterreiter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.unten { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .35rem; padding: .45rem .7rem; background: var(--papier); border-top: 3px solid var(--tinte); box-shadow: 0 -4px 0 rgba(30, 30, 36, .08); }
.unten a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .3rem .2rem; border: 2px solid transparent; border-radius: .8rem; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: .7rem; text-decoration: none; }
.unten a[aria-current="page"] { border-color: var(--tinte); background: var(--gelb); }

/* Abstimmungen */
.antwortwahl { display: grid; gap: .55rem; margin: .8rem 0; }
.antwortwahl .knopf { justify-content: flex-start; text-align: left; }
.ergebnis { display: grid; gap: .7rem; margin: .8rem 0; }
.ergebnis .zeile { font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
progress.balken { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 1.1rem; border: 2.5px solid var(--tinte); border-radius: 99px; background: #fff; overflow: hidden; }
progress.balken::-webkit-progress-bar { background: #fff; }
progress.balken::-webkit-progress-value { background: var(--gelb); }
progress.balken::-moz-progress-bar { background: var(--gelb); }
progress.balken.vorn::-webkit-progress-value { background: var(--rosa); }
progress.balken.vorn::-moz-progress-bar { background: var(--rosa); }

/* Nachrichten und Einträge */
.verlauf { display: grid; gap: .6rem; margin: .8rem 0; }
.nachricht { justify-self: start; max-width: 90%; border: 2px solid var(--tinte); border-radius: 1rem; padding: .6rem .8rem; background: #fff; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.nachricht.eigen { justify-self: end; background: var(--blau-hell); }
.nachricht .kopfzeile { display: block; font-size: .7rem; font-weight: 700; color: var(--grau); margin-bottom: .15rem; white-space: normal; }
.eintragstext { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--papier); border: 2px solid var(--tinte); border-radius: 1rem; padding: .8rem; margin: .6rem 0 1rem; }
.liste { display: grid; gap: .7rem; }
.liste .karte-klein { margin: 0; }
.tabellenrahmen { overflow-x: auto; margin-bottom: 1rem; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tabelle th, .tabelle td { text-align: left; padding: .4rem .5rem; border-bottom: 2px solid rgba(30, 30, 36, .15); vertical-align: top; }

/* Meldung oben, Fußzeile, einfache Seiten (Anmeldung, Datenschutz) */
.meldung { position: fixed; top: 4.6rem; left: 50%; transform: translateX(-50%); z-index: 50; display: none; width: min(92%, 26rem); border: 3px solid var(--tinte); box-shadow: 5px 5px 0 var(--tinte); border-radius: 1.2rem; padding: .8rem 1rem; background: var(--gruen); font-weight: 600; font-size: .9rem; }
.meldung.sichtbar { display: block; }
.meldung.fehler { background: var(--rosa-hell); }
.fuss { margin-top: 2.5rem; text-align: center; font-size: .8rem; color: var(--grau); }
.fuss-marke { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: .9rem; color: var(--tinte); margin-bottom: .3rem; }
.fuss-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; }
.seite { padding-top: 1.5rem; }
.seite h2 { font-size: 1.15rem; margin-top: 1.25rem; }

/* Farben stehen am Ende, damit sie Karten, Knöpfe und Pillen einfärben. */
.gelb { background: var(--gelb); }
.mint { background: var(--mint); }
.rosa { background: var(--rosa-hell); }
.rosa-kraeftig { background: var(--rosa); }
.lila { background: var(--lila-hell); }
.blau { background: var(--blau-hell); }
.gruen { background: var(--gruen); }
.orange { background: var(--orange-hell); }
.weiss { background: #fff; }
.dunkel { background: var(--tinte); color: #fff; }
.knopf[aria-pressed="true"], .knopf[aria-current="page"] { background: var(--gelb); }

@media (max-width: 39.99rem) {
  /* Vier Reiter passen am Handy nicht nebeneinander: zwei Reihen. Gruß und Unterzeile weichen dem Cockpit-Knopf. */
  .reiter[data-anzahl="4"] { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .mit-cockpit .gruss, .mit-cockpit .marke-text small { display: none; }
}
@media (min-width: 40rem) {
  .reiter .knopf { flex-direction: row; gap: .5rem; font-size: 1rem; }
  .raster.zwei { grid-template-columns: 1fr 1fr; }
  .karte { padding: 1.6rem; }
  h2 { font-size: 1.8rem; }
}
@media (min-width: 48rem) {
  .unten { display: none; }
  body { padding-bottom: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .einzug { animation: none; }
  .knopf, .feld, a.karte-klein { transition: none; }
}
