/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════ */

:root {
  /* ── Colour — dark default ── */
  --c-bg:        #0e0e0d;
  --c-surface:   #161614;
  --c-border:    #272724;
  --c-muted:     #8c8c82;   /* WCAG AA ≥ 5:1 on --c-bg  */
  --c-text:      #e8e6df;
  --c-accent:    #c9a96e;   /* WCAG AA ≥ 8:1 on --c-bg  */
  --c-accent-dk: #a07840;

  --f-serif: 'Georgia', 'Times New Roman', serif;
  --f-sans:  'Helvetica Neue', 'Arial', sans-serif;

  /* ── Type scale ─────────────────────────────────────
     All in rem → scale with the fluid html font-size.
     html base: 15 px (mobile) → 20 px (≥1600 × 1440).
  ─────────────────────────────────────────────────── */
  --t-ui:    0.6875rem; /* ~11→14 px  — ctrl buttons, tiny meta  */
  --t-label: 0.75rem;   /* ~11→15 px  — nav, eyebrows, roles     */
  --t-body:  1rem;      /* 15→20 px   — ALL prose                */
  --t-name:  1.125rem;  /* ~17→22 px  — team member names        */
  --t-h3:    1.5rem;    /* ~22→30 px  — footer headings          */
  --t-h2:    2rem;      /* 30→40 px   — section headings         */

  /* ── Line heights ── */
  --lh-tight:   1.1;   /* display headings (h1)      */
  --lh-heading: 1.2;   /* h2, h3, team name          */
  --lh-body:    1.75;  /* standard prose             */
  --lh-loose:   1.9;   /* legal / footer text        */

  /* ── Letter spacing ── */
  --ls-display: -0.015em; /* large serif headings    */
  --ls-label:    0.15em;  /* roles, all-caps labels  */
  --ls-wider:    0.2em;   /* section eyebrows, nav   */

  /* ── Spacing ── */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: clamp(3.5rem, 8vw, 7rem);

  --radius: 2px;
  --max-w:  960px;
}

/* ── Light mode via system preference ── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --c-bg:        #f5f3ee;
    --c-surface:   #eceae3;
    --c-border:    #d4d0c5;
    --c-muted:     #4e4c45;   /* WCAG AA ≥ 6:1   */
    --c-text:      #1a1918;
    --c-accent:    #7a5a28;   /* WCAG AA ≥ 5.7:1 */
    --c-accent-dk: #5c4018;
  }
}

/* ── Manual overrides via data-theme ── */
[data-theme="light"] {
  --c-bg:        #f5f3ee;
  --c-surface:   #eceae3;
  --c-border:    #d4d0c5;
  --c-muted:     #4e4c45;
  --c-text:      #1a1918;
  --c-accent:    #7a5a28;
  --c-accent-dk: #5c4018;
}
[data-theme="dark"] {
  --c-bg:        #0e0e0d;
  --c-surface:   #161614;
  --c-border:    #272724;
  --c-muted:     #8c8c82;
  --c-text:      #e8e6df;
  --c-accent:    #c9a96e;
  --c-accent-dk: #a07840;
}

/* ═══════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  /* 15 px mobile → 20 px at ≥ 1600 vw AND ≥ 1440 vh */
  font-size: clamp(15px, min(0.5vw, 0.5556vh) + 12px, 20px);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
a    { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
.divider { border: none; border-top: 1px solid var(--c-border); }

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */

header {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10;
  transition: background 0.25s, border-color 0.25s;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Logo */
.logo {
  font-family: var(--f-serif);
  font-size: var(--t-name);
  font-weight: 400;
  letter-spacing: var(--ls-label);
  color: var(--c-text);
  flex-shrink: 0;
  line-height: 1;
}
.logo span { color: var(--c-accent); }

.header-controls { display: flex; align-items: center; gap: var(--space-md); }

/* Nav */
nav { display: flex; gap: var(--space-md); }
nav a {
  font-size: var(--t-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
  line-height: 1;
}
nav a:hover  { color: var(--c-text); }
nav a.active { color: var(--c-text); }
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--c-accent);
}

/* Controls — work on both <button> and <a> */
.controls { display: flex; align-items: center; gap: 0.5rem; }

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  font-family: var(--f-sans);
  font-size: var(--t-ui);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  line-height: 1;
  /* reset for <a> */
  text-decoration: none;
  -webkit-appearance: none;
}
.ctrl-btn:hover { color: var(--c-text); border-color: var(--c-muted); }

/* Active / current language indicator */
.lang-current {
  color: var(--c-text);
  background: var(--c-surface);
  border-color: var(--c-muted);
  cursor: default;
  pointer-events: none;
}

.lang-switch { display: flex; gap: 0.35rem; }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */

.hero { padding-block: var(--space-xl); }

.hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(var(--t-h2), 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--c-text);
  max-width: 680px;
}
.hero h1 em { font-style: italic; color: var(--c-accent); }

.hero-sub {
  margin-top: var(--space-md);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--c-muted);
  max-width: 480px;
}

/* ═══════════════════════════════════════════════════════
   IMAGE PLACEHOLDER
═══════════════════════════════════════════════════════ */

.image-section { }

.image img {
  height: auto;
  max-width: 100%;
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */

.about {
  padding-block: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: start;
}
.about-label {
  font-size: var(--t-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-accent);
  padding-top: 0.4rem;
}
.about-body h2 {
  font-family: var(--f-serif);
  font-size: var(--t-h2);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: var(--c-text);
  margin-bottom: var(--space-md);
}
.about-body p {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--c-muted);
  margin-bottom: var(--space-sm);
}
.about-body p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════
   TEAM / ANSPRECHPARTNER
═══════════════════════════════════════════════════════ */

.team { padding-block: var(--space-xl); }

.team-header {
  margin-bottom: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: end;
}
.team-label {
  font-size: var(--t-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-accent);
}
.team-intro {
  font-family: var(--f-serif);
  font-size: var(--t-h2);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: var(--c-text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.team-card {
  background: var(--c-surface);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: background 0.2s;
}
.team-card:hover { background: var(--c-bg); }

.team-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
  transition: background 0.25s;
}
.team-avatar svg {
  width: 24px; height: 24px;
  stroke: var(--c-muted); fill: none; stroke-width: 1;
}
.team-name {
  font-family: var(--f-serif);
  font-size: var(--t-name);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--c-text);
}
.team-role {
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-accent);
  line-height: var(--lh-heading);
}
.team-bio {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--c-muted);
  margin-top: auto;   /* push bio to card block-end */
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */

footer {
  margin-top: auto;
  border-top: 1px solid var(--c-border);
  padding-block: var(--space-xl);
  color: var(--c-muted);
}
.footer-section-label {
  font-size: var(--t-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--space-lg);
}
footer .footer-cols {
  columns: 2;
  column-gap: var(--space-lg);
}
footer .footer-cols h3 {
  column-span: all;       /* Überschrift über beide Spalten */
}
footer h3 {
  font-family: var(--f-serif);
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: var(--c-text);
  margin-bottom: var(--space-md);
}
footer p {
  font-size: var(--t-body);
  line-height: var(--lh-loose);
}
footer a:hover { color: var(--c-text); }

/* Register — zweite Spalte erzwingen */
.footer-register {
  break-before: column;
}

/* ── Details / Summary (Datenschutz) ─────────────────── */
.footer-details {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--c-border);
}
.footer-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-md);
  font-size: var(--t-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-accent);
  cursor: pointer;
  user-select: none;
  list-style: none;          /* Firefox */
}
.footer-details summary::-webkit-details-marker { display: none; } /* Chrome/Safari */
.footer-details summary::after {
  content: '+';
  font-family: var(--f-sans);
  font-size: var(--t-name);
  font-weight: 300;
  letter-spacing: 0;
  color: var(--c-muted);
  transition: color 0.2s;
  flex-shrink: 0;
}
.footer-details[open] summary::after {
  content: '−';
}
.footer-details summary:hover         { color: var(--c-text); }
.footer-details summary:hover::after  { color: var(--c-text); }

.details-body {
  padding-bottom: var(--space-lg);
}
.details-body p {
  font-size: var(--t-body);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-md);
}
.details-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  footer .footer-cols { columns: 1; }
  .footer-register { break-before: auto; }
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  color: var(--c-muted);
}
.footer-bottom a { color: var(--c-accent); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--c-text); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 700px) {
  .about, .team-header     { grid-template-columns: 1fr; gap: var(--space-sm); }
  .team-grid               { grid-template-columns: 1fr; }
  footer .footer-cols      { grid-template-columns: 1fr; gap: var(--space-md); }
  nav                      { display: none; }
  .footer-bottom           { flex-direction: column; gap: var(--space-xs); text-align: center; }
}

@media (max-width: 480px) {
  header .container { gap: var(--space-sm); }
  .controls         { gap: 0.35rem; }
  .ctrl-btn         { padding: 0.25rem 0.45rem; }
}
