/* ============================================================
   David Bechstein — Portfolio
   Editoriales Studien-Design: Fraunces / Archivo / IBM Plex Mono
   ============================================================ */

:root {
  --tinte:      #101013;
  --papier:     #faf9f6;
  --karton:     #f1efe9;
  --blau:       #2a78d6;
  --blau-hell:  #86b6ef;
  --blau-tief:  #1c5cab;
  --orange:     #eb6834;
  --grau:       #52514e;
  --grau-hell:  #6b6963;
  --linie:      #e1dfd7;
  --gut:        #006300;
  --serif:      "Fraunces", Georgia, serif;
  --grotesk:    "Archivo", "Helvetica Neue", sans-serif;
  --mono:       "IBM Plex Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--grotesk);
  background: var(--papier);
  color: var(--tinte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blau); color: #fff; }
/* Deutsche Komposita ("Datenschutzerklärung") sprengen sonst schmale Viewports */
h1, h2, h3, .hd-titel, .mm-liste > a, .mm-gruppe > a {
  overflow-wrap: break-word; hyphens: auto;
}
:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tinte); color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 0 0 10px 10px; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 0; }

/* ================= NAVIGATION ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.nav-marke {
  font-family: var(--serif); font-weight: 900; font-size: 19px;
  text-decoration: none; color: var(--tinte); letter-spacing: -0.01em;
}
.nav-marke .punkt { color: var(--blau); }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 30px); align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--grau);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--tinte); }
.nav-links a.nav-cta {
  font-weight: 700; color: #fff; background: var(--tinte);
  padding: 9px 18px; border-radius: 999px; transition: background 0.2s, transform 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--blau); transform: translateY(-1px); }

/* ================= MOBILES MENÜ ================= */
/* Hamburger-Schalter: nur mobil sichtbar, 44px Touch-Target */
.nav-schalter {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-schalter span {
  display: block; position: relative;
  width: 22px; height: 2px; background: var(--tinte); border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.19,1,0.22,1), opacity 0.2s;
}
.nav-schalter span::before,
.nav-schalter span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: var(--tinte); border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.19,1,0.22,1);
}
.nav-schalter span::before { top: -7px; }
.nav-schalter span::after  { top: 7px; }
/* offener Zustand: X */
.menue-offen .nav-schalter span { background: transparent; }
.menue-offen .nav-schalter span::before { transform: translateY(7px) rotate(45deg); background: #fff; }
.menue-offen .nav-schalter span::after  { transform: translateY(-7px) rotate(-45deg); background: #fff; }

/* Panel */
.mobil-menue {
  position: fixed; inset: 0; z-index: 90;
  background: var(--tinte); color: #fff;
  padding: 84px clamp(20px, 6vw, 40px) 32px;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.26s, transform 0.26s cubic-bezier(0.19,1,0.22,1), visibility 0.26s;
}
.menue-offen .mobil-menue { opacity: 1; visibility: visible; transform: none; }
.menue-offen { overflow: hidden; }
/* Die Nav muss im offenen Zustand ÜBER dem Panel liegen. Wichtig: Der z-index
   der Kinder allein genügt nicht — die sticky Nav bildet einen eigenen
   Stacking-Context, deshalb wird die Nav selbst hochgezogen. */
.menue-offen .nav {
  z-index: 95;
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none;
}
.menue-offen .nav-marke { color: #fff; }
.menue-offen .nav-links a.nav-cta { opacity: 0; pointer-events: none; }

.mm-liste { display: flex; flex-direction: column; }
.mm-liste > a {
  font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 7vw, 34px);
  line-height: 1.15; letter-spacing: -0.015em;
  color: #fff; text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.mm-liste > a:hover, .mm-liste > a:focus-visible { color: var(--blau-hell); }
.mm-gruppe { padding: 16px 0 6px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.mm-gruppe > a {
  font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 7vw, 34px);
  line-height: 1.15; color: #fff; text-decoration: none; display: block;
}
.mm-unter { display: flex; flex-direction: column; margin-top: 10px; padding-left: 2px; }
.mm-unter a {
  font-family: var(--grotesk); font-size: 16px; color: #c9c8c1;
  text-decoration: none; padding: 9px 0 9px 16px;
  border-left: 2px solid rgba(255,255,255,0.18);
}
.mm-unter a:hover, .mm-unter a:focus-visible { color: #fff; border-left-color: var(--blau); }
.mm-fuss { margin-top: auto; padding-top: 28px; }
.mm-fuss .mm-mail {
  font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 5vw, 23px);
  color: #fff; text-decoration: none; border-bottom: 2px solid var(--blau);
}
.mm-fuss .mm-recht {
  margin-top: 20px; font-family: var(--mono); font-size: 12px; color: #a3a29b;
  display: flex; gap: 18px; flex-wrap: wrap;
}
.mm-fuss .mm-recht a { color: #a3a29b; text-decoration: none; padding: 6px 0; }
.mm-fuss .mm-recht a:hover { color: var(--blau-hell); }

@media (max-width: 760px) {
  /* Desktop-Navigation aus, Hamburger an — aber nur mit JS, sonst bliebe die
     Navigation ohne Skript unerreichbar. */
  .js .nav-links a:not(.nav-cta), .js .drop { display: none; }
  .js .nav-schalter { display: flex; }
  .nav-links { gap: 8px; }
}
@media (min-width: 761px) {
  /* Auf Desktop existiert das Panel nicht — auch nicht für Screenreader. */
  .mobil-menue { display: none; }
}

/* ================= HERO ================= */
.hero {
  padding: clamp(64px, 10vw, 140px) clamp(20px, 5vw, 64px) clamp(48px, 6vw, 90px);
  /* 1200px Inhalt + Padding: fluchtet mit .abschnitt-innen */
  max-width: calc(1200px + 2 * clamp(20px, 5vw, 64px));
  margin: 0 auto;
  position: relative;
}
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blau); font-weight: 500;
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--blau); }
.hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 1.0; letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--blau); }
.hero-sub {
  margin-top: 28px; max-width: 58ch;
  font-size: clamp(16px, 1.35vw, 19px); color: var(--grau); line-height: 1.65;
}
.hero-sub strong { color: var(--tinte); }
.hero-aktionen { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--linie);
  font-family: var(--mono); font-size: 12.5px; color: var(--grau-hell);
  display: flex; gap: 26px; flex-wrap: wrap;
}

/* ================= DUNKLER HERO (Studien-Optik) ================= */
.hero-dunkel {
  position: relative; overflow: hidden;
  background: var(--tinte); color: #fff;
  min-height: calc(92vh - 60px);
  min-height: calc(92svh - 60px);
  display: flex; flex-direction: column;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px) clamp(34px, 4vw, 56px);
  /* auf Breitbild in der 1200er-Flucht der Abschnitte bleiben */
  padding-inline: max(clamp(20px, 5vw, 64px), calc((100% - 1200px) / 2));
}
.hero-dunkel::before {
  content: ""; position: absolute; inset: -30%;
  background: radial-gradient(ellipse 60% 45% at 30% 75%, rgba(42,120,214,0.22), transparent 65%);
  animation: schein 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-dunkel::after {
  content: ""; position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.hero-dunkel > * { position: relative; z-index: 1; }
.hero-portraet {
  position: absolute; right: clamp(8px, 5vw, 90px); bottom: 0;
  height: min(76%, 640px); width: auto; max-width: 36vw;
  object-fit: contain; object-position: bottom right;
  z-index: 0; pointer-events: none; user-select: none;
  filter: drop-shadow(0 24px 70px rgba(0,0,0,0.55));
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
  animation: einblenden 1.2s 0.45s both;
}
@media (max-width: 1080px) { .hero-portraet { display: none; } }
@media (min-width: 1081px) {
  /* Fakten und Meta bleiben links vom Portraet: kompakter 2x2-Block */
  .hero-dunkel .hd-fakten, .hero-dunkel .hd-meta { max-width: 620px; }
  .hero-dunkel .hd-fakten { grid-template-columns: repeat(2, minmax(0, auto)); gap: 18px clamp(24px, 3vw, 60px); }
}
@media (min-width: 1500px) {
  /* genug Platz: wieder vierspaltig, endet weiter vor dem Portraet */
  .hero-dunkel .hd-fakten { grid-template-columns: repeat(4, auto); }
  .hero-dunkel .hd-fakten, .hero-dunkel .hd-meta { max-width: 820px; }
}
@keyframes schein {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9%, -7%) scale(1.15); }
}
.hero-dunkel .kicker { color: var(--blau-hell); }
.hero-dunkel .kicker::before { background: var(--blau-hell); }
.hd-titel {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(42px, 6vw, 96px);
  line-height: 1.0; letter-spacing: -0.025em;
  margin-top: auto; max-width: 16ch;
}
.hd-titel em { font-style: normal; color: #5598e7; }
.hd-titel .zeile { display: block; overflow: hidden; }
.hd-titel .zeile span { display: inline-block; animation: aufstieg 0.9s cubic-bezier(0.19,1,0.22,1) both; }
.hd-titel .zeile:nth-child(2) span { animation-delay: 0.08s; }
.hd-titel .zeile:nth-child(3) span { animation-delay: 0.16s; }
@keyframes aufstieg { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hd-sub {
  margin-top: 24px; max-width: 56ch;
  font-size: clamp(15.5px, 1.25vw, 18px); color: #c9c8c1; line-height: 1.65;
  animation: einblenden 1s 0.35s both;
}
.hd-sub strong { color: #fff; }
.hero-dunkel .hero-aktionen { animation: einblenden 1s 0.55s both; }
.hd-fakten {
  display: grid; grid-template-columns: repeat(4, auto); gap: clamp(16px, 3vw, 44px);
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.16);
  animation: einblenden 1s 0.7s both;
}
.hd-fakt .z { font-family: var(--mono); font-weight: 700; font-size: clamp(17px, 1.6vw, 24px); }
.hd-fakt .l { font-size: 11.5px; color: #a3a29b; margin-top: 2px; line-height: 1.35; max-width: 15ch; }
.hd-meta {
  margin-top: 22px; font-family: var(--mono); font-size: 12px; color: #a3a29b;
  display: flex; gap: 24px; flex-wrap: wrap;
  animation: einblenden 1s 0.85s both;
}
@media (max-width: 760px) { .hd-fakten { grid-template-columns: repeat(2, auto); } }

/* ================= DROPDOWN-NAVIGATION ================= */
.drop { position: relative; display: flex; align-items: center; }
.nav-links a.drop-kopf { display: inline-flex; align-items: center; gap: 4px; }
.drop-kopf .pfeil-ab { font-size: 10px; opacity: 0.55; line-height: 1; }
.drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.drop-menue {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--linie); border-radius: 14px;
  box-shadow: 0 20px 48px -22px rgba(16,16,19,0.4);
  padding: 8px; min-width: 240px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 60;
}
.drop:hover .drop-menue, .drop:focus-within .drop-menue {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-links .drop-menue a { padding: 10px 14px; border-radius: 8px; display: block; }
.nav-links .drop-menue a:hover { background: var(--karton); color: var(--tinte); }

/* ================= KNÖPFE ================= */
.knopf {
  font-family: var(--grotesk); font-weight: 700; font-size: 15px;
  text-decoration: none; padding: 14px 26px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.25s cubic-bezier(0.19,1,0.22,1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.knopf.primaer { background: var(--blau); color: #fff; }
.knopf.primaer:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(42,120,214,0.4); background: #3987e5; }
.knopf.dunkel { background: var(--tinte); color: #fff; }
.knopf.dunkel:hover { transform: translateY(-2px); background: #2a2a30; }
.knopf.sekundaer { color: var(--tinte); border: 1px solid var(--linie); background: #fff; }
.knopf.sekundaer:hover { transform: translateY(-2px); border-color: var(--tinte); }
.knopf.hell { color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.knopf.hell:hover { transform: translateY(-2px); border-color: #fff; }

/* ================= ABSCHNITTE ================= */
.abschnitt { padding: clamp(48px, 7vw, 100px) clamp(20px, 5vw, 64px); }
.abschnitt-innen { max-width: 1200px; margin: 0 auto; }
.abschnitt.hell-alt { background: var(--karton); }
.abschnitt h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 52px); line-height: 1.06; letter-spacing: -0.02em;
  max-width: 24ch;
}
.abschnitt-einleitung { margin-top: 18px; max-width: 60ch; font-size: 17px; color: var(--grau); }

/* Scroll-Reveal — versteckt nur, wenn JS aktiv ist (Progressive Enhancement) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.19,1,0.22,1), transform 0.8s cubic-bezier(0.19,1,0.22,1); }
.js .reveal.sichtbar { opacity: 1; transform: none; }

/* ================= SYMPTOME ================= */
.symptome { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: 16px; overflow: hidden; }
.symptom { background: var(--papier); padding: 26px 28px; transition: background 0.3s; }
.symptom:hover { background: #fff; }
.symptom .sn { font-family: var(--mono); font-size: 12px; color: var(--orange); font-weight: 700; }
.symptom p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; }

/* ================= LEISTUNGEN ================= */
.leistungen { margin-top: 44px; display: grid; gap: 20px; }
.leistung {
  display: grid; grid-template-columns: 90px 1fr auto; gap: clamp(14px, 3vw, 40px);
  align-items: start;
  background: #fff; border: 1px solid var(--linie); border-radius: 18px;
  padding: clamp(24px, 3vw, 40px);
  transition: transform 0.35s cubic-bezier(0.19,1,0.22,1), box-shadow 0.35s;
}
.leistung:hover { transform: translateY(-4px); box-shadow: 0 22px 54px -30px rgba(16,16,19,0.4); }
.leistung .ln {
  font-family: var(--serif); font-weight: 900; font-size: clamp(36px, 3.4vw, 54px);
  color: var(--blau); line-height: 1;
}
.leistung h3 { font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); font-weight: 700; }
.leistung p { margin-top: 10px; font-size: 15.5px; color: var(--grau); max-width: 62ch; }
.leistung .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; padding: 5px 11px;
  background: var(--karton); border-radius: 999px; color: var(--grau);
}
.leistung .pfeil {
  font-size: 22px; color: var(--grau-hell); align-self: center;
  transition: transform 0.3s, color 0.3s;
}
.leistung:hover .pfeil { transform: translateX(6px); color: var(--blau); }
.leistung a.l-link { text-decoration: none; color: inherit; display: contents; }
.l-hinweis { font-family: var(--mono); font-size: 12px; color: var(--grau-hell); margin-top: 14px; }
.l-hinweis a { color: var(--blau); }
@media (max-width: 700px) { .leistung { grid-template-columns: 1fr; } .leistung .pfeil { display: none; } }

/* ================= PROZESS ================= */
.prozess { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; counter-reset: schritt; }
.schritt { position: relative; padding: 26px 26px 26px 26px; background: #fff; border: 1px solid var(--linie); border-radius: 16px; }
.schritt .st { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blau); font-weight: 700; }
.schritt h3 { font-family: var(--serif); font-size: 21px; margin-top: 8px; }
.schritt p { margin-top: 8px; font-size: 14.5px; color: var(--grau); }

/* ================= STUDIE (dunkler Block) ================= */
.studie {
  background: var(--tinte); color: #fff; border-radius: 24px;
  padding: clamp(30px, 4.5vw, 64px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 60px);
  align-items: center; position: relative; overflow: hidden;
}
.studie::before {
  content: ""; position: absolute; inset: -30%;
  background: radial-gradient(ellipse 55% 45% at 75% 30%, rgba(42,120,214,0.25), transparent 65%);
  pointer-events: none;
}
.studie > * { position: relative; }
.studie .s-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blau-hell); }
.studie h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(25px, 3.4vw, 50px); line-height: 1.06; margin-top: 14px; color: #fff; }
.studie h2 em { font-style: normal; color: #5598e7; }
.studie p { margin-top: 16px; color: #c9c8c1; font-size: 16px; max-width: 50ch; }
.studie-fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); gap: 18px; }
.studie-fakt { border-left: 2px solid rgba(255,255,255,0.2); padding-left: 16px; }
.studie-fakt .z { font-family: var(--mono); font-weight: 700; font-size: clamp(20px, 2vw, 28px); color: #fff; }
.studie-fakt .l { font-size: 12.5px; color: #a3a29b; margin-top: 4px; line-height: 1.4; }
.studie .s-aktionen { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 860px) { .studie { grid-template-columns: 1fr; } }

/* ================= REFERENZEN ================= */
.referenzen { margin-top: 40px; }
.referenz {
  display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: clamp(14px, 3vw, 40px);
  padding: 22px 0; border-bottom: 1px solid var(--linie); align-items: baseline;
}
.referenz:first-child { border-top: 1px solid var(--linie); }
.referenz .rk { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.referenz p { font-size: 15px; color: var(--grau); }
@media (max-width: 600px) { .referenz { grid-template-columns: 1fr; gap: 4px; } }

/* ================= ÜBER MICH ================= */
.ueber { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; margin-top: 40px; }
.ueber-mark {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--tinte); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 34px;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.ueber-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ueber-mark.gross { width: 148px; height: 148px; font-size: 48px; }
.ueber-text { max-width: 68ch; font-size: 16.5px; }
.ueber-text p + p { margin-top: 14px; }
.ueber-meta { margin-top: 20px; display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: var(--grau-hell); }
@media (max-width: 600px) { .ueber { grid-template-columns: 1fr; } }

/* ================= KONTAKT ================= */
.kontakt { background: var(--tinte); color: #fff; }
.kontakt h2 { color: #fff; }
.kontakt .abschnitt-einleitung { color: #c9c8c1; }
.kontakt-wege { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.kontakt-mail {
  font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 3vw, 38px);
  color: #fff; text-decoration: none; border-bottom: 2px solid var(--blau);
  transition: color 0.25s;
}
.kontakt-mail:hover { color: var(--blau-hell); }

/* ================= FOOTER ================= */
.fuss {
  background: var(--tinte); color: #a3a29b; font-size: 13px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center;
}
.fuss a { color: #e6e5df; text-decoration: none; margin-left: 18px; padding: 10px 2px; display: inline-block; }
.fuss a:first-child { margin-left: 0; }
.fuss a:hover { color: var(--blau-hell); }
.fuss .ki { font-family: var(--mono); font-size: 11px; max-width: 46ch; }

/* ================= RECHTSSEITEN & ARTIKEL ================= */
.recht, .artikel { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px); }
.artikel .a-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blau); font-weight: 500; margin-bottom: 16px; }
.artikel h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(27px, 4vw, 50px);
  letter-spacing: -0.02em; line-height: 1.06; }
.artikel .lead { margin-top: 18px; font-size: 18.5px; line-height: 1.6; color: var(--grau); }
.artikel h2 { font-family: var(--serif); font-size: 25px; font-weight: 700; margin-top: 40px; max-width: none; }
.artikel p { margin-top: 16px; font-size: 16.5px; line-height: 1.7; color: #2c2b28; }
.artikel ul { margin: 14px 0 0 22px; }
.artikel li { margin-top: 8px; font-size: 16px; color: #2c2b28; }
.artikel .quelle-hinweis { margin-top: 44px; padding: 16px 20px; background: var(--karton);
  border-radius: 12px; font-size: 13.5px; color: var(--grau); }
.artikel .a-nav { margin-top: 36px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* Blog-Uebersicht */
.blog-liste { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.blog-karte { display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--linie); border-radius: 16px; padding: 28px;
  transition: transform 0.35s cubic-bezier(0.19,1,0.22,1), box-shadow 0.35s; }
.blog-karte:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -26px rgba(16,16,19,0.4); }
.blog-karte .b-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blau); font-weight: 700; }
.blog-karte h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-top: 10px; line-height: 1.25; }
.blog-karte p { margin-top: 10px; font-size: 14.5px; color: var(--grau); flex: 1; }
.blog-karte .mehr { margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--blau); }
.recht h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(27px, 4vw, 54px); letter-spacing: -0.02em; }
.recht h2 { font-family: var(--serif); font-size: 23px; font-weight: 700; margin-top: 40px; }
.recht h3 { font-size: 16px; font-weight: 700; margin-top: 24px; }
.recht p, .recht li { margin-top: 12px; font-size: 15.5px; color: #2c2b28; }
.recht ul { margin-left: 22px; }
.recht .stand { font-family: var(--mono); font-size: 12.5px; color: var(--grau-hell); margin-top: 14px; }
.recht a { color: var(--blau); }
.todo {
  margin-top: 28px; border: 2px dashed var(--orange); border-radius: 12px;
  padding: 18px 20px; background: #fdf1ec; font-size: 14.5px;
}
.todo strong { color: #b44317; }
.platzhalter { background: #fdf1ec; padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 0.92em; color: #b44317; }

/* ================= UNTERSEITEN-HERO ================= */
.seiten-hero {
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(30px, 4vw, 56px);
  /* 1200px Inhalt + Padding: fluchtet mit .abschnitt-innen */
  max-width: calc(1200px + 2 * clamp(20px, 5vw, 64px));
  margin: 0 auto;
}
.seiten-hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.02em; max-width: 18ch; }
.seiten-hero h1 em { font-style: normal; color: var(--blau); }
.brotkrume { font-family: var(--mono); font-size: 12px; color: var(--grau-hell); margin-bottom: 18px; }
.brotkrume a { color: var(--grau-hell); text-decoration: none; }
.brotkrume a:hover { color: var(--blau); }

/* ================= SKILL-SET ================= */
.skills { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.skill-gruppe { background: #fff; border: 1px solid var(--linie); border-radius: 16px; padding: 24px; }
.skill-gruppe h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.skill-gruppe h3 .sg-nr { font-family: var(--mono); font-size: 12px; color: var(--blau); font-weight: 700; }
.skill-gruppe .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-gruppe p { margin-top: 12px; font-size: 13.5px; color: var(--grau); line-height: 1.5; }

/* ================= OPEN-SOURCE-PROJEKTE ================= */
.projekte { margin-top: 40px; display: grid; gap: 22px; }
.projekt {
  background: var(--tinte); color: #fff; border-radius: 20px;
  padding: clamp(24px, 3.4vw, 44px);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 44px);
  position: relative; overflow: hidden;
}
.projekt::before { content: ""; position: absolute; inset: -30%;
  background: radial-gradient(ellipse 50% 40% at 82% 20%, rgba(42,120,214,0.22), transparent 65%); pointer-events: none; }
.projekt > * { position: relative; }
.projekt .p-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.projekt h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 2.6vw, 36px); }
.status-badge {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.status-badge.live { background: rgba(12,163,12,0.18); color: #7ddf7d; border: 1px solid rgba(125,223,125,0.4); }
.status-badge.bald { background: rgba(42,120,214,0.18); color: var(--blau-hell); border: 1px solid rgba(134,182,239,0.4); }
.projekt .p-claim { font-family: var(--mono); font-size: 13px; color: var(--blau-hell); margin-top: 10px; }
.projekt p { margin-top: 14px; color: #c9c8c1; font-size: 15.5px; max-width: 58ch; }
.projekt .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.projekt .tag { background: rgba(255,255,255,0.08); color: #c9c8c1; }
.projekt .p-aktionen { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.projekt-fakten { display: grid; gap: 14px; align-content: center; }
.projekt-fakt { border-left: 2px solid rgba(255,255,255,0.2); padding-left: 16px; }
.projekt-fakt .z { font-family: var(--mono); font-weight: 700; font-size: 16px; color: #fff; }
.projekt-fakt .l { font-size: 12.5px; color: #a3a29b; margin-top: 2px; line-height: 1.45; }
@media (max-width: 860px) { .projekt { grid-template-columns: 1fr; } }

/* ================= DUO-KARTEN ================= */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.karte {
  border-radius: 16px; padding: 26px;
  background: #fff; border: 1px solid var(--linie);
  transition: transform 0.35s cubic-bezier(0.19,1,0.22,1), box-shadow 0.35s;
}
.karte:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -24px rgba(16,16,19,0.3); }
.karte.konv { border-top: 5px solid var(--orange); }
.karte.acos { border-top: 5px solid var(--blau); }
.karte .kt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.karte.konv .kt { color: #b44317; }
.karte.acos .kt { color: var(--blau-tief); }
.karte .kw { font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; margin-top: 8px; }
.karte .ke { font-size: 14.5px; color: var(--grau); margin-top: 10px; line-height: 1.55; }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } }

/* ================= ZEITSTRAHL & ZITAT (Über mich) ================= */
.zeitstrahl { margin-top: 40px; position: relative; padding-left: 30px; max-width: 720px; }
.zeitstrahl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--linie); }
.station { position: relative; padding-bottom: 28px; }
.station:last-child { padding-bottom: 0; }
.station::before { content: ""; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--papier); border: 3px solid var(--blau); }
.station.bruch::before { border-color: var(--orange); }
.station .sz { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau-hell); font-weight: 500; }
.station h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-top: 4px; }
.station p { margin-top: 6px; font-size: 15px; color: var(--grau); max-width: 60ch; }

.gross-zitat {
  margin: 44px 0 0; padding: 30px 34px;
  border-left: 4px solid var(--blau); background: #fff;
  border-radius: 0 18px 18px 0;
  border-top: 1px solid var(--linie); border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
  font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); line-height: 1.45; max-width: 62ch;
}
.gross-zitat .quelle { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--grau-hell); }

.bau-liste { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }

/* ================= FAQ ================= */
.faq { margin-top: 34px; max-width: 760px; }
.faq-eintrag { padding: 22px 0; border-bottom: 1px solid var(--linie); }
.faq-eintrag:first-child { border-top: 1px solid var(--linie); }
.faq-eintrag h3 { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.3; }
.faq-eintrag p { margin-top: 10px; font-size: 15.5px; color: var(--grau); line-height: 1.65; }
.faq-eintrag p strong { color: var(--tinte); }
.faq-eintrag p a { color: var(--blau); }

/* ================= TEASER-KARTEN (Startseite) ================= */
.teaser-zeile { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.teaser {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--linie); border-radius: 16px; padding: 26px;
  transition: transform 0.35s cubic-bezier(0.19,1,0.22,1), box-shadow 0.35s;
}
.teaser:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -26px rgba(16,16,19,0.4); }
.teaser h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; }
.teaser p { margin-top: 8px; font-size: 14.5px; color: var(--grau); }
.teaser .mehr { margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--blau); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
