/* =========================================================
   Winterdienst-Wetterservice – Mockup im MeteoRisk-Design
   Farben:  primary #0070ae · accent #009fe0 · deep #0055b3
   Text:    #1A1C1E (dunkel) · #41484D (sekundär)
   Light:   #FAFCFF · #e6f3ff · #f0f8ff
   Schrift: Exo (Google Fonts)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary:        #0070ae;
  --primary-dark:   #0055b3;
  --accent:         #009fe0;
  --accent-soft:    #e6f3ff;
  --bg:             #FAFCFF;
  --bg-alt:         #f0f8ff;
  --panel:          #ffffff;
  --text:           #1A1C1E;
  --muted:          #41484D;
  --border:         #d8e6f1;
  --shadow-sm: 0 1px 2px rgba(0, 85, 179, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 85, 179, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 85, 179, 0.15);
  --radius:    12px;
  --radius-sm:  8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Exo', system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--accent-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { height: 38px; width: auto; }
.logo-product {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-left: 2px solid var(--primary);
  padding-left: 12px;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.18s;
}
.main-nav a:hover::after { transform: scaleX(1); }
@keyframes blink-warn { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.warn-nav-active { color: #ef4444 !important; animation: blink-warn 1.4s ease-in-out infinite; }
.nav-cta { padding: 8px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-soft) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 90% 10%, rgba(0,159,224,0.12), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(0,85,179,0.08), transparent 70%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--text);
}
.hero .lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text);
}
.hero-bullets .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
}
.hero-visual { position: relative; }
.hero-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transform: rotate(-1deg);
  transition: transform 0.4s;
}
.hero-card:hover { transform: rotate(0deg) scale(1.02); }
.hero-card img { width: 100%; display: block; }

.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1220;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 25s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide.is-active { opacity: 1; }
}
.hero-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.badge {
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- KPIs ---------- */
.kpis {
  background: var(--primary-dark);
  color: #fff;
  padding: 28px 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.kpi b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.kpi span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #c2dcf1;
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  text-align: center;
}
.section-title.left { text-align: left; }
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ---------- Intro / Einführung Leistungsspektrum ---------- */
.intro { padding-top: 72px; padding-bottom: 72px; }
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow-mini {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.intro-text h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.25;
}
.intro-text p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}
.intro-text p b { color: var(--primary-dark); }
.intro-text .btn { margin-top: 8px; }

.intro-pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.intro-pillars li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.intro-pillars li:hover {
  border-color: var(--accent);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}
.pillar-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.intro-pillars li b {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}
.intro-pillars li p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Service Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.card.highlight {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: 18px;
  margin: 16px 0 10px;
  color: var(--text);
  font-weight: 700;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
}
.card-cta {
  margin-top: 20px;
  align-self: flex-start;
  appearance: none;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.card-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Card Icons (SVG-Hintergrund) ---------- */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--accent-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
}
.card-icon[data-icon="forecast"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2v2'/><path d='M12 20v2'/><path d='M4.93 4.93l1.41 1.41'/><path d='M17.66 17.66l1.41 1.41'/><path d='M2 12h2'/><path d='M20 12h2'/><circle cx='12' cy='12' r='4'/></svg>");
}
.card-icon[data-icon="ice"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='2' x2='12' y2='22'/><line x1='2' y1='12' x2='22' y2='12'/><line x1='4.93' y1='4.93' x2='19.07' y2='19.07'/><line x1='19.07' y1='4.93' x2='4.93' y2='19.07'/></svg>");
}
.card-icon[data-icon="road"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 22L8 2'/><path d='M21 22L16 2'/><path d='M12 6v2'/><path d='M12 12v2'/><path d='M12 18v2'/></svg>");
}
.card-icon[data-icon="radar"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><circle cx='12' cy='12' r='6'/><circle cx='12' cy='12' r='2'/><line x1='12' y1='12' x2='20' y2='6'/></svg>");
}
.card-icon[data-icon="alert"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/><path d='M10 21a2 2 0 0 0 4 0'/></svg>");
}
.card-icon[data-icon="portal"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='3' width='20' height='14' rx='2'/><line x1='8' y1='21' x2='16' y2='21'/><line x1='12' y1='17' x2='12' y2='21'/></svg>");
}

/* ---------- Architektur ---------- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.arch-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  border-top: 4px solid var(--accent);
}
.arch-col.arch-highlight {
  border-top-color: var(--primary);
  background: linear-gradient(180deg, #fff, var(--accent-soft));
}
.arch-h {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin: 0 0 14px;
  font-weight: 700;
}
.arch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.arch-list b {
  color: var(--text);
  font-weight: 700;
  margin-right: 4px;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 14px 0;
  position: relative;
}
.t-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  margin-top: 6px;
  margin-left: 4px;
  z-index: 1;
}
.t-dot-active { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,159,224,0.18); }
.t-date {
  display: block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.t-content b { font-size: 17px; color: var(--text); }
.t-content p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Client / Auftraggeber ---------- */
.client-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.client-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.client-card h3 {
  margin: 0 0 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}
.dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.dl dt {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: center;
}
.dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  font-size: 14.5px;
}

/* ---------- CTA Banner ---------- */
.cta {
  padding: 56px 0;
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
  color: #fff;
}
.cta-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 8px;
  color: #fff;
  font-weight: 700;
}
.cta p { margin: 0; color: #d0e7f6; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.cta .btn-primary { background: #fff; color: var(--primary-dark); }
.cta .btn-primary:hover { background: #f0f8ff; color: var(--primary-dark); }
.cta .btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* =========================================================
   Anfrage-Modal (Wizard im MeteoRisk-Stil)
   ========================================================= */
.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;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 50, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: fadeIn 0.18s ease-out;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }

.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.22s ease-out;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.modal-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.modal-close {
  appearance: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.12s, color 0.12s;
}
.modal-close:hover { background: var(--accent-soft); color: var(--primary-dark); }

/* ---------- Legal Modal (Impressum / AGB / Datenschutz) ---------- */
.legal-modal { max-width: 780px; width: 95%; display: flex; flex-direction: column; max-height: 88vh; }
.legal-body {
  overflow-y: auto;
  padding: 24px 32px 36px;
  flex: 1;
  line-height: 1.75;
}
.legal-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 6px;
}
.legal-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal-body em { font-style: italic; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--primary); }
.legal-body a:hover { text-decoration: underline; }

.modal-form {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0;
}

/* Schritt-Indikator */
.step-indicator {
  display: flex;
  list-style: none;
  padding: 18px 28px 0;
  margin: 0;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  opacity: 0.55;
}
.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.step.active { opacity: 1; color: var(--primary-dark); }
.step.active span { background: var(--primary); color: #fff; }
.step.done span { background: var(--accent); color: #fff; }
.step.done span::before { content: "✓"; }
.step.done span > * { display: none; }

/* Form-Steps */
.form-step {
  border: 0;
  padding: 20px 28px;
  margin: 0;
  display: none;
}
.form-step.active { display: block; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field small { font-size: 11.5px; color: var(--muted); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="datetime-local"],
.field select,
.field textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 112, 174, 0.15);
}
.field textarea { resize: vertical; min-height: 70px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 4px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; margin-bottom: 4px; }

.suffix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.suffix:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 112, 174, 0.15);
}
.suffix input { border: 0 !important; box-shadow: none !important; flex: 1; padding: 10px 12px; min-width: 0; }
.suffix span {
  background: var(--bg-alt);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.radio:has(input:checked) { border-color: var(--primary); background: var(--accent-soft); color: var(--primary-dark); font-weight: 600; }
.radio input { accent-color: var(--primary); }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.check-grid.two { grid-template-columns: repeat(2, 1fr); }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
  transition: border-color 0.12s, background 0.12s;
}
.check:hover { border-color: var(--accent); }
.check:has(input:checked) { border-color: var(--primary); background: var(--accent-soft); }
.check input { accent-color: var(--primary); transform: scale(1.1); }
.check.consent { font-size: 12.5px; color: var(--muted); }
.check.consent a { color: var(--primary); }

/* Loading */
.form-loading { padding: 48px 28px; text-align: center; }
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-loading h3 { margin: 0 0 6px; color: var(--primary-dark); font-size: 18px; }
.form-loading p { margin: 0; color: var(--muted); font-size: 13px; }

/* Fehler */
.form-error { padding: 36px 28px; text-align: center; }
.error-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff1ee;
  color: #c0392b;
  font-size: 30px;
  font-weight: 700;
}
.form-error h3 { margin: 0 0 8px; color: #c0392b; font-size: 18px; }
.form-error p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* Ergebnis-Ansicht */
.form-result {
  padding: 20px 28px 28px;
  overflow-y: auto;
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.result-eyebrow {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.result-title { margin: 0; font-size: 20px; color: var(--text); }
.result-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.result-meta .meta-input {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  opacity: 0.85;
}
.pdf-head .pdf-input {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
.result-section { margin: 22px 0 0; }
.result-section h4 {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  font-weight: 700;
}

/* Risiko-Ampel */
.risk-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.risk-card {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.risk-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
}
.risk-card .day { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.04em; }
.risk-card .level { font-size: 14px; font-weight: 700; }
.risk-card .desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.risk-card.l0::before { background: #84cc16; }
.risk-card.l0 .level { color: #4d7c0f; }
.risk-card.l1::before { background: #facc15; }
.risk-card.l1 .level { color: #ca8a04; }
.risk-card.l2::before { background: #f97316; }
.risk-card.l2 .level { color: #c2410c; }
.risk-card.l3::before { background: #ef4444; }
.risk-card.l3 .level { color: #b91c1c; }

/* KPI-Kacheln */
.result-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kpi-tile {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.kpi-tile span {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.kpi-tile b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  color: var(--primary-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Service-Hinweis */
.service-note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
}
.service-note b { color: var(--primary-dark); }

/* Chart */
.chart-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

/* Alarmliste */
.alert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.alert-list li {
  display: grid;
  grid-template-columns: 110px 80px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}
.alert-list li .when { font-weight: 600; color: var(--text); }
.alert-list li .stufe {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
}
.alert-list li.s1 { border-left-color: #facc15; }
.alert-list li.s1 .stufe { background: #facc15; color: #78350f; }
.alert-list li.s2 { border-left-color: #f97316; }
.alert-list li.s2 .stufe { background: #f97316; }
.alert-list li.s3 { border-left-color: #ef4444; }
.alert-list li.s3 .stufe { background: #ef4444; }
.alert-list li.s4 { border-left-color: #7f1d1d; }
.alert-list li.s4 .stufe { background: #7f1d1d; }
.alert-list li .what { color: var(--muted); }
.alert-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--bg-alt);
  border-radius: 6px;
}

/* Ergebnis-Tabelle */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.result-table th, .result-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.result-table th {
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.result-table tr:last-child td { border-bottom: 0; }

.result-source {
  margin: 18px 0 16px;
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
}
.result-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 8px;
}

@media (max-width: 620px) {
  .risk-row { grid-template-columns: 1fr 1fr; }
  .result-kpis { grid-template-columns: 1fr 1fr; }
  .alert-list li { grid-template-columns: 1fr; gap: 4px; }
}

.step3-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Modal-Footer */
.modal-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.modal-foot .spacer { flex: 1; }
.modal-foot .btn { padding: 9px 18px; }

@media (max-width: 620px) {
  .modal { max-height: 100vh; height: 100%; border-radius: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .step-indicator { font-size: 11px; }
  .modal-head, .form-step, .modal-foot { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0c1e2e;
  color: #b6c8d8;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}
.footer-brand img {
  height: 42px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: #b6c8d8; margin: 0; }
.footer-brand a { color: #b6c8d8; }
.footer-brand a:hover { color: var(--accent); }
.site-footer h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: #fff;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 2; }
.site-footer ul a { color: #b6c8d8; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  font-size: 12px;
  color: #7c8fa2;
  margin-top: 0;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: center; gap: 16px; }
  .main-nav a::after { display: none; }
  .nav-cta { display: none; }
  .hero { padding: 40px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { transform: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .arch-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================
   Winterdienstfax-Tabellen (stündlich + 5-Tage)
   ========================================================= */
.wdfax-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wdfax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  background: #fff;
  table-layout: fixed;
}
.wdfax-table th, .wdfax-table td {
  border: 1px solid var(--border);
  padding: 4px 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  word-break: normal;
  overflow-wrap: break-word;
}
.wdfax-table th[scope="row"] {
  text-align: left;
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-weight: 600;
  width: 32%;
}
.wdfax-table .row-head td {
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
}
.wdfax-table .row-head th[scope="row"] {
  background: var(--primary-dark);
  color: #fff;
}
.wdfax-table .d-sub {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 400;
}
.wdfax-table tr:nth-child(even) td { background: #fcfdff; }

/* =========================================================
   PDF-Export · Sektionsauswahl
   ========================================================= */
.export-section {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.export-hint {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.export-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin-bottom: 12px;
}
.export-grid .check { padding: 8px 12px; font-size: 13px; background: #fff; }
.export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.export-actions .spacer { flex: 1; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.pdf-ico { display: inline-block; margin-right: 6px; font-weight: 700; }
.export-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--primary-dark);
  min-height: 1.2em;
}

@media (max-width: 620px) {
  .export-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Niederschlagsradar (Leaflet + RainViewer)
   ========================================================= */
.radar-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.radar-map {
  width: 100%;
  height: 360px;
  border-radius: 6px;
  background: #e6eef6;
  overflow: hidden;
  position: relative;
  z-index: 0;
}
.radar-map .leaflet-control-attribution { font-size: 10px; }
.radar-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.radar-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.radar-btn:hover { background: var(--primary-dark); }
.radar-slider {
  width: 100%;
  accent-color: var(--primary);
}
.radar-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12.5px;
  color: var(--muted);
  gap: 4px;
  min-width: 170px;
}
.radar-ts {
  font-weight: 700;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}
.radar-speed { font-size: 11.5px; }
.radar-speed select {
  font: inherit;
  font-size: 11.5px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  margin-left: 4px;
}
.radar-legend {
  margin: 10px 0 4px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.radar-legend .lg {
  display: inline-block;
  width: 16px;
  height: 10px;
  border-radius: 2px;
  margin-right: 2px;
  margin-left: 8px;
}
.radar-legend .lg:first-of-type { margin-left: 0; }
.radar-legend .lg1 { background: #4cc9f0; }
.radar-legend .lg2 { background: #4895ef; }
.radar-legend .lg3 { background: #3a0ca3; }
.radar-legend .lg4 { background: #f72585; }
.radar-legend .lg5 { background: #b5179e; }
.radar-source {
  margin: 6px 0 0;
  font-size: 10.5px;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 620px) {
  .radar-map { height: 260px; }
  .radar-controls { grid-template-columns: auto 1fr; }
  .radar-meta { grid-column: 1 / -1; align-items: flex-start; }
}

/* =========================================================
   PDF-Dokument (off-screen aufgebauter Container für jsPDF)
   ========================================================= */
.pdf-doc {
  padding: 28px 32px 24px;
  box-sizing: border-box;
}
.pdf-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
}
.pdf-head h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pdf-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.pdf-head-r {
  text-align: right;
  font-family: Arial, sans-serif;
}
.pdf-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.pdf-brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.pdf-body .pdf-section {
  margin: 14px 0 0;
  page-break-inside: avoid;
}
.pdf-body .pdf-section h4 {
  margin: 0 0 8px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.pdf-foot {
  margin-top: 22px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* =========================================================
   Login-Overlay
   ========================================================= */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #003d82 0%, #0055b3 45%, #0070ae 75%, #009fe0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-overlay[hidden] { display: none; }

.login-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.30);
  animation: slideUp 0.25s ease-out;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.login-logo img { height: 36px; }
.login-product {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-left: 2px solid var(--primary);
  padding-left: 12px;
}
.login-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}
.login-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.5;
}
.login-error {
  background: #fff1ee;
  color: #c0392b;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 0 0 10px;
}
.login-hint {
  margin: 20px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   User-Session im Header
   ========================================================= */
.user-session {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.user-session[hidden] { display: none; }
.session-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: 0;
}
.session-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  flex-shrink: 0;
  padding: 0;
}
.session-btn:hover        { background: var(--accent-soft); color: var(--primary); border-color: var(--accent); }
.session-btn[hidden]      { display: none; }
.session-logout:hover     { background: #fff1ee; color: #c0392b; border-color: #f5c6cb; }

/* =========================================================
   Admin-Panel (Benutzerverwaltung)
   ========================================================= */
.modal-wide { max-width: 820px; }

.admin-body {
  padding: 20px 28px 28px;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}
.admin-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.admin-table th {
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #fafcff; }

.you-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--primary-dark);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-badge.admin { background: var(--primary); color: #fff; }
.role-badge.user  { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }

.admin-actions { display: flex; gap: 6px; align-items: center; }

.btn-danger {
  appearance: none;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  background: transparent;
  color: #c0392b;
  transition: background 0.12s, color 0.12s;
}
.btn-danger:hover { background: #fff1ee; }

.admin-add-section { border-top: 1px solid var(--border); padding-top: 20px; }
.admin-add-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}
.admin-limit {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 12px 14px;
}
.form-error-inline {
  font-size: 12.5px;
  color: #c0392b;
  background: #fff1ee;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
}
.edit-pw-row > td { background: #f7fbff; padding: 12px 14px; }
.edit-pw-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.edit-pw-inner input {
  flex: 1;
  min-width: 200px;
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.edit-pw-inner input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,112,174,0.15);
}

@media (max-width: 700px) {
  .user-session .session-name { display: none; }
  .login-card { padding: 28px 20px; }
  .admin-actions { flex-direction: column; align-items: flex-start; }
  .edit-pw-inner { flex-direction: column; align-items: stretch; }
  .modal-wide { max-width: 100%; }
}

/* =========================================================
   Wetterwarnungen
   ========================================================= */
.section-warnings { background: var(--bg-alt); }

.warn-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.warn-section-head .section-title { margin-bottom: 0; }
.warn-meta-time {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.warn-head-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.warn-head-actions .btn-ghost[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Summary bar */
.warn-summary { margin-bottom: 24px; }
.warn-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}
.warn-loading .spinner { width: 22px; height: 22px; flex-shrink: 0; }
.warn-error {
  padding: 16px 18px;
  background: #fff1ee;
  border-radius: 8px;
  border-left: 4px solid #e53935;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
}
.warn-error a { color: var(--primary); }
.warn-ok {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #e8f5e9;
  border-radius: 8px;
  border-left: 4px solid #43a047;
  color: #1b5e20;
  font-size: 14px;
  font-weight: 500;
}
.warn-ok-icon { font-size: 20px; }
.warn-summary-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.warn-total {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.warn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.warn-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Two-column layout */
.warn-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.warn-list-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.warn-empty {
  padding: 20px;
  color: var(--muted);
  font-size: 13.5px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

/* Warning group card */
.warn-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border-left: 4px solid var(--wg-color, var(--accent));
}
.warn-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.warn-type-icon { font-size: 17px; line-height: 1; flex-shrink: 0; }
.warn-type-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  flex: 1;
}
.warn-group-cnt {
  background: var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.warn-winter-badge {
  background: var(--primary);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.warn-states-row {
  padding: 5px 14px;
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #fafcff;
}
.warn-items {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Single warning item */
.warn-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.warn-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.warn-sev-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.warn-muni-cnt {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
}
.warn-headline {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 4px;
}
.warn-time-row,
.warn-regions-row {
  margin: 2px 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.warn-desc-text {
  margin: 5px 0 0;
  font-size: 11.5px;
  color: var(--text);
  line-height: 1.5;
}
.warn-instr-text {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--primary-dark);
  line-height: 1.45;
}

/* Map column */
.warn-map-col { position: sticky; top: 80px; }
.warn-map-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.warn-map {
  width: 100%;
  height: 500px;
  background: #dce8f2;
}
.warn-map-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px 14px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fafcff;
  margin: 0;
}
.wl {
  display: inline-block;
  width: 14px;
  height: 9px;
  border-radius: 2px;
  margin-left: 10px;
  flex-shrink: 0;
}
.wl:first-of-type { margin-left: 0; }
.wl1 { background: #ffd600; border: 1px solid #cca800; }
.wl2 { background: #ff8c00; border: 1px solid #cc7000; }
.wl3 { background: #e53935; border: 1px solid #b71c1c; }
.wl4 { background: #9c27b0; border: 1px solid #6a1b9a; }

/* Leaflet popup for warnings */
.warn-popup { min-width: 200px; font-family: inherit; font-size: 13px; }
.warn-popup-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 5px 5px 0 0;
  margin: -1px -1px 8px;
}
.warn-popup b { display: block; font-size: 13px; margin-bottom: 2px; }
.warn-popup small { font-size: 11px; color: var(--muted); line-height: 1.5; display: block; margin-top: 3px; }

.warn-source {
  margin: 24px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
}
.warn-source code { font-size: 10.5px; background: var(--bg-alt); padding: 1px 5px; border-radius: 3px; font-style: normal; }

/* Warning info / Erläuterung */
.warn-info {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 18px 18px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.warn-info p { margin: 0 0 14px; }
.warn-info-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  margin: 14px 0 8px;
}
.warn-info-title:first-child { margin-top: 0; }

.warn-level-list {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.warn-level-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 8px 12px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  background: var(--bg-alt);
}
.wli1 { border-left-color: #ffd600; }
.wli2 { border-left-color: #ff8c00; }
.wli3 { border-left-color: #e53935; }
.wli4 { border-left-color: #9c27b0; }
.warn-level-item dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
}
.warn-level-item dd {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.warn-type-list {
  margin: 0 0 14px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
}
.warn-type-list li { line-height: 1.5; }
.warn-type-list b { color: var(--text); }

.warn-info-note {
  margin: 0 !important;
  font-size: 11.5px !important;
  color: var(--muted);
  font-style: italic;
  padding: 8px 10px;
  background: var(--accent-soft);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

@media (max-width: 980px) {
  .warn-layout { grid-template-columns: 1fr; }
  .warn-map-col { position: static; order: -1; }
  .warn-map { height: 340px; }
  .warn-map-wrap { border-radius: var(--radius); }
  .warn-info { border-radius: 0 0 var(--radius) var(--radius); }
}
@media (max-width: 560px) {
  .warn-map { height: 260px; }
  .warn-group-head { flex-wrap: wrap; }
  .warn-head-actions .btn-ghost { padding: 6px 10px; font-size: 12px; }
}
