/* CFN Weihnachtskalender. Same design tokens and components as defense.completefighter.de and the Kraftplan:
   Oxblood #81151B, Teal #065166, Schwarz #0B0A09, Weiss #F7F6F3. Light mode only. Nothing moves. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
:root {
  --bg: 247 246 243; --surface: 255 255 255; --surface-muted: 245 245 247;
  --fg-primary: 11 10 9; --fg-secondary: 31 31 35; --fg-muted: 82 82 91; --fg-subtle: 107 107 115;
  --border: 228 228 231; --border-strong: 212 212 216;
  --accent: 129 21 27; --blue: 6 81 102;
  --radius-md: 8px; --radius-lg: 12px; --radius-2xl: 18px;
  --elev-2: 0 1px 3px rgb(0 0 0 / 0.06), 0 0 0 1px rgb(0 0 0 / 0.02);
  --elev-3: 0 4px 16px rgb(0 0 0 / 0.08);
  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  color-scheme: only light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: rgb(var(--bg)); color: rgb(var(--fg-primary));
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 48px;
}
.wrap { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
h1, h2, h3 { margin: 0; text-wrap: balance; color: rgb(var(--fg-primary)); }
p { margin: 0; }
.section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--fg-muted)); }

.card {
  background: linear-gradient(180deg, rgb(var(--surface)) 0%, rgb(var(--surface-muted)) 100%);
  border: 1px solid rgb(var(--border)); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--elev-2);
}

/* Hero: Oxblood card with the white CFN logo, the door of the day and a quiet night sky */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-2xl); background: rgb(var(--accent)); color: #fff;
  padding: 22px 20px 20px; box-shadow: var(--elev-3); display: grid; gap: 16px;
}
/* Snow: a handful of soft white dots, drawn in CSS, fixed in place */
.sterne {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.9;
  background-image:
    radial-gradient(circle, rgb(255 255 255 / 0.55) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgb(255 255 255 / 0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgb(255 255 255 / 0.25) 0 2.5px, transparent 3px);
  background-size: 131px 113px, 83px 97px, 211px 173px;
  background-position: 18px 12px, 52px 44px, 96px 70px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
}
.hero img.hero-logo { width: 112px; height: auto; }
.hero-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.hero-text { min-width: 0; display: grid; gap: 10px; }
.hero .section-title { color: rgb(255 255 255 / 0.75); }
.hero h1 { color: #fff; font-size: clamp(28px, 8vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.hero-sub { color: rgb(255 255 255 / 0.85); }

/* The door: a white card with a dashed tear line, like a calendar door that has just been opened */
.tuer {
  width: clamp(76px, 22vw, 104px); aspect-ratio: 4 / 5; border-radius: 12px;
  background: rgb(247 246 243); color: rgb(var(--accent));
  display: grid; place-items: center; position: relative;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.28); transform: rotate(4deg);
}
.tuer::before { content: ""; position: absolute; inset: 6px; border-radius: 8px; border: 1.5px dashed rgb(var(--accent) / 0.45); }
.tuer span { font-size: clamp(44px, 13vw, 62px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-feature-settings: "tnum"; }

/* 24 small doors: today is white, the rest are still closed */
.leiste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.leiste li { height: 5px; border-radius: 3px; background: rgb(255 255 255 / 0.22); }
.leiste li.war { background: rgb(255 255 255 / 0.6); }
.leiste li.heute { background: #fff; }

/* Video */
.video { display: grid; gap: 12px; }
.player { display: grid; }
.player iframe, .placeholder {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-md); background: #0b0a09;
}
/* Portrait videos: capped so the whole clip fits on a phone screen */
.player.hochkant iframe, .player.hochkant .placeholder { aspect-ratio: 9 / 16; width: min(100%, 380px, calc(78vh * 9 / 16)); justify-self: center; }
.placeholder {
  display: grid; place-items: center; color: rgb(255 255 255 / 0.6);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.video-text { color: rgb(var(--fg-secondary)); }

/* Optional call to action: Teal card with a white button */
.cta { border-radius: var(--radius-2xl); background: rgb(var(--blue)); color: #fff; padding: 20px; display: grid; gap: 12px; box-shadow: var(--elev-3); }
.cta h3 { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.cta .section-title { color: rgb(255 255 255 / 0.75); }
.btn-primary {
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 12px 16px; min-height: 48px; border-radius: var(--radius-md);
  background: #fff; color: rgb(var(--accent)); box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
}
.btn-primary:hover { filter: brightness(0.97); }
/* Button inside the hero (home page): full width on phones, compact on wider screens */
.hero .btn-primary:focus-visible { outline-color: #fff; }
@media (min-width: 560px) { .hero .btn-primary { width: auto; justify-self: start; padding-inline: 28px; } }
:is(.btn-primary, .site-foot a):focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.cta .btn-primary:focus-visible { outline-color: #fff; }

.site-foot { max-width: 720px; margin: 32px auto 0; display: grid; justify-items: center; font-size: 12px; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.site-foot a { color: rgb(var(--fg-muted)); text-decoration: none; padding: 4px 0; }
.site-foot a:hover { text-decoration: underline; color: rgb(var(--fg-primary)); }

/* Legal pages (Impressum, Datenschutz) */
.muted { color: rgb(var(--fg-muted)); }
.small { font-size: 13px; }
.legal { display: grid; gap: 22px; font-size: 14px; color: rgb(var(--fg-secondary)); }
.legal h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; }
.legal h2 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 6px; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 8px; }
.legal ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.legal address { font-style: normal; }
.legal a { color: rgb(var(--blue)); overflow-wrap: anywhere; }
.legal .back { justify-self: start; color: rgb(var(--fg-muted)); font-size: 14px; font-weight: 500; text-decoration: none; }
.legal .back:hover { color: rgb(var(--fg-primary)); }
