/* ============================================================
   LUKON — lukonmedia.de · Tech-Signature „PRECISION"
   Clean-futuristisch nach REDESIGN-KONZEPT.md — Farbwerte unverändert.
   Grün = Betriebszustand/Signal, Fase statt Blattspitze, Grid statt Nebel.
   Foundation: Tokens · Base · Typografie · Pattern · Platzhalter
   ============================================================ */

:root {
  /* Farbwelt — Logo-Palette: Smaragd-Blatt auf Weiß (Pixel-gesampelt aus lukon-logo.jpeg) */
  --bg: #ffffff;
  --bg-tint: #eef7f1;         /* Salbei-Hauch für Bänder */
  --bg-card: #ffffff;
  --border: #e2eae4;
  --ink: #071f1b;             /* Wortmarken-Tannengrün (#031D1C, leicht gehoben) */
  --text: #16302a;
  --text-dim: #3c5046;
  --lime: #d9efe2;            /* ehem. Lime-Flächen → weiches Salbei (nur mit dunklem Text) */
  --mint: #e6f4ec;            /* Tint-Fläche */
  --green-ink: #0b5136;       /* Logo-MEDIA-Grün (#0B4F36) — Text auf Weiß, AAA */
  --green-mid: #359e73;       /* Blatt-Hellgrün — Deko/Icons, nicht für kleinen Text */
  --emerald: #0e6543;         /* Blatt-Kerngrün — Buttons (weißer Text: 7,2:1) */
  --forest: #05442f;          /* Blatt-Tiefgrün */

  /* Erweiterte Bühnen-Palette (harmonisch zum Blatt-Smaragd) */
  --forest-deep: #062218;     /* dunkle Kontrast-Sektionen */
  --forest-deep-2: #0a3226;
  --sand: #f5eedf;            /* warme Zwischen-Sektionen */
  --sand-deep: #ecdfc8;
  --gold: #d9a441;            /* Honig-Gold — Deko/Glow, nie kleiner Text auf Hell */
  --text-on-dark: #eaf4ee;
  --dim-on-dark: #bdd8c8;     /* aufgehellt (Judge R2: Sekundärtext auf Dunkel zu schwach) */

  /* Grain entfernt (Analog-Trigger) — Layer-Slot bleibt für Kompatibilität */
  --grain: linear-gradient(transparent, transparent);

  /* Legacy-Mapping — Inline-Styles der Seiten nutzen diese Namen */
  --violet: var(--green-ink);
  --cyan: var(--green-ink);
  --gradient: linear-gradient(135deg, var(--green-mid), var(--emerald));

  /* Layout — präzise, straffe Radien */
  --maxw: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 4.25rem;

  /* Typo — Montserrat spiegelt die geometrische Logo-Wortmarke, Mono = Tech-Akzent */
  --font: "Instrument Sans", system-ui, "Segoe UI", sans-serif;
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  /* Schatten flach + kühl — Tiefe kommt aus 1px-Kanten, nicht aus Weichzeichnung */
  --shadow-soft: 0 1px 2px #071f1b0a;
  --shadow-lift: 0 8px 24px -16px #05442f33;

  /* Signatur-Form: Fase (45°-Cut) ersetzt die Blattspitze */
  --leaf: 8px;   /* Legacy-Radius-Token — alle ehem. Blatt-Chips werden eckig-präzise */
  --cut: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  --cut-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.03rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* Sicherheitsnetz: Deko-Shapes erzeugen nie H-Scroll */
}

/* Design-Linie v2, Runde 2: Canvas komplett glatt — auch das Dot-Grid entfällt
   (beide Judges werteten jedes Muster als Bruch mit der reduzierten Linie) */

img { max-width: 100%; display: block; }

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

::selection { background: var(--emerald); color: #ffffff; }

/* ---------- Utility ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Laser-Underline: EINE 3px-Signal-Linie, zeichnet sich von links (Design-Linie v2) */
.grad-text {
  color: var(--ink);
  background: linear-gradient(90deg, var(--green-mid), var(--emerald)) left 96% / 100% 3px no-repeat;
  padding: 0 0.08em 0.06em;
}

@media (prefers-reduced-motion: no-preference) {
  .grad-text {
    background-size: 0% 3px;
    animation: laser-sweep 0.7s cubic-bezier(0.6, 0, 0.2, 1) 0.5s forwards;
  }

  @keyframes laser-sweep { to { background-size: 100% 3px; } }
}

/* Label-Zeile im Logo-„MEDIA"-Stil, Mono als Tech-Akzent */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green-ink);
  margin-bottom: var(--space-2);
}

.eyebrow::before, .eyebrow::after {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--green-ink);
  flex: none;
}

@media (max-width: 640px) {
  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-wrap: balance;
  }

  .eyebrow::before, .eyebrow::after { width: 1.1rem; }
}

section { padding: var(--space-5) 0; position: relative; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 4.9vw, 3.6rem); line-height: 1.12; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.3rem); line-height: 1.18; margin-bottom: 1.4rem; }

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  margin-bottom: var(--space-1);
  color: var(--ink);
  letter-spacing: -0.01em;
}

h4 { font-family: var(--font-display); font-weight: 600; }

.lead { color: var(--text-dim); font-size: 1.14rem; max-width: 46rem; }

/* ---------- Scroll-Reveals ----------
   JS vergibt .rv (und .in beim Eintritt). Nur aktiv, wenn html.js gesetzt ist —
   ohne JS ist alles sichtbar. Für Full-Page-Screenshots werden alle .rv per
   evaluate auf .in gesetzt (bekannte Falle, siehe Lernen/Patterns.md). */

@media (prefers-reduced-motion: no-preference) {
  html.js .rv {
    opacity: 0;
    transform: translateY(22px) scale(0.99);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
    transition-delay: var(--rv-delay, 0s);
  }

  /* Richtungsvarianten — mechanisch auf Achsen, 0° Rotation (vergibt main.js) */
  html.js .rv.rv-left { transform: translateX(-30px); }
  html.js .rv.rv-right { transform: translateX(30px); }
  html.js .rv.rv-tilt { transform: translateY(26px) scale(0.98); }

  html.js .rv.in { opacity: 1; transform: none; }

  /* Eyebrow-Flankenlinien zeichnen sich, wenn die Sektion einschwebt */
  html.js main section .eyebrow::before,
  html.js main section .eyebrow::after {
    transform: scaleX(0);
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.15s;
  }

  html.js main section .eyebrow::before { transform-origin: right; }
  html.js main section .eyebrow::after { transform-origin: left; }

  html.js main section.sec-in .eyebrow::before,
  html.js main section.sec-in .eyebrow::after { transform: scaleX(1); }

  .hero .container > * { animation: rise-in 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .hero .container > *:nth-child(2) { animation-delay: 0.1s; }
  .hero .container > *:nth-child(3) { animation-delay: 0.2s; }
  .hero .container > *:nth-child(4) { animation-delay: 0.3s; }

  @keyframes rise-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Platzhalter-Markierung ---------- */
/* Alles mit .ph fliegt vor Launch raus bzw. wird ersetzt. */

.ph {
  position: relative;
  outline: 1px dashed #c4b58e3d;
  outline-offset: 3px;
  border-radius: 6px;
}

.ph::after {
  content: "PLATZHALTER";
  position: absolute;
  top: -0.65rem;
  right: 0;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-family: var(--font-mono);
  color: #6b5a26;
  background: #f0e5c4;
  border: 1px solid #ddcda0;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .ph::after { right: 0; }   /* Badge randnah nach innen — H-Overflow-Falle */
}

/* Asset-Slot: gleiche Familie wie .card — weißer Grund, Haarlinie, weicher Schatten */
.asset-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  padding: var(--space-3);
}

/* Mobile Overrides — bewusst am DATEIENDE (Kaskade: spätere Regel gewinnt) */
@media (max-width: 640px) {
  /* „für Unternehmen." muss mobil auf EINE Zeile passen (sonst Waise „für");
     hyphens: Wortungetüme wie „Datenschutzerklärung" erzeugten 13px H-Overflow */
  h1 {
    font-size: 2.02rem;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}
