/* Vento Cadela App – Gestaltung nach Markenhandbuch v1.5
   Schrift Arial, Anthrazit #352B28, Rot #B50B15, helle Karten #F2F0EF, Grund Weiß.
   Aufbau: dunkler Kopf mit roten Wellen, darunter helle Inhalte, unten feste Navigation. */

:root {
  --ant: #352B28;
  --red: #B50B15;
  --red-dark: #7E0A12;
  --card: #F2F0EF;
  --line: #E2DCD8;
  --bg: #FFFFFF;
  --outer: #E9E5E2;
  --muted: #6E625E;
  --muted-on-dark: #B8AFAB;
  --soft-on-dark: #D5CECA;
  --ok: #2E6A4F;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --radius: 14px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --tabbar-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ant);
  background: var(--outer);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

.app {
  max-width: 560px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(53, 43, 40, .08);
}
.view { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px); outline: none; }
.loading, .noscript { padding: 80px 24px; text-align: center; color: var(--muted); }

/* ---------- Kopfbereich ---------- */
.hero {
  position: relative;
  background: var(--ant);
  color: #FFFFFF;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gutter-r) 54px var(--gutter);
}
.hero .logo { width: 196px; height: auto; }
.hero .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.hero .emblem { width: 52px; height: 52px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.hero .eyebrow { color: var(--muted-on-dark); margin-top: 22px; }
.hero h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.15; text-wrap: balance; }
.hero .date { margin-top: 8px; font-style: italic; font-size: 15px; }
.hero .lead { margin: 8px 0 0; color: var(--soft-on-dark); font-size: 14px; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; display: block; }
.back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: inherit; text-decoration: none; font-size: 14px; font-weight: 700;
}
.back svg { width: 20px; height: 20px; }

.head-light { padding: calc(env(safe-area-inset-top, 0px) + 30px) var(--gutter-r) 10px var(--gutter); display: flex; justify-content: space-between; gap: 12px; }
.head-light h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.15; text-wrap: balance; }
.head-light p { margin: 8px 0 0; color: #4A3F3C; font-size: 14px; max-width: 46ch; }
.head-light .emblem { width: 48px; height: 48px; flex-shrink: 0; }

/* ---------- Inhalt ---------- */
.content { padding: 8px var(--gutter-r) 8px var(--gutter); display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.section-head .hint { font-size: 12px; color: var(--muted); }
.count { font-size: 12px; color: var(--muted); }
p.text { margin: 0; font-size: 14px; line-height: 1.55; color: #4A3F3C; }
p.intro { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 700; }

/* Filter */
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px var(--gutter-r) 4px var(--gutter); }
.pill {
  min-height: 38px; padding: 0 15px; border-radius: 19px; cursor: pointer;
  border: 1.5px solid #D9D3CF; background: #FFFFFF; color: var(--ant); font-weight: 700; font-size: 13px;
}
.pill[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #FFFFFF; }

/* Event-Liste */
.event {
  display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card);
  text-decoration: none; color: var(--ant); align-items: stretch;
}
.event .when {
  width: 74px; flex-shrink: 0; border-radius: 8px; background: var(--ant); color: #FFFFFF;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; text-align: center;
}
.event .when .m { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); font-weight: 700; }
.event .when .d { margin-top: 4px; font-size: 13px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.event .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.event .title { font-size: 16px; font-weight: 700; line-height: 1.2; }
.event .sub { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.chev { width: 18px; height: 18px; flex-shrink: 0; align-self: center; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.badge { display: inline-flex; align-self: flex-start; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 10px; margin-top: 4px; }
.badge.open { border: 1px solid var(--ant); background: #FFFFFF; color: var(--ant); }
.badge.full { background: var(--red); color: #FFFFFF; }
.badge.request { background: var(--ant); color: #FFFFFF; }
.badge.tba { background: #E2DCD8; color: #4A3F3C; }
.badge.planned { background: #E2DCD8; color: #4A3F3C; margin-top: 0; }

/* Faktenkarten */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--card); border-radius: 12px; padding: 12px; min-width: 0; }
.fact .k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.fact .v { margin-top: 6px; font-size: 14px; font-weight: 700; line-height: 1.3; }

.dark-card { background: var(--ant); color: #FFFFFF; border-radius: var(--radius); padding: 14px 16px; }
.dark-card .k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-dark); font-weight: 700; }
.dark-card p { margin: 6px 0 0; color: var(--soft-on-dark); font-size: 13.5px; line-height: 1.45; }
.ship { display: flex; gap: 12px; align-items: center; }
.ship img { width: 40px; height: 40px; flex-shrink: 0; }
.ship .n { margin-top: 4px; font-size: 14px; font-weight: 700; }
.ship .s { margin-top: 2px; font-size: 12.5px; color: var(--soft-on-dark); }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px;
  background: var(--red); color: #FFFFFF; text-decoration: none; font-size: 16px; font-weight: 700; border: none; cursor: pointer; width: 100%;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: #FFFFFF; color: var(--ant); border: 2px solid var(--ant); }
.btn.small { min-height: 44px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link-out { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--red); text-decoration: none; }
.link-out svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cta-bar { border-top: 1px solid #E7E2DE; padding: 14px var(--gutter-r) 4px var(--gutter); display: flex; flex-direction: column; gap: 8px; }
.cta-bar .note { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; }

/* Listen mit Symbol */
.list { background: var(--card); border-radius: var(--radius); padding: 4px 14px; }
.row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ant); }
.row:last-child { border-bottom: 0; }
.row .ico { width: 38px; height: 38px; border-radius: 19px; background: var(--ant); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.row .ico.red { background: var(--red); }
.row .ico svg, .feature .ico svg { width: 20px; height: 20px; fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row .t { font-size: 15px; font-weight: 700; }
.row .s { margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.row .grow { flex: 1; min-width: 0; }
.row .num { width: 36px; height: 36px; border-radius: 18px; background: var(--ant); color: #FFFFFF; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lock { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ver { font-size: 11px; color: var(--muted); }
.lock-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

/* Hervorgehobene Karte */
.feature { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); color: #FFFFFF; text-decoration: none; }
.feature.red { background: var(--red); }
.feature.dark { background: var(--ant); }
.feature .ico { width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature.red .ico { background: var(--ant); }
.feature.dark .ico { background: var(--red); }
.feature .ico svg { width: 24px; height: 24px; }
.feature .t { font-size: 16px; font-weight: 700; }
.feature .s { margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: #F2E4E4; }
.feature.dark .s { color: var(--soft-on-dark); }
.feature .grow { flex: 1; min-width: 0; }
.feature .chev { stroke: #FFFFFF; }

/* Hinweis Crew */
.crew-note { background: var(--ant); color: #FFFFFF; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.crew-note .h { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 700; }
.crew-note .h span { width: 36px; height: 36px; border-radius: 18px; background: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.crew-note .h svg { width: 18px; height: 18px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.crew-note p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--soft-on-dark); }

.quote { border: 1.5px solid #E2DCD8; border-radius: var(--radius); padding: 16px; }
.quote .b { margin-top: 8px; font-size: 15px; line-height: 1.45; font-weight: 700; }
.quote .s { margin-top: 4px; font-size: 13.5px; color: #4A3F3C; }

/* Wetter */
.wx { background: var(--ant); color: #FFFFFF; border-radius: var(--radius); overflow: hidden; }
.wx .h { padding: 14px 16px 10px; }
.wx .h .t { margin-top: 5px; font-size: 16px; font-weight: 700; }
.wx .h .s { margin-top: 3px; font-size: 12.5px; color: var(--soft-on-dark); }
.wx .body { padding: 0 16px 6px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--soft-on-dark); }
.wx .foot { padding: 10px 16px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #4A3F3C; margin-top: 10px; }
.wx .foot span { font-size: 11.5px; color: var(--muted-on-dark); }
.wx .foot a { color: #FFFFFF; }

.wind { background: var(--card); border-radius: 12px; overflow: hidden; }
.wind button {
  width: 100%; min-height: 64px; display: flex; gap: 12px; align-items: center; padding: 10px 12px;
  border: none; background: transparent; color: var(--ant); text-align: left; cursor: pointer;
}
.wind .dir { width: 44px; height: 44px; border-radius: 22px; background: var(--ant); color: #FFFFFF; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wind .n { font-size: 15px; font-weight: 700; display: block; }
.wind .sh { font-size: 12.5px; line-height: 1.35; color: var(--muted); display: block; margin-top: 2px; }
.wind .grow { flex: 1; min-width: 0; }
.wind .chev { transition: transform .2s; }
.wind button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.wind .more { padding: 0 14px 14px 68px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.45; }
.wind .more .eyebrow { font-size: 10px; letter-spacing: .16em; }

/* Formular */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; }
.field input {
  min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #D9D3CF;
  background: #FFFFFF; color: var(--ant); font: 16px var(--font); width: 100%;
}
.notice { background: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; }
.notice b { display: block; margin-bottom: 2px; }

/* Untere Navigation */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #FFFFFF; border-top: 1px solid #E7E2DE;
  padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px));
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700;
}
.tabbar a[aria-current="page"] { color: var(--red); }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.footer { padding: 18px var(--gutter-r) 8px var(--gutter); color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.footer .claim { letter-spacing: .18em; font-weight: 700; color: var(--ant); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Ergänzungen für die echte App ---------- */
.row .t, .row .s, .feature .t, .feature .s { display: block; }
.events { display: flex; flex-direction: column; gap: 10px; }
.badge.few { background: #FFFFFF; border: 1px solid var(--red); color: var(--red); }
p.text.small { font-size: 12.5px; color: var(--muted); }
p.text.empty { padding: 8px 2px; }
.hero .top .eyebrow { margin-top: 0; }
.hero .lead { max-width: 44ch; }

.footer .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer .links a { color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
.footer .ver { font-size: 11px; }

/* Buchungsleiste bleibt über der Navigation sichtbar */
.cta-bar.sticky {
  position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF; z-index: 5; padding-bottom: 12px; margin-top: 8px;
}

/* Wetter */
.eyebrow-dark { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-dark); font-weight: 700; }
.wx .body p { margin: 0; }
.wx .link-out { color: #FFFFFF; min-height: 36px; }
.wx-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--red); color: #FFFFFF; }
.wx-warn svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.btn.light { background: #FFFFFF; color: var(--ant); }
.wind .more[hidden] { display: none !important; }
.wind .more .eyebrow + div { margin-top: 3px; }

/* Packliste */
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress .bar { height: 8px; border-radius: 4px; background: var(--card); overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--red); transition: width .2s; }
.checks { border: 0; margin: 0; padding: 4px 14px 6px; background: var(--card); border-radius: var(--radius); }
.checks legend { float: left; width: 100%; padding: 12px 0 4px; }
.check { clear: both; display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14.5px; line-height: 1.35; }
.check:last-child { border-bottom: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--red); flex-shrink: 0; margin: 0; }
.check input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(110, 98, 94, .5); }

/* Logbuch */
.form-card { background: var(--card); border-radius: var(--radius); }
.form-card summary {
  list-style: none; cursor: pointer; min-height: 54px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; font-weight: 700; font-size: 15px;
}
.form-card summary::-webkit-details-marker { display: none; }
.form-card summary svg { width: 20px; height: 20px; color: var(--red); }
.form-card[open] summary { border-bottom: 1px solid var(--line); }
.form-card form { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field select, .field textarea {
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid #D9D3CF;
  background: #FFFFFF; color: var(--ant); font: 16px var(--font); width: 100%;
}
.field select { min-height: 52px; }
.field textarea { resize: vertical; line-height: 1.4; }
.field input[type="date"] { min-width: 0; }
.form-msg { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--ok); font-weight: 700; }
.entries { display: flex; flex-direction: column; gap: 10px; }
.entry { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.entry .eh { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.entry .t { font-weight: 700; font-size: 15px; }
.entry .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.entry .eyebrow { font-size: 10px; letter-spacing: .16em; }
.entry .pre { white-space: pre-wrap; margin-top: 2px; line-height: 1.45; }
.icon-btn {
  min-width: 44px; min-height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; flex-shrink: 0; margin: -8px -8px 0 0;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.confirm { color: var(--red); font-weight: 700; font-size: 13px; padding: 0 8px; }

/* Login (dunkle Seite) */
body.on-dark .app { background: var(--ant); }
.dark-page { min-height: calc(100dvh - var(--tabbar-h)); background: var(--ant); color: #FFFFFF; display: flex; flex-direction: column; }
.dp-top { padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter-r) 0 var(--gutter); }
.dp-main { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 18px max(24px, env(safe-area-inset-right, 0px)) 24px max(24px, env(safe-area-inset-left, 0px)); }
.dp-emblem { width: 84px; height: 84px; }
.eyebrow.on-dark { color: var(--muted-on-dark); }
.dark-page h1 { margin: 8px 0 0; font-size: 30px; line-height: 1.15; }
.dp-lead { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--soft-on-dark); max-width: 42ch; }
.dp-form { display: flex; flex-direction: column; gap: 10px; }
.dp-form label { font-size: 13px; font-weight: 700; }
.dp-form input {
  min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #6E625E;
  background: #2A221F; color: #FFFFFF; font: 16px var(--font); width: 100%;
}
.dp-form input::placeholder { color: #8F8480; }
.dp-msg { margin: 0; min-height: 1.2em; font-size: 13px; color: #FFD3D5; font-weight: 700; }
.dp-sent { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: #2A221F; border: 1.5px solid #6E625E; }
.dp-sent .h { display: flex; gap: 10px; align-items: center; font-size: 16px; font-weight: 700; }
.dp-sent .h svg { width: 22px; height: 22px; color: #FFFFFF; }
.dp-sent p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--soft-on-dark); }
.dp-small { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted-on-dark); }
.dp-small a { color: #FFFFFF; font-weight: 700; }
.dp-foot { padding: 0 max(24px, env(safe-area-inset-right, 0px)) 24px max(24px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 12px; }
.dp-foot img { width: 170px; height: auto; }
.dp-foot .claim { font-size: 11px; letter-spacing: .2em; color: var(--muted-on-dark); font-weight: 700; }
