/* =============================================
   Purpose Story Circle – Shared Styles
   =============================================
   NUR CSS das in ALLEN 4 Dateien identisch ist.
   Seitenspezifisches CSS bleibt inline.

   SEITENSPEZIFISCH (NICHT hier):
   - :root --bg (index: #A6C1C5, Unterseiten: #D5D4CD)
   - .nav background (folgt --bg)
   - .hamburger background (folgt --bg)
   - Mobile .nav-links background (rgba-Variante von --bg)
   - index: --section-gap, .btn-light, .btn-outline, font-feature-settings reset
   ============================================= */

/* ===== Fonts =====
   Azo Sans und Literata selbst gehostet (WOFF2/WOFF).
   DSGVO-konform, keine externen Requests an Adobe oder Google. */

/* --- Azo Sans (lokal, R-Typography Webfont-Lizenz) --- */
@font-face {
  font-family: 'Azo Sans';
  src: url('fonts/azo-sans-regular.woff2') format('woff2'),
       url('fonts/azo-sans-regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Azo Sans';
  src: url('fonts/azo-sans-medium.woff2') format('woff2'),
       url('fonts/azo-sans-medium.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Azo Sans';
  src: url('fonts/azo-sans-black.woff2') format('woff2'),
       url('fonts/azo-sans-black.woff')  format('woff');
  /* Bold (700) ist in der R-Typography-Lizenz nicht enthalten –
     deshalb fängt Black hier den Bereich 700–900 ab.
     Ohne diese Range würde iOS Safari fake-bold synthetisieren. */
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* --- Literata (lokal, Google-Fonts-Download, WOFF2) --- */
@font-face {
  font-family: 'Literata 18pt';
  src: url('fonts/literata-v40-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata 18pt';
  src: url('fonts/literata-v40-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Literata 18pt';
  src: url('fonts/literata-v40-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata 18pt';
  src: url('fonts/literata-v40-latin-500italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Literata 18pt';
  src: url('fonts/literata-v40-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata 18pt';
  src: url('fonts/literata-v40-latin-700italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

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

/* ===== OpenType ss01 auf alle relevanten Text-Elemente legen =====
   Hintergrund: iOS Safari propagiert font-feature-settings über
   Inheritance nicht zuverlässig (insbesondere bei Form-Elementen, die
   eigene UA-Defaults bekommen). Statt den Universalselektor zu nutzen –
   der iOS dazu bringen kann, den Webfont gar nicht erst zu laden –
   listen wir hier alle gängigen Text-Container explizit auf.
   Die Literata-Resets weiter unten haben Klassen-Spezifität und schalten
   ss01 für die jeweiligen Elemente weiterhin aus. */
body, header, footer, nav, main, section, article, aside, div,
h1, h2, h3, h4, h5, h6, p, a, span, em, strong, b, i, u, small,
ul, ol, li, dl, dt, dd, blockquote, q, cite,
button, input, textarea, select, option, label,
table, th, td, caption,
figure, figcaption, mark, time, code {
  -webkit-font-feature-settings: "ss01";
  font-feature-settings: "ss01";
}

/* ===== Gemeinsame Variablen =====
   HINWEIS: --bg wird NICHT hier gesetzt, sondern pro Seite inline.
   Jede Seite MUSS :root { --bg: #...; } selbst definieren. */
:root {
  --bg-warm: #CBC9C1;
  --bg-card: #EAE9E6;
  --accent: #E6FF00;
  --text: #162331;
  --text-teal: #3D7F80;
  --white: #FFFFFF;
  --max-w: 1520px;
  --side-pad: 45px;
  --font-azo: 'Azo Sans', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-lit: 'Literata 18pt', 'Georgia', 'Times New Roman', serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--font-azo);
  -webkit-font-feature-settings: "ss01";
  font-feature-settings: "ss01";
  /* iOS Safari aktiviert OpenType-Features sonst nur unzuverlässig,
     wenn text-rendering: auto/optimizeSpeed greift. */
  text-rendering: optimizeLegibility;
  /* Verhindert, dass iOS Safari fake-bold/italic synthetisiert,
     wenn ein angefragter Schnitt nicht direkt vorhanden ist. */
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page-wrap {
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* ===== Buttons (gemeinsamer Kern) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  height: 50px;
  min-width: 226px;
  padding: 20px 30px;
  border-radius: 30px;
  font-family: var(--font-azo);
  font-weight: 500;
  font-size: 20px;
  font-style: normal;
  -webkit-font-feature-settings: "ss01";
  font-feature-settings: "ss01";
  cursor: pointer;
  border: none;
  overflow: hidden;
  white-space: nowrap;
  transition: border-radius 0.25s ease, background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.btn:hover { border-radius: 10px; }

.btn-icon {
  flex-shrink: 0;
  width: 42px;
  height: 22px;
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
}

.btn-accent:hover { color: #162331; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-outline:hover {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

/* HINWEIS: .btn-light ist NUR in index.html definiert */

/* ===== Navigation =====
   background nutzt var(--bg) – wird pro Seite über :root gesetzt */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 90px;
  display: flex;
  align-items: center;
  background: var(--bg);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo img { height: 45px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.nav-links a:not(.btn):visited { color: var(--text); }
.nav-links a:not(.btn):hover { color: #E6FF00; }
.nav-links .btn.btn-accent:hover { color: #162331; }

/* background nutzt var(--bg) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--bg);
  border: none;
  padding: 12px;
  border-radius: 6px;
  z-index: 101;
  width: 48px;
  height: 48px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
  transform-origin: center center;
}

.hamburger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ===== Footer ===== */
.footer-statement {
  font-family: var(--font-azo);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.35;
  margin-bottom: 80px;
  max-width: 1200px;
}

.mobile-br { display: none; }
.tablet-br { display: none; }

.footer-newsletter {
  margin-top: 200px;
  margin-bottom: 200px;
}

.footer-newsletter-text {
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 24px;
  max-width: 600px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-cols {
  display: flex;
  gap: 80px;
}

.footer-col a {
  display: block;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.footer-col a:visited { color: var(--text); }
.footer-col a:hover { color: #E6FF00; }
.footer-col a:active { color: var(--text); }
.footer-col a.active,
.footer-col a.active:visited { color: #E6FF00; }

.footer-copy {
  font-size: 1.05rem;
  text-align: right;
}

.footer-logo { margin-bottom: 40px; }
.footer-logo img { height: 65px; width: auto; display: block; }

/* ===== Accessibility ===== */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--accent);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  transition: top 0.3s;
}

.skip-nav:focus { top: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid #E6FF00; outline-offset: 2px; }

/* ===== Mobile (NUR gemeinsame Regeln) =====
   HINWEIS: .nav-links background ist NICHT hier –
   jede Seite definiert ihre eigene rgba-Farbe inline.
   HINWEIS: .footer padding ist NICHT hier –
   index.html hat andere Werte als Unterseiten. */
/* Burger-Menü ab ≤ 1024 px (iPad mini landscape + alle Tablets in Portrait) */
@media (max-width: 1024px) {
  .nav { height: 72px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px;
    gap: 20px;
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  :root {
    --side-pad: 20px;
  }

  .footer-cols { gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }

  .footer-statement {
    font-size: 22px;
    line-height: 1.4;
  }

  .mobile-br { display: inline; }
}

/* iPad mini: Umbrüche speziell für Tablet-Breite */
@media (min-width: 481px) and (max-width: 1024px) {
  .mobile-br { display: none; }
  .tablet-br { display: inline; }
  .not-tablet-br { display: none; }
}

/* =============================================
   Legal/Info-Pages (impressum, datenschutz, agb)
   =============================================
   Diese Klassen waren zuvor in jeder Legal-Page als
   identischer <style>-Block dupliziert. Durch das
   Refactoring (Mai 2026) zentral hier.

   HINWEIS: --bg (#D5D4CD) und der Burger-Menü-rgba
   bleiben pro Legal-Page inline – siehe entsprechende
   <style>-Blöcke in den HTML-Dateien.
   ============================================= */

.page-hero {
  padding: 180px 0 60px;
}

.page-label {
  font-family: var(--font-lit);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: block;
}

.page-line {
  height: 2px;
  background: #162331;
  margin-bottom: 0;
}

.page-content {
  padding: 80px 0 100px;
}

.page-section {
  margin-bottom: 60px;
}

.page-section:last-child {
  margin-bottom: 0;
}

.page-heading {
  font-family: var(--font-azo);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-subheading {
  font-family: var(--font-azo);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-top: 24px;
  margin-bottom: 8px;
}

.page-text {
  font-family: var(--font-lit);
  -webkit-font-feature-settings: normal;
  font-feature-settings: normal;
  font-size: 1.1rem;
  line-height: 1.65;
}

.page-text p + p {
  margin-top: 1em;
}

.page-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.page-text a:hover {
  color: #E6FF00;
}

/* Legal-Page-Footer-Padding (auf Legal-Pages anders als index) */
.legal-page .footer {
  padding: 200px 0 40px;
}

/* Legal-Page Mobile */
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 40px; }
  .page-content { padding: 50px 0 60px; }
  .page-section { margin-bottom: 40px; }

  .legal-page .footer { padding: 100px 0 30px; }
  .legal-page .footer-newsletter { margin-top: 100px; margin-bottom: 100px; }
}

@media (max-width: 480px) {
  .legal-page .btn { gap: 24px; min-width: 0; padding: 16px 24px; font-size: 17px; }
}

/* =============================================
   Utility-Klassen (für index.html-Inline-Styles)
   ============================================= */

/* 7× in index.html als <div class="section-line" style="max-width:592px; ..."> */
.section-line--full {
  max-width: 592px;
  background: #162331;
  opacity: 1;
}

/* 2× in index.html als style="font-family: var(--font-lit); font-weight: 500;"
   Doppel-Klassen-Selektor (.section-title.title-literata) noetig, weil
   .section-title im inline-<style>-Block der index.html die einfache
   .title-literata-Regel sonst auf gleicher Specificity ueberschreibt. */
.title-literata,
.section-title.title-literata {
  font-family: var(--font-lit);
  font-weight: 500;
}

/* Spacing-Helper (statt style="margin-top: 24px / 48px;") */
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
