:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6a65;
  --line: #e6e3dc;
  --accent: #b5532c;
  --stage: #121212;
  --radius: 10px;
  --wrap: 1180px;
  --read: 720px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151514; --surface: #1e1e1c; --text: #ecebe6; --muted: #a3a19a;
    --line: #2f2e2b; --accent: #e0835a; --stage: #000; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151514; --surface: #1e1e1c; --text: #ecebe6; --muted: #a3a19a;
  --line: #2f2e2b; --accent: #e0835a; --stage: #000; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2 { line-height: 1.2; letter-spacing: -0.01em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Kopf & Fuss */
.site-header {
  max-width: var(--wrap); margin: 0 auto; padding: 18px 16px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between;
}
.brand { font-weight: 700; font-size: 1.3rem; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.site-footer { max-width: var(--wrap); margin: 64px auto 0; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
main { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Startseite */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 32px; }
.card a { display: block; color: inherit; text-decoration: none; height: 100%; }
.card img, .card .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.card h2 { font-size: 1.2rem; margin: 4px 0 6px; }
.card a:hover h2 { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .meta { margin-top: 12px; font-size: .85rem; }
.meta { color: var(--muted); font-size: .9rem; margin: 0; }

/* Länder */
.list-head { margin: 24px 0 0; }
.list-head h1 { margin: 0; font-size: 2rem; }
.list-head p:last-child { color: var(--muted); margin: 4px 0 0; }
.countries { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-top: 24px; }
.country { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; }
.country img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.country:hover img { transform: scale(1.04); }
.country span { position: absolute; inset: auto 0 0 0; padding: 28px 14px 10px; font-weight: 600; font-size: 1.1rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.country small { opacity: .8; font-weight: 400; }

/* Beitrag */
.post { max-width: var(--read); margin: 24px auto 0; }
.post header h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 6px 0 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: .85rem; padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); text-decoration: none; }
.chip:hover { color: var(--accent); border-color: var(--accent); }
.content { margin-top: 28px; overflow-wrap: anywhere; }
.content .period { display: inline-block; padding: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; color: var(--muted); }
.content figure { margin: 24px 0; }
.content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.content td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.content td:first-child { font-weight: 700; white-space: nowrap; text-align: right; padding-right: 16px; }
.content video, .content audio { width: 100%; border-radius: var(--radius); }
.content img[data-full] { cursor: zoom-in; border-radius: var(--radius); }
.content blockquote { margin: 24px 0; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.postnav { max-width: var(--read); margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.postnav a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 600; }
.postnav a:hover { border-color: var(--accent); }
.postnav span { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.postnav .newer { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .postnav { grid-template-columns: 1fr; } .postnav .newer { grid-column: 1; } }

/* Slider */
.slider { margin: 32px 0; }
.post .slider { margin-inline: calc(50% - min(50vw, 590px) + 16px); }
.stage { position: relative; background: var(--stage); border-radius: var(--radius); overflow: hidden; }
.track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 2; max-height: 80vh; }
.slide a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.hero .slide { aspect-ratio: 21 / 9; min-height: 240px; }
.hero .slide img { object-fit: cover; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 28px; line-height: 40px; cursor: pointer; }
.nav:hover { background: rgba(0,0,0,.7); }
.prev { left: 12px; } .next { right: 12px; }
.count { position: absolute; right: 12px; bottom: 10px; padding: 2px 10px; border-radius: 99px; background: rgba(0,0,0,.5); color: #fff; font-size: .8rem; }
.thumbs { display: flex; gap: 6px; margin: 8px 0 0; padding: 0 0 4px; list-style: none; overflow-x: auto; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; opacity: .6; }
.thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.thumbs button:hover { opacity: 1; }
.thumbs img { width: 84px; height: 60px; object-fit: cover; border-radius: 4px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: .9rem; }

/* Karte */
.map { height: 75vh; min-height: 400px; border-radius: var(--radius); margin-top: 24px; }
