/* ==========================================================
   Michael Hofer – Sparringspartner
   Dunkel, kontrastreich, Signalfarbe. Kein Beraterbeige.
   ========================================================== */

:root {
  --bg: #0e0f12;
  --bg-2: #15171c;
  --bg-3: #1d2027;
  --line: #2a2e37;
  --text: #f3f1ea;
  --text-soft: #b8b6ae;
  --text-muted: #7d7c76;

  --hot: #ff4d1c;        /* Signal: Orange-Rot */
  --hot-deep: #e13d0f;
  --acid: #d8ff3d;       /* Zweitfarbe: Säuregrün für Hervorhebungen */
  --acid-ink: #0e0f12;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--acid); color: var(--acid-ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.0;
  margin: 0 0 0.5em;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(3rem, 7.5vw, 6rem); text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: 1.4rem; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--hot);
  margin-right: 0.6rem;
  transform: translateY(-1px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a { color: var(--text-soft); transition: color .2s; }
.nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--acid-ink) !important;
  background: var(--acid);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-cta:hover { background: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--hot);
  color: var(--text);
}
.btn-primary:hover { background: var(--hot-deep); }

.btn-ghost {
  border-color: var(--text);
  color: var(--text);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); }

.btn-block { display: block; text-align: center; margin-top: 1.5rem; }

/* ---------- Typo helpers ---------- */

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--acid);
  margin-bottom: 1.25rem;
  padding-left: 1.4rem;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.9rem;
  height: 2px;
  background: var(--acid);
}

.lead {
  font-size: 1.25rem;
  color: var(--text-soft);
  max-width: 32em;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 38em;
}

/* Hervorhebung im Hero: Wort mit Signalfarbe */
.mark { color: var(--hot); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* großes, leicht gedrehtes Signal-Element im Hintergrund */
  content: "";
  position: absolute;
  right: -12vw;
  top: -10vw;
  width: 46vw;
  height: 46vw;
  background: var(--hot);
  transform: rotate(12deg);
  opacity: 0.14;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 { max-width: 9em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2.25rem 0 1.25rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-note::before {
  content: "●";
  color: var(--acid);
  margin-right: 0.5rem;
  font-size: 0.6rem;
  vertical-align: middle;
}

.hero-portrait { display: flex; justify-content: center; }

.portrait-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  position: relative;
}
.portrait-placeholder::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 2px solid var(--hot);
  z-index: -1;
}

/* ---------- Facts: Signalband ---------- */

.facts {
  background: var(--hot);
  color: var(--text);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
}

.fact {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 2rem 0;
}
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.28); }

.fact-number {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.fact-label {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 48em; margin-bottom: 3rem; }
.section-head h2 { max-width: 16em; }

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  padding: 0 0 2.75rem 2rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  background: var(--hot);
  border: 3px solid var(--bg);
}
.timeline-item.is-closed::before { background: var(--text-muted); }

.timeline-year {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-soft);
  padding-top: 0.2rem;
  letter-spacing: -0.01em;
}

.timeline-body h3 { margin-bottom: 0.15em; font-size: 1.5rem; }

.timeline-role {
  font-size: 0.85rem;
  color: var(--acid);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}
.timeline-item.is-closed .timeline-role { color: var(--text-muted); }

.timeline-body p:last-child { color: var(--text-soft); max-width: 40em; margin: 0; }

.credentials {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--acid);
}
.credentials h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.credentials ul { margin: 0; padding-left: 1.2rem; color: var(--text-soft); }
.credentials li { margin-bottom: 0.25rem; }

/* ---------- Topics ---------- */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.topic {
  padding: 2rem 1.75rem;
  background: var(--bg-2);
  transition: background .2s;
  position: relative;
}
.topic:hover { background: var(--bg-3); }
.topic::before {
  content: counter(topic, decimal-leading-zero);
  counter-increment: topic;
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--hot);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.topics-grid { counter-reset: topic; }

.topic h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.topic p { color: var(--text-soft); margin: 0; font-size: 0.97rem; }

.exclusion {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--acid);
  color: var(--acid-ink);
  max-width: 52em;
  font-weight: 500;
}
.exclusion p { margin: 0; }
.exclusion strong { font-weight: 800; }

/* ---------- Offer ---------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.offer {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.offer-featured {
  background: var(--hot);
  border-color: var(--hot);
  transform: translateY(-10px);
}

.offer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.offer-featured .offer-kicker { color: rgba(255, 255, 255, 0.75); }

.offer h3 { margin-bottom: 0.5em; font-size: 1.5rem; }

.offer-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--acid);
  margin-bottom: 1.25rem;
}
.offer-featured .offer-price { color: var(--text); }
.offer-price span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.5rem;
}
.offer-featured .offer-price span { color: rgba(255, 255, 255, 0.8); }

.offer > p:not(.offer-kicker):not(.offer-price) {
  color: var(--text-soft);
  font-size: 0.97rem;
  flex: 1;
}
.offer-featured > p:not(.offer-kicker):not(.offer-price) { color: rgba(255, 255, 255, 0.92); }

.offer .btn { align-self: flex-start; margin-top: auto; }
.offer-featured .btn-primary { background: var(--bg); color: var(--text); }
.offer-featured .btn-primary:hover { background: var(--acid); color: var(--acid-ink); }

.principles {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.principles h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.principles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  color: var(--text-soft);
}
.principles strong { color: var(--text); font-weight: 700; }

/* ---------- Contact ---------- */

.section-dark {
  background: var(--acid);
  color: var(--acid-ink);
}
.section-dark .eyebrow { color: var(--acid-ink); }
.section-dark .eyebrow::before { background: var(--acid-ink); }
.section-dark .section-intro { color: rgba(14, 15, 18, 0.75); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-card {
  background: var(--bg);
  color: var(--text);
  padding: 1.5rem;
}

.contact-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}
.contact-line:hover .contact-value { color: var(--acid); }

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}
.contact-value { font-weight: 600; transition: color .2s; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 1.5rem; }
.footer-inner a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; justify-content: flex-start; }
  .portrait-placeholder { max-width: 220px; }
  .hero::after { width: 80vw; height: 80vw; right: -30vw; top: -30vw; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 1.5rem 1rem 1.5rem 0; }
  .fact + .fact { padding-left: 1rem; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.28); }
  .fact:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.28); }
  .topics-grid, .offer-grid, .principles ul { grid-template-columns: 1fr 1fr; }
  .offer-featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Schriftgröße an die Breite koppeln, damit das längste Wort
     ("ENTSCHEIDUNGEN", "SPARRINGSPARTNER") nie über den Rand läuft */
  h1 { font-size: clamp(1.8rem, 9.4vw, 3.4rem); }
  h2 { font-size: clamp(1.5rem, 8vw, 3.6rem); }
  h1, h2 { overflow-wrap: anywhere; hyphens: auto; }
  .legal h1 { font-size: clamp(1.8rem, 9.4vw, 3.6rem); }
  .contact-line { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .contact-line .contact-value { text-align: left; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; padding-left: 1.5rem; }
  .topics-grid, .offer-grid, .principles ul { grid-template-columns: 1fr; }
  .fact-number { font-size: 2.6rem; }
  .footer-inner { flex-direction: column; gap: 0.75rem; }
}

/* Adresszeile im Kontaktblock: mehrzeilig, rechtsbündig */
.contact-line .contact-value { text-align: right; }

/* ---------- Rechtsseiten (Impressum, Datenschutz) ---------- */

.legal { padding: clamp(3rem, 7vw, 6rem) 0; }
.legal-inner { max-width: 46em; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 0.4em; }
.legal h2 {
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
  color: var(--acid);
}
.legal p, .legal li { color: var(--text-soft); font-size: 1rem; }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--hot); text-underline-offset: 3px; }
.legal a:hover { color: var(--hot); }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.legal-back { margin-top: 3rem; }
.legal-back a { text-decoration: none; }

/* ---------- Porträt im Hero ---------- */
.portrait {
  width: 100%;
  max-width: 380px;
  position: relative;
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--hot);
  z-index: -1;
}
@media (max-width: 900px) { .portrait { max-width: 260px; } }

/* ---------- Barrierefreiheit ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--acid);
  color: var(--acid-ink);
  padding: 0.6rem 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top .15s;
}
.skip-link:focus { top: 1rem; outline: none; }

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}
.btn:focus-visible, .nav-cta:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Mobiles Menü ---------- */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--text);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.nav-cta) {
    display: block;
    padding: 0.9rem 1.25rem;
    font-size: 1.05rem;
    border-top: 1px solid var(--line);
  }
  .nav-cta { margin: 0.75rem 1.25rem 0; text-align: center; }
}
