/* Sylt Funk Mediengesellschaft mbH – Stylesheet
   Ohne Frameworks, ohne externe Schriften (DSGVO-freundlich). */

:root {
  --red: #cc1521;
  --red-dark: #a3101a;
  --ink: #1d1d1f;
  --muted: #5f6368;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #f6f5f3;
  --radius: 0;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 0; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand { display: block; flex-shrink: 0; }
.brand img { height: 46px; width: auto; border-radius: 0; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 0;
  padding: 9px 11px; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor;
  position: relative; transition: transform .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 0;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--red); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px 18px; gap: 2px; }
  .main-nav a { border-radius: 0; padding: 12px 14px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }
}
/* Ohne JavaScript: Navigation immer sichtbar */
.no-js .nav-toggle { display: none; }
.no-js .main-nav { display: block; position: static; box-shadow: none; border: 0; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--red); color: #fff;
  padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
}
/* Streifen-Motiv aus dem Logo */
.hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 6%;
  width: min(30vw, 300px);
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.16) 0 10px, transparent 10px 26px,
    rgba(255,255,255,.10) 26px 30px, transparent 30px 44px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; opacity: .9; margin-bottom: 14px;
}
.hero h1 { max-width: 16ch; margin-bottom: .4em; }
.hero p.lead { font-size: 1.2rem; max-width: 46ch; opacity: .95; }

.freqs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.freq {
  background: #fff; color: var(--ink); border-radius: 0;
  padding: 14px 20px; min-width: 210px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.freq strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--red); font-variant-numeric: tabular-nums; }
.freq strong small { font-size: .95rem; font-weight: 600; color: var(--ink); margin-left: 4px; }
.freq span { font-size: .95rem; color: var(--muted); }

/* ---------- Unterseiten-Kopf ---------- */
.page-head {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 44px);
}
.page-head h1 { margin: 0; }
.page-head p { margin: 10px 0 0; color: var(--muted); font-size: 1.1rem; }
.breadcrumb { font-size: .9rem; margin-bottom: 10px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- Sektionen ---------- */
.section { padding: clamp(44px, 7vw, 80px) 0; }
.section-soft { background: var(--bg-soft); }
.section-title { margin-bottom: 28px; }

.cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  padding: 26px; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
a.card:hover { color: inherit; transform: translateY(-3px); border-color: #d6d6d6; box-shadow: 0 14px 30px rgba(0,0,0,.07); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); margin-bottom: 1.2em; }
.card .more { margin-top: auto; color: var(--red); font-weight: 600; }
.card .more::after { content: " →"; }

.prose > * + h2 { margin-top: 1.8em; }
.prose h2 { font-size: 1.35rem; }
.prose h3 { margin-top: 1.6em; margin-bottom: .4em; }
.prose p, .prose li { color: #333; }
.prose ul { padding-left: 1.2em; }

.meta { color: var(--muted); font-size: .95rem; margin-bottom: 1.4em; }

figure { margin: 0 0 1.6em; }
figure img { border-radius: 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.figure-right { float: right; width: min(46%, 360px); margin: 6px 0 1em 28px; }
@media (max-width: 640px) { .figure-right { float: none; width: 100%; margin: 0 0 1.4em; } }
.clearfix::after { content: ""; display: table; clear: both; }

blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px;
  border-left: 4px solid var(--red); font-style: italic; color: #333;
}

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  padding: 26px;
}
.split { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 20px; border-radius: 0; border: 0; cursor: pointer; font: inherit;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; }

/* Karte mit Einwilligung (Zwei-Klick-Lösung) */
.map-consent {
  position: relative; aspect-ratio: 16 / 10; border-radius: 0; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: 24px;
}
.map-consent p { max-width: 42ch; color: var(--muted); font-size: .95rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.notice {
  background: #fff7e6; border: 1px solid #f1d7a6; border-radius: 0;
  padding: 14px 16px; font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer { background: #161616; color: #cfcfcf; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #8d8d8d; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid #2c2c2c; margin-top: 36px; padding-top: 20px; color: #8d8d8d; font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  .hero, .page-head { background: none; color: #000; padding: 0 0 20px; }
  .hero::after { display: none; }
}
