/* Reise Waechter. Gestaltung nach docs/design/mockup.html: Bricolage Grotesque,
   Navy #0D2230, weiche weisse Karten, Pillen. Hell voreingestellt, dunkel ueber
   prefers-color-scheme. Mobile-first, Desktop als breite Spalte. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/static/vendor/bricolage-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/static/vendor/bricolage-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #EEF3F5; --karte: #FFFFFF; --flaeche: #F3F6F7; --text: #0D2230; --text2: #4C5A66; --text3: #2C4252; --linie: #D3DCE2; --linie2: #E2E8EC;
  --navy: #0D2230; --navy-text: #FFFFFF; --gruen: #0B6B47; --gruen-bg: #E3F3EB; --gelb: #9A6B00; --gelb-bg: #FFF1D6;
  --blau: #1D4ED8; --blau-bg: #E4ECFB; --rot: #B42318; --rot-bg: #FCE8E6; --rotpunkt: #D7263D;
  --schatten: 0 10px 30px rgba(13, 34, 48, .08); --r: 20px; --rk: 14px;
  --kal1: #0E3A7A; --kal2: #1D5BB8; --kal3: #2F7BE0; --kal4: #5E9BE8; --kal5: #8FB8EA;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0C1218; --karte: #151D26; --flaeche: #1B2530; --text: #EEF2F6; --text2: #9AA6B5; --text3: #C3CCD6; --linie: #273340; --linie2: #22303C;
          --navy: #EEF2F6; --navy-text: #0C1218; --gruen-bg: #10351F; --gelb-bg: #3A2A05; --blau-bg: #142A56; --rot-bg: #4A1711; --schatten: none; }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 "Bricolage Grotesque", system-ui, -apple-system, sans-serif; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1 { font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
h2 small, .klein { font-weight: 400; color: var(--text2); font-size: 13px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.app { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 0 10px; }
.marke { display: flex; align-items: center; gap: 12px; }
.marke-bild { width: 56px; height: 56px; border-radius: 15px; display: block; box-shadow: 0 4px 14px rgba(13, 34, 48, .18); }
@media (min-width: 760px) { .marke-bild { width: 64px; height: 64px; border-radius: 17px; } }
.marke .gruss { margin: 0 0 2px; color: var(--text2); font-size: 14px; }
.marke .titel { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; color: var(--text); }
.marke .titel b { font-weight: 800; }
@media (min-width: 760px) { .marke .titel { font-size: 23px; } }
.glocke { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linie); background: var(--karte); display: grid; place-items: center; }
.glocke svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 2; }
.glocke .badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rotpunkt); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.hauptnav { display: none; gap: 18px; font-weight: 700; color: var(--text2); }
.hauptnav a.on { color: var(--text); }
@media (min-width: 760px) { .hauptnav { display: flex; } }

/* Suchleiste */
.suchleiste { display: flex; gap: 10px; align-items: center; }
.suchpille { flex: 1; display: flex; align-items: center; gap: 12px; background: var(--karte); border: 1px solid var(--linie2); border-radius: 999px; padding: 10px 18px; box-shadow: var(--schatten); cursor: pointer; min-width: 0; text-align: left; }
.suchpille svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 2.2; flex: 0 0 auto; }
.suchpille .ort { font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suchpille .zeit { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filterknopf { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); border: 0; display: grid; place-items: center; cursor: pointer; flex: 0 0 56px; }
.filterknopf svg { width: 24px; height: 24px; stroke: var(--navy-text); fill: none; stroke-width: 2.2; }
.filterknopf .badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--karte); color: var(--text); border: 1px solid var(--linie); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.schnell { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.schnell::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie); background: var(--karte); color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; }
.chip.on { background: var(--navy); color: var(--navy-text); border-color: var(--navy); }
.chip.on::before { content: "✓"; font-size: 13px; }
.zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; font-size: 13px; color: var(--text2); }
.zeile .link { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; font-size: 13px; cursor: pointer; }

/* Status-Chip auf Karten */
.status { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--karte); color: var(--text); font-size: 13px; font-weight: 700; box-shadow: 0 2px 10px rgba(13, 34, 48, .12); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text2); }
.status.gruen::before { background: #15A364; }
.status.gelb::before { background: #D9A200; }
.status.blau::before { background: #2F7BE0; }
.status.rot::before { background: var(--rotpunkt); }
.status.grau::before { background: #8A96A3; }

/* Favoriten-Karussell */
.block { padding-top: 24px; }
.blockkopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 4px 12px; flex-wrap: wrap; }
.blockkopf h2 { overflow-wrap: anywhere; }
.karussell { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 8px; margin: 0 -4px; scrollbar-width: none; }
.karussell::-webkit-scrollbar { display: none; }
.fav { flex: 0 0 240px; scroll-snap-align: start; border-radius: var(--r); overflow: hidden; background: var(--karte); box-shadow: var(--schatten); position: relative; display: block; }
.fav .bild { height: 150px; background: var(--flaeche) center/cover; }
.fav .status { position: absolute; top: 12px; left: 12px; }
.fav .inhalt { padding: 12px 14px 14px; }
.fav .name { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav .preiszeile { display: flex; justify-content: space-between; align-items: baseline; }
.fav .preis { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.delta { font-size: 13px; font-weight: 700; color: var(--text2); }
.delta.runter { color: var(--gruen); }
.delta.rauf { color: var(--rot); }
@media (min-width: 760px) { .karussell { flex-wrap: wrap; overflow: visible; } .fav { flex: 0 0 calc(25% - 9px); } }

/* Trefferliste */
.ergebnisse { padding-top: 20px; }
.liste { display: grid; gap: 12px; }
@media (min-width: 760px) { .liste { grid-template-columns: 1fr 1fr; } }
.treffer { display: grid; grid-template-columns: 112px 1fr; gap: 14px; background: var(--karte); border: 1px solid var(--linie2); border-radius: var(--r); padding: 14px; position: relative; }
.treffer .bild { width: 112px; height: 112px; border-radius: 16px; background: var(--flaeche) center/cover; position: relative; }
.herz { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; background: var(--karte); border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(13, 34, 48, .15); }
.herz svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 2; }
.herz.on svg { fill: #D7263D; stroke: #D7263D; }
.treffer .name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.treffer .ort { color: var(--text2); font-size: 14px; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { background: var(--flaeche); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.treffer .unten { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 8px; }
.treffer .note { font-weight: 700; font-size: 14px; }
.treffer .preis { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.treffer .hinweis { grid-column: 1 / -1; }
.leer { color: var(--text2); background: var(--karte); border-radius: var(--rk); padding: 16px; }
.hinweis { color: var(--text2); font-size: 13px; }
.sortier { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--linie); background: var(--karte); color: var(--text); font-weight: 600; font-size: 14px; }

/* Filter-Sheet */
.sheet { position: fixed; inset: 0; z-index: 20; display: none; }
.sheet.offen { display: block; }
.sheet .hinter { position: absolute; inset: 0; background: rgba(13, 34, 48, .45); }
.sheet .blatt { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--karte); border-radius: 28px 28px 0 0; padding: 10px 20px calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .sheet .blatt { left: 50%; right: auto; top: 5vh; bottom: auto; width: 640px; transform: translateX(-50%); border-radius: 28px; max-height: 90vh; } }
.griff { width: 80px; height: 6px; border-radius: 3px; background: var(--linie); margin: 4px auto 18px; }
.blatt h2 { font-size: 30px; }
.blatt label.feld { display: block; font-weight: 700; margin: 18px 0 8px; }
.blatt .eingabe { width: 100%; height: 56px; border: 1px solid var(--linie); border-radius: 18px; padding: 0 18px; font: inherit; font-size: 17px; color: var(--text); background: var(--karte); }
.blatt .eingabe:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.blatt .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.blatt .duo .eingabe { font-size: 16px; }
.vorschlaege { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--linie); border-radius: 18px; overflow: hidden; display: none; }
.vorschlaege.offen { display: block; }
.vorschlaege li { padding: 12px 16px; border-top: 1px solid var(--linie2); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.vorschlaege li:first-child { border-top: 0; }
.vorschlaege li:hover, .vorschlaege li.aktiv { background: var(--flaeche); }
.vorschlaege .typ { font-size: 12px; color: var(--text2); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { height: 44px; padding: 0 18px; font-size: 15px; }
.segment { display: flex; background: var(--flaeche); border-radius: 999px; padding: 4px; }
.segment label { flex: 1; text-align: center; padding: 10px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.segment input { display: none; }
.segment input:checked + span { display: block; background: var(--karte); border-radius: 999px; padding: 10px; margin: -10px; box-shadow: 0 2px 8px rgba(13, 34, 48, .12); }
.monate { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.monate .chip { height: 38px; }
.gruppen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.flughaefen { display: flex; flex-wrap: wrap; gap: 8px; }
.flughaefen label { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--linie); background: var(--karte); cursor: pointer; font-size: 14px; }
.flughaefen label.on { background: var(--navy); color: var(--navy-text); border-color: var(--navy); }
.flughaefen input { display: none; }
.flughaefen small { opacity: .75; }
.sheetfuss { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--karte) 30%); z-index: 21; }
@media (min-width: 760px) { .sheetfuss { position: sticky; bottom: 0; margin: 0 -20px -96px; padding: 12px 20px 16px; } }
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border-radius: 28px; background: var(--navy); color: var(--navy-text); font-weight: 700; font-size: 17px; border: 0; cursor: pointer; }
.cta.klein { height: 44px; font-size: 15px; width: auto; padding: 0 18px; }
.leise { height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--linie); background: var(--karte); color: var(--text); font-weight: 700; cursor: pointer; }

/* Detail */
.detail { background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten); overflow: hidden; margin-top: 8px; }
.detail .held { height: 260px; background: var(--flaeche) center/cover; position: relative; }
.detail .held .status { position: absolute; left: 16px; bottom: 16px; }
.detail .held .quelle { position: absolute; right: 16px; bottom: 16px; background: rgba(13, 34, 48, .7); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
@media (min-width: 760px) { .detail .held { height: 360px; } }
.detail .kopf { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.detail .kopf h1 { font-size: 28px; }
.detail .meta { color: var(--text2); font-size: 14px; margin-top: 4px; }
.notebox { background: var(--navy); color: var(--navy-text); border-radius: 16px; padding: 8px 12px; text-align: center; min-width: 70px; align-self: start; }
.notebox b { display: block; font-size: 20px; }
.notebox small { font-size: 11px; opacity: .85; }
.detail section { padding: 18px 20px; border-top: 1px solid var(--linie2); }
.detail section.preis { border-top: 0; padding-top: 8px; }
.grosspreis { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 10px 0 6px; }
.detail .ampel { margin: 10px 0 14px; }
.detail .ampel .status { height: 34px; }
.detail .cta { margin-top: 4px; }
.detail .untertext { font-size: 14px; color: var(--text3); line-height: 1.45; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--text2); font-weight: 600; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--linie2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--linie2); vertical-align: top; }
td.r, th.r { text-align: right; white-space: nowrap; }
tr.summe td { font-weight: 800; }
.scroll { overflow-x: auto; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.filter a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--flaeche); color: var(--text2); font-size: 13px; font-weight: 700; }
.filter a.on { background: var(--navy); color: var(--navy-text); }
#chart { width: 100%; min-height: 220px; }
.legende { font-size: 12px; color: var(--text2); margin-top: 6px; }
.legende .l { display: inline-block; width: 22px; height: 3px; vertical-align: middle; margin: 0 4px 0 8px; }
.legende .paket { background: var(--navy); }
.legende .einzel { background: #2F7BE0; }
details { border: 1px solid var(--linie2); border-radius: 18px; padding: 0 16px; margin-top: 10px; }
details summary { cursor: pointer; font-weight: 800; font-size: 17px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
details summary small { display: block; font-weight: 400; font-size: 12px; color: var(--text2); }
details summary::after { content: "›"; transform: rotate(90deg); color: var(--text2); }
details[open] summary::after { transform: rotate(-90deg); }
details > div { padding-bottom: 14px; }
.mehrknopf { margin-top: 10px; }
.alarme ul { list-style: none; padding: 0; margin: 0; }
.alarme li { padding: 10px 0; border-bottom: 1px solid var(--linie2); font-size: 14px; }
.aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.aktionen button { height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--navy); color: var(--navy-text); font-weight: 700; cursor: pointer; }
.aktionen button.leise { background: var(--karte); color: var(--text); border: 1px solid var(--linie); }

/* Preiskalender */
.kalkopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kalnav { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.kalnav a { width: 40px; height: 40px; border-radius: 50%; background: var(--flaeche); display: grid; place-items: center; }
.naechte { margin: 6px 0 12px; }
.kal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.kal .wt { text-align: center; font-size: 13px; color: var(--text2); font-weight: 700; padding-bottom: 4px; }
.kal .t { aspect-ratio: 1; border-radius: 14px; background: var(--flaeche); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: var(--text2); line-height: 1.15; }
.kal .t b { font-size: 15px; color: inherit; }
.kal .t.p { color: #fff; }
.kal .t.p b { color: #fff; }
.kal .t.s1 { background: var(--kal1); } .kal .t.s2 { background: var(--kal2); } .kal .t.s3 { background: var(--kal3); } .kal .t.s4 { background: var(--kal4); } .kal .t.s5 { background: var(--kal5); color: var(--text); }
.kal .t.s5 b { color: var(--text); }
.kal .t.wahl { outline: 2px solid var(--text); outline-offset: 2px; }
.skala { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text2); margin-top: 10px; }
.skala i { width: 44px; height: 10px; border-radius: 5px; display: inline-block; }
.terminbox { background: var(--flaeche); border-radius: 18px; padding: 14px; margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.terminbox .preis { font-size: 22px; font-weight: 800; }

/* Schwebender Knopf, Zurueck */
.schweb { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); height: 54px; padding: 0 22px; border-radius: 27px; background: var(--navy); color: var(--navy-text); font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(13, 34, 48, .3); z-index: 10; }
.schweb svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); background: var(--navy); color: var(--navy-text); padding: 10px 16px; border-radius: 999px; font-weight: 700; z-index: 30; display: none; }
.toast.zeig { display: block; }

/* Einstellungen */
.einstellungen section { background: var(--karte); border-radius: var(--r); padding: 18px 20px; margin-top: 16px; box-shadow: var(--schatten); }
.einstellungen h1 { margin: 16px 0 4px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; }
.inline button { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--linie); background: var(--karte); color: var(--text); font-weight: 700; cursor: pointer; }
.alarmliste { list-style: none; padding: 0; margin: 0; }
.alarmliste li { padding: 10px 0; border-bottom: 1px solid var(--linie2); font-size: 14px; }

/* Thema von Hand: dieselben Tokens wie die Medienabfrage, nur ueber data-theme */
:root[data-theme="dunkel"] { --bg: #0C1218; --karte: #151D26; --flaeche: #1B2530; --text: #EEF2F6; --text2: #9AA6B5; --text3: #C3CCD6; --linie: #273340; --linie2: #22303C;
  --navy: #EEF2F6; --navy-text: #0C1218; --gruen-bg: #10351F; --gelb-bg: #3A2A05; --blau-bg: #142A56; --rot-bg: #4A1711; --schatten: none; color-scheme: dark; }
:root[data-theme="hell"] { --bg: #EEF3F5; --karte: #FFFFFF; --flaeche: #F3F6F7; --text: #0D2230; --text2: #4C5A66; --text3: #2C4252; --linie: #D3DCE2; --linie2: #E2E8EC;
  --navy: #0D2230; --navy-text: #FFFFFF; --gruen-bg: #E3F3EB; --gelb-bg: #FFF1D6; --blau-bg: #E4ECFB; --rot-bg: #FCE8E6; --schatten: 0 10px 30px rgba(13, 34, 48, .08); color-scheme: light; }
.marke-dunkel { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="hell"]) .marke-hell { display: none; } :root:not([data-theme="hell"]) .marke-dunkel { display: block; } }
:root[data-theme="dunkel"] .marke-hell { display: none; } :root[data-theme="dunkel"] .marke-dunkel { display: block; }
:root[data-theme="hell"] .marke-hell { display: block; } :root[data-theme="hell"] .marke-dunkel { display: none; }
:root[data-theme="dunkel"] .legende .paket { background: #EEF2F6; }

/* Preiskalender als Skala */
.spartipp { background: var(--gruen-bg); color: var(--gruen); font-weight: 700; border-radius: 14px; padding: 10px 14px; margin: 8px 0 12px; font-size: 14px; }
:root[data-theme="dunkel"] .spartipp { color: #7BD6A6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="hell"]) .spartipp { color: #7BD6A6; } }
.skala { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.skala::-webkit-scrollbar { display: none; }
.balken { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-bottom: 2px; width: max-content; }
.balken .tag { flex: 0 0 44px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text2); font: inherit; }
.balken .tag .p { font-size: 11px; font-weight: 700; color: var(--text2); }
.balken .tag .b { width: 100%; flex: none; border-radius: 10px 10px 4px 4px; background: var(--kal3); transition: transform .15s; }
.balken .tag.s1 .b { background: var(--kal1); } .balken .tag.s2 .b { background: var(--kal2); } .balken .tag.s4 .b { background: var(--kal4); } .balken .tag.s5 .b { background: var(--kal5); }
.balken .tag .d { font-size: 11px; line-height: 1.1; text-align: center; }
.balken .tag.wahl .b { outline: 3px solid var(--text); outline-offset: 2px; }
.balken .tag.aktiv .b { transform: scaleX(1.12); }
.balken .tag.aktiv .p, .balken .tag.aktiv .d, .balken .tag.wahl .p { color: var(--text); font-weight: 800; }
.balken .tag.min .p::after { content: " ●"; color: var(--gruen); }
.schieber { width: 100%; margin: 10px 0 4px; accent-color: var(--navy); }
.kal.klein-kal { gap: 4px; }
.kal.klein-kal .t { border-radius: 10px; font-size: 10px; position: relative; }
.kal.klein-kal .t b { font-size: 12px; }
.kal.klein-kal .t .punkt { position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gruen); }
.kal.klein-kal .t.s1 .punkt, .kal.klein-kal .t.s2 .punkt { background: #7BD6A6; }
.skalalegende { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text2); margin-top: 10px; flex-wrap: wrap; }
.skalalegende i { width: 28px; height: 8px; border-radius: 4px; display: inline-block; }
.skalalegende .punktlegende { width: 6px; height: 6px; background: var(--gruen); }
.monatsraster { margin-top: 12px; }
.probebox { background: var(--flaeche); border-radius: 18px; padding: 14px; margin-top: 14px; }

/* Fortschritt, Budget, Bewertungen, Skala v2 */
.fortschritt { display: flex; gap: 12px; align-items: center; background: var(--flaeche); border-radius: 16px; padding: 12px 14px; margin: 8px 0; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--linie); border-top-color: var(--navy); animation: dreh 1s linear infinite; flex: 0 0 22px; }
@keyframes dreh { to { transform: rotate(360deg); } }
.preiszeile-gross { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.budgetlabel { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.budgetlabel.gruen { background: var(--gruen-bg); color: var(--gruen); }
.budgetlabel.blau { background: var(--blau-bg); color: var(--blau); }
.budgetlabel.gelb { background: var(--gelb-bg); color: var(--gelb); }
.budgetlabel.rot { background: var(--rot-bg); color: var(--rot); }
:root[data-theme="dunkel"] .budgetlabel.gruen { color: #7BD6A6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="hell"]) .budgetlabel.gruen { color: #7BD6A6; } }
.budgetform { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linie2); }
.budgetform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text2); }
.budgetform input, .budgetform select { height: 44px; border-radius: 22px; border: 1px solid var(--linie); padding: 0 14px; font: inherit; font-size: 16px; background: var(--karte); color: var(--text); width: 150px; }
.budgetform select { width: auto; }
.budgetform .klein { flex-basis: 100%; }
.scores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.score { display: flex; flex-direction: column; background: var(--flaeche); border-radius: 14px; padding: 10px 14px; min-width: 140px; }
.score b { font-size: 22px; }
.score small { color: var(--text2); font-size: 12px; }
.kategorien { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 12px; }
.kat { display: grid; grid-template-columns: 86px 1fr 32px; align-items: center; gap: 8px; font-size: 13px; }
.kat .bar { height: 8px; border-radius: 4px; background: var(--flaeche); overflow: hidden; }
.kat .bar i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.kat b { text-align: right; }
.reviews { list-style: none; padding: 0; margin: 12px 0 0; }
.reviews li { padding: 10px 0; border-top: 1px solid var(--linie2); }
.reviews .rk { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.reviews .rk b { font-size: 16px; }
.reviews .rk span { font-weight: 700; }
.reviews p { margin: 4px 0 0; font-size: 14px; color: var(--text3); }
.skala-huelle { position: relative; }
.pfeil { position: absolute; top: 36px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--linie); background: var(--karte); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; z-index: 2; box-shadow: var(--schatten); }
.pfeil.links { left: -6px; } .pfeil.rechts { right: -6px; }
.balken { height: 120px; gap: 4px; }
.balken .tag { flex: 0 0 34px; }
.balken .tag .p { font-size: 10px; }
.balken .tag .d { font-size: 10px; }
.balken .tag .b { border-radius: 7px 7px 3px 3px; }
.balken .tag.g1 .b, .kal .t.g1 { background: #15A364; } .balken .tag.g2 .b, .kal .t.g2 { background: #7CC98F; }
.balken .tag.g3 .b, .kal .t.g3 { background: #B9C4CF; } .balken .tag.g4 .b, .kal .t.g4 { background: #F0A26B; } .balken .tag.g5 .b, .kal .t.g5 { background: #D95F4E; }
.kal .t.g1, .kal .t.g5 { color: #fff; } .kal .t.g1 b, .kal .t.g5 b { color: #fff; }
.kal .t.g2, .kal .t.g3, .kal .t.g4 { color: var(--text); } .kal .t.g2 b, .kal .t.g3 b, .kal .t.g4 b { color: var(--text); }
.kal .t.ohne { color: var(--text2); opacity: .6; }
.skalalegende .g1 { background: #15A364; } .skalalegende .g2 { background: #7CC98F; } .skalalegende .g3 { background: #B9C4CF; } .skalalegende .g4 { background: #F0A26B; } .skalalegende .g5 { background: #D95F4E; }
.kal.klein-kal .t { font-size: 9px; }
.kal.klein-kal .t b { font-size: 11px; }
.kal .t.aktiv { outline: 2px solid var(--blau); outline-offset: 1px; }
@media (max-width: 759px) { .kategorien { grid-template-columns: 1fr; } .kat { grid-template-columns: 110px 1fr 36px; } }

/* Neuordnung Hotelseite, kompakte Monatsuebersicht, greifbare Skala */
a.notebox { cursor: pointer; }
.budgetlabel.grau { background: var(--flaeche); color: var(--text2); }
.budgetlabel.klein-label { font-size: 11px; padding: 3px 9px; margin-top: 4px; }
.ampelzeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.skala { cursor: grab; user-select: none; }
.skala.zieht { cursor: grabbing; }
.balken { height: 108px; gap: 3px; }
.balken .tag { flex: 0 0 36px; }
.balken .tag .p { font-size: 10px; letter-spacing: -.02em; }
.terminbox { margin-top: 10px; padding: 12px 14px; }
.monatsraster { margin-top: 10px; }
.kal.klein-kal { gap: 2px; }
.kal.klein-kal .t { aspect-ratio: auto; height: 32px; border-radius: 7px; font-size: 9px; line-height: 1.05; }
.kal.klein-kal .t b { font-size: 11px; }
.kal.klein-kal .wt { font-size: 11px; padding-bottom: 2px; }
.kal.klein-kal .t .punkt { top: 3px; right: 4px; width: 4px; height: 4px; }
.kalnav a { width: 32px; height: 32px; }
.skalalegende { margin-top: 8px; }
.skalalegende i { width: 22px; height: 6px; }
.detail section { padding: 16px 20px; }
.reviewliste { margin-top: 12px; }
.reviewliste > summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.reviewliste > summary small { font-weight: 500; color: var(--text2); font-size: 12px; }

/* Anmeldung, Geraete, Mitteilungen (Variante B) */
[hidden] { display: none !important; }
.anmeldeseite { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.anmeldebox { width: 100%; max-width: 360px; text-align: center; }
.anmeldebox h1 { font-size: 26px; margin-top: 12px; }
.anmelde-logo { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 10px 30px rgba(13, 34, 48, .18); }
.anmelde-sub { color: var(--text2); margin: 6px 0 20px; }
.anmeldeform { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.anmeldeform label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text2); font-weight: 600; }
.anmeldeform .eingabe { height: 48px; border-radius: 24px; border: 1px solid var(--linie); background: var(--karte); color: var(--text); padding: 0 16px; font: inherit; font-size: 16px; }
.anmeldeform .cta { justify-content: center; margin-top: 6px; }
.faceid { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 50px; border-radius: 25px; border: 1px solid var(--linie); background: var(--karte); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.faceid:disabled { opacity: .5; cursor: default; }
.faceid svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; }
.odertrenner { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--text2); font-size: 13px; }
.odertrenner::before, .odertrenner::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.fehler { background: var(--rot-bg); color: var(--rot); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.gemeldet { background: var(--gruen-bg); color: var(--gruen); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.geraeteliste { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.geraetezeile { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--flaeche); border-radius: 12px; flex-wrap: wrap; }
.geraetezeile .gname { font-weight: 700; }
.geraetezeile .gzeit { color: var(--text2); font-size: 13px; flex: 1; }
.geraetezeile form { margin: 0; }
.mstand { background: var(--flaeche); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.os-zeile { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.os-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--text2); flex: none; }
.os-punkt.gruen { background: var(--gruen); }
.os-punkt.rot { background: var(--rot); }
.mstand .inline { margin-top: 8px; }
.hinweisbanner { background: var(--gelb-bg); color: var(--gelb); border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: 4px 0 12px; }
.hinweisbanner a { text-decoration: underline; }
.workerstatus { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.vorschlaege li.hinweis { color: var(--text2); cursor: default; font-size: 14px; }
.vorschlaege li.hinweis:hover { background: none; }

/* ===== Entwurf 3: fester Rahmen, Kopfblock, Unterkopf, Blatt, Raster ===== */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { padding-bottom: 0; }
.ansicht { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: none; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
body.sheet-offen .ansicht { overflow: hidden; }
.kopfblock { background: var(--karte); border-radius: 0 0 28px 28px; padding: calc(12px + env(safe-area-inset-top)) 16px 14px; margin: 0 -16px 18px; box-shadow: var(--schatten); }
.kopfblock .top { padding: 0; margin-bottom: 14px; gap: 10px; justify-content: flex-start; }
.kopfblock .marke { flex: 1; min-width: 0; }
.marke-bild { width: 52px; height: 52px; }
.marke .gruss { font-size: 12.5px; margin-bottom: 1px; }
.marke .titel { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 760px) { .marke .titel { font-size: 20px; } .kopfblock { padding-left: 20px; padding-right: 20px; } }
.rund { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie); background: var(--karte); display: grid; place-items: center; flex: 0 0 44px; padding: 0; color: var(--text); }
.rund svg { width: 21px; height: 21px; stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rund .badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--rotpunkt); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.kopfblock .suchpille { background: var(--flaeche); box-shadow: none; height: 60px; }
.kopfblock .schnell { margin: 0 -16px; padding: 12px 16px 2px; }
.kopfblock .zeile { margin-top: 8px; }
.unterkopf { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 0 14px; }
.unterkopf .seitentitel { flex: 1; min-width: 0; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block { padding-top: 6px; }
.fav { flex: 0 0 236px; }
.fav .bild { height: 140px; }
.fav .inhalt { padding: 12px 14px 14px; }
.fav .name { font-size: 16px; }
.fav .preis { font-size: 24px; }
/* Blatt: fast ganze Hoehe, Fuss verdeckt nichts */
.sheet .blatt { top: calc(env(safe-area-inset-top) + 44px); bottom: 0; max-height: none; padding: 10px 20px 130px; border-radius: 28px 28px 0 0; overscroll-behavior: none; }
.sheet .griff { width: 52px; height: 5px; border-radius: 3px; background: var(--linie); margin: 0 auto 10px; }
.blatt h1 { font-size: 26px; }
.blatt label.feld { font-size: 15px; margin: 18px 0 8px; }
.blatt .eingabe { height: 50px; border-radius: 16px; font-size: 16px; }
.blatt .duo { gap: 10px; }
.chips .chip { height: 38px; padding: 0 14px; font-size: 14px; }
.stepper { display: flex; align-items: center; justify-content: space-between; height: 50px; border: 1px solid var(--linie); border-radius: 16px; padding: 0 8px; background: var(--karte); }
.stepper b { font-size: 17px; }
.stepper button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--flaeche); color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; }
.gruppen { gap: 4px 14px; margin-bottom: 10px; }
.gruppen button { background: none; border: 0; padding: 2px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--blau); cursor: pointer; }
.gruppen button.on { text-decoration: underline; text-underline-offset: 3px; }
.gruppen button.leer-link { color: var(--text2); }
.flughaefen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.flughaefen label.fh { height: 46px; border-radius: 14px; border: 1px solid var(--linie); background: var(--karte); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; padding: 0 12px; line-height: 1.15; cursor: pointer; }
.flughaefen label.fh b { font-size: 14px; } .flughaefen label.fh small { font-size: 11.5px; color: var(--text2); opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.flughaefen label.fh.on { border-color: var(--navy); background: var(--navy); color: var(--navy-text); } .flughaefen label.fh.on small { color: var(--navy-text); opacity: .8; }
@media (min-width: 760px) { .flughaefen { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sheet .blatt { top: 5vh; bottom: auto; max-height: 90vh; padding-bottom: 110px; } }
.sheetfuss { background: linear-gradient(to top, var(--karte) 70%, transparent); }
/* Hotelseite in Karten statt einer grossen Flaeche */
.detail { background: none; box-shadow: none; overflow: visible; margin-top: 0; }
.detail .held { border-radius: var(--r); overflow: hidden; box-shadow: var(--schatten); height: 220px; }
.detail .held .status { top: 12px; left: 12px; bottom: auto; }
.detail .held .notebox { position: absolute; right: 12px; bottom: 12px; }
.detail .meta { color: var(--text2); font-size: 14px; margin: 10px 2px 12px; }
.detail section, .detail section.preis { background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten); border-top: 0; padding: 16px 18px; margin-bottom: 12px; }
.detail section.preis { padding-top: 16px; }
.detail .kalender { padding: 16px 18px; }
.einstellungen h1 { display: none; }
.einstellungen section:first-of-type { margin-top: 0; }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }

/* Nichts darf seitlich herausragen: der Rollbehaelter rollt nur senkrecht */
.ansicht { overflow-x: hidden; }
.app { min-width: 0; }
table { table-layout: fixed; }
td { overflow-wrap: anywhere; }
td.r .klein { display: inline-block; max-width: 100%; text-align: right; }
.detail .held .notebox b { font-size: 20px; }
/* Suche: Feld mit Loeschkreuz, Zuletzt und Beliebt als Chips */
.suchfeld { position: relative; }
.suchfeld .eingabe { padding-right: 46px; }
.suchfeld .leeren { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--flaeche); color: var(--text2); font-size: 18px; line-height: 1; cursor: pointer; display: none; }
.suchfeld .leeren.zeig { display: block; }
.zielchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px -20px 0; padding: 0 20px 2px; }
.zielchips::-webkit-scrollbar { display: none; }
.zielchips .chip { height: 34px; font-size: 13.5px; }
.zielchips .chip.zuletzt::before { content: "↺"; font-size: 12px; }
.zielchips .chip.on::before { content: "✓"; }
.zieltitel { font-size: 12px; color: var(--text2); font-weight: 700; margin: 12px 0 0; }
/* Aehnliche Hotels */
.aehnlich { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 10px -18px 0; padding: 0 18px 4px; scroll-snap-type: x mandatory; }
.aehnlich::-webkit-scrollbar { display: none; }
.aehnlich a { flex: 0 0 160px; scroll-snap-align: start; border-radius: 14px; overflow: hidden; background: var(--flaeche); display: block; }
.aehnlich .bild { height: 90px; background: var(--linie) center/cover; }
.aehnlich .t { padding: 8px 10px 10px; }
.aehnlich .n { font-weight: 800; font-size: 13.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aehnlich .u { font-size: 12px; color: var(--text2); margin-top: 3px; display: flex; justify-content: space-between; gap: 6px; }
.aehnlich .u b { color: var(--text); }
.klima-satz { font-size: 17px; font-weight: 700; margin: 8px 0 0; }
.klima-zeile { display: block; margin-top: 2px; }
.klima-zeile .klein { font-weight: 400; }
/* Karte der Treffer */
.karte-huelle { margin-bottom: 12px; }
#karte { height: 62vh; min-height: 320px; border-radius: var(--r); overflow: hidden; background: var(--flaeche); box-shadow: var(--schatten); }
.preismarke { background: none; border: 0; }
.preismarke span { display: inline-block; transform: translate(-50%, -100%); background: var(--navy); color: var(--navy-text); font: 700 13px/1 "Bricolage Grotesque", system-ui, sans-serif; padding: 7px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 12px rgba(13,34,48,.25); border: 2px solid var(--karte); }
.preismarke.fav span { background: var(--rotpunkt); color: #fff; }
.leaflet-container { font-family: inherit; }
