/* =========================================================
   Do Duc Consulting — Designsystem
   Ruhig, hell, typografisch. Ein Akzent, viele Haarlinien.
   ========================================================= */

:root {
  /* Flächen — warmes Weiß als Grund, nie reinweiß */
  --paper:       #fafaf8;
  --paper-warm:  #f1f1ec;
  --surface:     #ffffff;

  /* Schrift */
  --ink:         #1a1d23;
  --ink-soft:    #343a44;
  --muted:       #5b6472;
  --faint:       #666d7a;

  /* Linien */
  --line:        #e5e4de;
  --line-soft:   #eeede8;
  --line-strong: #cfcec8;

  /* Akzent — tiefes Blau, sparsam eingesetzt */
  --accent:      #14507d;
  --accent-deep: #0e3a5b;
  --accent-tint: #e8eff5;
  --brass:       #8f7436;

  /* Typografie */
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Maße */
  --container: 1140px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(84px, 9.5vw, 150px);
  --radius:    4px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.85rem, 3.3vw, 2.7rem); }
h3 { font-size: 1.32rem; line-height: 1.3; }
h4 { font-family: var(--sans); font-weight: 600; }

p { margin: 0 0 1.05rem; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%); z-index: 200;
  background: var(--ink); color: var(--paper); padding: .7rem 1.2rem;
  border-radius: 0 0 3px 3px; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Nur für Screenreader sichtbar */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 760px; }

/* ---------- Wiederkehrende Bausteine ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase; color: var(--faint);
  margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--line-strong); flex: none;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.16rem); color: var(--muted);
  max-width: 62ch; line-height: 1.68;
}



/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.7rem; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-size: .93rem; font-weight: 500; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: rgba(26,29,35,.05); transform: translateY(-1px); }

.btn-sm { padding: .62rem 1.2rem; font-size: .87rem; }
.btn-block { width: 100%; }

/* Textlink mit aufziehender Unterlinie */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .92rem; font-weight: 500; color: var(--accent);
  padding-bottom: 2px; background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
  transition: background-size .4s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(250,250,248,.86);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 82px; gap: 1rem;
}
.header-inner > .logo { justify-self: start; }

.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo-mark {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 34px; padding: 0 .55rem;
  border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--accent);
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .4s var(--ease);
}
.logo-mark svg { display: block; height: 15px; width: auto; }
.logo:hover .logo-mark {
  color: var(--accent-deep); border-color: var(--accent); transform: translateY(-1px);
}
.logo-text {
  font-family: var(--sans); font-size: .98rem; font-weight: 500;
  letter-spacing: .02em; color: var(--ink); white-space: nowrap;
  transition: color .35s var(--ease);
}
.logo-text em { transition: color .35s var(--ease); }
.logo-text em { font-style: normal; color: var(--faint); }

/* Die Navigation gibt ihre eigene Box auf, damit Linkgruppe und Knopf
   direkt in den Spalten der Kopfzeile sitzen — die Gruppe genau mittig. */
.nav { display: contents; }
.nav-links {
  display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem);
  justify-self: center;
}
.nav-cta { justify-self: end; }
.nav-links a {
  font-size: .92rem; color: var(--muted); position: relative; padding: .3rem 0;
  transition: color .35s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; width: 42px; height: 42px; background: transparent;
  border: 1px solid var(--line-strong); border-radius: 3px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 17px; height: 1px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(150px, 17vw, 200px) 0 0; overflow: hidden; }
.hero-wash {
  position: absolute; top: -18%; right: -12%; width: min(880px, 90vw); aspect-ratio: 1;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,80,125,.085), rgba(20,80,125,.025) 45%, transparent 68%);
  animation: breathe 22s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-26px, 26px, 0) scale(1.06); }
}

.hero-inner { position: relative; }
.hero-status {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2.2rem;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none;
  animation: soften 3.4s ease-in-out infinite;
}
@keyframes soften { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  line-height: 1.03; letter-spacing: -.022em;
  max-width: 17ch; margin: 0 0 1.6rem;
}
.hero-title em { font-style: italic; font-weight: 400; color: var(--accent); }

.hero-sub { max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.19rem); color: var(--muted); margin-bottom: 2.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: clamp(60px, 8vw, 96px); }

/* ---------- Hero mit Übergang: hell wird beim Scrollen dunkel ----------
   Der Grund wandelt sich durchgehend, die Texte übergeben sich nacheinander,
   dazwischen trägt die große Sieben. Ohne JavaScript bleibt --p bei 0 und
   die helle Fassung steht ruhig da. */
:root { --p: 0; }

.hero-wandel { position: relative; height: 172vh; }
.buehne {
  position: sticky; top: 0; height: 100vh; min-height: 620px;
  overflow: hidden; background: var(--paper);
}
.grund { position: absolute; inset: 0; background: #0f1114; opacity: clamp(0, calc(var(--p) / .52), 1); }
.schein {
  position: absolute; top: -34%; left: 50%; width: min(1100px, 120vw); aspect-ratio: 1;
  margin-left: min(-550px, -60vw); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(20,80,125,.55), rgba(20,80,125,.10) 45%, transparent 68%);
  transform: scale(calc(.82 + var(--p) * .18));
}
.sieben {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(calc(.84 + var(--p) * .16));
  font-family: var(--serif); font-weight: 300; font-size: clamp(300px, 46vw, 620px);
  line-height: 1; letter-spacing: -.06em; color: rgba(215,232,244,.13);
  pointer-events: none; user-select: none;
  opacity: clamp(0, calc((var(--p) - .10) / .20), 1);
}

.welt {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--gutter);
  /* Die gerade unsichtbare Welt darf keine Klicks abfangen. `inert` setzt das
     Skript zusaetzlich — das hier ist der Rueckhalt fuer aeltere Browser. */
  pointer-events: none;
}
.welt.aktiv { pointer-events: auto; }
.welt[inert] { pointer-events: none; }

.btn-auf-dunkel { border-color: rgba(250,250,248,.34); color: var(--paper); }
.btn-auf-dunkel:hover { border-color: var(--paper); background: rgba(250,250,248,.08); }
.welt-hell {
  opacity: clamp(0, calc((.28 - var(--p)) / .18), 1);
  transform: translateY(calc(var(--p) * -130px));
}
.welt-dunkel {
  color: var(--paper);
  opacity: clamp(0, calc((var(--p) - .40) / .26), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - .40) / .26), 1)) * 90px));
}
.welt-inhalt { position: relative; max-width: 900px; }

.wandel-titel {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 8.2vw, 8rem); line-height: .94; letter-spacing: -.04em;
  margin: 0;
}
.wandel-titel em { font-style: italic; font-weight: 400; color: var(--accent); }
.welt-dunkel .wandel-titel em { color: #7fb0d6; }
.wandel-zeile {
  margin: clamp(1.6rem, 3vw, 2.8rem) auto 0; max-width: 40ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.6; color: var(--muted);
}
.welt-dunkel .wandel-zeile { color: rgba(250,250,248,.68); }
.wandel-aktionen { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(1.8rem, 3vw, 2.8rem); }

.fortschritt {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px;
  height: 1px; background: rgba(128,136,148,.28);
}
.fortschritt i { display: block; height: 1px; width: calc(var(--p) * 100%); background: var(--accent); }

/* Die Kopfzeile fährt über beide Welten — im Dunklen dreht sie die Farben um */
.site-header.ueber-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-header.invers {
  color: var(--paper);
  /* Weicher Verlauf, damit die Navigation auch über großen Buchstaben lesbar bleibt */
  background: linear-gradient(rgba(15,17,20,.94), rgba(15,17,20,.72) 55%, rgba(15,17,20,0));
  border-bottom-color: transparent;
}
.site-header.invers .logo-text { color: var(--paper); }
.site-header.invers .logo-text em { color: rgba(250,250,248,.55); }
.site-header.invers .logo-mark { color: var(--paper); border-color: rgba(250,250,248,.34); }
.site-header.invers .nav-links a { color: rgba(250,250,248,.72); }
.site-header.invers .nav-links a:hover { color: var(--paper); }
.site-header.invers .nav-cta { background: var(--paper); color: var(--ink); }
.site-header.invers .nav-toggle { border-color: rgba(250,250,248,.34); }
.site-header.invers .nav-toggle span { background: var(--paper); }

/* Die dunkle Woche schließt den Übergang ab */
.woche { background: #0f1114; color: var(--paper); padding: var(--section-y) 0; }
.woche-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 5.6rem); align-items: center; }
.woche-zahl {
  font-family: var(--serif); font-weight: 300; font-size: clamp(9rem, 20vw, 19rem);
  line-height: .8; letter-spacing: -.06em; text-align: center;
}
.woche-zahl span {
  display: block; margin-top: 1.4rem; font-family: var(--sans); font-size: .78rem;
  font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(250,250,248,.5);
}
.woche-schritt { padding: clamp(1.3rem, 2.4vw, 1.8rem) 0; border-bottom: 1px solid rgba(250,250,248,.16); }
.woche-schritt:last-child { border-bottom: 0; }
.woche-schritt p:first-child {
  margin: 0 0 .5rem; font-size: .74rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(250,250,248,.5);
}
.woche-schritt p:last-child {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.8rem); line-height: 1.28;
}

@media (prefers-reduced-motion: reduce) {
  .hero-wandel { height: auto; }
  .buehne { position: static; height: auto; min-height: 0; padding: clamp(130px, 16vw, 180px) 0 clamp(70px, 9vw, 110px); }
  .welt { position: static; padding: 0 var(--gutter); }
  .welt-hell { opacity: 1; transform: none; }
  .welt-dunkel, .grund, .sieben, .fortschritt { display: none; }
}

/* ---------- Branchenzeile ---------- */
.trust { padding: clamp(38px, 5vw, 58px) 0; border-top: 1px solid var(--line); background: var(--paper-warm); }
.trust-inner { display: flex; align-items: baseline; gap: clamp(1.2rem, 4vw, 3rem); flex-wrap: wrap; }
.trust-label { font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; color: var(--faint); flex: none; }
.trust-list { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.4rem); }
.trust-list li { font-family: var(--serif); font-size: 1.06rem; color: var(--ink-soft); }

/* ---------- Abschnitte ---------- */
.section { padding: var(--section-y) 0; }
.section-warm { background: var(--paper-warm); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(3rem, 5vw, 4.4rem); }
.section-head.wide { max-width: 780px; }

/* ---------- Leistungen: Spalten mit Oberlinie, keine Kästen ---------- */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.4rem); }
.col { position: relative; padding-top: 1.9rem; }
.col::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line-strong); transition: background .4s var(--ease), height .4s var(--ease);
}
.col:hover::before { background: var(--accent); height: 2px; }
.col-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; }
.col h3 { margin-bottom: .7rem; }
.col > p { color: var(--muted); font-size: .98rem; }

.tick-list { display: grid; gap: .62rem; margin: 1.5rem 0 1.7rem; }
.tick-list li { position: relative; padding-left: 1.45rem; font-size: .93rem; color: var(--muted); line-height: 1.55; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 1px; background: var(--accent);
}

/* ---------- Prozess: echte Abfolge, darum nummeriert ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.8rem); }
.step { padding-top: 1.7rem; border-top: 1px solid var(--line); }
.step-num {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.5rem; color: var(--accent); margin-bottom: .9rem; line-height: 1;
}
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Arbeiten ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.8rem); }
.work { display: flex; flex-direction: column; }
.work-plate {
  aspect-ratio: 3 / 2; border-radius: var(--radius); border: 1px solid var(--line);
  margin-bottom: 1.5rem; overflow: hidden; background: var(--paper-warm);
  transition: border-color .45s var(--ease);
}
.work:hover .work-plate { border-color: var(--line-strong); }
.work-plate { position: relative; }
.work-desktop {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work:hover .work-desktop { transform: scale(1.035); }

/* Handy-Ansicht derselben Seite, in einem angedeuteten Geraetegehaeuse.
   Alle Maße in Prozent, damit das Gehaeuse auf jeder Groesse stimmig bleibt. */
.work-phone {
  position: absolute; right: 5.5%; bottom: 6%; width: 21%;
  padding: .62%; border-radius: 15% / 7%;
  background: linear-gradient(150deg, #3a3f48, #16181d 45%, #23262c);
  box-shadow:
    0 16px 34px -10px rgba(0,0,0,.7),
    0 0 0 .5px rgba(0,0,0,.35),
    inset 0 0 0 .5px rgba(255,255,255,.28);
  transition: transform .9s var(--ease);
}
.work:hover .work-phone { transform: translateY(-5px); }

.work-phone img {
  display: block; width: 100%; height: auto;
  border-radius: 11% / 5%; background: #000;
}

/* Dynamic Island */
.work-phone::after {
  content: ""; position: absolute; top: 4.6%; left: 50%; transform: translateX(-50%);
  width: 26%; height: 2.1%; border-radius: 99px; background: #05070a;
}

/* Seitentasten */
.work-phone::before {
  content: ""; position: absolute; right: -1.2%; top: 24%;
  width: 1.2%; height: 13%; border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #4a4f58, #2a2e35);
}
.work-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: .6rem; }
.work h3 { margin-bottom: .55rem; }
.work p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.work .link-arrow { align-self: flex-start; margin-top: 1.15rem; }
.work-more {
  margin: clamp(2.4rem, 4vw, 3.4rem) 0 0; padding-top: 1.4rem;
  border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted);
}

/* ---------- Projektseiten: beide Ansichten in voller Größe ----------
   Auf der Übersicht steckt das Handy als Vorschau in der Fläche. Hier ist das
   Bild der Inhalt, deshalb stehen beide Ansichten nebeneinander — und auf dem
   Handy die Rechner-Ansicht randlos über die volle Breite. */
.projekt-bilder {
  display: grid; grid-template-columns: 1fr 240px;
  gap: clamp(1.6rem, 3vw, 2.8rem); align-items: end;
}
.projekt-bilder figure { margin: 0; }
.projekt-bilder figcaption {
  margin-top: .9rem; font-size: .74rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.projekt-desktop img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 44px 84px -40px rgba(26,29,35,.45);
}

/* Angedeutetes Gerät — hier füllt es seinen Rahmen, die Prozente
   beziehen sich also direkt auf die Gerätebreite. */
.geraet {
  position: relative; padding: 3%; border-radius: 13% / 6%;
  background: linear-gradient(150deg, #3a3f48, #16181d 45%, #23262c);
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.55), inset 0 0 0 .5px rgba(255,255,255,.28);
}
.geraet img { display: block; width: 100%; height: auto; border-radius: 11% / 5%; background: #000; }
.geraet::after {
  content: ""; position: absolute; top: 4.4%; left: 50%; transform: translateX(-50%);
  width: 26%; height: 1.9%; border-radius: 99px; background: #05070a;
}

/* ---------- Pakete ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2vw, 1.6rem); align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: clamp(1.5rem, 2.6vw, 2.1rem) clamp(1.2rem, 2.2vw, 1.8rem) 1.9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-featured:hover { border-color: var(--accent); }
.plan-badge {
  align-self: flex-start; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .8rem;
}
.plan-spacer { height: calc(.68rem * 1.7 + .8rem); }
.plan h3 { font-size: 1.24rem; margin-bottom: .9rem; }
.plan-price {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1;
  letter-spacing: -.025em; margin: 0; font-variant-numeric: tabular-nums; color: var(--ink);
}
.plan-price small { font-family: var(--sans); font-size: .84rem; color: var(--faint); letter-spacing: 0; }
.plan-scope {
  margin: .6rem 0 0; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.plan-desc { color: var(--muted); font-size: .93rem; margin: 1.2rem 0 0; }
.plan .tick-list { flex: 1; border-top: 1px solid var(--line); padding-top: 1.4rem; margin-bottom: 1.6rem; }
.plans-note { margin: 1.8rem 0 0; font-size: .86rem; color: var(--faint); }

/* ---------- Vergleichstabelle ---------- */
.compare-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin: clamp(3.5rem, 6vw, 5rem) 0 1.2rem;
}
.compare-head h3 { font-size: 1.35rem; margin: 0; }
.scroll-hint { font-size: .8rem; color: var(--faint); display: none; }
.scroll-hint.visible { display: block; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%; min-width: 660px; border-collapse: collapse;
  font-size: .92rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
table.compare th, table.compare td {
  padding: .95rem 1.1rem; text-align: center; border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.compare thead th {
  font-family: var(--sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--line); padding-block: 1.1rem;
}
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare th[scope="row"] {
  text-align: left; font-family: var(--sans); font-weight: 400; color: var(--ink-soft);
  position: sticky; left: 0; background: var(--surface); min-width: 15rem;
  border-right: 1px solid var(--line-soft);
}
table.compare tbody tr:hover th[scope="row"],
table.compare tbody tr:hover td { background: var(--paper); }
table.compare .col-featured { background: var(--accent-tint); }
table.compare thead .col-featured { color: var(--accent); }
.yes { color: var(--accent); font-size: 1rem; }
.no  { color: var(--faint); }
.cell-note { display: block; font-size: .82rem; color: var(--muted); }

/* ---------- Soforthilfe ---------- */
.rescue {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center; margin-top: clamp(3.5rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius);
  background: var(--accent-tint); border: 1px solid #cfdeeb;
}
.rescue h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .8rem; }
.rescue p { color: var(--ink-soft); margin-bottom: 1.3rem; }
.rescue .tick-list { margin: 0; }
.rescue .tick-list li { color: var(--ink-soft); }
.rescue-price { text-align: right; }
.rescue-price .amount {
  display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.rescue-price .once { display: block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: .6rem 0 1.4rem; }

/* ---------- Über ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about-text p { color: var(--muted); }
.usp-list { display: grid; gap: 0; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.usp-list li { padding: 1.05rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; display: flex; gap: 1.2rem; }
.usp-list strong { font-weight: 500; color: var(--ink); flex: none; min-width: 9.5rem; }

.about-aside { display: grid; gap: 1.5rem; align-content: start; }

.portrait {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--paper-warm);
}

/* Monogramm-Platte — steht bis ein Portraitfoto vorliegt */
.portrait-mark {
  aspect-ratio: 4 / 5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .1rem; padding: 2rem 1.5rem;
  background:
    radial-gradient(120% 90% at 50% 12%, var(--accent-tint), transparent 62%),
    linear-gradient(170deg, var(--paper-warm), #eceae4);
  text-align: center;
}
.portrait-initials {
  font-family: var(--serif); font-weight: 300; font-size: clamp(3.6rem, 7vw, 5.2rem);
  line-height: 1; letter-spacing: -.04em; color: var(--accent);
}
.portrait-rule { width: 44px; height: 1px; background: var(--line-strong); margin: 1.5rem 0 1.3rem; }
.portrait-name {
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase; color: var(--ink-soft);
}
.portrait-place {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; color: var(--faint);
  margin-top: .45rem;
}
.portrait figcaption {
  padding: .85rem 1.1rem; font-size: .8rem; color: var(--faint);
  border-top: 1px solid var(--line);
}

.about-card { padding: 2.4rem 2.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.about-card-quote {
  font-family: var(--serif); font-weight: 300; font-size: 1.28rem; line-height: 1.45;
  color: var(--ink); margin: 0 0 1.9rem;
}
.about-card-name {
  margin: 0; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--faint);
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.4rem 3rem 1.4rem 0;
  font-family: var(--serif); font-size: 1.16rem; line-height: 1.4; color: var(--ink);
  transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%;
  background: var(--accent); transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.faq summary::before { width: 13px; height: 1px; transform: translateY(-50%); }
.faq summary::after { width: 1px; height: 13px; right: calc(.35rem + 6px); transform: translateY(-50%); }
.faq[open] summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq-body { padding: 0 3rem 1.6rem 0; color: var(--muted); font-size: .97rem; }
.faq-body p { margin: 0; max-width: 68ch; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-intro p { color: var(--muted); }
.contact-list { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.contact-list li { display: flex; align-items: baseline; gap: 1.2rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.contact-list dt, .contact-key { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); min-width: 6.5rem; flex: none; }
.contact-list a { color: var(--ink); background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; padding-bottom: 2px; transition: background-size .4s var(--ease), color .3s; }
.contact-list a:hover { color: var(--accent); background-size: 100% 1px; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem;
  padding: clamp(1.8rem, 3vw, 2.5rem); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.field { display: grid; gap: .5rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem .95rem; background: var(--paper-warm);
  border: 1px solid var(--line); border-radius: 3px; font-size: .96rem; color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 53%, calc(100% - 15px) 53%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  background-color: var(--paper-warm);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(20,80,125,.12);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #a4342b; }

.checkbox-field { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.checkbox-field input { width: 17px; height: 17px; margin-top: .25rem; accent-color: var(--accent); cursor: pointer; }
.checkbox-field label { font-size: .87rem; line-height: 1.55; text-transform: none; letter-spacing: 0; color: var(--muted); }
.checkbox-field a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.checkbox-field .error { grid-column: 1 / -1; }

.error { color: #a4342b; font-size: .8rem; margin: 0; }
.form-note { font-size: .8rem; color: var(--faint); margin: 1rem 0 0; }
.form-status { margin: .7rem 0 0; font-size: .9rem; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #a4342b; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 92px) 0 2.2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.6rem; padding-bottom: 3.4rem; }
.site-footer .logo-mark { color: var(--paper); border-color: rgba(250,250,248,.32); }
.site-footer .logo:hover .logo-mark { color: #fff; border-color: rgba(250,250,248,.6); }
.site-footer .logo-text { color: var(--paper); }
.site-footer .logo-text em { color: rgba(250,250,248,.5); }
.footer-brand p { color: rgba(250,250,248,.6); font-size: .93rem; max-width: 32ch; margin-top: 1.2rem; }
.footer-col { display: grid; gap: .7rem; align-content: start; }
.footer-col .footer-titel { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,250,248,.5); margin: 0 0 .4rem; font-weight: 500; }
.footer-col a { font-size: .93rem; color: rgba(250,250,248,.82); transition: color .25s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.9rem; border-top: 1px solid rgba(250,250,248,.16);
}
.footer-bottom p { margin: 0; font-size: .84rem; color: rgba(250,250,248,.5); }
.socials { display: flex; gap: 1.5rem; }
.socials a { font-size: .84rem; color: rgba(250,250,248,.6); transition: color .25s; }
.socials a:hover { color: #fff; }

/* ---------- Seitenkopf der Unterseiten ---------- */
.page-head { padding: clamp(140px, 15vw, 186px) 0 clamp(2.2rem, 4vw, 3.4rem); }
.page-head h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em;
  max-width: 20ch; margin: 0 0 1.2rem;
}
.page-head .lead { max-width: 58ch; }
.section.pt-0 { padding-top: 0; }
.kontakt-seite { padding-top: clamp(140px, 15vw, 186px); }
.kontakt-seite h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 1rem;
}

/* ---------- Abschluss mit Handlungsaufforderung ---------- */
.cta-band { background: var(--ink); color: var(--paper); padding: clamp(58px, 8vw, 92px) 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1.6rem, 4vw, 3rem); flex-wrap: wrap;
}
.cta-band h2 {
  color: var(--paper); margin: 0 0 .6rem;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
}
.cta-band p { color: rgba(250,250,248,.68); margin: 0; max-width: 52ch; font-size: .98rem; }
.btn-invert { background: var(--paper); color: var(--ink); }
.btn-invert:hover { background: #fff; transform: translateY(-1px); }

/* ---------- Preisübersicht auf der Startseite ---------- */
.preis-kurz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2vw, 1.6rem); }
.pk {
  padding: 1.9rem 1.6rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.pk:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pk-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pk-featured:hover { border-color: var(--accent); }
.pk h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.pk-preis {
  font-family: var(--serif); font-weight: 300; font-size: 2.1rem; line-height: 1;
  letter-spacing: -.025em; margin: 0 0 .45rem; font-variant-numeric: tabular-nums;
}
.pk-umfang { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 1rem; }
.pk p:last-child { color: var(--muted); font-size: .93rem; margin: 0; }

.mehr { margin: clamp(2.2rem, 4vw, 3rem) 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Rechtstexte laufen jetzt als normaler Abschnitt mit */
.section.legal { padding-top: clamp(140px, 15vw, 186px); }
.section.legal h1 { margin-bottom: 2rem; }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(150px, 16vw, 190px) 0 var(--section-y); }
.legal h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.32rem; margin: 2.8rem 0 .7rem; }
.legal p, .legal li { color: var(--muted); font-size: .97rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal .note {
  padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line-strong);
  border-left: 2px solid var(--brass); background: var(--surface);
  color: var(--ink-soft); font-size: .92rem; margin-bottom: 2.8rem;
}
.back-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent); font-size: .93rem; margin-top: 3.2rem; }

/* ---------- Reaktionsfähig ---------- */
@media (max-width: 1000px) {
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rescue { grid-template-columns: 1fr; gap: 1.8rem; }
  .rescue-price { text-align: left; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .contact, .woche-raster { grid-template-columns: 1fr; }
  /* Einspaltig wuerde das 4:5-Format sonst ueber die halbe Bildschirmhoehe fuellen */
  .portrait { max-width: 340px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Die drei Preise gehören nebeneinander — erst wenn es wirklich eng wird, gestapelt */
@media (max-width: 780px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-spacer { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; justify-self: end; }
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav {
    display: flex;
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 350px);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: 5rem 2.2rem; background: var(--paper-warm);
    border-left: 1px solid var(--line);
    transform: translateX(100%); visibility: hidden;
    transition: transform .5s var(--ease), visibility .5s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav-links a { padding: 1.05rem 0; font-family: var(--serif); font-size: 1.3rem; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1.8rem; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .columns, .plans, .steps, .work-grid, .preis-kurz { grid-template-columns: minmax(0, 1fr); }
  /* Auf dem Handy zeigt die Rechner-Ansicht randlos, das Gerät steht darunter */
  .projekt-bilder { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .projekt-desktop { margin-inline: calc(var(--gutter) * -1); }
  .projekt-desktop img { border-radius: 0; border-left: 0; border-right: 0; }
  .projekt-desktop figcaption { padding-inline: var(--gutter); }
  .projekt-handy { max-width: 250px; margin-inline: auto; }
  /* Auf dem Handy ist der Weg durch den Übergang kürzer */
  .hero-wandel { height: 152vh; }
  .fortschritt { bottom: 22px; }
  table.compare { min-width: 540px; font-size: .86rem; }
  table.compare th, table.compare td { padding: .8rem .7rem; }
  table.compare th[scope="row"] { min-width: 9rem; }
  .compare-head { margin-top: 2.8rem; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-actions .btn { width: 100%; }
  .usp-list li { flex-direction: column; gap: .2rem; }
  .trust-inner { flex-direction: column; gap: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-wash, .socials { display: none; }
  body { background: #fff; color: #000; }
  .site-footer { background: #fff; color: #000; }
}

/* ---------- Kopfzeile auf Unterseiten (nur Zurück-Button) ---------- */
.nav-inline { display: flex; align-items: center; gap: 1rem; }
