/* ============================================
   Lausitz Digital V1 — Base
   Original-Design vom 11.05.2026, mit lokalen Fonts
   ============================================ */

/* === Lokale Variable Fonts (Chrome + Safari kompatibel) === */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Hintergründe — warm cream palette */
  --bg:           #F5F1EA;
  --bg-deep:      #EDE7DB;
  --bg-subtle:    #EFEBE2;
  --bg-surface:   #FFFFFF;
  --bg-ink:       #141312;

  /* Text — WCAG-AA-konforme Kontraste auf #F5F1EA-Background */
  --ink:          #141312; /* ≈18.5:1 */
  --ink-soft:     #3D3934; /* ≈ 9.7:1 */
  --ink-muted:    #5C584F; /* ≈ 5.7:1 — vorher #6E6960 = 4.36:1 (knapp unter Schwelle) */
  --ink-faded:    #8A847A; /* ≈ 3.4:1 — nur für dekorative Stellen (große Display-Numbers, Strikethrough) */
  --ink-inverse:  #F5F1EA;

  /* Borders */
  --border:        #DCD6CA;
  --border-strong: #C0B9A8;
  --border-ink:    #141312;

  /* Akzent — Sunset Orange */
  --accent:        #FF5C26;
  --accent-deep:   #C73E0F;
  --accent-soft:   #FFE3D2;
  --accent-tint:   #FFF5EE;

  /* Sekundär */
  --forest:        #2E5E3E;
  --forest-soft:   #DDEAE0;

  /* Schatten */
  --shadow-xs: 0 1px 2px rgba(20, 19, 18, 0.04);
  --shadow-sm: 0 2px 8px rgba(20, 19, 18, 0.06);
  --shadow-md: 0 8px 28px rgba(20, 19, 18, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 19, 18, 0.12);

  /* Schriften */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radien */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1360px;
  --container-pad: clamp(20px, 4vw, 56px);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Globaler [hidden]-Override (überschreibt display:flex/grid in anderen Regeln) */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  min-height: 100vh;
}

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

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

/* === Global Focus-Visible — WCAG 2.4.7 ===
   Tastatur-Fokus immer sichtbar mit Akzent-Outline. Maus-Klicks bekommen ihn
   nicht (dafür :focus-visible statt :focus). */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Bei Pill-Buttons: Outline der Pill-Form folgen lassen */
.btn:focus-visible { border-radius: var(--radius-pill); }

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* === Typografie === */
h1, h2, h3, h4, h5, h6,
.h-hero, .h-display, .h-1, .h-2, .h-3, .h-4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 500;
  overflow-wrap: normal;
  word-wrap: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* In narrow containers (z.B. Legal Pages): kleinere Display-Headlines damit
   lange deutsche Wörter wie „Datenschutzerklärung" nicht überlaufen. */
.container.narrow > .h-display,
.container.narrow > * > .h-display,
.container.narrow .h-display {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
}

.h-hero {
  font-size: clamp(56px, 9vw, 128px);
  font-variation-settings: "opsz" 96, "wght" 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  max-width: 100%;
}

.h-display {
  font-size: clamp(44px, 7vw, 104px);
  font-variation-settings: "opsz" 72, "wght" 500;
  letter-spacing: -0.04em;
  line-height: 0.94;
  max-width: 100%;
}

.h-1 {
  font-size: clamp(40px, 5.5vw, 80px);
  font-variation-settings: "opsz" 48, "wght" 500;
  line-height: 0.95;
}

.h-2 {
  font-size: clamp(32px, 4vw, 56px);
  font-variation-settings: "opsz" 36, "wght" 500;
}

.h-3 {
  font-size: clamp(24px, 2.6vw, 36px);
  font-variation-settings: "opsz" 24, "wght" 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.h-4 {
  font-size: clamp(18px, 1.4vw, 22px);
  font-variation-settings: "opsz" 18, "wght" 600;
  letter-spacing: -0.015em;
}

@media (max-width: 1024px) {
  .h-hero { font-size: clamp(48px, 9vw, 96px); line-height: 0.94; }
  .h-display { font-size: clamp(38px, 6.5vw, 72px); }
}

@media (max-width: 640px) {
  .h-hero { font-size: clamp(40px, 12vw, 64px); line-height: 0.98; letter-spacing: -0.03em; }
  .h-display { font-size: clamp(30px, 8.5vw, 48px); line-height: 1.02; }
  .h-1 { font-size: clamp(28px, 7vw, 42px); }
  .h-2 { font-size: clamp(24px, 6vw, 36px); }
  body { font-size: 16px; }
}

p {
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 65ch;
}

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: eyebrow-pulse 2.4s ease-in-out infinite;
}

@keyframes eyebrow-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
}

/* === Skip-Link (D27 — WCAG 2.4.1) === */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 2000;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--ink-inverse);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 16px);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

em, .italic {
  font-style: italic;
  font-family: var(--font-display);
}

/* Em in Display-Headings bekommt Akzent-Farbe für stärkeren Effekt */
.h-hero em, .h-display em, .h-1 em, .h-2 em, .h-3 em, .h-4 em,
h1 em, h2 em, h3 em, h4 em,
.manifest em,
.footer-cta em,
.process-panel .h-2 em {
  color: var(--accent);
}

strong { font-weight: 600; color: var(--ink); }

a.text-link {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

a.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
