:root {
  --bg: #EDF1F4;
  --ink: #17212B;
  --ink-soft: #3B4956;
  --accent: #C9821E;
  --accent-tint: rgba(201, 130, 30, 0.55);
  --accent-wash: rgba(201, 130, 30, 0.10);
  --line: rgba(23, 33, 43, 0.14);

  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Kanit", "Arial Black", Impact, sans-serif;

  --gutter: 16px;
  --side-img: 38%;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body.no-scroll { overflow: hidden; }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom));
}

/* ---------- Masthead (rebuilt from logo.png) ---------- */

.masthead { padding: 18px 0 10px; text-align: center; }

.logo {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto;
  padding-top: 30px;
}

.swoosh { position: absolute; left: 0; width: 100%; height: auto; pointer-events: none; }
.swoosh-top { top: -2px; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9)); }
.swoosh-bottom {
  position: relative;
  display: block;
  margin-top: -8px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9));
}

.wordmark {
  position: relative;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.08em;
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(38px, 11.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: nowrap;
  filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 2px 0 rgba(255, 255, 255, 0.85));
}

.w-belgien, .w-aktuell {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.w-belgien { background-image: linear-gradient(180deg, #4a4a4a 0%, #0b0b0b 38%, #000 100%); }
.w-aktuell { background-image: linear-gradient(180deg, #ff3b2e 0%, #e30613 45%, #9c0000 100%); }

.tagline {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Bold amber underline beneath the masthead */
.masthead-rule {
  height: 8px;
  background: var(--accent);
  margin: 6px calc(-1 * var(--gutter)) 0;
}

/* ---------- Feed ---------- */

.section-head {
  margin: 30px 0 4px;
  padding-left: 12px;
  border-left: 6px solid var(--accent);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.story {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.story:last-child { border-bottom: 0; }
.story:active { background: var(--accent-wash); }
.story:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.story-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #dfe5ea;
  border: 1px solid var(--accent-tint);
}

.story-title {
  margin: 0 0 8px;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.005em;
}

.story-preview {
  margin: 0 0 12px;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.story-more {
  display: inline-block;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 1px;
  border-bottom: 2px solid var(--accent);
}

/* image ABOVE */
.story--top .story-img { aspect-ratio: 16 / 9; margin-bottom: 14px; }
.story--top .story-title { font-size: 23px; }

.story--left .story-title, .story--right .story-title { font-size: 17px; }

/* image LEFT / RIGHT */
.story--left, .story--right {
  display: grid;
  align-items: start;
  column-gap: 14px;
}
.story--left { grid-template-columns: var(--side-img) minmax(0, 1fr); }
.story--right { grid-template-columns: minmax(0, 1fr) var(--side-img); }
.story--right .story-img { order: 2; }
.story--left .story-img, .story--right .story-img { aspect-ratio: 4 / 5; }

/* ---------- Footer ---------- */

.footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 4px solid var(--accent);
  text-align: center;
}
.footer-name {
  margin: 0;
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.footer-line { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- Full-screen article overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.overlay[hidden] { display: none; }

.overlay-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  background: var(--bg);
  border-bottom: 5px solid var(--accent);
}

.overlay-section {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.overlay-close {
  appearance: none;
  border: 0;
  padding: 10px 16px;
  min-height: 44px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.overlay-close:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.overlay-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.overlay-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px var(--gutter) calc(40px + env(safe-area-inset-bottom));
}
.overlay-img { aspect-ratio: 16 / 9; margin-bottom: 18px; }
.overlay-title {
  margin: 0 0 16px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -0.01em;
}
.overlay-body p { margin: 0 0 16px; font-size: 17.5px; line-height: 1.62; }
.overlay-body p:first-child { font-weight: 700; }
