/* =============================================================================
   OOO SOCIETY — Base Stylesheet
   Abgeleitet aus der Analyse von https://ooo-society.com (Canva-Export).
   Sauber, responsiv, barrierefrei. Mobile-first.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. FONTS
   Headlines & Zahlen: Corben (Regular 400) — selbst-gehostet (woff2, OFL),
   horizontal auf 90% kondensiert.
   Fließtext, Labels, Buttons: Montserrat (wie im Canva-Original) — selbst-
   gehostet als Variable Font (woff2), Gewichtsbereich 100–900.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Corben";
  src: url("fonts/Corben-Regular-Cond.woff2") format("woff2"); /* horizontal auf 90% kondensiert */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Corben";
  src: url("fonts/Corben-Bold-Cond.woff2") format("woff2"); /* horizontal auf 90% kondensiert */
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-VF.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Italic-VF.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* -----------------------------------------------------------------------------
   2. DESIGN TOKENS (Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* ---- Farben ---- */
  --color-ink:        #131620; /* Primärer Text auf Hell (statt reinem Schwarz) */
  --color-ink-soft:   #535559; /* Sekundärer/gedämpfter Text */
  --color-white:      #ffffff;
  --color-surface:    #f6f6f6; /* Helle Sektions-Hintergründe */
  --color-dark:       #131620; /* Dunkle Sektionen */
  --color-navy:       #131620; /* Dunkler Overlay/Karten-Ton */
  --color-charcoal:   #2e2e2e;
  --color-accent:     #7c64d3; /* Marken-Lila (CTA / Akzente) */
  --color-accent-ink: #ffffff; /* Text auf Akzentflächen */

  /* Glas-/Transparenz-Effekte (für Karten über Bildern) */
  --color-glass:        rgba(255, 255, 255, 0.40);
  --color-glass-dark:   rgba(19, 22, 32, 0.60);

  /* Semantische Aliase */
  --bg-body:        var(--color-white);
  --bg-alt:         var(--color-surface);
  --bg-invert:      var(--color-dark);
  --text-body:      var(--color-ink);
  --text-muted:     var(--color-ink-soft);
  --text-invert:    var(--color-white);

  /* ---- Typografie ---- */
  --font-display: "Corben", Georgia, "Times New Roman", serif;
  --font-body:    "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Fluide Typo-Skala (clamp: min .. max), Basis 1rem = 16px
     Abgeleitet aus den gemessenen Größen: 17–85px */
  --fs-eyebrow:  0.85rem;                              /* ~13–14px, uppercase Label */
  --fs-body:     clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);  /* 17 → 21px */
  --fs-lead:     clamp(1.25rem,  1.1rem + 0.7vw, 1.625rem);  /* Intro/Lead */
  --fs-h3:       clamp(1.5rem,   1.2rem + 1.4vw, 2rem);      /* ~24 → 32px */
  --fs-h2:       clamp(2rem,     1.4rem + 2.6vw, 2.95rem);   /* ~32 → 47px */
  --fs-h1:       clamp(2.75rem,  1.6rem + 5.4vw, 5.3rem);    /* ~44 → 85px */
  --fs-stat:     clamp(2.25rem,  1.5rem + 3.4vw, 2.45rem);   /* Kennzahlen 2k+, 5.3M+ */

  --lh-tight:   0.92;  /* große Corben-Headlines */
  --lh-snug:    1.3;   /* H3 */
  --lh-lead:    1.45;  /* Lead — etwas luftiger */
  --lh-body:    1.6;   /* Fließtext */

  --ls-tight:   -0.01em;
  --ls-label:   0.1em;  /* uppercase Labels & Buttons (Original ~1.6px) */

  /* ---- Spacing-Skala (8px-Raster) ---- */
  --space-2xs: 0.25rem;  /*  4px */
  --space-xs:  0.5rem;   /*  8px */
  --space-sm:  1rem;     /* 16px */
  --space-md:  1.5rem;   /* 24px */
  --space-lg:  2.5rem;   /* 40px */
  --space-xl:  4rem;     /* 64px */
  --space-2xl: 6rem;     /* 96px */
  --space-3xl: 8rem;     /* 128px — Sektions-Abstände Desktop */

  /* ---- Layout ---- */
  /* Inhaltsrand für ALLE Seiten wie beim Startseiten-Hero (Nicole, 16.10.2026): Inhalt max. 63rem breit, mittig,
     links/rechts mind. --container-pad. Der Header hat seinen eigenen, breiteren Rand (--header-pad). */
  --content-max:   63rem;
  --container-pad: clamp(1.25rem, 7vw, 6rem);
  --container-max: calc(var(--content-max) + 2 * var(--container-pad));
  --header-pad:    clamp(1.25rem, 5vw, 4rem);

  /* ---- Radius ---- */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   28px;
  --radius-pill: 999px;  /* CTA-Buttons sind Pills */

  /* ---- Schatten ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.10);

  /* ---- Motion ---- */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --duration:    0.3s;
}

/* -----------------------------------------------------------------------------
   3. MODERN RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  background: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
}

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

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

p, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* -----------------------------------------------------------------------------
   4. TYPOGRAFIE
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-body);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }

p { max-width: 65ch; }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.text-muted { color: var(--text-muted); }

/* Eyebrow / Kicker — die uppercase-Labels über Headlines */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--text-muted);
}

/* Kennzeile als Teil der H1 (SEO, 07.11.2026): Suchbegriff steht in der Hauptüberschrift,
   sieht aber aus wie eine .eyebrow-Zeile darüber. Abstand je Seite über --h1-gap. */
h1 > .h1-kicker { display: block; line-height: 1.7; margin-bottom: var(--h1-gap, .5rem); }
h1 > .h1-main { display: block; }

/* Kennzahlen-Display (2k+ Videos, 5.3M+ Views) */
.stat {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  line-height: 1;
  color: var(--text-body);
}

/* -----------------------------------------------------------------------------
   5. LAYOUT — Container, Section, Grid
   Hinweis: Das Canva-Original ist absolut positioniert. Für den Neubau setzen
   wir auf semantisches Flexbox/Grid mit zentriertem Container.
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: clamp(var(--space-lg), 6vw, var(--space-xl));   /* 40–64px (Nicole, 16.10.2026: feiner, weniger Luft) */
}
.section--alt    { background: var(--bg-alt); }
.section--invert { background: var(--bg-invert); color: var(--text-invert); }
.section--invert h1,
.section--invert h2,
.section--invert h3 { color: var(--text-invert); }

/* Responsives Auto-Grid: Karten/Spalten, die sich selbst umbrechen */
.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* Flex-Helfer */
.flex        { display: flex; gap: var(--space-sm); }
.flex--center{ align-items: center; justify-content: center; }
.flex--wrap  { flex-wrap: wrap; }
.stack > * + * { margin-top: var(--space-md); }

/* -----------------------------------------------------------------------------
   6. BUTTONS / CTA
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.9em 1.8em;
  border-radius: 12px; /* wie Canva — dezent abgerundet, keine Pille */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  line-height: 1;
  transition: transform var(--duration) var(--ease),
              background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primär — Marken-Lila */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.btn--primary:hover { background: #6a52c4; }

/* Sekundär — dunkel */
.btn--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

/* Outline — auf hellem Grund */
.btn--outline {
  background: transparent;
  color: var(--text-body);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--outline:hover { background: var(--text-body); color: var(--color-white); }

/* -----------------------------------------------------------------------------
   7. KARTEN
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.card--glass {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* -----------------------------------------------------------------------------
   8. BARRIEREFREIHEIT
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: var(--space-sm); top: var(--space-sm);
  z-index: 1000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--duration) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -----------------------------------------------------------------------------
   9. UTILITIES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.uppercase   { text-transform: uppercase; letter-spacing: var(--ls-label); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.accent { color: var(--color-accent); }

/* ---------- Pillen-Buttons (feine Linie, Nicole 16.10.2026): kleine gesperrte Großbuchstaben, ganz rund ---------- */
.pill{display:inline-flex; align-items:center; justify-content:center; gap:.5em; padding:.85em 1.5em; border-radius:999px;
  border:1.5px solid var(--color-accent); font-family:var(--font-body); font-size:var(--fs-eyebrow); font-weight:700;
  letter-spacing:var(--ls-label); text-transform:uppercase; line-height:1; text-decoration:none; white-space:nowrap; cursor:pointer;
  transition:background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);}
.pill--fill{background:var(--color-accent); color:#fff;}
.pill--fill:hover, .pill--fill:focus-visible{background:transparent; color:var(--color-accent);}   /* Hover: umgekehrt – nur Umriss (Nicole) */
.pill--line{background:transparent; color:var(--color-accent);}
.pill--line:hover, .pill--line:focus-visible{background:var(--color-accent); color:#fff;}

/* Typografie: ausgewogene Zeilenumbrüche, keine einzelnen Wörter in der letzten Zeile, keine Silbentrennung in Überschriften */
h1, h2, h3, h4, .eyebrow, .h1-main { text-wrap: balance; hyphens: manual; }
p, li, blockquote, figcaption { text-wrap: pretty; }
