/* unsagbar – ruhig, mobil zuerst. Farben aus dem Logo. */
:root {
  --petrol: #0b4f57;
  --petrol-2: #0f6e73;
  --gold: #c99a52;
  --salbei: #8daa74;
  --salbei-hell: #e9f0e3;
  --grund: #f6f4ef;
  --karte: #ffffff;
  --text: #1d2a2c;
  --leise: #5f6f71;
  --linie: #e3e0d8;
  --warn: #9a5b00;
  --warn-grund: #fff4e0;
  --ernst: #9b2c2c;
  --ernst-grund: #fdecec;
  --radius: 18px;
  --schatten: 0 1px 2px rgba(11, 79, 87, .06), 0 6px 20px rgba(11, 79, 87, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--grund);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--petrol-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 640px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: rgba(246, 244, 239, .94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); min-height: 58px;
}
.kopf h1 { font-size: 18px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.marke { display: flex; align-items: center; gap: 8px; flex: 1; font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--petrol); text-decoration: none; }
.marke img { width: 30px; height: 30px; }
.marke .un { color: var(--gold); }
.symbol { width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--petrol); flex: none; }
.symbol:hover { background: rgba(11, 79, 87, .07); }
.symbol svg { width: 24px; height: 24px; }
.pille { border: 1px solid var(--linie); background: var(--karte); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--petrol); cursor: pointer; text-decoration: none; white-space: nowrap; }
.pille.knapp { border-color: var(--gold); color: var(--warn); }

main { flex: 1; padding: 16px 14px calc(110px + env(safe-area-inset-bottom)); }
main.chat-main { padding: 0; display: flex; flex-direction: column; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px;
  border-radius: 999px; border: 0; cursor: pointer; font-weight: 650; font-size: 16px; text-decoration: none;
  background: var(--petrol); color: #fff; transition: transform .08s, background .15s;
}
.knopf:hover { background: var(--petrol-2); }
.knopf:active { transform: scale(.98); }
.knopf[disabled] { opacity: .5; cursor: default; transform: none; }
.knopf.zweit { background: var(--karte); color: var(--petrol); border: 1.5px solid var(--petrol); }
.knopf.zweit:hover { background: #eef5f4; }
.knopf.leise { background: none; color: var(--leise); min-height: 44px; padding: 8px 14px; }
.knopf.leise:hover { color: var(--text); background: rgba(0, 0, 0, .04); }
.knopf.gold { background: var(--gold); color: #fff; }
.knopf.breit { width: 100%; }
.schwebend {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 6;
  box-shadow: 0 8px 24px rgba(11, 79, 87, .28); width: min(92vw, 420px);
}
.schwebend:active { transform: translateX(-50%) scale(.98); }

/* Karten, Felder */
.karte { background: var(--karte); border-radius: var(--radius); padding: 18px; box-shadow: var(--schatten); margin-bottom: 14px; }
.karte h2 { margin: 0 0 6px; font-size: 18px; }
label.feld { display: block; font-weight: 600; margin: 14px 0 6px; }
input.eingabe, textarea.eingabe {
  width: 100%; border: 1.5px solid var(--linie); border-radius: 14px; padding: 13px 14px; background: #fff; font-size: 17px;
}
input.eingabe:focus, textarea.eingabe:focus { border-color: var(--petrol-2); outline: none; box-shadow: 0 0 0 3px rgba(15, 110, 115, .15); }
.code-eingabe { letter-spacing: .5em; text-align: center; font-size: 26px !important; font-variant-numeric: tabular-nums; }
.leise { color: var(--leise); }
.klein { font-size: 14px; }
.fehler { color: var(--ernst); font-weight: 600; margin: 10px 0 0; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stapel { display: flex; flex-direction: column; gap: 10px; }

/* Willkommen */
.willkommen { text-align: center; padding: 18px 6px 0; }
.willkommen .logo { width: min(86vw, 380px); height: auto; margin: 6px auto 4px; display: block; }
.willkommen h1 { font-size: 27px; line-height: 1.2; margin: 18px 0 8px; letter-spacing: -.02em; color: var(--petrol); }
.willkommen p.lead { font-size: 18px; color: var(--leise); margin: 0 0 22px; }
.schritte { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; display: grid; gap: 10px; counter-reset: s; }
.schritte li { background: var(--karte); border-radius: 16px; padding: 14px 16px 14px 58px; position: relative; box-shadow: var(--schatten); }
.schritte li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--salbei-hell); color: var(--petrol); font-weight: 700; display: grid; place-items: center;
}
.schritte b { display: block; }
.schritte span { color: var(--leise); font-size: 15px; }
.beispiel { background: var(--karte); border-radius: 18px; padding: 14px; box-shadow: var(--schatten); text-align: left; margin: 0 0 22px; }
.beispiel .vorher { color: var(--leise); text-decoration: line-through; text-decoration-color: rgba(155, 44, 44, .5); font-size: 15px; }
.beispiel .nachher { margin-top: 8px; padding: 10px 12px; border-radius: 14px 14px 4px 14px; background: var(--petrol); color: #fff; }
.fuss { text-align: center; font-size: 13px; color: var(--leise); padding: 22px 0 8px; }
.fuss a { color: var(--leise); }

/* Gesprächsliste */
.liste { list-style: none; margin: 0; padding: 0; background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.liste li + li { border-top: 1px solid var(--linie); }
.eintrag { display: flex; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; color: inherit; }
.eintrag:hover { background: #fbfaf7; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--petrol-2); font-size: 18px; }
.avatar.b { background: var(--salbei); }
.eintrag .mitte { flex: 1; min-width: 0; }
.eintrag .name { font-weight: 650; display: flex; gap: 8px; align-items: baseline; }
.eintrag .name span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eintrag time { font-size: 13px; color: var(--leise); font-weight: 400; }
.eintrag .vorschau { color: var(--leise); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zahl { background: var(--gold); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; font-size: 13px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.chip { font-size: 12px; background: var(--salbei-hell); color: var(--petrol); padding: 2px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.leer { text-align: center; padding: 40px 16px; color: var(--leise); }
.leer svg { width: 76px; height: 76px; opacity: .9; }

/* Chat */
.verlauf { flex: 1; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.blase-zeile { display: flex; flex-direction: column; max-width: 84%; }
.blase-zeile.mein { align-self: flex-end; align-items: flex-end; }
.blase-zeile.dein { align-self: flex-start; align-items: flex-start; }
.blase { padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); }
.mein .blase { background: var(--petrol); color: #fff; border-bottom-right-radius: 6px; }
.dein .blase { background: var(--karte); border-bottom-left-radius: 6px; }
.blase-info { font-size: 12px; color: var(--leise); margin: 3px 6px 0; display: flex; gap: 10px; align-items: center; }
.blase-info button { border: 0; background: none; color: var(--petrol-2); font-size: 12px; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.original { margin-top: 6px; font-size: 14px; padding: 8px 12px; border-left: 3px solid var(--gold); background: #fff; border-radius: 10px; color: var(--leise); white-space: pre-wrap; max-width: 100%; }
.ernst { background: var(--ernst-grund); color: var(--ernst); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.tag-trenner { align-self: center; font-size: 12px; color: var(--leise); background: rgba(255, 255, 255, .7); padding: 2px 10px; border-radius: 999px; margin: 6px 0; }
.hinweis-karte { margin: 12px 12px 0; background: var(--salbei-hell); border-radius: 16px; padding: 12px 14px; font-size: 15px; }
.hinweis-karte .knopf { min-height: 40px; padding: 8px 16px; font-size: 15px; margin-top: 8px; }

.schreiben {
  position: sticky; bottom: 0; background: rgba(246, 244, 239, .97); border-top: 1px solid var(--linie);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.schreiben textarea {
  width: 100%; resize: none; border: 1.5px solid var(--linie); border-radius: 20px; padding: 12px 14px; background: #fff;
  max-height: 40vh; min-height: 50px; font-size: 17px; line-height: 1.4;
}
.schreiben textarea:focus { outline: none; border-color: var(--petrol-2); }
.schreiben .unten { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.schreiben .preis { flex: 1; font-size: 13px; color: var(--leise); line-height: 1.3; }
.schreiben .knopf { min-height: 46px; }

/* Blatt (Vorschau, Einladen, Menüs) */
.schleier { position: fixed; inset: 0; background: rgba(16, 30, 32, .38); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: ein .15s; }
.blatt {
  background: var(--grund); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); animation: hoch .2s ease-out;
}
.blatt .griff { width: 40px; height: 5px; border-radius: 3px; background: #cfcbc1; margin: 0 auto 12px; }
.blatt h2 { margin: 0 0 4px; font-size: 20px; color: var(--petrol); }
.blatt .knopfreihe { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
@keyframes hoch { from { transform: translateY(30px); opacity: .6; } }
@keyframes ein { from { opacity: 0; } }
.vorschau-text { min-height: 120px; font-size: 17px; background: #fff; }
.box { border-radius: 14px; padding: 10px 12px; margin-top: 10px; font-size: 15px; }
.box.warn { background: var(--warn-grund); color: var(--warn); }
.box.ernst { background: var(--ernst-grund); color: var(--ernst); }
.box.gut { background: var(--salbei-hell); color: var(--petrol); }
details.auf { margin-top: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; }
details.auf summary { cursor: pointer; font-weight: 600; color: var(--petrol); }
details.auf p, details.auf ul { margin: 8px 0 0; white-space: pre-wrap; color: var(--leise); }
.teilen-gitter { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.teilen-gitter .knopf { min-height: 52px; }
.menue-liste { list-style: none; margin: 0; padding: 0; }
.menue-liste button { width: 100%; text-align: left; border: 0; background: #fff; padding: 15px 16px; font-size: 16px; cursor: pointer; border-radius: 14px; margin-bottom: 6px; }
.menue-liste button.gefahr { color: var(--ernst); }

/* Laden */
.lade { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0 10px; color: var(--petrol); font-weight: 600; text-align: center; }
.punkte { display: flex; gap: 8px; }
.punkte i { width: 11px; height: 11px; border-radius: 50%; background: var(--petrol-2); animation: puls 1.1s infinite ease-in-out; }
.punkte i:nth-child(2) { animation-delay: .15s; background: var(--salbei); }
.punkte i:nth-child(3) { animation-delay: .3s; background: var(--gold); }
@keyframes puls { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* Guthaben */
.saldo { font-size: 40px; font-weight: 750; color: var(--petrol); letter-spacing: -.02em; }
.pakete { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.paket { border: 1.5px solid var(--linie); background: #fff; border-radius: 16px; padding: 14px 6px; text-align: center; cursor: pointer; }
.paket b { display: block; font-size: 20px; color: var(--petrol); }
.paket span { font-size: 12px; color: var(--leise); }
.paket[aria-pressed="true"] { border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(15, 110, 115, .15); }
table.preise { width: 100%; border-collapse: collapse; font-size: 15px; }
table.preise td { padding: 7px 0; border-bottom: 1px solid var(--linie); }
table.preise td:last-child { text-align: right; font-weight: 650; }
.qr { background: #fff; padding: 8px; border-radius: 12px; width: 220px; margin: 10px auto; display: block; }
.qr svg { width: 100%; height: auto; display: block; }
.daten-zeile { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--linie); font-size: 15px; }
.daten-zeile b { font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.buchung { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--linie); font-size: 15px; }
.buchung .plus { color: var(--petrol-2); font-weight: 650; }

.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px; max-width: 90vw; text-align: center;
  animation: ein .2s;
}
.gast-band { background: var(--salbei-hell); font-size: 14px; padding: 8px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.gast-band button { border: 0; background: none; color: var(--petrol); font-weight: 700; cursor: pointer; text-decoration: underline; padding: 6px 0; }

@media (min-width: 700px) {
  main { padding-top: 24px; }
  .willkommen h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------------- Startseite (Mockup 2026-11-09) ---------------- */
@font-face { font-family: "Caveat"; src: url(../fonts/caveat-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
body.start #app { max-width: none; }
.ls { background: linear-gradient(180deg, #fbf8f2 0%, #f6f4ef 60%); }
.ls-kopf { display: flex; align-items: center; gap: 18px; padding: 14px clamp(14px, 4vw, 48px); max-width: 1320px; margin: 0 auto; }
.ls-logo img { height: 64px; width: auto; display: block; }
.ls-nav { display: none; gap: 28px; flex: 1; justify-content: flex-end; }
.ls-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.ls-nav a:hover { color: var(--petrol-2); }
.ls-aktionen { display: flex; gap: 10px; margin-left: auto; }
.ls-aktionen .knopf { min-height: 44px; padding: 8px 20px; }
.nur-breit { display: none !important; }
.ls-hero { position: relative; max-width: 1320px; margin: 0 auto; display: grid; }
.ls-hero-bild { height: 230px; background: url(../img/start/hero.webp) center 35% / cover; border-radius: 0 0 28px 28px; }
.ls-hero-text { padding: 18px clamp(16px, 4vw, 48px) 8px; }
.ls-hero h1 { font-family: "Caveat", cursive; font-weight: 600; font-size: clamp(38px, 9vw, 66px); line-height: 1.05; color: var(--petrol); margin: 0; letter-spacing: .005em; }
.ls-schwung { width: min(300px, 70%); height: 14px; display: block; margin: 4px 0 10px 18%; }
.ls-hero p { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; margin: 0 0 20px; max-width: 34em; }
.ls-hero-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }
.ls-hero-knoepfe .knopf { min-height: 54px; padding: 10px 26px; }
.ls-so { gap: 10px; }
.ls-so small { display: block; font-size: 12px; font-weight: 500; line-height: 1.1; }
.ls-so > span:last-child { text-align: left; line-height: 1.15; }
.ls-play svg { width: 30px; height: 30px; color: var(--petrol); display: block; }
.ls-karten { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 22px clamp(14px, 3vw, 40px) 8px; max-width: 1320px; margin: 0 auto; }
.ls-karte { position: relative; border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer; text-align: left; color: #fff; box-shadow: var(--schatten); background: var(--petrol); min-height: 150px; display: flex; flex-direction: column; }
.ls-karte-bild { flex: 1; min-height: 92px; background-size: cover; background-position: center; }
.ls-karte-text { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(180deg, #0f5f66, #0b4f57); }
.ls-karte-text b { flex: 1; font-size: 17px; line-height: 1.25; }
.ls-sym svg, .ls-pfeil svg { width: 28px; height: 28px; display: block; }
.ls-karte:hover .ls-pfeil { transform: translateX(3px); }
.ls-pfeil { transition: transform .15s; }
.ls-band { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; max-width: 1200px; margin: 18px auto; padding: 18px; background: rgba(233, 240, 227, .7); border-radius: 24px; }
.ls-band > div { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.ls-band svg { width: 36px; height: 36px; color: var(--petrol); flex: none; }
.ls-abschnitt { max-width: 760px; margin: 0 auto; padding: 34px 16px 10px; scroll-margin-top: 10px; }
.ls-abschnitt h2 { font-family: "Caveat", cursive; font-size: 42px; color: var(--petrol); text-align: center; margin: 0 0 14px; font-weight: 600; }
.ls-mitte { text-align: center; }
.ls-liste { padding: 0; list-style: none; display: grid; gap: 10px; }
.ls-liste li { background: var(--karte); border-radius: 16px; padding: 14px 16px; box-shadow: var(--schatten); }
.ls-preise { max-width: 460px; margin: 0 auto; }
.ls-punkte { justify-content: center; margin-top: 10px; }
.ls-punkt { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--linie); padding: 0; cursor: pointer; }
.ls-punkt.aktiv { background: var(--petrol-2); }
.ls-18 { background: var(--petrol); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 22px clamp(16px, 4vw, 60px); margin-top: 40px; }
.ls-18-zeichen { width: 58px; height: 58px; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; }
.ls-18 > div { flex: 1; min-width: 220px; }
.ls-18 b { display: block; font-size: 19px; }
.ls-18 .knopf.hell { background: transparent; color: #fff; border-color: #fff; }
.ls-18 .knopf.hell svg { width: 22px; height: 22px; }
.ls + .fuss, .ls .fuss { background: var(--petrol); color: #cfe0df; margin: 0; padding: 0 16px 22px; }
.ls .fuss a { color: #cfe0df; }
@media (min-width: 720px) {
  .ls-karten { grid-template-columns: 1fr 1fr; }
  .ls-band { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .ls-nav { display: flex; }
  .ls-aktionen { margin-left: 18px; }
  .nur-breit { display: inline-flex !important; }
  .ls-hero { grid-template-columns: 45% 55%; align-items: center; min-height: 480px; max-width: none; }
  .ls-hero-bild { grid-column: 1 / -1; grid-row: 1; height: 100%; min-height: 480px; border-radius: 0; margin-left: 38%;
    background-position: 30% 30%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 25%); mask-image: linear-gradient(90deg, transparent 0, #000 25%); }
  .ls-hero-text { grid-column: 1; grid-row: 1; padding-left: max(64px, calc((100vw - 1320px) / 2 + 64px)); position: relative; z-index: 1; }
  .ls-hero h1 { width: 135%; font-size: clamp(48px, 4.4vw, 66px); }
  .ls-karten { grid-template-columns: repeat(4, 1fr); margin-top: -40px; position: relative; z-index: 2; }
  .ls-karte { min-height: 190px; }
}

@media print {
  body > *:not(.schleier) { display: none !important; }
  .schleier { position: static; background: none; display: block; }
  .blatt { max-height: none; box-shadow: none; animation: none; border-radius: 0; }
  .blatt .griff, .blatt .knopfreihe { display: none; }
}
