/**
 * LÖWEN RANKING – GLOBAL STYLES & DESIGN TOKENS
 * www.loewen-ranking.de
 */

/* ==========================================================================
   LOKALE HAUSSCHRIFT FRUTIGER (FRUTIGER LT STD)
   ========================================================================== */
@font-face {
  font-family: 'Frutiger LT Std';
  src: url('../fonts/Frutiger LT Std/FrutigerLTStd Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Frutiger LT Std';
  src: url('../fonts/Frutiger LT Std/FrutigerLTStd LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Frutiger LT Std';
  src: url('../fonts/Frutiger LT Std/FrutigerLTStd Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Frutiger LT Std';
  src: url('../fonts/Frutiger LT Std/FrutigerLTStd Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Frutiger LT Std';
  src: url('../fonts/Frutiger LT Std/FrutigerLTStd Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Frutiger LT Std';
  src: url('../fonts/Frutiger LT Std/FrutigerLTStd BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Frutiger LT Std';
  src: url('../fonts/Frutiger LT Std/FrutigerLTStd Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Frutiger LT Std';
  src: url('../fonts/Frutiger LT Std/FrutigerLTStd BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Verbindliche LÖWEN Markenfarben (Referenz: Finales Logo 78C 85M) */
  --color-purple-primary: #673CAC;
  --color-purple-hover:   #7E4EC8;
  --color-purple-light:   #9468DB;
  --color-purple-glow:    rgba(103, 60, 172, 0.45);
  --color-purple-subtle:  rgba(103, 60, 172, 0.12);
  
  --color-blue-loewen:    #001D7A;
  --color-blue-dark:      #001042;
  --color-blue-light:     #00295F;
  
  --color-red-loewen:     #A30000;
  --color-red-vivid:      #BE123C;
  --color-red-glow:       rgba(163, 0, 0, 0.4);
  --color-accent-red:     #BE123C;
  --color-accent-red-hover: #A30000;

  /* Neutrale Töne & Dark Mode */
  --color-bg-base:        #060A17;
  --color-bg-alt:         #0A1126;
  --color-bg-surface:     #0F1A3C;
  --color-bg-card:        rgba(15, 26, 60, 0.75);
  --color-bg-glass:       rgba(15, 26, 60, 0.65);
  --color-border:         rgba(103, 60, 172, 0.25);
  --color-border-subtle:  rgba(255, 255, 255, 0.08);
  --color-border-hover:   rgba(126, 78, 200, 0.55);

  --color-text-main:      #FFFFFF;
  --color-text-muted:     #94A3B8;
  --color-text-subtle:    #64748B;

  --color-gold:           #F59E0B;
  --color-gold-glow:      rgba(245, 158, 11, 0.4);
  --color-green-success:  #10B981;

  /* Typografie (Frutiger Hausschrift mit Fallbacks) */
  --font-family-base: 'Frutiger LT Std', Frutiger, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: 'Frutiger LT Std', Frutiger, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Container & Spacing */
  --container-max-width: 1200px;
  --container-narrow: 840px;
  --header-height: 104px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Schatten & Glow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px var(--color-purple-glow);
  --shadow-glow-lg: 0 0 50px rgba(103, 60, 172, 0.35);

  /* Transitionen */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-family-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-base);
  background-image: 
    radial-gradient(ellipse at 85% 15%, rgba(107, 43, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 75%, rgba(0, 29, 122, 0.25) 0%, transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

p.lead {
  font-size: 1.25rem;
  color: #E2E8F0;
  line-height: 1.6;
}

a {
  color: var(--color-purple-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-purple-hover);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-compact {
  padding: 3.5rem 0;
}

.section-hero {
  padding: 4rem 0 5rem 0;
}

/* ==========================================================================
   VISUELLE THEMENFLÄCHEN (Anforderungen 18–31)
   ========================================================================== */
.surface-dark {
  background-color: var(--color-bg-base);
  background-image: 
    radial-gradient(ellipse at 85% 20%, rgba(103, 60, 172, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 80%, rgba(0, 29, 122, 0.18) 0%, transparent 60%);
  position: relative;
}

.surface-neutral,
.surface-quiet {
  background-color: #080E21;
  background-image: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.surface-brand-accent,
.surface-brand-tint {
  background-color: #0C1538;
  background-image: linear-gradient(180deg, rgba(103, 60, 172, 0.14) 0%, rgba(0, 29, 122, 0.18) 100%);
  border-top: 1px solid rgba(103, 60, 172, 0.25);
  border-bottom: 1px solid rgba(103, 60, 172, 0.25);
  position: relative;
}

.section-alt {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .sub-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-purple-hover);
  background: rgba(107, 43, 255, 0.15);
  border: 1px solid rgba(107, 43, 255, 0.35);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 680px;
  margin: 0 auto;
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  :root { --header-height: 90px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 640px) {
  :root { --header-height: 78px; }
}

/* Focus States & Accessibility */
:focus-visible {
  outline: 2px solid var(--color-purple-primary);
  outline-offset: 3px;
}

@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;
  }
}
