/* ============================================================
   mario-christ.de – Design System
   Fonts: Syne (Headlines) + DM Sans (Body) via Google Fonts
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&family=Plus+Jakarta+Sans:wght@700;800&family=Syne:wght@600;700;800&display=swap');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Landing Page – Tech */
  --tech-bg:     #E8EAED;
  --tech-accent: #2563EB;
  --tech-text:   #1A1A2E;

  /* Landing Page – Kicker */
  --kicker-bg:     #FFFFFF;
  --kicker-accent: #DC2626;
  --kicker-text:   #1A1A2E;

  /* Sponsoring Page */
  --page-bg:      #FAFAFA;
  --page-bg-dark: #1A1A2E;
  --text-primary: #1A1A2E;
  --text-on-dark: #F5F5F5;
  --text-muted:   #6B7280;
  --accent:       #DC2626;
  --accent-hover: #B91C1C;
  --border:       rgba(26, 26, 46, 0.1);
  --border-light: rgba(245, 245, 245, 0.15);

  /* Typography */
  --font-h1:       'Plus Jakarta Sans', sans-serif;
  --font-headline: 'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  color-scheme: light; /* Fix 10: kein Browser-Dark-Mode-Override */

  --text-xs:   0.75rem;   /*  12px */
  --text-sm:   0.875rem;  /*  14px */
  --text-base: 1rem;      /*  16px */
  --text-lg:   1.125rem;  /*  18px */
  --text-xl:   1.25rem;   /*  20px */
  --text-2xl:  1.5rem;    /*  24px */
  --text-3xl:  1.875rem;  /*  30px */
  --text-4xl:  2.25rem;   /*  36px */
  --text-5xl:  3rem;      /*  48px */
  --text-6xl:  3.75rem;   /*  60px */
  --text-7xl:  4.5rem;    /*  72px */

  --leading-tight:  1.1;
  --leading-snug:   1.3;
  --leading-normal: 1.6;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --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;

  /* Layout */
  --max-width: 1200px;
  --section-padding: clamp(var(--space-16), 8vw, var(--space-32));

  /* Transitions */
  --transition-base:  0.2s ease;
  --transition-split: 0.7s ease;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

ul, ol {
  list-style: none;
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

/* Fix 1+2+3: Plus Jakarta Sans für H1 und H2, Syne nur noch H3 und kleiner */
h1, h2 {
  font-family: var(--font-h1);
  font-weight: 800;
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: clamp(var(--text-xl), 2vw, var(--text-3xl)); }

p {
  max-width: 65ch;
  line-height: var(--leading-normal);
}

strong {
  font-weight: 500;
}

em {
  font-style: italic;
  color: var(--accent);
}

/* ── Layout Utilities ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

.section {
  padding-block: var(--section-padding);
}

.section--dark {
  background-color: var(--page-bg-dark);
  color: var(--text-on-dark);
}

.section--dark em {
  color: #F87171; /* Roter Akzent auf Dunkel – besser lesbar */
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* Blau (Tech) */
.btn--tech {
  background-color: var(--tech-accent);
  color: #FFFFFF;
  border-color: var(--tech-accent);
}

.btn--tech:hover {
  background-color: #1D4ED8;
  border-color: #1D4ED8;
}

/* Rot (Kicker / CTA) */
.btn--kicker {
  background-color: var(--kicker-accent);
  color: #FFFFFF;
  border-color: var(--kicker-accent);
}

.btn--kicker:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Ghost auf Dunkel */
.btn--ghost-light {
  background-color: transparent;
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}

.btn--ghost-light:hover {
  background-color: var(--text-on-dark);
  color: var(--page-bg-dark);
}

/* ── Foto-Platzhalter ────────────────────────────────────── */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(26, 26, 46, 0.08);
  border: 2px dashed rgba(26, 26, 46, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  color: #4B5563;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  font-style: italic;
}

.section--dark .img-placeholder {
  background-color: rgba(245, 245, 245, 0.05);
  border-color: rgba(245, 245, 245, 0.2);
  color: rgba(245, 245, 245, 0.6);
}

/* ── Visually Hidden (Accessibility) ─────────────────────── */
.sr-only {
  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 ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--page-bg-dark);
  color: var(--text-on-dark);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0;
}

/* ── Divider / Accent Line ───────────────────────────────── */
.accent-line {
  display: block;
  width: 3rem;
  height: 3px;
  background-color: var(--accent);
  margin-bottom: var(--space-6);
}

/* ── External Link Icon ──────────────────────────────────── */
.link-external {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-base);
}

.link-external:hover {
  color: var(--accent-hover);
}

.link-external:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.section--dark .link-external {
  color: #F87171;
}

.section--dark .link-external:hover {
  color: #FCA5A5;
}
