/* Tagesüberblick – eigenes Design, keine externen Ressourcen */
:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #161a22;
  --ink-2: #4a5160;
  --ink-3: #737a88;
  --line: #e2ddd3;
  --brand: #0f4c55;
  --brand-ink: #ffffff;
  --sun: #f2b33d;
  --link: #0f4c55;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-politik: #b5302a;
  --r-international: #1f5fa8;
  --r-wirtschaft: #0d7a55;
  --r-wissen: #7a3ea8;
  --r-sport: #c06a00;
  --r-kultur: #8a5a12;
  --r-kurioses: #b0306f;
  --max: 1180px;
}
/* Dunkel: automatisch nach Gerät (außer bei Wahl "Hell") oder ausdrücklich gewählt */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #12151b; --card: #1a1e26; --ink: #ecebe7; --ink-2: #b9bcc4; --ink-3: #8c919c; --line: #2b313c;
    --brand: #2c8b97; --link: #7fc8d1;
    --r-politik: #ef7a6f; --r-international: #7cb1ee; --r-wirtschaft: #5dc79c; --r-wissen: #c39af0;
    --r-sport: #f0a64c; --r-kultur: #d9b26a; --r-kurioses: #ef87ba;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #12151b; --card: #1a1e26; --ink: #ecebe7; --ink-2: #b9bcc4; --ink-3: #8c919c; --line: #2b313c;
  --brand: #2c8b97; --link: #7fc8d1;
  --r-politik: #ef7a6f; --r-international: #7cb1ee; --r-wirtschaft: #5dc79c; --r-wissen: #c39af0;
  --r-sport: #f0a64c; --r-kultur: #d9b26a; --r-kurioses: #ef87ba;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
h1, h2, h3, .teaser, .story-teaser { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px; z-index: 9; }

/* ressort colour hook */
.r-politik { --rc: var(--r-politik); } .r-international { --rc: var(--r-international); }
.r-wirtschaft { --rc: var(--r-wirtschaft); } .r-wissen { --rc: var(--r-wissen); }
.r-sport { --rc: var(--r-sport); } .r-kultur { --rc: var(--r-kultur); } .r-kurioses { --rc: var(--r-kurioses); }

/* masthead */
.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-3); padding-top: 10px; }
.ai-chip { border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
.ai-chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); margin-right: 6px; vertical-align: 1px; }
.brand { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.mark { width: 38px; height: 38px; flex: none; align-self: center; }
.word { font-family: var(--serif); font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.word b { font-weight: 700; color: var(--brand); }
.tagline { margin: 0; color: var(--ink-2); font-size: 15px; }
.nav { border-top: 3px solid var(--ink); background: var(--card); position: sticky; top: 0; z-index: 5; }
.nav ul { list-style: none; margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 11px 12px 9px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--rc, var(--line)); }
.nav a[aria-current="page"] { border-bottom-color: var(--rc, var(--brand)); color: var(--rc, var(--brand)); }

main { padding-top: 22px; padding-bottom: 40px; min-height: 60vh; }

/* kicker + meta */
.kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rc, var(--brand)); margin-bottom: 6px; }
.kicker a { text-decoration: none; }
.kicker .dach { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 14px; }
.kicker .dach::before { content: "·"; margin-right: 8px; color: var(--ink-3); }
.meta { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.teaser { margin: 6px 0 0; color: var(--ink-2); }

/* front */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.lead { position: relative; background: var(--card); border-top: 6px solid var(--rc); padding: 22px 24px 24px; }
.lead-band { position: absolute; top: -6px; right: 20px; background: var(--rc); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px 5px; border-radius: 0 0 6px 6px; }
.lead h2 { font-family: var(--serif); font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.015em; margin: 4px 0 10px; }
.lead h2 a { text-decoration: none; } .lead h2 a:hover { text-decoration: underline; }
.lead .teaser { font-size: 20px; color: var(--ink); line-height: 1.45; }
.lead-more { color: var(--ink-2); margin: 12px 0 0; }
.more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--link); text-decoration: none; }
.more:hover { text-decoration: underline; }
.section-title { font-family: var(--sans); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--rc, var(--ink)); color: var(--rc, var(--ink)); }
.section-title a { text-decoration: none; }
.section-title a::after { content: " →"; opacity: .6; }
.latest ol { list-style: none; margin: 0; padding: 0; }
.latest li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.latest li time { color: var(--rc); font-weight: 700; font-variant-numeric: tabular-nums; }
.latest li a { text-decoration: none; font-weight: 600; } .latest li a:hover { text-decoration: underline; }

/* cards */
.top-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { border-top: 3px solid var(--rc); padding-top: 10px; }
.card h3 { font-family: var(--serif); font-size: 21px; line-height: 1.2; margin: 0; letter-spacing: -0.005em; }
.card h3 a { text-decoration: none; } .card h3 a:hover { text-decoration: underline; }
.card-m h3 { font-size: 23px; }
.card .teaser { font-size: 15.5px; }
.ressort-block { padding: 26px 0 6px; }
.ressort-block .grid .card-m { grid-column: span 2; }
.ressort-block .grid .card-m h3 { font-size: 26px; }

/* article */
.story { max-width: 720px; margin: 0 auto; }
.story h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.015em; margin: 6px 0 12px; }
.story-teaser { font-size: 21px; line-height: 1.45; margin: 0; font-weight: 500; }
.story header .meta { margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ai-box { margin: 20px 0; padding: 14px 16px; background: color-mix(in srgb, var(--sun) 14%, var(--card)); border-left: 4px solid var(--sun); font-size: 14.5px; color: var(--ink-2); }
.ai-box strong { color: var(--ink); display: block; margin-bottom: 2px; }
.ai-box p { margin: 0; }
.story-body { font-family: var(--serif); font-size: 20px; line-height: 1.65; }
.story-body p { margin: 0 0 1.05em; }
.sources { margin-top: 28px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); }
.sources h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.sources ul { margin: 0; padding: 0; list-style: none; }
.sources li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; }
.sources li:first-child { border-top: 0; }
.sources a { color: var(--link); }
.sources .src { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--paper); border: 1px solid var(--line); padding: 1px 6px; margin-right: 4px; }
.sources time { color: var(--ink-3); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.tags span { font-size: 13px; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; color: var(--ink-2); }
.related { max-width: var(--max); margin: 40px auto 0; }

/* lists */
.page-head { border-bottom: 3px solid var(--ink); margin-bottom: 8px; padding-bottom: 10px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 42px); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.list-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-item h3 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin: 0; }
.list-item h3 a { text-decoration: none; } .list-item h3 a:hover { text-decoration: underline; }
.list-group h2 { margin: 26px 0 0; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--rc); border-bottom: 2px solid var(--rc); padding-bottom: 6px; }
.archive-month h2 { font-family: var(--serif); margin: 26px 0 8px; }
.days { list-style: none; padding: 0; margin: 0; max-width: 560px; }
.days li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.days .count { color: var(--ink-3); font-size: 14px; }

/* prose pages */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 42px); line-height: 1.1; }
.prose h2 { font-size: 19px; margin-top: 28px; }
.placeholder { background: color-mix(in srgb, var(--r-politik) 12%, var(--card)); border-left: 4px solid var(--r-politik); padding: 10px 14px; font-weight: 600; }
.prose a, .ai-note a, .footer a { color: var(--link); }
.ai-note { margin-top: 34px; font-size: 14px; color: var(--ink-3); text-align: center; }
.empty { padding: 40px 0; color: var(--ink-3); }

/* footer */
.footer { background: #12161d; color: #c9ccd3; padding: 28px 0 34px; font-size: 14.5px; }
.footer a { color: #fff; }
.foot-brand { max-width: 720px; margin: 0 0 14px; }
.foot-links { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.small { font-size: 12.5px; color: #8b909b; margin: 0; }

/* responsive */
@media (max-width: 980px) {
  .top-grid, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ressort-block .grid .card-m { grid-column: span 2; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .front { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lead { padding: 18px 16px 20px; margin: 0 -16px; }
  .lead .teaser { font-size: 18px; }
  .tagline { display: none; }
  .top-grid, .grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ressort-block .grid .card-m { grid-column: auto; }
  .story-body { font-size: 18.5px; }
  .story-teaser { font-size: 19px; }
  .sources { padding: 14px; margin-left: -4px; margin-right: -4px; }
}

/* newsletter signup */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; align-items: center; margin: 26px 0 6px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--sun); }
.signup h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; }
.signup p { margin: 0; color: var(--ink-2); font-size: 15px; }
.signup-form { display: flex; flex-wrap: wrap; gap: 8px; }
.signup-form input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.signup-form button { font: inherit; font-weight: 700; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--brand); color: var(--brand-ink); cursor: pointer; }
.signup-form .consent { flex-basis: 100%; font-size: 12.5px; color: var(--ink-3); }
.signup-form .consent a, .signup-soon a { color: var(--link); }
.story .signup { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .signup { grid-template-columns: minmax(0, 1fr); padding: 16px; } }

/* daily video (2-click YouTube) */
.video-box { margin-bottom: 22px; }
.yt { position: relative; aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; background: #000; border-radius: 10px; overflow: hidden; }
.yt-play { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.yt-icon { position: absolute; left: 50%; top: 42%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(15, 76, 85, .92); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0,0,0,.35); transition: transform .15s; }
.yt-icon svg { width: 34px; height: 34px; margin-left: 4px; }
.yt-play:hover .yt-icon { transform: scale(1.08); }
.yt-dur { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.yt-note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 26px 12px 10px; font-size: 12px; line-height: 1.35; color: #e8e8e8; background: linear-gradient(transparent, rgba(0,0,0,.85)); pointer-events: none; }
.yt-note a { color: #fff; pointer-events: auto; }
.yt.yt-on iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-title { max-width: 340px; margin: 8px auto 0; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.video-title b { color: var(--ink); font-size: 15px; }
.video-title a { color: var(--link); }
.list-video { max-width: 340px; margin: 18px 0 8px; }

/* Hell/Dunkel-Umschalter */
.top-right { display: flex; align-items: center; gap: 10px; }
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; background: var(--paper); }
.theme-switch button { all: unset; cursor: pointer; display: grid; place-items: center; width: 30px; height: 26px; border-radius: 99px; color: var(--ink-3); }
.theme-switch button svg { width: 16px; height: 16px; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--card); color: var(--brand); box-shadow: 0 0 0 1px var(--line); }
.theme-switch button:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }
@media (max-width: 520px) { .ai-chip { display: none; } }
