@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f4f2ec;
  --paper-2: #ece9e1;
  --card: #fbfaf7;
  --ink: #16181b;
  --muted: #6c6f75;
  --line: #dedad0;
  --accent: #2f5b4c;
  --signal: #e2603a;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* feine Körnung über allem */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Kopfzeile ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.bar.scrolled { border-bottom-color: var(--line); }
.bar .left, .bar .right { display: flex; align-items: center; gap: 18px; }
.bar a { text-decoration: none; }
.bar a:hover { color: var(--ink); }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block; margin-right: 8px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: puls 2.4s infinite;
}
.dot.sleep { background: var(--muted); animation: none; }
@keyframes puls {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.kbd {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 9px;
  background: var(--card);
  cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease);
}
.kbd:hover { border-color: var(--muted); color: var(--ink); }
.kbd:active { transform: scale(.96); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: 110px var(--gutter) 70px;
  max-width: 1360px;
  margin: 0 auto;
}
#feld {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero > *:not(#feld):not(.scroll-hinweis) { position: relative; z-index: 1; }
.eyebrow { color: var(--muted); margin: 0 0 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow span + span::before { content: "/"; margin-right: 14px; color: var(--line); }
h1 {
  font: 400 clamp(64px, 11vw, 168px)/.88 var(--serif);
  letter-spacing: -.025em;
  margin: 0 0 34px;
}
h1 .zeile { display: block; }
h1 em { font-style: italic; color: var(--accent); }
.lead {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 0 40px;
  color: #33363b;
}
.lead b { font-weight: 500; color: var(--ink); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 99px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500; font-size: 15px;
  cursor: pointer;
  transition: transform .35s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn .pfeil { transition: transform .35s var(--ease); }
.btn:hover .pfeil { transform: translateX(3px); }

/* Porträt mit Neigung und Lichtkegel */
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(22, 24, 27, .35), 0 0 0 1px rgba(22, 24, 27, .06);
  background: var(--paper-2);
}
.portrait.aktiv { transition: transform .08s linear; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .28), transparent 45%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .4s;
}
.portrait:hover::after { opacity: 1; }
.portrait .label {
  position: absolute; left: 14px; bottom: 14px;
  color: #fff;
  background: rgba(22, 24, 27, .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
}
.scroll-hinweis {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  color: var(--muted);
  z-index: 1;
}

/* ---------- Abschnitte ---------- */
section { padding: clamp(80px, 12vw, 150px) var(--gutter); max-width: 1360px; margin: 0 auto; }
.kopf { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 48px; align-items: baseline; }
.kopf .mono { color: var(--muted); }
h2 { font: 400 clamp(40px, 5.4vw, 76px)/1 var(--serif); letter-spacing: -.02em; margin: 0; }
h2 em { color: var(--accent); }

/* Liste der Rollen */
.rollen { border-top: 1px solid var(--line); }
.rolle {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  isolation: isolate;
}
.rolle::before {
  content: "";
  position: absolute; inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.rolle:hover::before { opacity: 1; }
.rolle .nr { color: var(--muted); }
.rolle h3 { font: 400 clamp(30px, 3.4vw, 46px)/1.05 var(--serif); margin: 0 0 6px; letter-spacing: -.01em; }
.rolle .was { color: var(--accent); margin-bottom: 10px; display: block; }
.rolle p { margin: 0; max-width: 56ch; color: #45484e; }
.rolle .ziel {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform .45s var(--ease), background .25s, border-color .25s, color .25s;
}
a.rolle:hover .ziel { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
.rolle .ziel.leer { visibility: hidden; }

/* Bilderleiste */
.bilder {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  padding-top: 0;
}
.bilder figure { margin: 0; }
.bilder .rahmen { overflow: hidden; border-radius: 16px; aspect-ratio: 3 / 4; background: var(--paper-2); }
.bilder img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.bilder figure:nth-child(2) { margin-top: 70px; }
.bilder figure:nth-child(3) { margin-top: 24px; }
.bilder figcaption { color: var(--muted); margin-top: 12px; }

/* Einblenden beim Scrollen */
.rein { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rein.da { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  .bilder img {
    animation: zoom linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes zoom { from { transform: scale(1.18) translateY(-4%); } to { transform: scale(1.02) translateY(4%); } }
}

/* Kontakt */
.kontakt h2 { margin-bottom: 48px; max-width: 14ch; }
.zeilen { border-top: 1px solid var(--line); }
.zeile-k {
  width: 100%;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.zeile-k > .mono:first-child { color: var(--muted); }
.zeile-k .wert { font: 400 clamp(24px, 2.8vw, 38px)/1.1 var(--serif); transition: transform .4s var(--ease), color .2s; }
.zeile-k:hover .wert { transform: translateX(8px); color: var(--accent); }
.zeile-k .aktion { color: var(--muted); transition: color .2s; }
.zeile-k:hover .aktion { color: var(--ink); }

/* Fuß */
footer {
  max-width: 1360px; margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Hinweis unten */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper);
  padding: 11px 18px;
  border-radius: 99px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.an { opacity: 1; transform: translate(-50%, 0); }

/* Befehlsmenü */
dialog.palette {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(22, 24, 27, .35);
  margin-top: 16vh;
}
dialog.palette::backdrop { background: rgba(22, 24, 27, .25); backdrop-filter: blur(3px); }
dialog.palette[open] { animation: auf .25s var(--ease); }
@keyframes auf { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.palette input {
  width: 100%;
  border: 0; outline: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  font: 400 17px var(--sans);
  background: transparent;
  color: var(--ink);
}
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: 340px; overflow: auto; }
.palette li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.palette li[aria-selected="true"] { background: var(--paper-2); }
.palette li .mono { color: var(--muted); font-size: 11px; }
.palette .fuss { display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--muted); }

/* Beratung */
.beratung-intro {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.beratung-intro p { margin: 0; font-size: 19px; line-height: 1.55; color: #33363b; }
.beratung-intro p:first-child { grid-column: 2; padding-right: 24px; }
.tipper {
  grid-column: 2 / 4;
  margin-top: 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 30px 60px -36px rgba(22, 24, 27, .6);
}
.tipper .mono { color: rgba(244, 242, 236, .55); }
.tipper p { margin: 10px 0 0; font: 400 clamp(22px, 2.6vw, 34px)/1.25 var(--serif); color: var(--paper); min-height: 1.25em; }
.tipper .prompt { color: var(--signal); font-family: var(--mono); font-size: .8em; }
.cursor { display: inline-block; width: .5em; height: .95em; background: var(--signal); vertical-align: -.1em; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.angebote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.angebot {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 30px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.angebot::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.angebot:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(22, 24, 27, .35); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.angebot:hover::before { opacity: 1; }
.angebot > * { position: relative; }
.angebot.mit-bild { padding-top: 0; }
.angebot-bild { margin: 0 -26px 22px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.angebot-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; transition: transform .8s var(--ease); }
.angebot:hover .angebot-bild img { transform: scale(1.04); }
.angebot .mono { color: var(--accent); }
.angebot h3 { font: 400 clamp(28px, 2.6vw, 36px)/1.05 var(--serif); margin: 14px 0 12px; letter-spacing: -.01em; }
.angebot p { margin: 0; color: #45484e; }

.ablauf {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.ablauf::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 7px;
  height: 1px; background: var(--line);
}
.ablauf::after {
  content: "";
  position: absolute; left: 0; top: 7px;
  height: 1px; width: 100%;
  background: var(--accent);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.8s var(--ease) .3s;
}
.ablauf.da::after { transform: scaleX(1); }
.ablauf li { position: relative; padding-top: 30px; font: 400 22px/1.2 var(--serif); }
.ablauf li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--accent);
  z-index: 1;
}
.ablauf li .mono { display: block; color: var(--muted); margin-bottom: 4px; }

/* Rechtsseiten */
.legal { max-width: 720px; margin: 0 auto; padding: 120px var(--gutter) 80px; }
.legal h1 { font-size: clamp(48px, 8vw, 72px); margin-bottom: 32px; }
.legal h2 { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 36px 0 10px; }
.legal p { margin: 0 0 10px; }
.legal a { color: var(--accent); }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .beratung-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .beratung-intro p:first-child, .tipper { grid-column: auto; padding-right: 0; }
  .tipper { padding: 20px 22px; }
  .angebote { grid-template-columns: 1fr; }
  .ablauf { grid-template-columns: 1fr; gap: 18px; padding-left: 26px; }
  .ablauf::before, .ablauf::after { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .ablauf::after { transform-origin: top; transform: scaleY(0); }
  .ablauf.da::after { transform: scaleY(1); }
  .ablauf li { padding-top: 0; }
  .ablauf li::before { left: -26px; top: 6px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 96px; gap: 40px; }
  .portrait { max-width: 420px; order: -1; width: 70%; }
  .scroll-hinweis { display: none; }
  .kopf { grid-template-columns: 1fr; gap: 10px; }
  .rolle { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 28px 0; }
  .rolle .nr { grid-column: 1 / -1; }
  .rolle .ziel { width: 44px; height: 44px; align-self: start; }
  .bilder { grid-template-columns: 1fr 1fr; }
  .bilder figure:nth-child(2) { margin-top: 40px; }
  .bilder figure:nth-child(3) { display: none; }
  .zeile-k { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; }
  .zeile-k > .mono:first-child { grid-column: 1 / -1; }
  .bar .nur-gross { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rein { opacity: 1; transform: none; }
}
