/* München heute – Blueprint-Stil: hell, klar, eckig. Referenzbreite 390 px. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+1E00-1E9F; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+1E00-1E9F; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+1E00-1E9F; }

:root {
  --ink: #14181f; --ink-2: #3b4250; --ink-3: #6b7280; --line: #d5dae3; --grid: #eef2f8; --bg: #fff;
  --wetter: #1a5cc8; --oepnv: #d32f2f; --free: #1e8a3c;
  --c: var(--ink);
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Barlow', system-ui, -apple-system, sans-serif;
  --tap: 44px;
  --pad: 16px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --tabh: 60px;
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 11 11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 15px/1.5 var(--text); min-height: 100dvh; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: .01em; line-height: 1.1; }
.ic { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--c, var(--ink)); outline-offset: 2px; }

/* Obere Leiste */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: space-between; padding: calc(var(--sat) + 4px) calc(var(--pad) + var(--sar)) 4px calc(var(--pad) + var(--sal)); border-bottom: 1px solid var(--line); }
.brand { font: 600 19px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 14px; height: 14px; border: 2px solid var(--wetter); position: relative; }
.brand-mark::after { content: ''; position: absolute; inset: 3px; background: var(--wetter); }
.iconbtn { min-width: var(--tap); min-height: var(--tap); display: grid; place-items: center; margin-right: -10px; }

main { padding: 0 calc(var(--pad) + var(--sar)) calc(var(--tabh) + var(--sab) + 24px) calc(var(--pad) + var(--sal)); max-width: 560px; margin: 0 auto; outline: none; }

/* Blueprint-Karte: Rahmen 2 px + vier „+“-Marken */
.card { position: relative; border: 2px solid var(--c); background: #fff; }
.card::before { content: ''; position: absolute; inset: -7.5px; pointer-events: none; background: var(--c);
  -webkit-mask: var(--plus) 0 0/11px 11px no-repeat, var(--plus) 100% 0/11px 11px no-repeat, var(--plus) 0 100%/11px 11px no-repeat, var(--plus) 100% 100%/11px 11px no-repeat;
          mask: var(--plus) 0 0/11px 11px no-repeat, var(--plus) 100% 0/11px 11px no-repeat, var(--plus) 0 100%/11px 11px no-repeat, var(--plus) 100% 100%/11px 11px no-repeat; }

/* Begrüßung */
.hello { padding: 22px 0 18px; }
.hello h1 { font-size: 38px; }
.hello .date { font: 600 15px/1.2 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 6px; }
.hello .intro { font-size: 17px; line-height: 1.5; margin: 12px 0 0; color: var(--ink-2); }
.note { margin-top: 12px; font-size: 13px; color: var(--ink-3); border: 1px dashed var(--line); padding: 6px 10px; }
.archive-banner { margin: 14px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--ink); padding: 4px 4px 4px 12px; font-size: 14px; }
.archive-banner button { min-height: var(--tap); padding: 0 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Wetter + ÖPNV */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 8px; }
.mini { --c: var(--wetter); padding: 12px 12px 10px; text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 150px; width: 100%; }
.mini.oepnv { --c: var(--oepnv); }
.mini .k { font: 600 13px/1.1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.mini .big { display: flex; align-items: center; gap: 8px; font: 600 30px/1 var(--head); color: var(--ink); margin-top: 6px; }
.mini .big .ic { color: var(--c); }
.mini .sub { font-size: 15px; font-weight: 500; line-height: 1.3; }
.mini .sub2 { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.mini .go { margin-top: auto; font-weight: 600; color: var(--c); display: flex; align-items: center; gap: 2px; font-size: 14px; padding-top: 6px; }
.mini.oepnv .big { font-size: 22px; }

/* Rubriken */
.rubric { --c: var(--ink); margin-top: 34px; }
.rubric-head { display: flex; align-items: baseline; gap: 10px; color: var(--c); border-bottom: 2px solid var(--c); padding-bottom: 6px; margin-bottom: 16px; }
.rubric-head .num { font: 600 15px/1 var(--head); border: 2px solid var(--c); padding: 3px 5px 2px; letter-spacing: .04em; transform: translateY(-3px); }
.rubric-head h2 { font-size: 27px; text-transform: uppercase; letter-spacing: .03em; }
.tiles { display: grid; gap: 16px; }
.tile { padding: 14px 14px 4px; }
.cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; font: 600 13px/1.2 var(--head); letter-spacing: .09em; text-transform: uppercase; color: var(--c); }
.when { font: 600 15px/1.3 var(--text); color: var(--ink); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.when .ic { color: var(--c); }
.tile h3 { font-size: 23px; margin-top: 6px; }
.tile h3 button { text-align: left; line-height: inherit; font: inherit; }
.tile p { margin: 6px 0 0; color: var(--ink-2); }
.actions { display: flex; align-items: center; gap: 4px; margin-top: 6px; border-top: 1px solid var(--grid); }
.actions > * { min-height: var(--tap); display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-weight: 600; font-size: 15px; }
.actions .more { margin-right: auto; padding-right: 8px; }
.actions .cal { padding: 0 8px; }
.actions .share { min-width: var(--tap); justify-content: center; margin-right: -8px; }
.actions .cal.done { color: var(--free); }
.morebtn { --c: inherit; margin-top: 14px; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border: 2px solid var(--c); color: var(--c); font: 600 17px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; background: repeating-linear-gradient(-45deg, #fff 0 6px, var(--grid) 6px 7px); }

.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--free); color: #fff; font: 600 12px/1 var(--text); letter-spacing: .02em; text-transform: none; white-space: nowrap; }

.band { margin: 44px calc(-1 * var(--pad)) 0; padding: 14px var(--pad); background: var(--ink); color: #fff; font: 600 20px/1 var(--head); text-transform: uppercase; letter-spacing: .14em; text-align: center;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 14px 14px; }

.foot { text-align: center; padding: 44px 0 10px; }
.foot h2 { font-size: 26px; }
.foot p { margin: 4px 0 0; color: var(--ink-3); }

/* Tab-Leiste */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 0 var(--sar) var(--sab) var(--sal); }
.tabbar a { position: relative; min-height: var(--tabh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font: 500 13px/1 var(--text); }
.tabbar a::before { content: ''; position: absolute; top: -1px; left: 14%; right: 14%; height: 4px; background: transparent; }
.tabbar a.active { color: var(--ink); font-weight: 600; }
.tabbar a.active::before { background: var(--tabc, var(--wetter)); }

/* Seitenköpfe der Reiter */
.pagehead { padding: 22px 0 6px; }
.pagehead h1 { font-size: 34px; text-transform: uppercase; letter-spacing: .03em; }
.pagehead p { margin: 4px 0 0; color: var(--ink-3); }

/* Woche */
.day { --c: #c25e00; margin-top: 22px; }
.day-head { font: 600 19px/1.2 var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--c); border-bottom: 2px solid var(--c); padding-bottom: 5px; }
.row { display: grid; grid-template-columns: 54px 1fr var(--tap); align-items: center; gap: 8px; border-bottom: 1px solid var(--line); min-height: 64px; }
.row .t { font: 600 18px/1 var(--head); color: var(--c); }
.row .what { text-align: left; padding: 10px 0; min-height: var(--tap); }
.row .what b { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; }
.row .what .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--ink-3); font-size: 14px; margin-top: 3px; }
.row .what .meta .pl { flex: 0 1 auto; }
.row .calbtn { width: var(--tap); height: var(--tap); display: grid; place-items: center; color: var(--c); }
.row .calbtn.done { color: var(--free); }
.preview { --c: #c25e00; margin-top: 30px; padding: 14px; }
.btn-wide { width: 100%; min-height: 50px; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 18px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; border: 2px solid var(--c, var(--ink)); color: var(--c, var(--ink)); }
.btn-solid { background: var(--c, var(--ink)); color: #fff; }

/* Entdecken */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--pad) 12px; margin: 0 calc(-1 * var(--pad)); scrollbar-width: none; position: sticky; top: calc(var(--sat) + 53px); background: #fff; z-index: 5; }
.chips::-webkit-scrollbar { display: none; }
.chip { --c: var(--ink); flex: none; min-height: var(--tap); padding: 0 14px; border: 2px solid var(--c); color: var(--c); font: 600 16px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--c); color: #fff; }
.count { color: var(--ink-3); margin: 2px 0 14px; font-weight: 500; }
.secline { font: 600 15px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--c); margin: 22px 0 10px; }

/* Ausgaben */
.ed { --c: var(--ink); display: block; width: 100%; text-align: left; padding: 14px; margin-top: 18px; }
.ed .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 600 14px/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ed .wx { display: flex; align-items: center; gap: 6px; color: var(--wetter); font: 600 15px/1.2 var(--head); letter-spacing: .05em; text-transform: uppercase; margin-top: 6px; }
.ed h3 { font-size: 22px; margin-top: 8px; }
.ed ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.tag { background: var(--ink); color: #fff; padding: 3px 7px; font-size: 12px; }

/* Vollbild-Seite (Artikel, Wetter, ÖPNV) */
.page { position: fixed; inset: 0; z-index: 50; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.pagebar { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: var(--sat) calc(var(--pad) + var(--sar)) 0 calc(var(--pad) + var(--sal)); border-bottom: 2px solid var(--c); min-height: calc(var(--sat) + 52px); }
.back { min-height: var(--tap); display: inline-flex; align-items: center; gap: 2px; margin-left: -10px; padding-right: 10px; font-weight: 600; color: var(--c); font-size: 16px; }
.pagebar .label { font: 600 14px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.article { padding: 20px calc(var(--pad) + var(--sar)) calc(var(--sab) + 40px) calc(var(--pad) + var(--sal)); max-width: 620px; margin: 0 auto; }
.article h1 { font-size: 34px; margin-top: 8px; }
.article .lead { font-size: 18px; font-weight: 500; color: var(--ink-2); margin: 12px 0 0; }
.article p { font-size: 17px; line-height: 1.6; margin: 14px 0 0; }
.facts { width: 100%; border-collapse: collapse; margin: 18px 0 4px; font-size: 16px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.facts th { width: 86px; font: 600 15px/1.4 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--c); padding-left: 0; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 2px solid var(--c); }
.art-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.art-actions.single { grid-template-columns: 1fr; }
.art-actions button { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--c); color: var(--c); font: 600 17px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; }
.art-actions button.done { border-color: var(--free); color: var(--free); }
.source { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15px; }
.source a { color: var(--c); font-weight: 600; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); }

/* Briefing-Liste Wetter / ÖPNV */
.brief { list-style: none; margin: 18px 0 0; padding: 0; }
.brief li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.brief li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 8px; height: 8px; background: var(--c); }
.brief li b { font-weight: 600; }
.brief li ul { margin: 6px 0 0; padding-left: 18px; }
.brief li ul li { border: 0; padding: 3px 0; font-size: 16px; }
.brief li ul li::before { display: none; }
.hours { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 22px; }
.hours div { border: 1px solid var(--line); text-align: center; padding: 6px 0; font-size: 13px; color: var(--ink-2); }
.hours div b { display: block; font: 600 17px/1.2 var(--head); color: var(--ink); }
.hours div .ic { margin: 3px auto; color: var(--wetter); }
.muted { color: var(--ink-3); font-size: 14px; }

/* Blatt von unten (Einstellungen, Kalender) */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(20,24,31,.38); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; border-top: 3px solid var(--c, var(--ink)); max-height: 88dvh; overflow-y: auto; padding: 8px calc(var(--pad) + var(--sar)) calc(var(--sab) + 18px) calc(var(--pad) + var(--sal)); animation: up .24s ease-out; max-width: 620px; margin: 0 auto; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 26px; text-transform: uppercase; letter-spacing: .03em; }
.sheet h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 20px 0 6px; display: flex; align-items: center; gap: 8px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-size: 17px; }
.toggle .sw { flex: none; width: 50px; height: 28px; border: 2px solid var(--c); position: relative; background: #fff; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--line); transition: transform .15s; }
.toggle[aria-checked="true"] .sw { background: var(--c); }
.toggle[aria-checked="true"] .sw::after { transform: translateX(22px); background: #fff; }
.toggle .nm { display: flex; align-items: center; gap: 10px; }
.toggle .sq { width: 12px; height: 12px; background: var(--c); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--line); }
.seg button { min-height: var(--tap); font-weight: 600; color: var(--ink-3); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--grid); color: var(--ink-2); }
.later { display: inline-block; font: 600 12px/1 var(--text); letter-spacing: .02em; text-transform: none; color: var(--ink-2); border: 1px dashed var(--ink-3); padding: 4px 6px; }
.opts { display: grid; gap: 8px; margin-top: 4px; }
.opt { min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 2px solid var(--line); text-align: left; font-size: 17px; }
.opt .dot { width: 18px; height: 18px; border: 2px solid var(--ink-3); flex: none; }
.opt[aria-checked="true"] { border-color: var(--c); }
.opt[aria-checked="true"] .dot { border-color: var(--c); background: var(--c); box-shadow: inset 0 0 0 3px #fff; }
.calcard { --c: #c25e00; padding: 12px 14px; margin-top: 12px; }
.calcard b { font: 600 22px/1.15 var(--head); display: block; }
.calcard div { color: var(--ink-2); margin-top: 4px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + var(--sab) + 16px); transform: translateX(-50%); z-index: 80; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 500; max-width: 90vw; }

/* Ladezustand: Platzhalter-Kacheln */
.sk { background: linear-gradient(90deg, var(--grid) 25%, #f7f9fc 37%, var(--grid) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-line { height: 14px; margin-top: 10px; }
.sk-title { height: 26px; margin-top: 12px; width: 80%; }
.card.skc { --c: var(--line); padding: 14px; min-height: 150px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
