/* GEHALTSATLAS Design Tokens — Polarstern-Brand */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Polarstern Brand Palette */
  --polar-navy: #0A0F1A;
  --polar-navy-2: #0F1828;
  --polar-navy-3: #1A2438;
  --polar-blue: #1C5AA8;
  --polar-blue-dark: #143E75;
  --polar-blue-light: #2A75CC;
  --polar-accent: #4A9EFF;
  --polar-accent-soft: #7BBAFF;

  /* Neutrals */
  --ink-900: #0F172A;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-600: #334155;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
  --ink-300: #CBD5E1;
  --ink-200: #E2E8F0;
  --ink-100: #F1F5F9;
  --ink-50: #F8FAFC;

  /* Sub-Brand-Akzente (Branchen-Selector) */
  --sub-sap: #1e40af;
  --sub-sap-light: #3B82F6;
  --sub-tga: #0891B2;
  --sub-tga-light: #22D3EE;
  --sub-tech: #6D28D9;
  --sub-tech-light: #A78BFA;
  --sub-java: #D97706;
  --sub-java-light: #FBBF24;
  --sub-handwerk: #C2410C;
  --sub-handwerk-light: #FB923C;
  --sub-energie: #047857;
  --sub-energie-light: #34D399;

  /* Semantic */
  --bg: #FFFFFF;
  --bg-soft: var(--ink-50);
  --bg-dark: var(--polar-navy);
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --text-subtle: var(--ink-500);
  --border: var(--ink-200);
  --border-soft: var(--ink-100);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
  --shadow-glow: 0 0 40px rgba(74, 158, 255, .25);

  --container: 1200px;
  --container-narrow: 980px;

  --easing: cubic-bezier(.4, 0, .2, 1);

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--polar-blue);
}

/* Section em-Styling für Dark-Backgrounds (DM Sans hat kein italic-face, Fraunces als italic) */
.dark em, [data-bg="dark"] em {
  color: var(--polar-accent);
}

::selection {
  background: var(--polar-accent);
  color: #fff;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* Visually-hidden (für Skip-Link, ARIA) */
.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 (CSS-only, keine onfocus-Handler) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--polar-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.15s var(--easing);
}
.skip-link:focus { top: 0; }

/* Focus-visible across interactive elements */
:focus { outline: none; }
a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible,
.faq-item summary:focus-visible,
.branchen-tab:focus-visible,
.branchen-role:focus-visible,
.quiz-option:focus-visible {
  outline: 3px solid var(--polar-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.section-dark a:focus-visible,
.section-dark button:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible,
.error-page a:focus-visible {
  outline-color: var(--polar-accent-soft);
}

/* Reduced-motion support */
@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; }
}
