/* =========================================================
   Fachschaft Zahnmedizin Ulm – öffentliche Website
   Stil "Nachtschicht": dunkler Grund, Mint als einziger Akzent,
   Unbounded für Überschriften, DM Sans für Text.
   Schriften liegen lokal in /assets/fonts (kein Google-Abruf).
   ========================================================= */

@font-face { font-family: "Unbounded"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/unbounded-500.woff") format("woff"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/unbounded-700.woff") format("woff"); }
@font-face { font-family: "Unbounded"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/unbounded-800.woff") format("woff"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-400.woff") format("woff"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-500.woff") format("woff"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-700.woff") format("woff"); }

:root {
  --bg: #0D1110;
  --surface: #161C1A;
  --surface-2: #1C2421;
  --line: #252D2A;
  --line-strong: #39423F;
  --ink: #F2F1EC;
  --ink-2: #C9CFCC;
  --ink-3: #9AA39F;
  --mint: #5CF2B5;
  --mint-hover: #8FF7CC;
  --paper: #F2F1EC;
  --paper-ink: #0D1110;
  --paper-ink-2: #3A423F;
  --paper-line: #C9C8C1;
  --error: #FF8A7A;
  --accent-text: #5CF2B5;
  --accent-text-hover: #8FF7CC;
  --on-dark: #F2F1EC;
  --hairline: #1E2522;
  --header-bg: rgba(13, 17, 16, 0.86);
  --seg-bg: #E2E1DB;
  --focus-paper: #0F7A57;
  color-scheme: dark;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --gutter: 24px;
  --r-lg: 32px;
  --r-md: 28px;
  --r-sm: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Heller Modus: Weiß, das Blau aus dem Logo und Schwarz */
:root[data-modus="hell"] {
  --bg: #FFFFFF;
  --surface: #F2F7F9;
  --surface-2: #E8F1F4;
  --line: #DCE6EA;
  --line-strong: #B9C9CF;
  --ink: #0D1110;
  --ink-2: #374246;
  --ink-3: #5B676B;
  --mint: #65B0C6;
  --mint-hover: #82C2D4;
  --accent-text: #1F6F87;
  --accent-text-hover: #15566A;
  --paper: #EAF4F7;
  --paper-ink: #0D1110;
  --paper-ink-2: #374246;
  --paper-line: #B9C9CF;
  --hairline: #E3EBEE;
  --header-bg: rgba(255, 255, 255, 0.88);
  --seg-bg: #D3E4EA;
  --focus-paper: #1F6F87;
  color-scheme: light;
}
[data-modus="hell"] .theme-dark-only { display: none !important; }
:root:not([data-modus="hell"]) .theme-light-only { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent-text-hover); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--mint); color: var(--paper-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 80px; padding-bottom: 80px; }
.section-tight { padding-top: 40px; padding-bottom: 40px; }
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }

/* ---------- Typo ---------- */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow-muted { color: var(--ink-3); }
.display {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 8.2vw, 124px); line-height: 0.95; letter-spacing: -0.045em;
}
.display-md { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6.4vw, 96px); hyphens: manual; overflow-wrap: break-word; line-height: 0.96; letter-spacing: -0.045em; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1.04; }
.h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.mint { color: var(--accent-text); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex-shrink: 0; }
.btn-mint { background: var(--mint); color: var(--paper-ink); }
.btn-mint:hover { background: var(--mint-hover); color: var(--paper-ink); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-dark { background: #0D1110; color: var(--on-dark); }
.btn-dark:hover { background: #1f2826; color: var(--on-dark); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 700; }
.pill-mint { background: var(--mint); color: var(--paper-ink); }
.pill-dark { background: #0D1110; color: var(--on-dark); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.brand small { display: block; color: var(--ink-3); font-weight: 500; font-size: 13.5px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.nav-link {
  color: var(--ink-2); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-size: 15px;
  transition: background-color 0.2s, color 0.2s;
}
.nav a.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav a.nav-link[aria-current="page"] { color: var(--bg); background: var(--ink); font-weight: 700; }
.nav-icon {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); margin-left: 6px;
}
.nav-icon:hover { color: var(--accent-text); border-color: var(--accent-text); }
.nav-intern { margin-left: 6px; min-height: 44px; padding: 10px 18px; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; background: none; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px;
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px; box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 76px); overflow-y: auto;
    transform: translateY(-120%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a.nav-link { font-size: 18px; padding: 14px 16px; }
  .nav-icon { margin: 8px 0 0; width: auto; border-radius: 999px; padding: 12px 16px; gap: 10px; justify-content: flex-start; }
  .nav-icon .nav-icon-label { display: inline; }
  .nav-intern { margin: 8px 0 0; }
}
.nav-icon-label { display: none; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.hero-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.hero .pill { margin-bottom: 28px; }

.insta-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px;
  transition: border-color 0.2s;
}
.insta-card:hover { color: var(--ink); border-color: var(--mint); }
.insta-card .icon-box { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--paper-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.insta-card strong { display: block; }
.insta-card span span { display: block; font-size: 14px; color: var(--ink-3); }

.photo { border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-hero { height: clamp(260px, 40vw, 560px); }
.photo-tag { position: absolute; left: 20px; bottom: 20px; }

/* ---------- Laufband ---------- */
.marquee-wrap { overflow: hidden; padding: 32px 0; }
.marquee { background: var(--mint); color: var(--paper-ink); padding: 18px 0; overflow: hidden; transform: rotate(-1.5deg); margin: 0 -40px; }
.marquee-track { display: flex; width: max-content; gap: 40px; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 2vw, 22px); white-space: nowrap; animation: marquee 32s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Karten & Raster ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.span-all { grid-column: 1 / -1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px; }
.card-mint { background: var(--mint); color: var(--paper-ink); border-color: var(--mint); }
.card-mint .muted, .card-mint .soft { color: var(--paper-ink-2); }
.card-paper { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.card-paper .soft, .card-paper .muted { color: var(--paper-ink-2); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p + p { margin-top: 12px; }

a.tile {
  text-decoration: none; color: var(--ink); min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
a.tile:hover { color: var(--ink); border-color: var(--mint); transform: translateY(-3px); }
a.tile.card-mint { color: var(--paper-ink); }
a.tile.card-mint:hover { color: var(--paper-ink); border-color: var(--mint-hover); background: var(--mint-hover); }
.tile-title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 26px); line-height: 1.15; }
.tile-big { font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 1; color: var(--accent-text); }

.feature, a.tile.feature { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 0; overflow: hidden; padding: 0; text-decoration: none; }
.feature-body { flex: 999 1 420px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.feature-media { flex: 1 1 300px; min-width: 0; min-height: 260px; display: block; position: relative; }
.feature-media img { position: absolute; inset: 0; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }

.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > .split-side { flex: 1 1 300px; }
.split > .split-main { flex: 999 1 560px; min-width: 0; }

/* ---------- Termine ---------- */
.event { display: flex; gap: 28px; align-items: flex-start; }
.event-date { font-family: var(--display); text-align: center; min-width: 88px; }
.event-day { font-size: 54px; font-weight: 800; line-height: 1; color: var(--accent-text); }
.event-month { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-3); margin-top: 6px; text-transform: uppercase; }
.event h3 { font-size: 22px; margin-bottom: 6px; }

/* ---------- Schritte ---------- */
.steps { list-style: none; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--accent-text); display: block; margin-bottom: 14px; }
.card-mint .step-num { color: var(--paper-ink); }
.step-meta { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.card-mint .step-meta { color: var(--paper-ink-2); }

/* ---------- Zeilen / Listen ---------- */
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row-label { min-width: 140px; font-weight: 700; color: var(--accent-text); }
.row-text { flex: 1 1 320px; color: var(--ink-2); }

.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 32px; }
.defs > div { padding: 16px 0; border-top: 1px solid var(--line); }
.defs dt { font-weight: 700; }
.defs dd { margin: 2px 0 0; color: var(--ink-3); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 20px; }

.phase { display: flex; flex-direction: column; gap: 10px; }
.phase .pill { align-self: flex-start; }

/* ---------- Großflächen ---------- */
.panel { border-radius: 36px; padding: clamp(28px, 5vw, 64px); }
.panel-flex { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; justify-content: space-between; }
.panel-media { overflow: hidden; padding: 0; display: flex; flex-wrap: wrap; }
.panel-media .panel-body { flex: 999 1 520px; padding: clamp(28px, 5vw, 64px); }
.panel-media img { flex: 1 1 300px; min-width: 0; min-height: 280px; width: 100%; object-fit: cover; }

.big-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); transition: border-color 0.2s; }
.big-link:hover { color: var(--ink); border-color: var(--mint); }
.big-handle { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6vw, 84px); line-height: 1; letter-spacing: -0.04em; color: var(--accent-text); margin-top: 10px; overflow-wrap: anywhere; }
.round-arrow { width: 72px; height: 72px; border-radius: 50%; background: var(--mint); color: var(--paper-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.team-photo { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--on-dark); }
.team-photo .mint { color: var(--mint); }
.team-photo img { width: 100%; height: clamp(320px, 46vw, 620px); object-fit: cover; object-position: center 35%; }
.team-photo .overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(transparent, rgba(13, 17, 16, 0.92));
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.team-photo:hover { color: var(--on-dark); }

.sponsor-strip { border-top: 1px solid var(--hairline); }
.sponsor-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 56px; padding-top: 32px; padding-bottom: 32px; }
.sponsor-name { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink-2); }

figure.drawing { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; align-self: flex-start; }
figure.drawing img { width: 100%; height: auto; }
figure.drawing figcaption { padding: 14px 20px; font-size: 14px; color: var(--ink-3); }

/* ---------- Formulare ---------- */
.form { background: var(--paper); color: var(--paper-ink); border-radius: 36px; padding: clamp(28px, 5vw, 56px); }
.form-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; color: var(--paper-ink); background: #FFFFFF;
  border: 1px solid var(--paper-line); border-radius: 14px; padding: 14px 16px; min-height: 52px; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus-paper); outline-offset: 1px; border-color: transparent; }
.field .hint { font-weight: 400; font-size: 13.5px; color: var(--paper-ink-2); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 15px; color: var(--paper-ink-2); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--paper-ink); flex-shrink: 0; }
.check a { color: var(--paper-ink); }
.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-msg { font-weight: 700; }
.form-msg.ok { color: #0B6B4B; }
.form-msg.err { color: #A42E1F; }
.honeypot { display: none; }

.segmented { display: inline-flex; background: var(--seg-bg); border-radius: 999px; padding: 4px; }
.segmented button {
  border: 0; cursor: pointer; border-radius: 999px; padding: 10px 20px; min-height: 44px;
  font: inherit; font-weight: 700; background: transparent; color: var(--paper-ink-2);
}
.segmented button[aria-pressed="true"] { background: #0D1110; color: var(--on-dark); }

.availability { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 24px; color: var(--paper-ink-2); }
.availability strong { color: var(--paper-ink); }

/* ---------- Rechtliches ---------- */
.legal { max-width: 780px; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin-top: 8px; }
.legal li + li { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 72px; padding-bottom: 48px; }
.footer-logo { width: 240px; height: auto; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent-text); }
.footer-col .eyebrow { font-size: 13px; color: var(--ink-3); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink-3); }
.footer-bottom a { color: var(--ink-3); }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 48px; }
  .card { padding: 24px; }
  .feature-body { padding: 24px; }
  .event { gap: 18px; }
  .event-date { min-width: 64px; }
  .event-day { font-size: 42px; }
  .marquee-wrap { padding: 20px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Hell/Dunkel-Schalter ---------- */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: none;
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 6px; flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent-text); border-color: var(--accent-text); }
.theme-toggle .icon-sun { display: none; }
[data-modus="hell"] .theme-toggle .icon-sun { display: block; }
[data-modus="hell"] .theme-toggle .icon-moon { display: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1180px) { .theme-toggle { margin-left: 0; } }

/* ---------- Foto-Hero (Startseite) ---------- */
.hero-photo { position: relative; height: clamp(460px, 76vh, 820px); overflow: hidden; background: #0D1110; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 16, 0.10) 0%, rgba(13, 17, 16, 0.25) 45%, rgba(13, 17, 16, 0.82) 100%);
}
.hero-photo-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: clamp(72px, 9vw, 112px); color: var(--on-dark); }
.hero-photo-content h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6.4vw, 92px);
  line-height: 0.98; letter-spacing: -0.04em; margin: 18px 0 28px; max-width: 980px;
}
.hero-photo-content .btn-ghost { color: var(--on-dark); border-color: rgba(242, 241, 236, 0.5); background: rgba(13, 17, 16, 0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-photo-content .btn-ghost:hover { color: var(--on-dark); border-color: var(--on-dark); }
.marquee-wrap.overlap { margin-top: -56px; position: relative; z-index: 2; padding-top: 0; }
.marquee-wrap.overlap .marquee { transform: rotate(-2.2deg); padding: 22px 0; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.marquee-wrap.overlap .marquee-track { font-size: clamp(19px, 2.4vw, 28px); }
.intro { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.intro p { flex: 999 1 520px; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; color: var(--ink-2); }
.intro .insta-card { flex: 1 1 300px; }
@media (max-width: 640px) {
  .marquee-wrap.overlap { margin-top: -36px; }
}
@media (min-width: 1181px) {
  .nav-row .nav { order: 2; margin-left: auto; }
  .nav-row .header-tools { order: 3; }
}
.brand span { white-space: nowrap; }
@media (max-width: 420px) {
  .brand img { width: 38px; height: 38px; }
  .brand span, .brand small { font-size: 12px; }
  .nav-toggle { padding: 10px 14px; }
}

/* ---------- Inhaltsverzeichnis (Startseite) ---------- */
.index-list { list-style: none; border-top: 1px solid var(--ink); }
.index-list a {
  display: flex; align-items: center; gap: 12px 28px; padding: 26px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: background-color 0.2s var(--ease), padding 0.25s var(--ease);
}
.index-list a:hover { color: var(--ink); background: var(--surface); padding-left: 16px; padding-right: 16px; }
.index-num { font-family: var(--display); font-weight: 700; color: var(--accent-text); min-width: 44px; }
.index-title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.1; flex: 1 1 auto; min-width: 0; }
.index-desc { color: var(--ink-3); flex: 0 1 360px; }
.index-arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.index-list a:hover .index-arrow { background: var(--mint); border-color: var(--mint); color: #0D1110; }
@media (max-width: 760px) {
  .index-list a { flex-wrap: wrap; padding: 20px 0; align-items: flex-start; }
  .index-list a:hover { padding-left: 0; padding-right: 0; }
  .index-num { min-width: 0; width: 100%; font-size: 14px; }
  .index-title { flex: 1 1 0; }
  .index-desc { order: 4; flex-basis: 100%; font-size: 15px; }
  .index-arrow { width: 42px; height: 42px; }
}

/* ---------- Mitglieder ---------- */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.member { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; }
.member-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: var(--mint); color: #0D1110;
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 18px; overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member strong { display: block; line-height: 1.25; }
.member span.role { display: block; font-size: 14.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.member.lead { background: var(--paper); border-color: var(--paper); }
.member.lead .role { color: var(--paper-ink-2); }

/* ---------- Downloads ---------- */
.downloads { display: flex; flex-direction: column; }
.download { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.download:last-child { border-bottom: 1px solid var(--line); }
.download .file-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent-text); flex-shrink: 0; }
.download .dl-text { flex: 1; min-width: 0; }
.download .dl-text strong { display: block; }
.download .dl-text span { display: block; font-size: 14.5px; color: var(--ink-3); }
.download .dl-badge { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); white-space: nowrap; }
a.download:hover { color: var(--ink); }
a.download:hover .file-icon { background: var(--mint); border-color: var(--mint); color: #0D1110; }

/* ---------- Sponsoren ---------- */
.sponsor-card { display: flex; flex-direction: column; gap: 16px; }
.sponsor-card .sponsor-logo { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1; }
.sponsor-card blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--mint); color: var(--ink-2); font-style: italic; }

/* ---------- Animationen ---------- */
.anim :is(.h2, .card, .photo, .team-photo, .index-list li, .big-link, .panel, .members li, .download, .defs > div, .row, .chips li, .form, figure.drawing, .intro > *, .sponsor-strip .wrap > *, .legal > *) {
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), border-color 0.2s, background-color 0.2s;
  transition-delay: var(--d, 0ms);
}
.anim :is(.h2, .card, .photo, .team-photo, .index-list li, .big-link, .panel, .members li, .download, .defs > div, .row, .chips li, .form, figure.drawing, .intro > *, .sponsor-strip .wrap > *, .legal > *):not(.in-view) {
  opacity: 0;
  transform: translateY(32px);
}
.anim :is(.photo, .team-photo):not(.in-view) { transform: translateY(40px) scale(0.97); }
.anim .in-view { transition-delay: var(--d, 0ms); }
.anim a.tile.in-view:hover { transition-delay: 0ms; }

.anim main img { transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.anim main img.img-wait { opacity: 0; }
.photo:hover img, .team-photo:hover img { transform: scale(1.03); }

/* Start-Hero: Foto zoomt sanft rein, Text und Balken fahren ein */
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes band-in { from { opacity: 0; transform: translateX(-12%) rotate(-2.2deg); } to { opacity: 1; transform: rotate(-2.2deg); } }
.anim .hero-photo > img { animation: hero-zoom 2.2s var(--ease) both; }
.anim .hero-photo-content .wrap > * { animation: rise 1s var(--ease) both; }
.anim .hero-photo-content .wrap > :nth-child(2) { animation-delay: 0.12s; }
.anim .hero-photo-content .wrap > :nth-child(3) { animation-delay: 0.24s; }
.anim .marquee-wrap.overlap .marquee { animation: band-in 1.1s 0.35s var(--ease) both; }
.anim .hero :is(h1, .eyebrow, .pill) { animation: rise 0.9s var(--ease) both; }
.anim .hero :is(.lead, .hero-side) { animation: rise 0.9s 0.15s var(--ease) both; }

/* ---------- FUESE-Programm ---------- */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.day { padding: 0; overflow: hidden; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 24px; background: var(--mint); color: #0D1110; }
.day-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.day-date { font-weight: 700; }
.slots { list-style: none; padding: 4px 24px 12px; }
.slot { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.slot:first-child { border-top: 0; }
.slot-time { font-weight: 700; color: var(--accent-text); font-size: 15px; line-height: 1.5; }
.slot-body strong { display: block; line-height: 1.35; }
.slot-body span { display: block; color: var(--ink-2); font-size: 15.5px; margin-top: 4px; }
.slot-body .slot-place { color: var(--ink-3); font-size: 14px; }
.slot-body .slot-place::before { content: "Ort: "; font-weight: 700; }

/* ---------- Termine als Karten: Datum oben, Text darunter ---------- */
.event { flex-direction: column; gap: 14px; height: 100%; }
.event-date { display: flex; align-items: baseline; gap: 10px; text-align: left; min-width: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); width: 100%; }
.event-day { font-size: 48px; }
.event-month { margin-top: 0; font-size: 14px; }
.event h3 { font-size: 21px; }
@media (max-width: 640px) { .event-day { font-size: 40px; } }

/* Lange Wörter in Karten sauber umbrechen */
.card h2, .card h3, .tile h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Shop: Hinweis "in Bearbeitung" */
.shop-wip { display: flex; gap: 16px; align-items: flex-start; }
.shop-wip p { margin: 0; }
.wip-dot { flex: none; width: 12px; height: 12px; margin-top: 8px; border-radius: 50%; background: var(--paper-ink, #0D1110); animation: wip-pulse 1.6s ease-in-out infinite; }
@keyframes wip-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .wip-dot { animation: none; } }
