/* tri-one-more.com: helle Fassung des Brand Kits tri_one_more (cream als Fläche, ink als Schrift, accent sparsam).
   accent als Schriftfarbe nur ab etwa 24 px (Kontrast auf cream reicht für Fließtext nicht), Text auf accent immer ink. */
@import url("../fonts/fonts.css");

:root {
  --ink: #141414;
  --graphite: #2A2A2A;
  --cream: #F6EFE5;
  --paper: #FBF7F1;
  --sand: #EAE1D4;
  --line: #DDD3C4;
  --stone: #6E6A63;      /* dunkler als stone #9A968F aus dem Kit, damit Kleingedrucktes auf cream lesbar bleibt */
  --accent: #F0512F;
  --display: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --text: "Inter", "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  /* Rollen: hell ist Standard beim Aufruf, dunkel nur per Schalter (data-theme="dark" auf html) */
  --bg: var(--cream);
  --fg: var(--ink);
  --surface: var(--paper);
  --muted: var(--stone);
  --deep: var(--ink);       /* dunkle Flächen: Serie, Check-Kachel, Fuß */
  --deep-line: var(--graphite);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141414;
  --fg: #F6EFE5;
  --surface: #1C1C1C;
  --line: #34322F;
  --muted: #A8A39B;
  --deep: #222120;
  --deep-line: #3A3835;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--fg); }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--fg); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* Typografie */
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(52px, 10vw, 112px); line-height: .9; }
h2 { font-size: clamp(36px, 5.5vw, 60px); line-height: .95; margin-bottom: 20px; }
h3 { font-size: 26px; line-height: 1; margin-bottom: 10px; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; }
.lead { font-size: 19px; line-height: 1.55; max-width: 56ch; margin: 22px 0 0; }
.muted { color: var(--muted); }
p { margin: 0 0 1em; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--display); font-size: 24px; text-transform: lowercase; text-decoration: none; letter-spacing: .01em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 22px; }
.nav a { font-size: 14px; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--fg); color: var(--fg); font: 600 13px var(--text); text-transform: uppercase; letter-spacing: .08em; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:last-child { border-bottom: 0; }
}

/* Knöpfe */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--text); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 2px solid var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }

/* Abschnitte */
section { padding-block: 72px; }
section + section { border-top: 1px solid var(--line); }
.band { background: var(--surface); }
@media (max-width: 640px) { section { padding-block: 52px; } }

/* Startseite: Kopfbereich */
.hero { padding-block: 48px 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero figure { margin: 0; }
.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 6px; filter: grayscale(1) contrast(1.05); }
.countdown { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 18px; }
.countdown b { color: var(--fg); font-weight: 700; }
.countdown .dot { color: var(--accent); }
@media (max-width: 820px) {
  .hero { padding-top: 24px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero figure { order: -1; }
  .hero img { aspect-ratio: 4 / 3; }
}

/* Zahlenleiste */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stat { background: var(--bg); padding: 22px 20px; }
.stat .num { font-family: var(--display); font-size: clamp(34px, 4.2vw, 48px); line-height: 1; }
.stat .lbl { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.stat .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Zweispalter Bild und Text */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.split.flip > figure { order: 2; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.split figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .split.flip > figure { order: 0; } .split img { aspect-ratio: 4 / 3; } }

/* Kacheln */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; }
.card .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.card p { flex: 1; }
.card .btn { align-self: flex-start; margin-top: 8px; }
.card.dark { background: var(--deep); color: var(--cream); border-color: var(--deep); }
.card.dark .tag { color: #B9B3AA; }
.card.dark .btn.ghost { border-color: var(--cream); color: var(--cream); }
.card.dark .btn.ghost:hover { background: var(--cream); color: var(--ink); }
@media (max-width: 720px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Serie */
.series { background: var(--deep); color: var(--cream); }
.series .eyebrow { color: #B9B3AA; }
.series a:not(.btn) { color: var(--cream); }
.series .btn.ghost { border-color: var(--cream); color: var(--cream); }
.series .btn.ghost:hover { background: var(--cream); color: var(--ink); }
.bigday { font-family: var(--display); font-size: clamp(96px, 20vw, 220px); line-height: .85; color: var(--accent); }
.series .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: end; }
@media (max-width: 820px) { .series .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Newsletter */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; max-width: 520px; }
.signup input[type=email] { flex: 1 1 240px; font: 500 16px var(--text); padding: 14px 18px; border: 2px solid var(--fg); border-radius: 999px; background: var(--surface); color: var(--fg); }
.signup button { font: 700 15px var(--text); text-transform: uppercase; letter-spacing: .06em; padding: 14px 22px; border-radius: 999px; border: 2px solid var(--fg); background: var(--fg); color: var(--bg); cursor: pointer; }
.signup button:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 60ch; }

/* Unterseiten */
.page-head { padding-block: 56px 40px; }
.prose { max-width: 680px; }
.prose h2 { font-size: clamp(30px, 4.5vw, 44px); margin-top: 48px; margin-bottom: 14px; }
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: 6px; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 24px 0; font-size: 16px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.races { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0 8px; }
.races th, .races td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.races th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.races td.t { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.callout { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin: 28px 0; font-size: 20px; font-weight: 600; line-height: 1.45; }
.todo { background: #FFF3C9; border: 1px dashed #C9A227; padding: 2px 6px; border-radius: 3px; font-size: .9em; }
.stub { padding-block: 40px 96px; }

/* Fuß */
.foot { background: var(--deep); color: var(--cream); padding-block: 56px 40px; }
.foot a { color: var(--cream); }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot .brand { color: var(--cream); font-size: 30px; }
.foot h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #B9B3AA; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.foot .kofi { display: inline-block; margin-top: 18px; font-size: 15px; }
.foot .legal { border-top: 1px solid var(--deep-line); margin-top: 40px; padding-top: 20px; font-size: 13px; color: #B9B3AA; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .legal a { color: #B9B3AA; }
@media (max-width: 720px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > div:first-child { grid-column: 1 / -1; } }
.prose figure img { width: 100%; max-width: 520px; aspect-ratio: 4 / 5; object-fit: cover; }
.credit { font-size: 12px; color: var(--muted); margin-top: 8px; }
:root[data-theme="dark"] .hero img { filter: grayscale(1) contrast(1.05) brightness(.92); }
:root[data-theme="dark"] .todo { background: #4A3F17; border-color: #8C7522; }

/* Schalter hell/dunkel */
.head-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; background: none; border: 1px solid var(--fg); border-radius: 999px; color: var(--fg); cursor: pointer; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (min-width: 821px) { .head-actions { order: 3; } .top .wrap { justify-content: flex-start; } .brand { margin-right: auto; } }

/* Untermenü Angebote: am Desktop beim Überfahren (oder per Tastatur), am Handy immer eingerückt sichtbar */
.has-sub { position: relative; display: flex; }
.has-sub .sub { display: none; position: absolute; top: 100%; left: -18px; padding-top: 10px; min-width: 280px; z-index: 30; }
.has-sub .sub::before { content: ""; position: absolute; inset: 10px 0 0; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 28px rgb(0 0 0 / .12); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.nav .sub a { position: relative; display: block; padding: 12px 18px; border-bottom: 0; text-transform: none; letter-spacing: 0; }
.nav .sub a:first-child { margin-top: 6px; }
.nav .sub a:last-child { margin-bottom: 6px; }
.nav .sub a b { display: block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nav .sub a span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.nav .sub a:hover b { color: var(--accent); }
@media (max-width: 820px) {
  .has-sub { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
  .has-sub > a { border-bottom: 0 !important; }
  .has-sub .sub { display: block; position: static; padding: 0 0 8px 16px; min-width: 0; }
  .has-sub .sub::before { display: none; }
  .nav .sub a { padding: 8px 0; margin: 0 !important; }
}

/* Angebote: zwei Vorschauen nebeneinander */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.offer { display: flex; flex-direction: column; }
.offer .shot { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--ink); margin-bottom: 22px; }
.offer .shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: transform .3s ease; }
.offer .shot:hover img { transform: scale(1.02); }
.offer .tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.offer h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.offer .btn { align-self: flex-start; margin-top: 8px; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 16px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 3px; background: var(--accent); }
@media (max-width: 820px) { .offers { grid-template-columns: minmax(0, 1fr); gap: 56px; } }

/* Projekte */
.goal-num { font-family: var(--display); font-size: clamp(64px, 9vw, 104px); line-height: .9; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.goals .card p { flex: 0 0 auto; }

/* Formulare */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact { align-items: start; }
.form { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.form label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 10px; }
.form input, .form textarea { font: 500 16px var(--text); color: var(--fg); background: var(--bg); border: 2px solid var(--line); border-radius: 6px; padding: 12px 14px; width: 100%; }
.form textarea { resize: vertical; min-height: 160px; }
.form input:focus, .form textarea:focus { border-color: var(--fg); outline: none; }
.form .btn { justify-self: start; margin-top: 16px; cursor: pointer; }
.form-status { margin: 8px 0 0; font-size: 15px; font-weight: 600; min-height: 1em; flex-basis: 100%; }
.form-status.ok { color: #2E7D4F; }
.form-status.err { color: #C0391B; }
:root[data-theme="dark"] .form-status.ok { color: #7BC79A; }
:root[data-theme="dark"] .form-status.err { color: #FF8A6B; }
button[disabled] { opacity: .6; cursor: wait; }
.page-head .eyebrow { margin-bottom: 22px; }
.prose h1 { margin-bottom: 24px; }
