/* =========================================================================
   Zeitrechner – Arbeitszeit OS
   Light redesign (ported from Claude Design prototype Zeitrechner.dc.html)
   ========================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: #fafafb; }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: #1b1e2b;
  -webkit-font-smoothing: antialiased;
}

@keyframes zr-drift {
  0%   { transform: translate(-50%, -50%) translate(-4%, -3%) scale(1); }
  50%  { transform: translate(-50%, -50%) translate(5%, 4%) scale(1.18); }
  100% { transform: translate(-50%, -50%) translate(-4%, -3%) scale(1); }
}
@keyframes zr-drift2 {
  0%   { transform: translate(-50%, -50%) translate(4%, 3%) scale(1.1); }
  50%  { transform: translate(-50%, -50%) translate(-5%, -5%) scale(.9); }
  100% { transform: translate(-50%, -50%) translate(4%, 3%) scale(1.1); }
}

input[type="time"]::-webkit-calendar-picker-indicator { opacity: .4; cursor: pointer; }
input[type="time"], input[type="number"] { outline: none; }
input[type="number"]::-webkit-inner-spin-button { opacity: .35; }

/* =========================================================================
   App shell
   ========================================================================= */
#zr-app {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #fafafb;
  color: #1b1e2b;

  --accent: #f0991f;
  --accent-deep: #d97b06;
  --accent2: #2cb9e8;
  --on-accent: #ffffff;
  --wash1: rgba(255,214,130,.55);
  --wash2: rgba(130,206,240,.4);
  --glow: rgba(150,160,200,.10);
  --result-color: #c6cad6;
  --result-shadow: none;
  --kicker-color: #b4b8c2;
  --prog-accent: #d97b06;
  --prog-pct: 0%;
  --prog-grad: transparent;
  --prog-glow: none;
  --prog-marker-color: #f0991f;
  --prog-marker-glow: rgba(20,22,34,.2);
  --prog-soll-pct: 0%;
  --season-pill-bg: #f0991f1a;
  --season-pill-border: #f0991f33;
  --season-dot-glow: #f0991faa;
  --logo-shadow: #f0991faa;
  --now-bg: #f0991f1f;
  --tab-active-shadow: #f0991f99;
  --primary-shadow: #f0991fcc;
}

/* ambient washes / glow / dot grid */
.zr-wash, .zr-glow, .zr-dotgrid { position: absolute; pointer-events: none; }
.zr-wash1 {
  top: 6%; left: 16%; width: 560px; height: 560px;
  transform: translate(-50%, -50%); border-radius: 50%; filter: blur(100px);
  animation: zr-drift2 24s ease-in-out infinite;
  background: radial-gradient(circle, var(--wash1) 0%, rgba(250,250,251,0) 70%);
}
.zr-wash2 {
  bottom: 0%; right: 6%; width: 620px; height: 620px;
  transform: translate(-50%, -50%); border-radius: 50%; filter: blur(100px);
  animation: zr-drift 26s ease-in-out infinite;
  background: radial-gradient(circle, var(--wash2) 0%, rgba(250,250,251,0) 70%);
}
.zr-glow {
  top: 48%; left: 64%; width: 880px; height: 880px; border-radius: 50%;
  filter: blur(90px); transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow) 0%, rgba(250,250,251,0) 68%);
  transition: background .5s;
}
.zr-dotgrid {
  inset: 0;
  background-image: radial-gradient(rgba(20,22,34,.045) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 25%, transparent 78%);
}

.zr-stage { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }

/* =========================================================================
   Header
   ========================================================================= */
.zr-header {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 44px;
}
.zr-brand { display: flex; align-items: center; gap: 12px; }
.zr-logo {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--accent), var(--accent2));
  box-shadow: 0 4px 14px -4px var(--logo-shadow);
}
.zr-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.zr-brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.zr-brand-sub { font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #9a9eaa; }

.zr-header-right { display: flex; align-items: center; gap: 10px; }
.zr-season-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px;
  background: var(--season-pill-bg); border: 1px solid var(--season-pill-border);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent-deep);
}
.zr-season-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--season-dot-glow); }
.zr-clock {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: 100px;
  background: #ffffff; border: 1px solid rgba(20,22,34,.08);
  box-shadow: 0 1px 2px rgba(20,22,34,.04);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #5a5f6b;
}

/* =========================================================================
   Main grid
   ========================================================================= */
.zr-main {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 44px 56px;
}
.zr-grid {
  width: 100%; max-width: 1100px;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center;
}

/* ---- hero result ---- */
.zr-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 100px;
  background: #ffffff; border: 1px solid rgba(20,22,34,.08);
  box-shadow: 0 1px 2px rgba(20,22,34,.04);
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--kicker-color); margin-bottom: 28px;
}
.zr-kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--kicker-color); }
.zr-result {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: clamp(60px, 9.8vw, 124px); line-height: .9; letter-spacing: -0.045em;
  color: var(--result-color); text-shadow: var(--result-shadow);
  transition: color .35s, text-shadow .35s;
}
.zr-result-detail { margin: 24px 0 0; max-width: 440px; font-size: 15px; line-height: 1.6; color: #71757f; }
.zr-warn {
  display: none; align-items: flex-start; gap: 9px; margin: 16px 0 0; padding: 12px 15px;
  max-width: 440px; border-radius: 13px;
  background: #ffffff; border: 1px solid rgba(226,58,87,.35);
  box-shadow: 0 1px 2px rgba(20,22,34,.04);
  font-size: 13px; line-height: 1.5; font-weight: 500; color: #b42246;
}
.zr-warn.is-shown { display: flex; }
.zr-warn svg { flex: 0 0 auto; margin-top: 1px; }

.zr-progress { margin-top: 34px; max-width: 480px; display: none; }
.zr-progress.is-shown { display: block; }
.zr-progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #71757f; margin-bottom: 12px;
}
.zr-progress-head .zr-prog-right { color: var(--prog-accent); font-weight: 700; }
.zr-track { position: relative; height: 11px; border-radius: 100px; background: #ececf0; }
.zr-fill {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 100px;
  width: var(--prog-pct); background: var(--prog-grad); box-shadow: var(--prog-glow);
  transition: width .6s cubic-bezier(.22,1,.36,1), background .35s;
}
.zr-marker {
  position: absolute; top: 50%; left: var(--prog-pct);
  width: 15px; height: 15px; border-radius: 50%; background: var(--prog-marker-color);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px #fafafb, 0 2px 9px var(--prog-marker-glow);
  transition: left .6s cubic-bezier(.22,1,.36,1), background .35s;
}
.zr-soll { position: absolute; top: -5px; bottom: -5px; left: var(--prog-soll-pct); width: 0; border-left: 2px dashed rgba(20,22,34,.22); display: none; }
#zr-app.zr-show-soll .zr-soll { display: block; }
.zr-soll-label {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  font-size: 9px; letter-spacing: .16em; font-weight: 600; color: #a7abb6; white-space: nowrap;
}

.zr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.zr-chip {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 16px; border-radius: 13px;
  background: #ffffff; border: 1px solid rgba(20,22,34,.07); box-shadow: 0 1px 2px rgba(20,22,34,.03);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.zr-chip:hover { transform: translateY(-2px); border-color: rgba(20,22,34,.14); box-shadow: 0 6px 18px -8px rgba(20,22,34,.2); }
.zr-chip-label { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a7abb6; }
.zr-chip-value { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 500; color: #33373f; }

/* ---- control panel ---- */
.zr-panel {
  position: relative; background: #ffffff; border: 1px solid rgba(20,22,34,.07);
  border-radius: 26px; padding: 25px;
  box-shadow: 0 2px 4px rgba(20,22,34,.04), 0 30px 70px -34px rgba(20,22,34,.28);
}
.zr-hairline {
  position: absolute; top: 0; left: 24px; right: 24px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.zr-modes { display: flex; gap: 5px; padding: 5px; background: #f1f2f5; border-radius: 14px; margin-bottom: 24px; }
.zr-tab {
  flex: 1; height: 44px; border: none; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: transparent; color: #9a9eaa; transition: all .18s;
}
.zr-tab:hover { filter: brightness(1.04); }
#zr-app[data-mode="overtime"] #zr-tab-overtime,
#zr-app[data-mode="departure"] #zr-tab-departure {
  background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -6px var(--tab-active-shadow);
}

.zr-field-label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #9a9eaa; margin-bottom: 9px;
}
.zr-field {
  display: flex; align-items: center; gap: 13px; height: 64px; padding: 0 18px; margin-bottom: 16px;
  background: #f6f7f9; border: 1px solid rgba(20,22,34,.09); border-radius: 15px;
  transition: border-color .2s, background .2s;
}
.zr-field:hover { border-color: rgba(20,22,34,.2); background: #f1f2f5; }
.zr-field svg { flex: 0 0 auto; }
.zr-timeinput { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 1px; }
.zr-th, .zr-tm {
  width: 2.1ch; min-width: 0; background: none; border: none; padding: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 27px; font-weight: 500; letter-spacing: .02em; color: #1b1e2b;
}
.zr-th { text-align: right; }
.zr-tm { text-align: left; }
.zr-th::placeholder, .zr-tm::placeholder { color: #c0c4cf; }
.zr-colon { font-family: 'JetBrains Mono', monospace; font-size: 27px; font-weight: 500; color: #9a9eaa; padding: 0 1px; }
.zr-arrival-arrow { stroke: var(--accent); }
.zr-now {
  flex: 0 0 auto; padding: 8px 13px; border: none; border-radius: 9px;
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: var(--now-bg); color: var(--accent-deep); transition: filter .15s;
}
.zr-now:hover { filter: brightness(.95); }

/* departure field only relevant in Saldo mode */
#zr-app[data-mode="departure"] #zr-departure-block { display: none; }

.zr-actions { display: flex; gap: 10px; margin-bottom: 4px; }
.zr-primary {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; border: none; border-radius: 13px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 22px -8px var(--primary-shadow); transition: all .15s;
}
.zr-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.zr-iconbtn {
  flex: 0 0 auto; width: 52px; display: flex; align-items: center; justify-content: center;
  background: #f1f2f5; border: 1px solid rgba(20,22,34,.08); border-radius: 13px;
  cursor: pointer; color: #5a5f6b; transition: all .15s;
}
.zr-iconbtn:hover { background: #e9eaef; color: #1b1e2b; }
.zr-iconbtn { gap: 9px; font-family: inherit; font-size: 14px; font-weight: 600; }
.zr-reset-label { display: none; }
/* Feierabend mode: result shows live, so drop the calc button and turn the
   reset button into a full-width labelled action */
#zr-app[data-mode="departure"] #zr-primary { display: none; }
#zr-app[data-mode="departure"] #zr-reset { flex: 1; width: auto; }
#zr-app[data-mode="departure"] .zr-reset-label { display: inline; }
.zr-hint { font-size: 12px; color: #e23a57; margin: 2px 2px 8px; font-weight: 500; display: none; }
.zr-hint.is-shown { display: block; }

.zr-hotkeys {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  margin: 14px 2px 2px; font-size: 11px; color: #9a9eaa;
}
.zr-hotkeys > span { display: inline-flex; align-items: center; gap: 6px; }
.zr-key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px;
  background: #f1f2f5; border: 1px solid rgba(20,22,34,.1);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; color: #5a5f6b;
}

.zr-settings { margin-top: 6px; border-top: 1px solid rgba(20,22,34,.07); }
.zr-settings-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 2px 4px; background: none; border: none; cursor: pointer;
  font-family: inherit; transition: opacity .2s;
}
.zr-settings-toggle:hover { opacity: .7; }
.zr-settings-toggle .zr-settings-title { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: #5a5f6b; }
.zr-settings-meta { display: flex; align-items: center; gap: 8px; }
.zr-settings-toggle .zr-settings-summary { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: #9a9eaa; }
.zr-chevron { transition: transform .2s ease; }
#zr-app[data-settings="open"] .zr-chevron { transform: rotate(180deg); }

.zr-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 12px 0 4px; }
#zr-app[data-settings="closed"] .zr-settings-grid,
#zr-app[data-settings="closed"] .zr-settings-note { display: none; }
.zr-settings-grid label { display: block; font-size: 11px; font-weight: 600; color: #9a9eaa; margin-bottom: 7px; }
.zr-settings-grid input {
  width: 100%; height: 46px; padding: 0 14px;
  background: #f6f7f9; border: 1px solid rgba(20,22,34,.09); border-radius: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 16px; color: #1b1e2b;
}
.zr-settings-note { margin: 2px 2px 4px; font-size: 11.5px; line-height: 1.5; color: #9a9eaa; }
.zr-settings-note a { color: inherit; text-decoration: underline; }

/* =========================================================================
   Content sections (SEO + info), restyled light
   ========================================================================= */
.zr-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.zr-section-card {
  background: #ffffff; border: 1px solid rgba(20,22,34,.07); border-radius: 22px;
  padding: 32px 34px; margin-bottom: 22px;
  box-shadow: 0 2px 4px rgba(20,22,34,.04), 0 24px 60px -40px rgba(20,22,34,.22);
}
.zr-section-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.zr-section-card h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; color: #33373f; }
.zr-section-card p { font-size: 15px; line-height: 1.7; color: #5a5f6b; margin: 0 0 12px; }
.zr-section-card ul { margin: 0 0 4px; padding-left: 20px; }
.zr-section-card li { font-size: 15px; line-height: 1.7; color: #5a5f6b; margin-bottom: 6px; }
.zr-section-card a { color: var(--accent-deep, #d97b06); text-decoration: none; }
.zr-section-card a:hover { text-decoration: underline; }

.zr-faq-item + .zr-faq-item { border-top: 1px solid rgba(20,22,34,.07); margin-top: 18px; padding-top: 18px; }
.zr-faq-item h3 { margin-top: 0; color: #1b1e2b; }

/* =========================================================================
   Footer
   ========================================================================= */
.zr-footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(20,22,34,.07);
  padding: 28px 24px; text-align: center;
}
.zr-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 12px; }
.zr-footer-links a, .zr-footer-links button {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: #5a5f6b; font-size: 13px; text-decoration: none;
}
.zr-footer-links a:hover, .zr-footer-links button:hover { color: #1b1e2b; }
.zr-footer-sep { color: #c6cad6; }
.zr-footer-copy { font-size: 12.5px; color: #9a9eaa; }

/* =========================================================================
   Cookie consent banner
   ========================================================================= */
.cookie-consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: none; justify-content: center;
  padding: 18px;
}
.cookie-consent-banner [hidden] { display: none !important; }
.consent-content {
  background: #ffffff; border: 1px solid rgba(20,22,34,.08); border-radius: 22px;
  max-width: 560px; width: 100%; padding: 28px;
  box-shadow: 0 30px 70px -20px rgba(20,22,34,.45);
}
.consent-content h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.consent-content > p { font-size: 14px; color: #5a5f6b; margin: 0 0 16px; line-height: 1.6; }
.consent-category { padding: 12px 0; border-top: 1px solid rgba(20,22,34,.06); }
.consent-checkbox-label { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; cursor: pointer; }
.consent-category-desc { font-size: 13px; color: #9a9eaa; margin: 6px 0 0 26px; line-height: 1.5; }
.consent-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.consent-btn {
  flex: 1; min-width: 140px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; transition: all .15s;
}
.consent-accept { background: var(--accent, #f0991f); color: #fff; }
.consent-accept:hover { filter: brightness(1.05); }
.consent-accept-selected { background: #f1f2f5; color: #33373f; }
.consent-accept-selected:hover { background: #e9eaef; }
.consent-reject { background: #ffffff; color: #5a5f6b; border-color: rgba(20,22,34,.12); }
.consent-reject:hover { background: #f6f7f9; }
.consent-footer { display: flex; gap: 16px; margin-top: 16px; justify-content: center; }
.consent-footer a { color: var(--accent-deep, #d97b06); font-size: 13px; text-decoration: none; cursor: pointer; }
.consent-footer a:hover { text-decoration: underline; }

/* =========================================================================
   Weather – pill + dynamic background (Aschheim)
   ========================================================================= */
.zr-weather-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 100px;
  background: #ffffff; border: 1px solid rgba(20,22,34,.08);
  box-shadow: 0 1px 2px rgba(20,22,34,.04);
  font-size: 12.5px; font-weight: 600; color: #5a5f6b; white-space: nowrap;
}
.zr-weather-icon { display: inline-flex; align-items: center; color: var(--accent-deep, #5a5f6b); }
.zr-weather-temp { font-family: 'JetBrains Mono', monospace; }
.zr-weather-label { color: #9a9eaa; font-weight: 500; }

.zr-weather-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
#zr-weather-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* full-cover sky tint – the main "whole background changes" effect */
.zr-sky { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
#zr-app[data-weather] .zr-sky { opacity: 1; }
#zr-app[data-weather="clear"] .zr-sky       { background: linear-gradient(180deg, rgba(95,165,255,.34) 0%, rgba(168,210,255,.18) 45%, rgba(255,244,205,.20) 100%); }
#zr-app[data-weather="clear-night"] .zr-sky { background: linear-gradient(180deg, rgba(28,40,80,.55) 0%, rgba(48,62,108,.34) 100%); }
#zr-app[data-weather="clouds"] .zr-sky      { background: linear-gradient(180deg, rgba(120,134,160,.52) 0%, rgba(158,168,188,.30) 100%); }
#zr-app[data-weather="fog"] .zr-sky         { background: linear-gradient(180deg, rgba(196,202,212,.72) 0%, rgba(206,211,220,.55) 100%); }
#zr-app[data-weather="rain"] .zr-sky        { background: linear-gradient(180deg, rgba(72,92,124,.52) 0%, rgba(110,128,156,.30) 100%); }
#zr-app[data-weather="thunder"] .zr-sky     { background: linear-gradient(180deg, rgba(38,46,72,.62) 0%, rgba(64,74,104,.40) 100%); }
#zr-app[data-weather="snow"] .zr-sky        { background: linear-gradient(180deg, rgba(160,186,224,.46) 0%, rgba(222,233,248,.30) 100%); }

/* sun + sweeping rays (clear / day) */
.zr-sun {
  position: absolute; top: -150px; right: -110px; width: 480px; height: 480px; border-radius: 50%;
  opacity: 0; transition: opacity 1.4s ease; filter: blur(1px);
  background: radial-gradient(circle, rgba(255,240,180,1) 0%, rgba(255,216,120,.92) 26%, rgba(255,210,110,.45) 50%, rgba(255,210,110,0) 70%);
  animation: zr-sun-pulse 7s ease-in-out infinite;
}
@keyframes zr-sun-pulse { 0%,100% { filter: blur(1px); } 50% { filter: blur(6px); } }
.zr-rays {
  position: absolute; top: -420px; right: -380px; width: 1080px; height: 1080px; border-radius: 50%;
  opacity: 0; transition: opacity 1.4s ease;
  background: repeating-conic-gradient(from 0deg, rgba(255,206,110,.30) 0deg 2.8deg, rgba(255,206,110,0) 2.8deg 13deg);
  -webkit-mask: radial-gradient(circle, #000 14%, transparent 66%);
  mask: radial-gradient(circle, #000 14%, transparent 66%);
  animation: zr-spin 90s linear infinite;
}
@keyframes zr-spin { to { transform: rotate(360deg); } }
#zr-app[data-weather="clear"] .zr-sun, #zr-app[data-weather="clear"] .zr-rays { opacity: 1; }

/* drifting clouds (clouds / fog / rain / thunder) */
.zr-clouds { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
#zr-app[data-weather="clouds"] .zr-clouds,
#zr-app[data-weather="fog"] .zr-clouds,
#zr-app[data-weather="rain"] .zr-clouds,
#zr-app[data-weather="thunder"] .zr-clouds { opacity: 1; }
/* lumpy, clearly visible cloud puffs */
.zr-cloud {
  position: absolute; left: -260px; width: 150px; height: 54px; border-radius: 54px;
  background: #eef1f7; filter: blur(6px);
  box-shadow: 44px 12px 0 -4px #eef1f7, -44px 14px 0 -2px #eef1f7, 8px -22px 0 -8px #f4f6fb,
              0 24px 0 -2px rgba(120,132,158,.18);
}
#zr-app[data-weather="rain"] .zr-cloud,
#zr-app[data-weather="thunder"] .zr-cloud {
  background: #c9d0de;
  box-shadow: 44px 12px 0 -4px #c9d0de, -44px 14px 0 -2px #c9d0de, 8px -22px 0 -8px #d4dae6,
              0 26px 0 -2px rgba(60,72,98,.22);
}
.zr-cloud1 { top: 9%;  transform: scale(1.5);  animation: zr-cloud 70s linear infinite; }
.zr-cloud2 { top: 22%; transform: scale(1.05); animation: zr-cloud 96s linear infinite; animation-delay: -34s; }
.zr-cloud3 { top: 5%;  transform: scale(1.9);  animation: zr-cloud 84s linear infinite; animation-delay: -58s; }
.zr-cloud4 { top: 34%; transform: scale(.85);  animation: zr-cloud 110s linear infinite; animation-delay: -18s; }
.zr-cloud5 { top: 16%; transform: scale(1.3);  animation: zr-cloud 78s linear infinite; animation-delay: -70s; }
@keyframes zr-cloud { to { margin-left: calc(100vw + 520px); } }

/* fog haze */
.zr-fog-layer {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease;
  background:
    repeating-linear-gradient(180deg, rgba(214,219,228,0) 0 22px, rgba(214,219,228,.5) 22px 46px),
    linear-gradient(180deg, rgba(214,219,228,.55), rgba(214,219,228,.3));
}
#zr-app[data-weather="fog"] .zr-fog-layer { opacity: 1; }

/* mood tint (kept subtle, the sky does the heavy lifting) */
.zr-weather-tint { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
#zr-app[data-weather="thunder"] .zr-weather-tint { opacity: 1; background: radial-gradient(ellipse at 50% 0%, rgba(20,26,44,.22), rgba(20,26,44,0) 60%); }

/* -------------------------------------------------------------------------
   Dark-sky adaptation – keep everything readable on cloudy / rain / thunder /
   night skies. Only the hero + header (which sit directly on the sky) flip to
   light; the white control panel keeps its dark-on-light styling.
   ------------------------------------------------------------------------- */
#zr-app[data-sky="dark"] { color: #f3f5fa; }
#zr-app[data-sky="dark"] .zr-brand-name { color: #ffffff; }
#zr-app[data-sky="dark"] .zr-brand-sub { color: #d3d8e4; }
#zr-app[data-sky="dark"] .zr-result-detail { color: #e4e8f1; }
#zr-app[data-sky="dark"] .zr-progress-head { color: #dce1ec; }
#zr-app[data-sky="dark"] .zr-soll-label { color: #d3d8e4; }

/* Contrast halo for text sitting directly on the sky. The halo colour is the
   opposite of the text colour, so glyphs stay readable over ANY backdrop –
   including a bright cloud drifting behind light text, or vice-versa. */
#zr-app[data-sky="dark"] .zr-brand-name,
#zr-app[data-sky="dark"] .zr-brand-sub,
#zr-app[data-sky="dark"] .zr-result-detail,
#zr-app[data-sky="dark"] .zr-progress-head,
#zr-app[data-sky="dark"] .zr-soll-label {
  text-shadow: 0 1px 2px rgba(14,18,32,.6), 0 0 16px rgba(14,18,32,.5);
}
#zr-app[data-sky="dark"] .zr-result {
  text-shadow: 0 2px 26px rgba(12,16,30,.5), 0 0 3px rgba(12,16,30,.4);
}
/* light / default sky: dark text gets a soft light halo for the same reason */
#zr-app:not([data-sky="dark"]) .zr-brand-name,
#zr-app:not([data-sky="dark"]) .zr-brand-sub,
#zr-app:not([data-sky="dark"]) .zr-result-detail,
#zr-app:not([data-sky="dark"]) .zr-progress-head,
#zr-app:not([data-sky="dark"]) .zr-soll-label {
  text-shadow: 0 1px 3px rgba(255,255,255,.9), 0 0 12px rgba(255,255,255,.75);
}
#zr-app:not([data-sky="dark"]) .zr-result {
  text-shadow: 0 2px 20px rgba(255,255,255,.75);
}

/* lift the white pills / chips off the dark backdrop */
#zr-app[data-sky="dark"] .zr-clock,
#zr-app[data-sky="dark"] .zr-weather-pill,
#zr-app[data-sky="dark"] .zr-kicker,
#zr-app[data-sky="dark"] .zr-chip,
#zr-app[data-sky="dark"] .zr-warn {
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 6px 20px -8px rgba(12,16,30,.45);
}
#zr-app[data-sky="dark"] .zr-season-pill {
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.65);
  box-shadow: 0 6px 20px -8px rgba(12,16,30,.45);
}
/* the control panel stays a bright, solid card for guaranteed contrast */
#zr-app[data-sky="dark"] .zr-panel {
  box-shadow: 0 2px 4px rgba(20,22,34,.04), 0 36px 80px -30px rgba(10,14,28,.5);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 880px) {
  .zr-grid { grid-template-columns: 1fr; gap: 36px; }
  .zr-header { padding: 20px 22px; }
  .zr-main { padding: 12px 22px 44px; }
  .zr-result { font-size: clamp(54px, 16vw, 92px); }
  .zr-weather-label { display: none; }
}
@media (max-width: 520px) {
  .zr-header-right .zr-season-pill { display: none; }
  .zr-section-card { padding: 24px 22px; }
  .consent-btn { min-width: 100%; }
}

/* =========================================================================
   Accessibility & motion
   ========================================================================= */
.zr-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* visible keyboard focus (inputs keep outline:none for mouse, this restores it) */
:focus-visible { outline: 2px solid var(--accent, #4f7df0); outline-offset: 2px; }
.zr-field:focus-within { border-color: var(--accent, #4f7df0); background: #f1f2f5; }
.zr-field input[type="time"]:focus-visible,
.zr-settings-grid input:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zr-wash1, .zr-wash2 { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================================
   Seitenuebergreifend: Navigation, Inhaltsseiten, Stand-Zeile, Tabellen
   Gilt fuer alle sechs Seiten. Kein <style>-Block in einer HTML-Datei.
   ========================================================================= */

/* Akzentfarben auch ausserhalb von #zr-app verfuegbar machen.
   #zr-app definiert dieselben Namen selbst und ueberschreibt sie dort,
   zeitrechner.js setzt sie dort weiterhin per inline style. */
:root {
  --accent: #f0991f;
  --accent-deep: #d97b06;
  --accent2: #2cb9e8;
  --logo-shadow: #f0991faa;
}

/* --- Hauptnavigation --------------------------------------------------- */
.zr-sitenav {
  position: relative; z-index: 3;
  background: #fafafb;
  border-bottom: 1px solid rgba(20,22,34,.07);
}
.zr-sitenav-list {
  max-width: 900px; margin: 0 auto; padding: 6px 24px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 18px; list-style: none;
}
.zr-sitenav-list a {
  display: block; padding: 13px 0; line-height: 18px;
  font-size: 14px; font-weight: 500; color: #5a5f6b; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.zr-sitenav-list a:hover { color: #1b1e2b; }
.zr-sitenav-list a[aria-current="page"] {
  color: #1b1e2b; font-weight: 600; border-bottom-color: var(--accent-deep);
}
@media (max-width: 640px) {
  .zr-sitenav-list { padding: 4px 20px; gap: 0 16px; }
  .zr-sitenav-list a { font-size: 13.5px; }
}

/* Der Rechner beginnt unter der Navigationsleiste (56px + 1px Rahmen).
   Diese Regel steht bewusst nach #zr-app aus dem oberen Teil der Datei
   und ersetzt dessen min-height: 100vh. Der Abzug ist eher zu klein als
   zu gross gewaehlt: zu klein kostet nichts, zu gross erzwingt Scrollen.
   .zr-stage traegt denselben Wert, sonst bliebe die volle Viewporthoehe
   ueber das Kind bestehen. */
#zr-app, .zr-stage { min-height: calc(100vh - 57px); }
@media (max-width: 640px) {
  #zr-app, .zr-stage { min-height: calc(100vh - 150px); }
}

/* --- Inhaltsseiten (alles ausser index.html) --------------------------- */
.zr-content h1 {
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 14px; color: #1b1e2b;
}
.zr-content > p.zr-lead {
  font-size: 16px; line-height: 1.7; color: #5a5f6b;
  margin: 0 0 26px; max-width: 62ch;
}
@media (max-width: 640px) { .zr-content h1 { font-size: 25px; } }

/* --- Stand-Zeile: letztes Element in .zr-content ----------------------- */
.zr-stand { font-size: 13px; color: #9a9eaa; margin: 4px 2px 0; line-height: 1.6; }

/* --- Tabellen (Dezimalstunden, gesetzliche Werte) ---------------------- */
.zr-table-wrap { overflow-x: auto; margin: 0 0 14px; }
.zr-table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.zr-table caption {
  caption-side: top; text-align: left;
  font-size: 13px; color: #9a9eaa; padding: 0 0 8px;
}
.zr-table th, .zr-table td {
  padding: 8px 12px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid rgba(20,22,34,.07);
}
.zr-table th { font-weight: 600; font-size: 13px; color: #33373f; }
.zr-table td { color: #5a5f6b; font-family: 'JetBrains Mono', monospace; }
.zr-table tbody tr:hover { background: #fafafb; }

/* Tabellen mit Fliesstext in den Zellen (localStorage-Uebersicht auf
   /datenschutz): dort waeren Monospace und nowrap falsch, weil die Zellen
   Saetze enthalten und nicht Zahlen. Nur der Schluesselname bleibt Monospace. */
.zr-table-prose td { font-family: inherit; white-space: normal; }
.zr-table-prose td:first-child { font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
