/* ==========================================================================
   YUGA Consulting GmbH — main.css
   Design-DNA: Human Precision + Living Systems
   Farben sind semantisch (Handover §6):
     Navy  #0F1B2D  Grundfarbe, Erklärung, Typografie
     Orange #F36C21 Issue, Reibung, Erkenntnis, Aktivierung (CTA)
     Sage  #6B7F66  Richtung, Verbesserung, Bestätigung
     Light #F2F4F6  Raum, ruhige Flächen
   Orange/Grün NIE als dekorative Flächen- oder Kapitelfarbe.
   ========================================================================== */

/* ---- Fonts: Manrope self-hosted (Handover §6 / Copy §18) -----------------
   WOFF2-Dateien vor Go-live nach /assets/fonts/ legen (siehe README).
   Fallback-Stack sorgt bis dahin für saubere Darstellung. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0F1B2D;
  --navy-70: rgba(15, 27, 45, 0.72);
  --navy-50: rgba(15, 27, 45, 0.52);
  --navy-12: rgba(15, 27, 45, 0.12);
  --navy-06: rgba(15, 27, 45, 0.06);
  --orange: #F36C21;
  --sage: #6B7F66;
  --sage-dark: #55664F; /* Kontrastvariante für Text/Icons auf hell */
  --light: #F2F4F6;
  --white: #FFFFFF;

  --font: "Manrope", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;

  --maxw: 1160px;
  --radius: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15, 27, 45, 0.05), 0 8px 28px rgba(15, 27, 45, 0.06);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3.5rem;
  --space-6: 5.5rem;
}

/* ---- Reset / Basis ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

h1, h2, h3, h4 {
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 var(--space-3);
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--navy-70); }
.muted { color: var(--navy-70); }

/* Skip-Link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Sichtbarer Fokus */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- Layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--light { background: var(--light); }
.section--tight { padding: clamp(2.2rem, 5vw, 3.5rem) 0; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-70);
  margin-bottom: var(--space-2);
}

.grid-2 {
  display: grid; gap: clamp(1.6rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--wide-media { grid-template-columns: 5fr 6fr; }
}

.narrow { max-width: 46rem; }

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--navy-12);
}
.nav-bar {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 72px;
}
.brand {
  font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--navy);
  margin-right: auto;
}
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--navy-12); border-radius: 8px;
  padding: 0.5rem 0.65rem; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { display: block; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Dropdown „Was wir tun" — einziger Punkt mit Auswahl (Copy §1) */
.nav-item--dropdown { position: relative; }
.nav-item--dropdown > button {
  font: inherit; font-weight: 600; color: var(--navy);
  background: none; border: 0; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.nav-item--dropdown > button:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-item--dropdown .chev { transition: transform 0.15s ease; }
.nav-item--dropdown[data-open="true"] .chev { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--navy-12); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 260px; padding: 0.5rem;
  display: none;
}
.nav-item--dropdown[data-open="true"] .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; padding: 0.6rem 0.8rem; border-radius: 7px;
  font-weight: 600; text-decoration: none;
}
.dropdown-panel a:hover { background: var(--light); text-decoration: none; }

.nav-cta {
  display: inline-block;
  background: var(--navy); color: #fff !important;
  padding: 0.55rem 1.15rem; border-radius: var(--radius-pill);
  text-decoration: none !important; font-weight: 700;
}
.nav-cta:hover { background: #1a2b45; }

.lang-switch { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.lang-switch a, .lang-switch span[aria-current] { text-decoration: none; font-weight: 700; color: var(--navy); }
.lang-switch a { color: var(--navy-50); }
.lang-switch a:hover { color: var(--navy); }
.lang-sep { color: var(--navy-12); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--navy-12);
    padding: 0.8rem clamp(1.1rem, 4vw, 2rem) 1.2rem;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .site-nav li { width: 100%; }
  .site-nav a, .nav-item--dropdown > button { display: block; width: 100%; text-align: left; padding: 0.6rem 0.2rem; }
  .dropdown-panel {
    position: static; transform: none; border: 0; box-shadow: none;
    padding: 0 0 0 1rem; display: block; min-width: 0;
  }
  .nav-item--dropdown .chev { display: none; }
  .nav-cta { display: inline-block; margin-top: 0.5rem; text-align: center; }
}

/* ---- Buttons / Links ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.5rem;
  border: 0; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: #d95a15; }
.btn--secondary { background: var(--navy); color: #fff; }
.btn--secondary:hover { background: #1a2b45; }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy-12); }
.btn--ghost:hover { border-color: var(--navy); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}
.arrow-link:hover { text-decoration-thickness: 2.5px; }
.arrow-link svg { flex: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; margin-top: var(--space-4); }

/* ---- Cards ---- */
.card-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .card-grid--3 { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 640px) and (max-width: 959px) { .card-grid--3 { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--navy-12);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.section--light .card { border-color: transparent; box-shadow: var(--shadow-card); }
a.card { display: block; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { border-color: var(--navy); }
.section--light a.card:hover { box-shadow: 0 2px 4px rgba(15,27,45,.08), 0 12px 34px rgba(15,27,45,.10); }
.card h3 { margin-bottom: 0.5rem; font-size: 1.08rem; }
.card p { color: var(--navy-70); font-size: 0.98rem; }
.card .arrow-link { margin-top: 0.8rem; font-size: 0.95rem; }

/* Situationsliste auf der Homepage */
.situation-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 0.7rem; }
.situation-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--white); border: 1px solid var(--navy-12); border-radius: var(--radius);
  padding: 1.05rem 1.3rem; font-weight: 700; text-decoration: none;
  transition: border-color 0.15s ease;
}
.situation-list a:hover { border-color: var(--navy); }
.situation-list svg { flex: none; }
.section--light .situation-list a { border-color: transparent; box-shadow: var(--shadow-card); }

/* ---- Hero ---- */
.hero { padding: clamp(3.6rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); background: var(--light); }
.hero h1 { max-width: 21ch; }
.hero .lead { max-width: 44rem; }

.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.2rem, 5vw, 3.4rem); background: var(--light); }
.page-hero h1 { max-width: 24ch; }
.page-hero .lead { max-width: 46rem; }

/* ---- Prose (Fließtextseiten, Legal) ---- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--space-5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-4); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---- Approach (Wie wir arbeiten) ---- */
.approach-steps { counter-reset: step; display: grid; gap: 1.1rem; margin-top: var(--space-4); }
@media (min-width: 720px) { .approach-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .approach-steps { grid-template-columns: repeat(3, 1fr); } }
.approach-step { position: relative; counter-increment: step; }
.approach-step .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1.5px solid var(--navy); font-weight: 800; font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.impact-band {
  margin-top: 1.1rem;
  border: 1.5px dashed var(--sage);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--white);
}
.impact-band svg { flex: none; margin-top: 0.2rem; }

/* Kompakter Approach-Strip auf der Homepage */
.approach-strip { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; margin-top: var(--space-3); padding: 0; list-style: none; }
.approach-strip li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--navy-12); border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem; font-weight: 700; font-size: 0.93rem; background: var(--white);
}
.approach-strip .step-idx { color: var(--navy-50); font-weight: 800; font-size: 0.8rem; }

/* ---- Portrait / About ---- */
.portrait {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.figure-note { font-size: 0.85rem; color: var(--navy-50); margin-top: 0.6rem; }

/* ---- Kontakt ---- */
.contact-card {
  background: var(--white); border: 1px solid var(--navy-12); border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.contact-card .who { font-weight: 800; font-size: 1.1rem; }
.contact-card .role { color: var(--navy-70); margin-bottom: 0.9rem; }
.contact-card a { font-weight: 600; }
.contact-lines { display: grid; gap: 0.35rem; margin-bottom: 1.2rem; }

/* ---- Formular ---- */
.form-grid { display: grid; gap: 1.1rem; }
.form-field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.form-field .hint { display: block; font-weight: 400; color: var(--navy-50); font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; color: var(--navy);
  border: 1.5px solid var(--navy-12); border-radius: 8px;
  padding: 0.75rem 0.9rem; background: var(--white);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--navy);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--orange); }
.field-error {
  display: none; margin-top: 0.4rem; font-size: 0.92rem; font-weight: 600; color: #B44A0E;
}
.form-field.has-error .field-error { display: flex; align-items: center; gap: 0.4rem; }
.form-privacy { font-size: 0.92rem; color: var(--navy-70); }
.form-privacy a { font-weight: 600; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-state { display: none; border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.form-state[data-visible="true"] { display: block; }
.form-state--success { border: 1.5px solid var(--sage); background: var(--white); }
.form-state--error { border: 1.5px solid var(--orange); background: var(--white); }
.form-state h3 { display: flex; align-items: center; gap: 0.55rem; }
.is-busy { opacity: 0.55; pointer-events: none; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #fff; padding: var(--space-5) 0 var(--space-4); margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; }
.footer-brand .claim { opacity: 0.75; margin-top: 0.4rem; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.65; margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-meta {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; justify-content: space-between;
  font-size: 0.92rem; opacity: 0.8;
}

/* ==========================================================================
   Living Systems — verbindliche visuelle Grammatik (Handover §7)
   State-Box (Navy/Grau) · Actor-Node (runder Personen-Node) · feine Linien ·
   Issue: orangefarbenes ! / orange gestrichelt · Improvement: grüne
   Beziehung + grüner ✓ am veränderten Zustand. Kein separates
   Improvement-Symbol. Bedeutung nie nur über Farbe (Formcodierung:
   gestrichelt = Issue, ✓/! = Marker, Textlabel im Diagrammtitel).
   ========================================================================== */
.ls-figure { margin: 0; }
.ls-figure svg { width: 100%; height: auto; display: block; }
.ls-caption {
  text-align: center; font-size: 0.95rem; font-weight: 600; color: var(--navy-70);
  margin-top: 0.7rem;
}
.ls-pair {
  display: grid; gap: 1.4rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .ls-pair { grid-template-columns: 1fr auto 1fr; }
}
.ls-pair .ls-arrow { display: none; }
@media (min-width: 860px) { .ls-pair .ls-arrow { display: block; color: var(--navy-50); } }

/* SVG-Grundstile */
.ls-line { stroke: var(--navy-50); stroke-width: 1.4; fill: none; }
.ls-line--issue { stroke: var(--orange); stroke-dasharray: 5 5; }
.ls-line--ok { stroke: var(--sage); stroke-width: 1.7; }
.ls-state rect { fill: var(--white); stroke: var(--navy-50); stroke-width: 1.4; rx: 8; }
.ls-state--ok rect { stroke: var(--sage); stroke-width: 1.7; }
.ls-state text { fill: var(--navy); }
.ls-state .t1 { font-weight: 700; font-size: 14px; }
.ls-state .t2 { font-size: 11.5px; fill: var(--navy-70); }
.ls-actor circle { fill: var(--white); stroke: var(--navy-50); stroke-width: 1.4; }
.ls-actor path { stroke: var(--navy); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ls-actor text { font-size: 12px; font-weight: 600; fill: var(--navy); }
.ls-badge--issue circle { fill: var(--orange); }
.ls-badge--issue text { fill: #fff; font-weight: 800; font-size: 12px; }
.ls-badge--ok circle { fill: var(--sage); }
.ls-badge--ok path { stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Einmalige, erklärende Einblendung (keine Endlosschleife, Handover §7) */
@media (prefers-reduced-motion: no-preference) {
  .ls-animate [data-ls-stage] { opacity: 0; }
  .ls-animate.ls-in [data-ls-stage] { opacity: 1; transition: opacity 0.6s ease; }
  .ls-animate.ls-in [data-ls-stage="1"] { transition-delay: 0.1s; }
  .ls-animate.ls-in [data-ls-stage="2"] { transition-delay: 0.9s; }
  .ls-animate.ls-in [data-ls-stage="3"] { transition-delay: 1.7s; }
}

/* ---- Sonstiges ---- */
.divider { border: 0; border-top: 1px solid var(--navy-12); margin: var(--space-5) 0; }
.status-note {
  border: 1px solid var(--navy-12); border-left: 4px solid var(--orange);
  border-radius: 6px; background: var(--white);
  padding: 0.9rem 1.1rem; font-size: 0.95rem; color: var(--navy-70);
}
