/* Alpenmorgen: light, alpine theme. Loaded after app.css so existing layouts remain intact. */
:root {
  color-scheme: light;
  --morning-ink: #183247;
  --morning-muted: #4f6573;
  --morning-border: #d8e5e6;
  --morning-paper: #fff;
  --morning-green: #1d6848;
  --morning-red: #a13e4c;
  --morning-blue: #255b79;
  --morning-gold: #895411;
  color: var(--morning-ink);
  background: #f5f8f7;
}
body {
  color: var(--morning-ink);
  background: radial-gradient(circle at 80% -10%, #d9ebec 0, transparent 32rem),
    linear-gradient(180deg, #f8faf8 0, #edf3f2 100%);
}
a { color: var(--morning-blue); }
button { background: #e8f0f1; color: var(--morning-ink); font-weight: 650; }
button:hover { filter: brightness(.96); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #267859;
  outline-offset: 2px;
}
button:disabled { opacity: .56; }
input, select, textarea {
  background: var(--morning-paper);
  color: var(--morning-ink);
  border: 1px solid #a8bcc2;
}
input::placeholder, textarea::placeholder { color: #617582; }
label { color: #324d5c; font-weight: 650; }
header {
  background: #ffffffd9;
  border-bottom-color: #d4e2e3;
  backdrop-filter: blur(14px);
}
.brand strong { color: var(--morning-ink); }
.brand small { color: #426a77; }
.season-pill { border-color: #bdced2; background: #edf4f4; color: #30505e; }
.text-button, .link { color: #185c56; font-weight: 750; }
main { max-width: 1080px; }
.card {
  background: var(--morning-paper);
  border-color: var(--morning-border);
  box-shadow: 0 10px 30px #2440520c;
  color: var(--morning-ink);
}
.card h2, .card h3 { color: #19384d; }
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: #cfdddc;
  color: var(--morning-ink);
  background: #eef5f2;
  box-shadow: 0 16px 38px #24405216;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #f8faf6 0%, #f8faf6ef 43%, #f8faf684 75%, #f8faf62b 100%);
}
.eyebrow { color: #23674d; }
.hero h1, .page-head h1 { color: #17384e; }
.hero h1 em { color: #236d4b; }
.hero p:not(.eyebrow), .page-head p:not(.eyebrow) { color: #3e5867; }
.hero-money { border-top-color: #cadbd7; }
.hero-money small { color: var(--morning-gold); }
.hero-money strong { color: #815013; }
.hero-money span { color: var(--morning-muted); }
.tiny, .ranking-description, .compare-person>small { color: var(--morning-muted); }
.date { color: #17384e; }
.chips span { background: #e8eef0; color: #294355; }
.chips .green { background: #dcefe4; color: #17593c; }
.chips .red { background: #f7e4e5; color: #8c3543; }
.choice { background: #f4f7f7; border: 1px solid #b8cbce; color: #254457; }
.choice.yes.selected, .attendance .yes { background: var(--morning-green); color: #fff; border-color: var(--morning-green); }
.choice.no.selected, .attendance .no { background: var(--morning-red); color: #fff; border-color: var(--morning-red); }
.choice.open.selected { background: #376e86; color: #fff; border-color: #376e86; }
.secondary { background: #e4f0f3; border-color: #a3c9d0; color: #1b5268; }
.primary { background: var(--morning-green); color: #fff; }
.danger { background: var(--morning-red); color: #fff; }
.countdown { color: #165d45; }
.ice { background: #f1f9fb; border-color: #bddde5; }
.weather-place { border-top-color: #cce3e7; }
.weather-place-title small, .weather-row small { color: #426276; }
.weather-place-title strong { color: #193b4b; }
.weather-main { color: #225f78; }
.wx-good { color: #155638; border-color: #a9d2b8; background: #e3f2e9; }
.wx-watch { color: #76500e; border-color: #e0ca8d; background: #fff5db; }
.wx-bad { color: #913340; border-color: #deb6bb; background: #fbebec; }
.wx-unknown { color: #485d69; border-color: #c9d6d9; background: #eef3f4; }
.wx-message { color: #805616; }
.weather-risk.low { border-color: #9dc7af; background: #f6fbf7; }
.weather-risk.watch { border-color: #dcc07b; background: #fffaf0; }
.weather-risk.critical { border-color: #dcaab0; background: #fff6f6; }
.weather-risk.unknown { border-color: #bbcbd0; }
.rank-list>div, .line, .person, .attendance, .award, .compare-person { border-top-color: #dfe8e8; }
.quote { color: #4f6975; }
.badge { background: #e7eff0; color: #365363; }
.badge.closed { background: #d9eee1; color: #185d3e; }
.badge.cancelled { background: #e0e4e6; color: #4b5a60; }
.event-head small, .event-head span, .person>span { color: #4b6574; }
.details { border-top-color: #dbe6e6; }
.admin-box { border-top-color: #c8d9dc; }
.event.cancelled { background: #edf0f0; border-color: #d1d9da; }
.event.cancelled .event-head h2 { color: #465a63; }
.event.cancelled .event-head small, .event.cancelled .event-head span,
.event.cancelled .person>strong, .event.cancelled .person>span,
.event-excluded { color: #4f626a; }
.event.cancelled .badge.cancelled { background: #d7dddf; color: #40535a; }
.reactivation summary, details>summary { color: #1b5d69; }
.cash-total, .award span { color: var(--morning-gold); }
.cash-total small { color: var(--morning-muted); }
.bars { border-bottom-color: #afc3c6; }
.bars div { background: linear-gradient(#d7a54e, #925d20); }
.cash-bar { fill: #a76c24; }
.bottom { background: #fffffff0; border-top-color: #cfdddf; box-shadow: 0 -6px 24px #24405212; }
.bottom button { color: #516b79; }
.bottom button.active { color: #165c43; background: #e4f2e9; }
.login-wrap { background: #fff; border: 1px solid var(--morning-border); border-radius: 26px; box-shadow: 0 22px 60px #18384c19; }
.login-wrap h1, .credentials-wrap h1 { color: #17384e; }
.login-wrap p { color: var(--morning-muted); }
.toast { background: #1d6848; }
.toast.error { background: #a13e4c; }
.restaurant-link { background: var(--morning-green); color: #fff; }
.restaurant-link.outline { background: #eff6f5; border-color: #a8c5c4; color: #195d57; }
.start-password { color: #765013; }
.history-table th, .history-table td { border-color: #cadadd; }
.history-table th { background: #f2f7f7; color: #244c60; }
.history-cell.unknown { border-color: #b25966; }
.history-legend-item { color: #2c485a; }
.history-grid { stroke: #dce7e9; }
.history-axis { fill: #46606d; }
.history-dot { stroke: #fff; stroke-width: 1.5; }
.history-line.history-burki { stroke: #96570d; }
.history-dot.history-burki, .history-swatch.history-burki { fill: #96570d; background: #96570d; }
.history-line.history-kessi { stroke: #176d91; }
.history-dot.history-kessi, .history-swatch.history-kessi { fill: #176d91; background: #176d91; }
.history-line.history-achim { stroke: #287244; }
.history-dot.history-achim, .history-swatch.history-achim { fill: #287244; background: #287244; }
.history-line.history-baumi { stroke: #a53669; }
.history-dot.history-baumi, .history-swatch.history-baumi { fill: #a53669; background: #a53669; }
.history-line.history-martin { stroke: #6550a8; }
.history-dot.history-martin, .history-swatch.history-martin { fill: #6550a8; background: #6550a8; }
.history-data summary { color: #1c5d6b; }
.compare-progress { background: #e6efef; }
.compare-progress::-webkit-progress-bar { background: #e6efef; }
.compare-progress.current::-webkit-progress-value, .legend-dot.current { background: #1d6848; }
.compare-progress.prior::-webkit-progress-value, .legend-dot.prior { background: #2f7794; }
.compare-progress.current::-moz-progress-bar { background: #1d6848; }
.compare-progress.prior::-moz-progress-bar { background: #2f7794; }
.install-card { border-color: #9dc9bf; background: #f5fbf8; }
@media (min-width: 760px) {
  .bottom { box-shadow: none; border-bottom: 1px solid #cfdddf; }
  .bottom button.active { border-radius: 12px; }
}
@media (max-width: 480px) {
  .hero { background-position: 60% bottom; }
  .hero::before { background: linear-gradient(90deg, #f8faf6 0%, #f8faf6ed 64%, #f8faf6b0 100%); }
  header { padding-inline: 12px; }
  .brand { gap: 7px; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: .95rem; }
  .brand small { font-size: .5rem; }
  .header-right { gap: 3px; }
  .season-pill { padding: 6px 7px; font-size: .68rem; }
  .header-right .text-button { padding: 6px; font-size: .77rem; }
  .weather-place-title { align-items: flex-start; flex-direction: column; gap: 3px; }
}
/* Dashboard composition following the approved Alpenmorgen concept. */
.hero {
  min-height: 210px;
  padding: 27px 26px;
  margin-bottom: 12px;
  background: #e8f2f3 url('/assets/alpenmorgen-panorama.webp') center center / cover no-repeat;
}
.hero::before { background: linear-gradient(90deg, #f8faf5f5 0%, #f8faf5d9 34%, #f8faf537 72%, #f8faf508 100%); }
.hero h1 { font-size: clamp(1.75rem, 5vw, 3.1rem); margin-bottom: 9px; }
.hero p:not(.eyebrow) { max-width: 24rem; color: #28495d; font-weight: 600; }
.home-cash {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  margin: 0 0 16px;
  padding: 15px 20px;
  text-align: left;
  border: 1px solid #edcb93;
  border-radius: 18px;
  color: #233b4c;
  background: linear-gradient(115deg, #ffeed0, #ffe0a8);
  box-shadow: 0 8px 22px #8f60231c;
}
.cash-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: #e9b75c; color: #59380b; font-size: 1.6rem; font-weight: 850; }
.cash-copy { display: flex; flex: 1; flex-direction: column; line-height: 1.15; }
.cash-copy small { color: #684d27; font-size: .7rem; letter-spacing: .04em; }
.cash-copy strong { color: #153449; font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.cash-arrow { color: #745123; font-size: 2rem; line-height: 1; }
.tour-card h2::before { content: '▣'; margin-right: 8px; color: #23617b; }
.tour-intro { display: grid; grid-template-columns: 88px 1fr; gap: 13px; align-items: center; margin: -2px 0 14px; }
.tour-intro .tour-thumb { display: block; width: 88px; height: 78px; border-radius: 12px; background: #d7e8ec url('/assets/alpenmorgen-panorama.webp') center / cover; }
.tour-intro strong { display: block; color: #163c53; font-size: 1rem; }
.tour-intro .date { margin: 5px 0; font-size: .85rem; line-height: 1.3; }
.tour-intro p:last-child { margin: 4px 0 0; font-size: .78rem; color: #486272; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 16px; border-radius: 12px; background: #e6f2f8; overflow: hidden; }
.countdown-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 67px; padding: 7px 3px; text-align: center; border-right: 1px solid #c7dfe9; }
.countdown-cell:last-child { border-right: none; }
.countdown-cell b { color: #153d58; font-size: clamp(1.12rem, 4vw, 1.55rem); font-variant-numeric: tabular-nums; }
.countdown-cell small { color: #3d6173; font-size: .65rem; }
.tour-card h3 { margin-top: 14px; }
.tour-card .choices { margin-top: 11px; }
.current-weather-card h2::before { content: '❄'; margin-right: 8px; color: #287198; }
.weather-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.weather-tile { display: flex; min-width: 0; min-height: 121px; flex-direction: column; gap: 5px; padding: 11px 8px; border: 1px solid #c8e2ed; border-radius: 12px; background: #e4f3fb; }
.weather-tile strong { font-size: .77rem; line-height: 1.2; overflow-wrap: anywhere; }
.weather-tile-temp { color: #154b6d; font-size: clamp(1.1rem, 4vw, 1.5rem); font-weight: 850; font-variant-numeric: tabular-nums; }
.weather-tile-snow { color: #275e7c; font-size: .85rem; font-weight: 750; white-space: nowrap; }
.weather-tile small { color: #416477; font-size: .66rem; line-height: 1.2; }
.weather-tile .temp-bad, .weather-tile .snow-bad { color: #9b3441; }
.weather-tile .temp-watch, .weather-tile .snow-watch { color: #78530f; }
.weather-tile .snow-good { color: #166545; }
.weather-details { margin-top: 12px; border-top: 1px solid #c7e0e8; }
.weather-details summary { padding-block: 11px; font-size: .8rem; }
.weather-details .weather-place:last-child { padding-bottom: 0; }
.history-preview-card h2::before { content: '♧'; margin-right: 8px; color: #286b65; }
.history-preview { display: block; width: 100%; max-height: 240px; margin: 6px 0 0; }
.history-preview .history-line { stroke-width: 2.7; }
.history-preview-card .history-legend { margin: 0 0 5px; gap: 7px 11px; }
.history-preview-card .history-legend-item { font-size: .7rem; }
.history-preview-card .history-swatch { width: 9px; height: 9px; }
@media (max-width: 480px) {
  .hero { min-height: 180px; padding: 20px 21px; background-position: 53% center; }
  .hero::before { background: linear-gradient(90deg, #f8faf5f6 0%, #f8faf5cf 64%, #f8faf54a 100%); }
  .hero h1 { font-size: 1.8rem; }
  .hero p:not(.eyebrow) { max-width: 15rem; font-size: .79rem; }
  .home-cash { min-height: 72px; }
  .weather-tile { padding-inline: 6px; }
  .weather-tile strong { font-size: .7rem; }
}

.chips .holiday-chip{background:#e0f1f3;color:#135364}.choice.holiday.selected,.attendance .holiday{background:#267c91;color:#fff}.restaurant-indicator.unknown{background:#e6eef1;color:#3c6471}.restaurant-indicator.open{background:#d9ede2;color:#135e3d}.restaurant-indicator.closed{background:#f4dfe1;color:#9b3443}.history-legend-item{color:#294e5b;border-color:#c9dddf}.history-legend-item.is-off{color:#6e8790}
.admin-only{background:#fff2d8;border-color:#d7a54e;color:#765013}.admin-note{color:#765d32}.admin-card{border-color:#ddbe80;background:#fffcf5}.achievement-rule{background:#f7faf9;border-color:#d3e1e1}.achievement-symbol{background:#fff2d8}.achievement-rule strong{color:#65470f}.achievement-rule p{color:#4c6572}
.person-summary strong small{color:#267086}.plan-status{background:#e8eff1;color:#496673}.plan-status.yes{background:#dcefe5;color:#17613f}.plan-status.no{background:#f4e0e2;color:#983846}.plan-status.holiday{background:#e0f1f3;color:#135364}.person-reason,.actual-status{color:#5d7480}
.hero .hero-rules p{background:rgba(255,255,255,.82);color:#254457;border:1px solid rgba(255,255,255,.72)}
.livecam{border-color:#d3e1e1;background:#f7faf9}.livecam-head small,.livecam-fallback{color:#5d7480}.livecam-head a,.livecam-fallback a{color:#176b7e}.livecam iframe{background:#e7eeee}
