/* =========================================================
   Weltuhr - klares, helles Redesign
   Standard: hell.  Optional dunkel via [data-theme="dark"].
   Mobile-first, funktioniert auf allen Bildschirmgrößen.
   ========================================================= */

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --accent: #4f46e5;
  --accent-2: #6366f1;
  --accent-soft: #eef1ff;
  --day: #f59e0b;
  --night: #6366f1;

  /* Light (Standard) */
  --bg: #f4f6fb;
  --bg-grad: radial-gradient(1100px 520px at 85% -10%, #eef2ff 0%, transparent 60%),
             radial-gradient(900px 480px at -5% 0%, #eafaff 0%, transparent 55%);
  --card: #ffffff;
  --card-2: #f7f9fc;
  --line: #e7ebf3;
  --text: #101828;
  --muted: #667085;
  --faint: #98a2b3;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px rgba(16,24,40,.07);
  --shadow-sm: 0 1px 3px rgba(16,24,40,.06);

  --map-ocean: #e9eef8;
  --map-land: #cdd9ee;
  --map-line: rgba(80,100,140,.14);
  --map-night: rgba(30,41,80,.12);
}

[data-theme="dark"] {
  --bg: #0c1020;
  --bg-grad: radial-gradient(1100px 520px at 85% -10%, rgba(99,102,241,.14) 0%, transparent 60%),
             radial-gradient(900px 480px at -5% 0%, rgba(34,211,238,.10) 0%, transparent 55%);
  --card: #151a2e;
  --card-2: #1a2038;
  --line: rgba(255,255,255,.08);
  --text: #eef1fa;
  --muted: #9aa4be;
  --faint: #6b7590;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 40px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --accent-soft: rgba(99,102,241,.16);
  --map-ocean: #0f1730;
  --map-land: #26314f;
  --map-line: rgba(255,255,255,.06);
  --map-night: rgba(0,4,14,.42);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-grad), var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .3s var(--ease);
}
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 18px; height: auto; min-height: 62px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
/* Suchleiste im Header: mobil volle Breite in eigener Zeile, ab Desktop mittig mit gleichem Abstand links/rechts */
.site-header .search-box { flex: 1 1 100%; max-width: none; margin: 0; order: 3; }
.site-header .header-actions { order: 2; margin-left: auto; }
@media (min-width: 721px) {
  .site-header .search-box { flex: 0 1 470px; max-width: 470px; margin: 0 auto; order: 0; }
  .site-header .header-actions { order: 0; margin-left: 0; }
}
.brand .logo { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.35); }
.brand .logo svg { width: 20px; height: 20px; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: -2px; }
.brand #lblBrand, .brand #lblBrandSub { white-space: nowrap; }
.spacer { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); cursor: pointer; display: grid; place-items: center; transition: .18s var(--ease); box-shadow: var(--shadow-sm); }
.icon-btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .moon { display: none; }
[data-theme="dark"] .icon-btn .moon { display: block; }
[data-theme="dark"] .icon-btn .sun { display: none; }

.theme-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); transition: .18s var(--ease); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
@media (max-width: 400px) { .theme-toggle .theme-label { display: none; } .theme-toggle { padding: 0; width: 40px; justify-content: center; } }

.header-actions { display: flex; align-items: center; gap: 10px; }
.settings-wrap { position: relative; }
.settings-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 300px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 16px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease); }
.settings-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.settings-panel h5 { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 4px 0 8px; }
.settings-panel .group + .group { margin-top: 16px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { border: 1px solid var(--line); background: var(--card-2); color: var(--text); border-radius: 11px; padding: 10px 8px;
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: .15s var(--ease); text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 7px; }
.opt:hover { border-color: var(--accent); }
.opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.opt .mini-dial { width: 22px; height: 22px; }
.opt .mini-dial .md-face { fill: none; stroke: currentColor; stroke-width: 4; opacity: .6; }
.opt .mini-dial .md-mk { stroke: currentColor; stroke-width: 5; }
.opt .mini-dial .md-h { stroke: currentColor; stroke-width: 5; stroke-linecap: round; }

/* ---------------- Hero ---------------- */
.hero { padding: 30px 0 8px; }
.hero-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; align-items: center; }
.hero-main { grid-column: 1; grid-row: 1; }
.hero-meta { grid-column: 1 / -1; grid-row: 2; }
.hero-dial { grid-column: 2; grid-row: 1 / span 2; }
.hero-card::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 100% -40%, var(--accent-soft), transparent 70%); pointer-events: none; }
.hero-main { position: relative; min-width: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.hero-eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-time { font-weight: 800; letter-spacing: -.01em; line-height: 1.12; font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 11vw, 6.4rem); padding-bottom: .04em; }
.hero-time .colon { margin: 0 .05em; }
.hero-time .sec { color: var(--muted); font-weight: 700; font-size: .42em; }
.hero-time .sec .colon { margin: 0 .12em; }
.hero-city { font-size: clamp(1.15rem, 3vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; margin-top: 6px; }
.hero-city .sub { color: var(--faint); font-weight: 500; }
.hero-date { color: var(--muted); font-size: 1.02rem; margin-top: 2px; }
.hero-meta { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 2px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; }
.hero-meta::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; white-space: nowrap;
  background: var(--card-2); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px; font-size: .86rem; color: var(--muted); font-weight: 500; }
.chip b { color: var(--text); font-weight: 700; }
.chip svg { width: 15px; height: 15px; }
.chip.day { color: #b45309; background: #fff7ed; border-color: #fed7aa; }
.chip.night { color: #4338ca; background: #eef2ff; border-color: #c7d2fe; }
/* Sonnenaufgang gelblich, Sonnenuntergang dunkelgrau (geht unter) */
.chip-sunrise { color: #a16207; background: #fefce8; border-color: #fde047; }
.chip-sunrise b { color: #854d0e; }
.chip-sunset { color: #475569; background: #eef1f6; border-color: #94a3b8; }
.chip-sunset b { color: #1e293b; }
[data-theme="dark"] .chip-sunrise { color: #fde047; background: rgba(250,204,21,.12); border-color: rgba(250,204,21,.35); }
[data-theme="dark"] .chip-sunrise b { color: #fef9c3; }
[data-theme="dark"] .chip-sunset { color: #cbd5e1; background: rgba(148,163,184,.14); border-color: rgba(148,163,184,.4); }
[data-theme="dark"] .chip-sunset b { color: #f1f5f9; }
[data-theme="dark"] .chip.day { color: #fbbf24; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); }
[data-theme="dark"] .chip.night { color: #a5b4fc; background: rgba(99,102,241,.14); border-color: rgba(99,102,241,.3); }

/* Zeit-Regler (Zeitzonen-Rechner) */
.time-scrub { display: flex; align-items: center; gap: 12px; margin-top: 19px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border-radius: 14px; padding: 8px 16px; min-height: 50px; }
.time-scrub .ts-ico { width: 18px; height: 18px; color: var(--faint); flex: none; }
.time-scrub input[type="range"] { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background: var(--line); outline: none; cursor: pointer; }
.time-scrub input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--card); box-shadow: 0 2px 6px rgba(79,70,229,.4); cursor: grab; }
.time-scrub input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--card); box-shadow: 0 2px 6px rgba(79,70,229,.4); cursor: grab; }
.time-scrub input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.now-btn { flex: none; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent);
  font: inherit; font-weight: 700; font-size: .84rem; height: 32px; padding: 0 15px; display: inline-flex; align-items: center;
  border-radius: 10px; cursor: pointer; transition: .15s var(--ease); }
.now-btn:hover { background: var(--accent); color: #fff; }

/* großes Analog-Zifferblatt rechts */
.hero-dial { width: clamp(160px, 26vw, 240px); height: clamp(160px, 26vw, 240px);
  justify-self: end; align-self: center; margin-right: 22px; }
.dial .num { fill: var(--muted); font-family: var(--font); font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.dial .num.roman { font-weight: 600; }
.dial .dot4 { fill: var(--faint); }

/* ---------------- Suche ---------------- */
.search-section { padding: 22px 0 4px; }
.search-box { position: relative; max-width: 560px; margin: 0 auto; }
.search-box .s-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); }
.search-box input { width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-size: 1rem; padding: 15px 16px 15px 46px; border-radius: 14px; outline: none; box-shadow: var(--shadow-sm);
  transition: .18s var(--ease); }
.search-box input::placeholder { color: var(--faint); }
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  overflow: hidden; max-height: 340px; overflow-y: auto; display: none; }
.search-results.open { display: block; }
.search-results button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  border: 0; background: transparent; color: var(--text); font: inherit; padding: 13px 16px; cursor: pointer; text-align: left; }
.search-results button:hover, .search-results button.active { background: var(--accent-soft); }
.search-results .r-name { font-weight: 600; }
.search-results .r-sub { color: var(--faint); font-size: .84rem; }
.search-results .r-time { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.search-results .r-check { color: var(--accent); }
.search-empty { padding: 16px; color: var(--faint); font-size: .92rem; text-align: center; }

/* ---------------- Städte-Grid ---------------- */
.cities-section { padding: 24px 0 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.sec-head .hint { color: var(--faint); font-size: .86rem; }

.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.city { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
  cursor: grab; -webkit-user-select: none; user-select: none; }
.city:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.city.drag-placeholder { opacity: .35; transition: none; }
.city.drag-placeholder:hover { transform: none; }
.drag-clone { position: fixed; z-index: 200; margin: 0 !important; pointer-events: none;
  box-shadow: 0 22px 55px rgba(16,24,40,.28); opacity: .97; cursor: grabbing;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line)) !important; }
body.dragging-active { -webkit-user-select: none; user-select: none; }
body.dragging-active, body.dragging-active * { cursor: grabbing !important; }
.city .c-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
/* Kopf (Name + Land) reserviert feste Höhe -> alle Kacheln gleich groß; Reserveplatz liegt UNTER dem Land,
   damit das Land immer direkt und eng unter der Stadt steht (egal ob 1 oder 2 Zeilen). */
.c-head { min-height: 66px; }
.city .c-name { font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.city .c-country { color: var(--faint); font-size: .8rem; font-weight: 500; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city.is-hero { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.c-actions { display: flex; align-items: center; gap: 6px; flex: none; }
/* Ziehleiste oben auf der Kachel (nur Touch): touch-action:none schaltet dort das Scrollen ab -> zuverlässiges Drag auf dem Handy.
   Liegt im Fluss und schiebt den Inhalt nach unten (kein Überlappen). */
.c-grip { display: none; position: relative; height: 20px; margin: -4px 0 2px; cursor: grab;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.c-grip::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 34px; height: 4px; border-radius: 999px; background: var(--line); }
.c-grip:active { cursor: grabbing; }
.c-grip:active::before, .c-grip:hover::before { background: var(--faint); }
@media (max-width: 560px), (pointer: coarse) { .c-grip { display: block; } }
.c-star { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--card-2);
  color: var(--faint); cursor: pointer; display: grid; place-items: center; transition: .15s var(--ease); }
.c-star svg { width: 16px; height: 16px; }
.c-star:hover { color: var(--accent); border-color: var(--accent); }
.c-star.active { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 3px 10px rgba(79,70,229,.35); }
/* Breite = Stern (30) + Abstand (6) + X (30) = 66px; oben 6px Abstand (= Abstand Stern/X) */
.hero-tag { position: absolute; top: 54px; right: 18px; width: 66px; display: none;
  align-items: center; justify-content: center; text-align: center;
  font-size: .64rem; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  padding: 4px 0; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.city.is-hero .hero-tag { display: flex; }
@media (max-width: 560px) { .hero-tag { display: none !important; } }
.city .c-remove { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--card-2);
  color: var(--faint); cursor: pointer; display: grid; place-items: center; flex: none; transition: .15s var(--ease); }
.city .c-remove:hover { color: #ef4444; border-color: #fecaca; background: #fef2f2; }
[data-theme="dark"] .city .c-remove:hover { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.4); }
.city .c-remove svg { width: 15px; height: 15px; }
.city .c-time { font-weight: 800; font-size: 2.4rem; letter-spacing: -.01em; line-height: 1.05; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.city .c-time .colon { margin: 0 .05em; }
.city .c-time .s { color: var(--faint); font-size: .46em; font-weight: 700; }
.city .c-time .s .colon { margin: 0 .11em; }
.city .c-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; min-height: 28px; }
.city .c-off { font-size: .84rem; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.city .c-dn { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; flex: none; white-space: nowrap; }
.city .c-dn.day { color: #b45309; background: #fff7ed; }
.city .c-dn.night { color: #4338ca; background: #eef2ff; }
[data-theme="dark"] .city .c-dn.day { color: #fbbf24; background: rgba(245,158,11,.12); }
[data-theme="dark"] .city .c-dn.night { color: #a5b4fc; background: rgba(99,102,241,.14); }
.city .c-dn svg { width: 14px; height: 14px; }

.add-tile { border: 1.5px dashed var(--line); background: transparent; color: var(--muted); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; min-height: 150px;
  cursor: pointer; font-weight: 700; font-size: .95rem; transition: .18s var(--ease); font-family: inherit; }
.add-tile:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.add-tile svg { width: 26px; height: 26px; }

/* ---------------- Karte ---------------- */
.map-section { padding: 32px 0 8px; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--map-ocean); }
.worldmap { display: block; width: 100%; height: auto; }
.worldmap .ocean { fill: var(--map-ocean); }
.worldmap .land { fill: var(--map-land); stroke: var(--map-line); stroke-width: .5; stroke-linejoin: round; }
.worldmap .graticule { fill: none; stroke: var(--map-line); stroke-width: .5; }
.worldmap .night { fill: var(--map-night); }
.worldmap .pin-halo { fill: var(--accent); opacity: .18; }
.worldmap .pin-core { fill: var(--accent); stroke: #fff; stroke-width: 1.6; }
[data-theme="dark"] .worldmap .pin-core { stroke: #151a2e; }
.worldmap .pin-label { fill: var(--text); font: 700 12px var(--font); paint-order: stroke; stroke: var(--map-ocean); stroke-width: 3.5px; stroke-linejoin: round; }
.worldmap .sun { fill: #fbbf24; stroke: #f59e0b; stroke-width: 1.5; }
.map-note { display: flex; align-items: center; gap: 9px; margin-top: 11px; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.map-sun-dot { width: 13px; height: 13px; border-radius: 50%; background: #fbbf24; border: 1.5px solid #f59e0b; flex: none; box-shadow: 0 0 0 3px rgba(251,191,36,.2); }

/* ---------------- Footer ---------------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 24px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { color: var(--faint); font-size: .84rem; }

/* ---------------- Cookie ---------------- */
.cookie { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(160%);
  width: min(640px, calc(100% - 28px)); z-index: 90; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); padding: 20px; transition: transform .5s var(--ease); }
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie h4 { font-size: 1.02rem; margin-bottom: 6px; }
.cookie p { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.cookie p a { color: var(--accent); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 11px 18px; border-radius: 11px; font-size: .9rem; transition: .16s var(--ease); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.3); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------------- Analog (Hero) ---------------- */
.dial .face { fill: var(--card-2); stroke: var(--line); stroke-width: 2; }
.dial .tick { stroke: var(--faint); stroke-width: 1.4; }
.dial .tick.major { stroke: var(--muted); stroke-width: 2.6; }
.dial .hh { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.dial .mh { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.dial .sh { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.dial .cap { fill: var(--accent); }

/* ---------------- Hilfe-Modal ---------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15,20,45,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s var(--ease); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { position: relative; width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 26px 26px 24px; transform: translateY(10px) scale(.98);
  transition: transform .22s var(--ease); }
.modal-overlay.open .modal { transform: none; }
.modal h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; padding-right: 30px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: .15s var(--ease); }
.modal-close:hover { color: var(--text); border-color: var(--accent); }
.modal-close svg { width: 16px; height: 16px; }
.help-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.help-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.help-list .h-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-top: 1px; }
.help-list .h-ico svg { width: 16px; height: 16px; }
.help-list b { color: var(--text); font-weight: 700; }
.modal .btn { width: 100%; }

/* ---------------- Legal ---------------- */
.legal { max-width: 800px; margin: 0 auto; padding: 32px 0 60px; }
.legal .back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 18px; }
.legal .back:hover { color: var(--text); }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.legal .lead { color: var(--muted); margin-bottom: 24px; }
.legal h2 { font-size: 1.2rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin: 14px 0; box-shadow: var(--shadow-sm); }

/* ---------------- Responsive ---------------- */
/* Desktop/Tablet: Kopfzeile etwas größer und mehr Abstand nach oben (mobil unverändert) */
@media (min-width: 561px) {
  .site-header .wrap { height: auto; min-height: 80px; padding: 16px 18px 14px; align-items: center; }
  .brand { font-size: 1.24rem; }
  .brand .logo { width: 39px; height: 39px; border-radius: 11px; }
  .brand .logo svg { width: 23px; height: 23px; }
  .brand small { font-size: .68rem; }
  .icon-btn { width: 44px; height: 44px; border-radius: 12px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .theme-toggle { height: 44px; padding: 0 16px; font-size: .95rem; }
  .theme-toggle svg { width: 19px; height: 19px; }
}
@media (max-width: 720px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-main { grid-column: 1; }
  .hero-meta { grid-column: 1; }
  .hero-dial { display: none; }
  /* App-Aufteilung: Tag/Nacht oben rechts, Sonnenauf-/-untergang übereinander (volle Breite, symmetrisch) */
  .hero-meta { display: grid; grid-template-columns: 1fr; gap: 8px; overflow: visible; }
  .hero-meta .chip-sun { justify-content: center; }
  .hero-meta .chip-dn { position: absolute; top: clamp(20px, 4vw, 38px); right: clamp(20px, 4vw, 38px); }
}
@media (max-width: 560px) {
  .site-header .wrap { height: auto; min-height: 56px; padding: 7px 18px 9px; gap: 7px 14px; align-items: center; }
  .site-header .search-box input { padding-top: 11px; padding-bottom: 11px; font-size: .95rem; }
  .brand { font-size: 1.23rem; }
  .brand .logo { width: 38px; height: 38px; border-radius: 11px; }
  .brand .logo svg { width: 22px; height: 22px; }
  .brand small { display: none; }
  .cities { grid-template-columns: 1fr 1fr; gap: 10px; }
  .city { padding: 14px; }
  .city .c-time { font-size: 1.9rem; }
  .city .c-country { display: none; }
  .c-head { min-height: 44px; }
  .city .c-name { font-size: .96rem; }
  .city .c-off { font-size: .78rem; }
  /* App: Stern unter das X stapeln -> schmaler, mehr Platz für den Namen */
  .c-actions { flex-direction: column-reverse; align-items: center; gap: 6px; }
  .city .c-dn { padding: 5px; gap: 0; }
  .city .c-dn .dn-txt { display: none; }
  .city .c-dn svg { width: 14px; height: 14px; }
  .hero { padding: 20px 0 4px; }
  .map-section { padding-top: 28px; }
}
@media (max-width: 360px) {
  .cities { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
