/* ==========================================================================
   Birdiefy – Website
   Farbwelt aus den Platzfotos abgeleitet: Fairwaygrün, Sandbeige, Papierweiß.
   ========================================================================== */

:root {
  /* Schriftgrößen */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Abstände */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 660px;
  --content-default: 1000px;
  --content-wide: 1240px;

  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
}

/* --- Hell (Standard) ---------------------------------------------------- */
:root,
[data-theme='light'] {
  --color-bg: #f6f4ed;
  --color-surface: #fbfaf5;
  --color-surface-2: #ffffff;
  --color-surface-offset: #eceadd;
  --color-divider: #ded9c9;
  --color-border: #d2ccb9;

  --color-text: #15211a;
  --color-text-muted: #5d6a60;
  --color-text-faint: #9aa39a;
  --color-text-inverse: #f6f4ed;

  --color-primary: #2c6b3f;
  --color-primary-hover: #205230;
  --color-primary-soft: #dfe8dd;

  --color-gold: #96701c;

  --shadow-sm: 0 1px 2px rgb(21 33 26 / 0.07);
  --shadow-md: 0 6px 18px rgb(21 33 26 / 0.09);
  --shadow-lg: 0 18px 44px rgb(21 33 26 / 0.14);

  --wortmarke: url('../img/wortmarke-dunkel.png');
}

/* --- Dunkel ------------------------------------------------------------- */
[data-theme='dark'] {
  --color-bg: #0e1512;
  --color-surface: #141d19;
  --color-surface-2: #1a2420;
  --color-surface-offset: #1a2420;
  --color-divider: #23302a;
  --color-border: #2d3a33;

  --color-text: #dfe5dd;
  --color-text-muted: #8d998f;
  --color-text-faint: #5d685f;
  --color-text-inverse: #0e1512;

  --color-primary: #79b177;
  --color-primary-hover: #96c793;
  --color-primary-soft: #1d2c22;

  --color-gold: #d3a64a;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 6px 18px rgb(0 0 0 / 0.45);
  --shadow-lg: 0 18px 44px rgb(0 0 0 / 0.55);

  --wortmarke: url('../img/wortmarke-hell.png');
}

/* ==========================================================================
   Grundlagen
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
}

::selection {
  background: var(--color-primary-soft);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a,
button,
[role='button'] {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Bausteine
   ========================================================================== */

.huelle {
  width: min(100% - var(--space-8), var(--content-wide));
  margin-inline: auto;
}

.huelle--eng {
  width: min(100% - var(--space-8), var(--content-narrow));
  margin-inline: auto;
}

.abschnitt {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.abschnitt--knapp {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.marke {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.marke::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.titel {
  font-size: var(--text-xl);
  margin-top: var(--space-4);
}

.vorspann {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-top: var(--space-4);
}

/* Wortmarke ---------------------------------------------------------------*/
.wortmarke {
  display: block;
  background: var(--wortmarke) no-repeat center / contain;
  width: 132px;
  height: 67px;
}

.wortmarke--gross {
  width: clamp(200px, 26vw, 300px);
  height: clamp(101px, 13.1vw, 151px);
}

.wortmarke--hell {
  background-image: url('../img/wortmarke-hell.png');
}

/* Schaltflächen -----------------------------------------------------------*/
.knopf {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.knopf--voll {
  background: var(--color-primary);
  color: #fff;
}

[data-theme='dark'] .knopf--voll {
  color: #0e1512;
}

.knopf--voll:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.knopf--rand {
  border-color: var(--color-border);
  color: var(--color-text);
}

.knopf--rand:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.knopf--auf-bild {
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  background: rgb(255 255 255 / 0.08);
}

.knopf--auf-bild:hover {
  background: rgb(255 255 255 / 0.18);
  border-color: #fff;
  color: #fff;
}

/* ==========================================================================
   Kopfzeile
   ========================================================================== */

.kopf {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 250ms ease,
    background 250ms ease;
}

.kopf.ist-gescrollt {
  border-bottom-color: var(--color-divider);
}

.kopf__innen {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 70px;
  width: min(100% - var(--space-8), var(--content-wide));
  margin-inline: auto;
}

.kopf__marke {
  display: block;
  flex-shrink: 0;
}

.kopf__marke .wortmarke {
  width: 104px;
  height: 53px;
}

.kopf__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.kopf__nav a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text-muted);
}

.kopf__nav a:hover {
  color: var(--color-text);
}

.kopf__aktionen {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-2);
}

.schema-schalter {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.schema-schalter:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
}

.menue-schalter {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  margin-left: auto;
}

@media (max-width: 860px) {
  .kopf__nav {
    position: fixed;
    inset: 70px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-2) var(--space-4) var(--space-6);
    margin: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 200ms ease,
      transform 200ms ease;
    box-shadow: var(--shadow-lg);
  }

  .kopf__nav.ist-offen {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .kopf__nav a {
    padding: var(--space-4) var(--space-2);
    border-bottom: 1px solid var(--color-divider);
    font-size: var(--text-base);
  }

  .kopf__aktionen {
    margin: var(--space-5) 0 0;
    gap: var(--space-3);
  }

  .kopf__aktionen .knopf {
    flex: 1;
    justify-content: center;
  }

  .menue-schalter {
    display: grid;
  }

  .kopf__innen > .schema-schalter {
    order: 3;
  }
}

/* ==========================================================================
   Bühne
   ========================================================================== */

.buehne {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  align-items: end;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32));
}

.buehne__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buehne::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    185deg,
    rgb(10 20 15 / 0.35) 0%,
    rgb(10 20 15 / 0.42) 38%,
    rgb(9 18 13 / 0.88) 100%
  );
}

.buehne__inhalt {
  width: min(100% - var(--space-8), var(--content-wide));
  margin-inline: auto;
}

.buehne__titel {
  font-size: var(--text-2xl);
  max-width: 16ch;
  margin-top: var(--space-8);
  color: #fff;
}

.buehne__text {
  font-size: var(--text-base);
  max-width: 50ch;
  margin-top: var(--space-5);
  color: rgb(255 255 255 / 0.82);
}

.buehne__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.buehne__fuss {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.62);
}

/* ==========================================================================
   Merkmale
   ========================================================================== */

.merkmale {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: var(--space-12);
}

.merkmal {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
}

.merkmal__symbol {
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.merkmal h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}

.merkmal p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Zweispaltig
   ========================================================================== */

.zwei {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.zwei__bild {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.zwei__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zwei--gedreht .zwei__bild {
  order: -1;
}

@media (min-width: 780px) {
  .zwei--gedreht .zwei__bild {
    order: 0;
  }
  .zwei--gedreht .zwei__text {
    order: 1;
  }
}

.liste {
  list-style: none;
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.liste li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.liste li::before {
  content: '';
  width: 9px;
  height: 9px;
  margin-top: 0.5em;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
}

.liste b {
  color: var(--color-text);
  font-weight: 600;
}

/* ==========================================================================
   Auswertungs-Schaubild
   ========================================================================== */

.schaubild {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.schaubild__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}

.schaubild__kopf h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
}

.schaubild__kopf span {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hinweis {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}

/* ==========================================================================
   Ablauf
   ========================================================================== */

.ablauf {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: var(--space-12);
  counter-reset: schritt;
}

.schritt {
  position: relative;
}

.schritt__bild {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: var(--space-5);
}

.schritt__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schritt__zahl {
  counter-increment: schritt;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.schritt__zahl::before {
  content: counter(schritt);
}

.schritt h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
}

.schritt p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Aufruf
   ========================================================================== */

.aufruf {
  position: relative;
  isolation: isolate;
  color: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) clamp(var(--space-6), 5vw, var(--space-16));
  text-align: center;
}

.aufruf__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aufruf::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgb(12 26 18 / 0.7), rgb(9 19 14 / 0.86));
}

.aufruf h2 {
  font-size: var(--text-xl);
  color: #fff;
  margin-inline: auto;
  max-width: 20ch;
}

.aufruf p {
  color: rgb(255 255 255 / 0.8);
  margin: var(--space-5) auto 0;
  max-width: 52ch;
  font-size: var(--text-sm);
}

.aufruf__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-8);
}

/* ==========================================================================
   Fußzeile
   ========================================================================== */

.fuss {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-10);
  margin-top: var(--space-8);
}

.fuss__raster {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.fuss__raster > :first-child {
  grid-column: 1 / -1;
}

@media (min-width: 860px) {
  .fuss__raster {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }

  .fuss__raster > :first-child {
    grid-column: auto;
  }
}

.fuss__text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-5);
  max-width: 34ch;
}

.fuss h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.fuss ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.fuss a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.fuss a:hover {
  color: var(--color-primary);
}

.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  justify-content: space-between;
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ==========================================================================
   Rechtsseiten
   ========================================================================== */

.seitenkopf {
  padding-block: clamp(var(--space-16), 9vw, var(--space-24)) var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}

.seitenkopf h1 {
  font-size: var(--text-xl);
  margin-top: var(--space-4);
}

.fliesstext {
  padding-block: var(--space-12) var(--space-16);
}

.fliesstext h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-top: var(--space-12);
  letter-spacing: -0.01em;
}

.fliesstext h2:first-child {
  margin-top: 0;
}

.fliesstext h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-top: var(--space-8);
}

.fliesstext p,
.fliesstext ul {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.fliesstext ul {
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-2);
}

.fliesstext a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}

.fliesstext strong {
  color: var(--color-text);
}

.angaben {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}

.angaben dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.angaben dd {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.angaben dd + dt {
  margin-top: var(--space-6);
}

.angaben a {
  color: var(--color-primary);
}

/* Auftauchen beim Scrollen -------------------------------------------------*/
.taucht-auf {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.taucht-auf.ist-sichtbar {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .taucht-auf {
    opacity: 1;
    transform: none;
  }
}
