/* Ski-Pass Finder
   Farben: Nachtblau der Berge, Schnee, Pistenmarkierungen (blau/rot/schwarz)
   und Liftkarten-Gelb als einziger kräftiger Akzent. */
:root {
  --night: #13284a;
  --night-2: #1d3a66;
  --snow: #f6f8fb;
  --ice: #dfe7f1;
  --line: #c6d2e1;
  --ink: #142033;
  --ink-2: #4a5a72;
  --ticket: #f3c531;
  --ticket-deep: #d9a913;
  --blue: #2563c9;
  --red: #c73a32;
  --black: #1b1b1b;
  --ok: #1f7a55;
  --radius: 10px;

  --font-display: "Bahnschrift", "DIN Alternate", "DIN Next", "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--snow);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--night); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-stretch: semi-condensed; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .86rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ticket); color: var(--ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ticket); outline-offset: 2px; }

/* ---------- Kopf / Fuß ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  color: #fff;
}
body:not(.page-home):not(.page-area) .site-header { position: relative; background: var(--night); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.brand-mark { width: 40px; height: 28px; flex: none; }
.brand span { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: .98rem; }
.site-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ticket); border-radius: 0; }
.site-nav .nav-account { border: 1.5px solid rgba(255,255,255,.7); margin-left: 6px; }
.site-nav .nav-account[aria-current="page"] { border-radius: 6px; }

.site-footer { background: var(--night); color: #c9d6ea; margin-top: 64px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .9rem; }
.footer-inner p { margin: 0; max-width: 62ch; }
.site-footer a { color: #fff; margin-right: 14px; }
.site-footer .small { color: #c9d6ea; }

/* ---------- Buttons & Felder ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--font-body);
  background: var(--night); color: #fff; border: 0; border-radius: 8px;
  padding: 13px 20px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--night-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--night); box-shadow: inset 0 0 0 2px var(--night); }
.btn-ghost:hover { background: var(--ice); color: var(--night); }
.btn-big {
  width: 100%; padding: 18px 24px; font-size: 1.15rem;
  background: var(--ticket); color: var(--ink);
  font-family: var(--font-display); letter-spacing: .01em;
}
.btn-big:hover { background: var(--ticket-deep); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

input, select, button { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select {
  width: 100%; min-height: 46px;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  padding: 9px 12px;
}
input:focus, select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37,99,201,.18); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23142033' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
  padding-right: 36px;
}
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: .92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--night); flex: none; }
.form-error { color: var(--red); font-weight: 600; }
.form-ok { color: var(--ok); font-weight: 600; }

/* ---------- Startseite: Hero mit Rechner ---------- */
.hero { position: relative; color: #fff; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center 70%; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,22,44,.78) 0%, rgba(10,22,44,.45) 48%, rgba(10,22,44,.05) 100%),
              linear-gradient(0deg, rgba(10,22,44,.35), rgba(10,22,44,0) 40%);
}
.hero-inner {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 104px clamp(16px, 4vw, 48px) 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 40px; align-items: end;
}
.hero-copy { align-self: center; max-width: 30ch; }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-copy p { font-size: 1.12rem; color: #e7eef8; max-width: 44ch; }

.calc {
  background: #fff; color: var(--ink);
  border-radius: 14px; padding: 22px 22px 22px;
  box-shadow: 0 24px 60px -20px rgba(5,15,35,.55);
}
.calc-head { display: grid; grid-template-columns: 300px minmax(0, 1fr) 40px; gap: 12px; padding: 0 2px 8px; font-family: var(--font-display); font-weight: 700; color: var(--ink-2); font-size: .98rem; }
.calc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.calc-row {
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 40px; gap: 12px; align-items: start;
  padding: 12px; border-radius: var(--radius); background: var(--snow); border: 1px solid var(--ice);
}
.calc-row.is-new { animation: rowIn .35s ease-out; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mode-switch { display: inline-flex; background: var(--ice); border-radius: 7px; padding: 3px; margin-bottom: 8px; }
.mode-switch button { border: 0; background: transparent; padding: 5px 12px; border-radius: 5px; font-size: .86rem; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.mode-switch button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.amount-days { display: flex; align-items: center; gap: 10px; }
.stepper { display: flex; align-items: stretch; }
.stepper input { width: 64px; text-align: center; border-radius: 0; border-left: 0; border-right: 0; font-weight: 700; font-size: 1.1rem; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step { width: 42px; border: 1.5px solid var(--line); background: #fff; font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.step:first-child { border-radius: 8px 0 0 8px; }
.step:last-child { border-radius: 0 8px 8px 0; }
.step:hover { background: var(--ice); }
.unit { color: var(--ink-2); font-size: .92rem; white-space: nowrap; }
.amount-dates { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.amount-dates .range-days { grid-column: 1 / -1; }
.amount-dates .dash { color: var(--ink-2); font-size: .9rem; }
.amount-dates input { padding: 8px; font-size: .95rem; }
.row-area { padding-top: 38px; }
.row-remove { width: 40px; height: 40px; margin-top: 40px; border: 0; background: transparent; color: var(--ink-2); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.row-remove svg { width: 18px; }
.row-remove:hover { background: #fde8e6; color: var(--red); }
.calc-rows:has(> .calc-row:only-child) .row-remove { visibility: hidden; }

.add-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin: 12px 0 6px; padding: 12px 14px;
  border: 2px dashed var(--line); border-radius: var(--radius); background: transparent;
  color: var(--night); font-weight: 700; cursor: pointer; text-align: left;
}
.add-row svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--night); color: #fff; flex: none; }
.add-row:hover { border-color: var(--night); background: var(--snow); }
.calc-options { margin: 8px 0 14px; }
.calc-options summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding-top: 8px; align-items: start; }


/* ---------- Personen ---------- */
.persons { margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid var(--ice); }
.persons-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.persons-head h2 { font-size: 1.1rem; margin: 0; color: var(--ink); }
.persons-summary { margin: 0; font-size: .9rem; color: var(--ink-2); }
.person-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.person { display: grid; grid-template-columns: 26px 92px 1fr 32px; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 8px 8px 10px; border-radius: var(--radius); background: var(--snow); border: 1px solid var(--ice); }
.person.is-off { background: #fff; border-style: dashed; }
.p-nr { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.person.is-off .p-nr { background: var(--line); color: var(--ink); }
.p-age { display: flex; align-items: center; gap: 6px; }
.p-age span { font-size: .85rem; color: var(--ink-2); }
.p-age input { width: 56px; min-height: 38px; padding: 6px 8px; text-align: center; font-weight: 700; }
.p-skis { display: flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.p-skis input { width: 18px; height: 18px; accent-color: var(--night); }
.p-cat { grid-column: 2 / 4; font-size: .8rem; color: var(--ink-2); min-height: 1em; }
.p-remove { grid-column: 4; grid-row: 1 / 3; width: 32px; height: 32px; border: 0; background: transparent; color: var(--ink-2); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.p-remove svg { width: 16px; }
.p-remove:hover { background: #fde8e6; color: var(--red); }
.add-person { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; border: 0; background: transparent; color: var(--night); font-weight: 700; cursor: pointer; border-radius: 8px; }
.add-person svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--night); color: #fff; }
.add-person:hover { background: var(--snow); }

/* ---------- Ergebnis: Gruppe ---------- */
.ticket-who { margin: -6px 0 10px; font-weight: 600; }
.lines tr.is-free td:last-child { color: var(--ok); }
.per-head { flex-basis: 100%; font-size: .92rem; font-weight: 600; opacity: .85; }
.per-person { margin-top: 14px; }
.per-person summary { cursor: pointer; font-weight: 700; }
.be-list { list-style: none; margin: 8px 0 0; padding: 0; }
.be-list li { padding: 10px 0; border-top: 1px solid var(--ice); }
.be-head { display: flex; justify-content: space-between; gap: 10px; font-size: .95rem; }
.be-head span:first-child { font-weight: 600; }
.be-list .meter { margin: 8px 0 4px; height: 8px; }
.family-list { list-style: none; margin: 0; padding: 0; }
.family-list li { padding: 10px 0 10px 14px; border-left: 3px solid var(--line); margin-bottom: 8px; }
.family-list li.is-applied { border-left-color: var(--ok); }
.family-list strong { display: block; margin-bottom: 2px; }
.family-list span { font-size: .9rem; color: var(--ink-2); }

/* ---------- Ergebnis: die Liftkarte ---------- */
.results { max-width: 1160px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 48px) 8px; scroll-margin-top: 16px; }
.results-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ticket {
  position: relative; background: var(--ticket); color: var(--ink);
  border-radius: 16px; padding: 28px 30px 24px;
  box-shadow: 0 1px 0 var(--ticket-deep), 0 18px 40px -22px rgba(20,32,51,.6);
}
.ticket::before { /* Lochung wie bei einer Keycard */
  content: ""; position: absolute; top: 22px; right: 26px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--snow); box-shadow: inset 0 2px 3px rgba(0,0,0,.25);
}
.ticket-label { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0 0 4px; }
.ticket h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 48px 14px 0; }
.ticket-total { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-top: 2px dashed rgba(20,32,51,.35); padding-top: 14px; margin-top: 6px; }
.ticket-total strong { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; }
.ticket-total span { font-weight: 600; }
.lines { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: .97rem; }
.lines td { padding: 8px 0; border-bottom: 1px solid rgba(20,32,51,.15); vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 12px; }
.lines .detail { display: block; font-size: .84rem; color: rgba(20,32,51,.75); }
.tag-est { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: rgba(20,32,51,.12); margin-left: 6px; vertical-align: 2px; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ticket-actions .btn { background: var(--ink); }
.ticket-actions .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.side-block { background: #fff; border: 1px solid var(--ice); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.side-block h3 { margin-bottom: .6em; }
.verdict { font-size: 1.05rem; }
.meter { position: relative; height: 12px; background: var(--ice); border-radius: 6px; margin: 12px 0 6px; overflow: hidden; }
.meter span { position: absolute; inset: 0 auto 0 0; background: var(--night); border-radius: 6px; }
.meter i { position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--red); }
.meter-legend { display: flex; justify-content: space-between; font-size: .84rem; color: var(--ink-2); }
.alt-list { list-style: none; margin: 0; padding: 0; }
.alt-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ice); }
.alt-list li:last-child { border-bottom: 0; }
.alt-list b { white-space: nowrap; }
.warnings { font-size: .88rem; color: var(--ink-2); padding-left: 18px; margin: 0; }
.warnings li { margin-bottom: 6px; }

/* ---------- Erklärung ---------- */
.explain { max-width: 1160px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 48px) 0; }
.explain-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.explain p { max-width: 62ch; color: var(--ink-2); }

/* ---------- Seitenkopf allgemein ---------- */
.page-head { max-width: 1160px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px) 8px; }
.page-head .lead { max-width: 66ch; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.notice { background: #fff6d6; border-left: 4px solid var(--ticket-deep); padding: 12px 14px; border-radius: 6px; }

/* ---------- Pistenbalken ---------- */
.piste-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin: 10px 0 6px; background: var(--ice); }
.pb-blue { background: var(--blue); }
.pb-red { background: var(--red); }
.pb-black { background: var(--black); }
.piste-legend { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-2); margin: 0 0 10px; flex-wrap: wrap; }
.piste-legend .dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.piste-legend .dot:first-child { margin-left: 0; }

/* ---------- Gebietsübersicht ---------- */
.area-grid { list-style: none; max-width: 1160px; margin: 24px auto 0; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.area-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--ice); border-radius: 12px; padding: 18px 18px 16px; color: var(--ink); text-decoration: none; position: relative; }
.area-card a:hover { border-color: var(--night); }
.ac-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.ac-place { color: var(--ink-2); font-size: .9rem; }
.ac-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; font-size: .9rem; color: var(--ink-2); }
.ac-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.ac-pass { align-self: flex-start; margin-top: 10px; background: var(--ticket); font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }

/* ---------- Gebietsseite ---------- */
.area-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; background: var(--night) var(--bg) center 65% / cover no-repeat; isolation: isolate; }
.area-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,22,44,.85), rgba(10,22,44,.15) 70%), linear-gradient(180deg, rgba(10,22,44,.55), rgba(10,22,44,0) 30%); }
.area-hero-inner { width: 100%; max-width: 1160px; margin: 0 auto; padding: 120px clamp(16px, 4vw, 48px) 36px; }
.area-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0; }
.area-place { font-weight: 600; color: #dbe5f3; margin-bottom: 6px; }
.badge-pass { display: inline-block; margin: 14px 0 0; background: var(--ticket); color: var(--ink); font-weight: 700; padding: 6px 12px; border-radius: 6px; }
.area-layout { max-width: 1160px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 48px) 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.area-main .lead { color: var(--ink); max-width: 62ch; margin-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 8px; border: 1px solid var(--ice); border-radius: 12px; background: #fff; overflow: hidden; }
.facts div { padding: 14px 16px; border-right: 1px solid var(--ice); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: .82rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.chips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--ice); border-radius: 999px; padding: 5px 12px; font-size: .9rem; font-weight: 600; }
.price-box { background: var(--ticket); border-radius: 14px; padding: 22px; margin-bottom: 24px; }
.price-box h2 { font-size: 1.05rem; margin-bottom: 6px; }
.big-price { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1.05; }
.price-sub { display: block; font-weight: 600; margin-bottom: 10px; }
.price-box .small { color: rgba(20,32,51,.8); }
.price-box .btn { width: 100%; }
.side-h { font-size: 1.15rem; }
.pass-card { background: #fff; border: 1px solid var(--ice); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.pass-card p { font-size: .92rem; color: var(--ink-2); }
.pass-card ul { margin: 0; padding-left: 18px; font-size: .95rem; }

/* ---------- Konto ---------- */
.account { max-width: 1160px; margin: 16px auto 0; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.account-user { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.panel { background: #fff; border: 1px solid var(--ice); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.3rem; }
.panel h2 + .small { margin-top: -6px; }
details.panel summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
details.panel[open] summary { margin-bottom: 14px; }
.fav-list { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.fav-list .check { margin-bottom: 6px; font-size: .95rem; }
.offers, .saved { list-style: none; margin: 0; padding: 0; }
.offers li { padding: 14px 0; border-bottom: 1px solid var(--ice); }
.offers li:last-child, .saved li:last-child { border-bottom: 0; }
.offers h3 { margin: 0 0 4px; }
.offers p { margin: 0 0 4px; color: var(--ink-2); }
.saved li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--ice); }
.saved .s-title { font-weight: 700; }
.saved .s-meta { font-size: .88rem; color: var(--ink-2); }
.saved .s-actions { display: flex; gap: 8px; flex: none; }
.saved .btn { padding: 9px 14px; font-size: .9rem; }
.account-actions { display: flex; justify-content: space-between; align-items: center; }
.link-danger { border: 0; background: none; color: var(--red); text-decoration: underline; cursor: pointer; font-weight: 600; }
.empty { color: var(--ink-2); }


/* ---------- Gebietsauswahl (Popup) ---------- */
.row-area { position: relative; }
.area-pick {
  width: 100%; min-height: 46px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 6px 36px 6px 12px; text-align: left; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23142033' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}
.area-pick:hover { border-color: var(--night); }
.area-pick:focus-visible, .area-pick[aria-expanded="true"] { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37,99,201,.18); }
.ap-name { font-weight: 700; line-height: 1.2; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.area-pick.is-empty .ap-name { font-weight: 500; color: var(--ink-2); }
.ap-meta { font-size: .8rem; color: var(--ink-2); line-height: 1.2; }
.ap-meta:empty { display: none; }
.area-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: min(400px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(5,15,35,.45); overflow: hidden;
}
.ap-search-wrap { padding: 10px; border-bottom: 1px solid var(--ice); background: var(--snow); }
.ap-search { width: 100%; min-height: 42px; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fff; }
.ap-search:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37,99,201,.18); }
.ap-list { list-style: none; margin: 0; padding: 4px 0 8px; max-height: min(360px, 52vh); overflow-y: auto; overscroll-behavior: contain; }
.ap-group { position: sticky; top: -4px; background: #fff; padding: 10px 14px 4px; font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.ap-list [role="option"] { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; cursor: pointer; align-items: baseline; }
.ap-list [role="option"]:hover, .ap-list [role="option"].is-active { background: var(--ice); }
.ap-list [role="option"][aria-selected="true"] .apo-name::after { content: " ✓"; color: var(--ok); }
.apo-name { font-weight: 600; }
.apo-meta { font-size: .8rem; color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.ap-empty { padding: 4px 14px 14px; margin: 0; color: var(--ink-2); }
.calc-hint { margin: 10px 2px 0; font-size: .88rem; color: var(--ink-2); }

/* ---------- Gebietsübersicht: Filter und Bundesländer ---------- */
.area-filter { display: grid; gap: 12px; margin-top: 18px; }
.area-search input { max-width: 460px; }
.state-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.state-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.state-chip:hover { border-color: var(--night); }
.state-chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.filter-count { margin: 0; min-height: 1.2em; }
.state-group { max-width: 1160px; margin: 28px auto 0; }
.state-h { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); font-size: 1.5rem; display: flex; align-items: baseline; gap: 12px; }
.state-h span { font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.state-group .area-grid { margin-top: 12px; }
.area-card[hidden], .state-group[hidden] { display: none !important; }
.ac-gap { display: block; height: 14px; }
.ac-price small { font-family: var(--font-body); font-weight: 600; font-size: .72rem; color: var(--ink-2); }
.ac-passes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ac-passes .ac-pass { margin-top: 0; }

/* ---------- Pass-Karten ---------- */
.ps-kind { margin: 0 0 2px; font-size: .78rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ps-steps { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.ps-steps li { display: grid; gap: 2px; font-size: .9rem; }
.ps-label { font-weight: 700; }
.badge-pass + .badge-pass { margin-left: 6px; }

/* ---------- Konto: Lieblingsgebiete nach Bundesland ---------- */
.fav-list { display: block; }
.fav-group { border-bottom: 1px solid var(--ice); }
.fav-group summary { cursor: pointer; padding: 10px 0; font-weight: 700; display: flex; justify-content: space-between; }
.fav-count { font-weight: 600; font-size: .85rem; color: var(--ok); }
.fav-items { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; padding-bottom: 8px; }


/* ---------- Detaillierte Abfrage: Abwechseln ---------- */
.be-own, .be-next { display: block; }
.persons-detail { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.persons-detail summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.persons-detail[open] summary { margin-bottom: 6px; }
.persons-detail > .small { margin: 0 0 10px; }
.rotate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rotate-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 10px; border-radius: 8px; background: var(--snow); border: 1px solid var(--ice); }
.rotate-list li.is-on { border-color: var(--ticket-deep); background: #fff9e4; }
.rotate-list li.is-off { opacity: .6; }
.rotate-list .check { margin: 0; }
.rot-share { display: inline-flex; align-items: center; gap: 6px; }
.rot-share input { width: 72px; min-height: 38px; padding: 6px 8px; text-align: right; font-weight: 700; }
.rot-days { min-width: 9.5em; }
.rotate-sum { margin: 8px 2px 0; font-size: .88rem; color: var(--ink-2); }
.rotate-sum.is-bad { color: var(--red); font-weight: 600; }


/* ---------- Erfahrungen & Fragen ---------- */
.btn-small { padding: 8px 14px; font-size: .9rem; min-height: 0; }
.community { max-width: 1160px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px) 8px; }
.cm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--ice); padding-top: 32px; }
.cm-head h2 { margin: 0; font-size: 1.7rem; }
.cm-summary { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.cm-avg { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--ink); }
.cm-stars { color: var(--ticket-deep); letter-spacing: 1px; font-size: 1.05rem; white-space: nowrap; }
.cm-stars span { color: var(--line); }
.cm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 20px; }
.cm-col-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cm-col-head h3 { margin: 0; font-size: 1.2rem; }
.cm-count { display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 999px; background: var(--ice); font-family: var(--font-body); font-size: .8rem; text-align: center; vertical-align: 2px; }
.cm-list, .cm-answers { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.cm-post { background: #fff; border: 1px solid var(--ice); border-radius: 12px; padding: 14px 16px; }
.cm-post.is-pending { border-style: dashed; background: var(--snow); }
.cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .9rem; }
.cm-meta time { color: var(--ink-2); }
.cm-badge { padding: 1px 8px; border-radius: 999px; background: #fff3c9; color: #6b5200; font-size: .78rem; font-weight: 700; }
.cm-text { margin-top: 6px; overflow-wrap: anywhere; }
.cm-text p { margin: 0 0 8px; }
.cm-text p:last-child { margin-bottom: 0; }
.cm-answers { margin-top: 12px; padding-left: 14px; border-left: 3px solid var(--ice); gap: 8px; }
.cm-answers .cm-post { background: var(--snow); padding: 10px 12px; }
.cm-actions { display: flex; gap: 14px; margin-top: 8px; }
.cm-link { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
.cm-reply { display: inline-block; margin-top: 10px; }
.cm-done { font-size: .88rem; color: var(--ink-2); }
.cm-empty { color: var(--ink-2); padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; }
.cm-compose { margin-top: 14px; }
.cm-form, .cm-report { background: #fff; border: 1.5px solid var(--night); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.cm-inline .cm-form, .cm-inline .cm-report { margin-top: 10px; border-width: 1px; }
.cm-form textarea { width: 100%; min-height: 110px; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; resize: vertical; }
.cm-form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37,99,201,.18); }
.cm-counter { margin: -4px 0 0; text-align: right; }
.cm-hint { margin: 0; }
.cm-form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cm-starpick { border: 0; padding: 0; margin: 0; }
.cm-starpick legend { font-weight: 600; margin-bottom: 4px; }
.cm-starrow { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.cm-starrow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cm-starrow label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; padding: 0 2px; }
.cm-starrow input:checked ~ label, .cm-starrow label:hover, .cm-starrow label:hover ~ label { color: var(--ticket-deep); }
.cm-starrow input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.cm-flash { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #e5f4ec; color: var(--ok); font-weight: 600; }
.cm-rules { margin-top: 20px; }
.ac-rating { display: block; margin-top: 8px; font-weight: 700; color: var(--ticket-deep); }
.ac-rating small { color: var(--ink-2); font-weight: 500; }
.status-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; vertical-align: 1px; }
.status-pill.is-pending { background: #fff3c9; color: #6b5200; }
.status-pill.is-published { background: #e5f4ec; color: var(--ok); }
.status-pill.is-rejected { background: #fbe6e4; color: var(--red); }

/* ---------- Moderation ---------- */
.admin { max-width: 1160px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 48px) 48px; }
.admin-login { max-width: 420px; display: grid; gap: 12px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admin-post { margin: 0; display: grid; gap: 8px; }
.admin-meta { font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.admin-context { margin: 0; color: var(--ink-2); }
.admin-reports { margin: 0; color: var(--red); font-weight: 600; font-size: .9rem; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-tools select { margin-left: 4px; padding: 4px 6px; border: 1.5px solid var(--line); border-radius: 6px; font: inherit; }
.admin section[data-panel] > .state-chips { margin-bottom: 12px; }
.admin-warnings { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.admin-warnings li { background: #fff6dc; border-left: 4px solid var(--ticket-deep); padding: 8px 12px; border-radius: 6px; }
.admin-warnings li.ok { background: #e6f4ec; border-color: var(--ok); }
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-tile { margin: 0; display: grid; gap: 2px; padding: 12px 14px; }
.admin-tile strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.admin-tile.is-warn { border-color: var(--ticket-deep); box-shadow: inset 4px 0 0 var(--ticket-deep); }
.admin-tile .up { color: var(--ok); } .admin-tile .down { color: var(--red); }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.admin-cols h2 { font-size: 1.15rem; margin: 0 0 10px; } .admin-cols h3 { font-size: 1rem; margin: 16px 0 6px; }
.admin-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; } .admin-h h2 { margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ice); vertical-align: top; }
.admin-table th { font-weight: 600; } .admin-table td:last-child { text-align: right; } .admin-table thead th { font-size: .8rem; color: var(--ink-2); }
.admin-plain { margin: 0; padding-left: 18px; } .admin .ok { color: var(--ok); font-weight: 600; }
.admin-chart { margin-bottom: 20px; } .admin-chart svg { width: 100%; height: auto; display: block; font-size: 11px; fill: var(--ink-2); }
.admin-chart .bar-views { fill: var(--ice); background: var(--ice); } .admin-chart .bar-visitors { fill: var(--night-2); background: var(--night-2); }
.admin-chart .axis { stroke: var(--line); }
.admin-chart .dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; vertical-align: -1px; }


/* ---------- Sprachwahl ---------- */
.lang-switch { display: inline-flex; margin-left: 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 6px 8px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: inherit; text-decoration: none; opacity: .75; }
.lang-switch a:hover { opacity: 1; background: rgba(255,255,255,.12); }
.lang-switch a[aria-current="true"] { opacity: 1; background: var(--ticket); color: var(--ink); }
.cm-lang { padding: 0 6px; border-radius: 4px; border: 1px solid var(--line); font-size: .72rem; font-weight: 700; color: var(--ink-2); }

@media (max-width: 480px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .cm-cols { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; align-items: start; padding-top: 92px; gap: 20px; }
  .hero-copy { max-width: 40ch; }
  .hero-copy h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .results-grid, .explain-inner, .area-layout, .account, .account-user { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { padding: 10px 16px; }
  .brand span { font-size: 1.1rem; }
  .site-nav a { padding: 6px 8px; font-size: .92rem; }
  .site-nav { flex-wrap: nowrap; gap: 2px; }
  .lang-switch { margin-left: 4px; }
  .lang-switch a { padding: 5px 6px; font-size: .72rem; }
  .site-nav .nav-rechner { display: none; }
  .brand-mark { width: 32px; height: 22px; }
  .hero-copy p { display: none; }
  .calc { padding: 14px; }
  .calc-head { display: none; }
  .calc-row { grid-template-columns: minmax(0, 1fr) 36px; }
  .row-amount { grid-column: 1; }
  .row-area { grid-column: 1 / -1; padding-top: 0; }
  .row-remove { grid-column: 2; grid-row: 1; margin-top: 0; width: 36px; height: 36px; }
  .options-grid { grid-template-columns: 1fr; }
  .person-list { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--ice); }
  .fav-items { grid-template-columns: 1fr; }
  .cm-head h2 { font-size: 1.4rem; }
  .area-pop { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; }
  .brand span { font-size: 1rem; }
  .site-header { gap: 8px; }
  .nav-account { padding: 6px 10px !important; }
  .ap-list { max-height: 55vh; }
  .ticket { padding: 22px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .calc-row.is-new { animation: none; }
}

/* ---------- Werbeplätze (Partnerlinks, als Werbung gekennzeichnet) ---------- */
.ad-box { background: #fff; border: 2px dashed rgba(20,32,51,.25); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.ad-box h2, .ad-box h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.ad-box .btn { width: 100%; margin-top: 6px; }
.ad-label { font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: rgba(20,32,51,.7); margin: 0; }
.ad-img { display: block; max-width: 100%; max-height: 120px; margin: 8px 0 4px; border-radius: 8px; }
.ad-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ad-links a { display: inline-block; padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.ad-links a:hover { border-color: var(--night); }
