@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #13306a;
  --navy-2: #0c2250;
  --teal: #2bb3c6;
  --teal-soft: #e3f6f8;
  --ink: #0f1d3a;
  --muted: #5b6a84;
  --line: #c3cfe0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --radius: 22px;
  --hh: 72px;
  --ov: 0;
  --inv: 1;
  /* Netz-Kugel und Datenpunkte (liest app.js) */
  --net-1: #22d3ee; --net-2: #3b82f6; --net-3: #1d4ed8; --net-back: #96a8eb; --net-hot: #2bb3c6;
  --net-lw: 1; --net-node: 1;
  --pt-a: #2bb3c6; --pt-b: #13306a; --pt-hot: #ffffff;
  /* Hintergrund der Netz-Ansicht; --sr = Kugelradius (setzt app.js) */
  --sr: 300px;
  --net-bg:
    radial-gradient(circle at 50% 50%, rgba(34,211,238,.16) 0, rgba(59,130,246,.08) calc(var(--sr) * 1.05), rgba(59,130,246,0) calc(var(--sr) * 2.1)),
    linear-gradient(180deg, #f7fafd 0%, #e4edf8 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: clip;
}
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 800; color: var(--navy); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; color: var(--navy); }
h3 { font-size: 1.15rem; font-weight: 700; }
h1:focus, h2:focus { outline: none; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(14px, 3vw, 32px);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e3e9f2;
}
.js .site-header { position: fixed; left: 0; right: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand-mark { width: 44px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-size: 1.15rem; font-weight: 800; letter-spacing: .06em; }
.brand-text small { font-size: .56rem; font-weight: 700; letter-spacing: .2em; margin-top: 4px; color: var(--ink); }

.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs a {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink);
  white-space: nowrap; transition: background .25s, color .25s;
}
.tabs a:hover { background: #eaf0f8; }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; }

.net-btn {
  display: none; align-items: center; gap: 6px;
  border: 1px solid #d6dfec; background: #fff; color: var(--navy);
  border-radius: 999px; padding: 8px 13px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.js .net-btn { display: flex; }
.net-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.net-btn svg circle { fill: currentColor; stroke: none; }
.net-btn:hover, .is-overview .net-btn:not(.theme-btn) { border-color: var(--teal); color: var(--teal); }
/* Hell/Dunkel-Umschalter: zeigt das Ziel (Mond im hellen, Sonne im dunklen Design) */
.js .theme-btn[hidden] { display: none; }
.theme-btn { padding: 8px 10px; }
.theme-btn .i-mond { fill: currentColor; stroke: none; }
.theme-btn .i-sonne { display: none; }
.theme-btn .i-sonne circle { fill: none; stroke: currentColor; }
[data-theme="dunkel"] .theme-btn .i-mond { display: none; }
[data-theme="dunkel"] .theme-btn .i-sonne { display: inline; }

/* ---------- Bühne & Welt (nur mit JavaScript) ---------- */
.js body { overflow: hidden; height: 100vh; height: 100dvh; }
.js .stage {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--hh); overflow: hidden; overflow: clip;
  background-color: var(--bg);
}
.js .world { position: absolute; inset: 0; transform-origin: 50% 50%; }

.net { display: none; }
.js .net { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
/* Netz-Ansicht: leichter Hintergrund hinter der Kugel, blendet beim Rauszoomen ein (--ov) */
.js .stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--net-bg); opacity: var(--ov);
}
/* Netz-Ansicht: die Kugel lässt sich ziehen */
.is-overview .stage { cursor: grab; touch-action: none; }
.is-dragging .stage, .is-dragging .hit { cursor: grabbing; }

/* Abschnitte */
.panel { position: relative; background: var(--card); }
.js .panel {
  --b: 0;   /* Aufbau: 0 = nur der Punkt, 1 = ganze Seite (setzt app.js) */
  position: absolute; left: 0; top: 0; z-index: 1;
  border: 1px solid #dbe3ee;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -50px rgba(19,48,106,.45), 0 2px 8px rgba(19,48,106,.05);
  overflow: hidden;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform, opacity;
  opacity: 0;
  /* transform und opacity (Kamera + Aufbau) setzt app.js je Frame direkt. Kein --b am Abschnitt: eine
     CSS-Variable erben alle Kinder, jede Änderung hätte je Bild die ganze Seite neu berechnet */
}
/* Spar-Modus (app.js schaltet .lite ein, wenn die Bewegung ruckelt): Inhalte ohne Staffelung, kein Weichzeichner
   und kein großer Schatten, die der Browser sonst in jedem Bild neu berechnen muss */
.js.lite .panel-inner > *, .js.lite .panel-inner.hero > div > *, .js.lite .panel-inner.split > div > * { opacity: 1; transform: none; transition: none; }
.lite .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite.is-moving .panel { box-shadow: none; }
/* Weichzeichner der Kopfzeile nur bei ruhender Seite: über der bewegten Kugel müsste er jedes Bild neu rechnen */
.is-moving .site-header, .is-overview .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--head-solid, rgba(255, 255, 255, .96)); }
/* Inhalte kommen gestaffelt nach, sobald die Seite sich aufbaut (app.js setzt .is-built ab ~30 % Aufbau).
   Als CSS-Übergang läuft das auf dem Grafikchip statt je Bild im Skript */
.js .panel-inner > *, .js .panel-inner.hero > div > *, .js .panel-inner.split > div > * {
  --d: 0;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .25s ease, transform .25s ease;
}
.js .is-built .panel-inner > *, .js .is-built .panel-inner.hero > div > *, .js .is-built .panel-inner.split > div > * {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease calc(var(--d) * 1.6s), transform .8s cubic-bezier(.2, .8, .2, 1) calc(var(--d) * 1.6s);
}
.js .panel-inner > :nth-child(2), .js .panel-inner.hero > div > :nth-child(2), .js .panel-inner.split > div > :nth-child(2) { --d: .12; }
.js .panel-inner > :nth-child(3), .js .panel-inner.hero > div > :nth-child(3), .js .panel-inner.split > div > :nth-child(3) { --d: .24; }
.js .panel-inner > :nth-child(4), .js .panel-inner.hero > div > :nth-child(4), .js .panel-inner.split > div > :nth-child(4) { --d: .36; }
.js .panel-inner > :nth-child(n+5), .js .panel-inner.hero > div > :nth-child(n+5), .js .panel-inner.split > div > :nth-child(n+5) { --d: .48; }
.js .panel-inner.hero > div, .js .panel-inner.split > div { --d: 0; }
.js .panel::before {           /* Knoten-Farbstreifen oben, wie die Leiterbahnen */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 30%, var(--teal) 30% 34%, transparent 34% 36%, var(--teal) 36% 38%, transparent 38%);
}
.panel-body { height: 100%; overflow: auto; overscroll-behavior: contain; }
.panel-inner { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px); }
.js .panel-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.js .panel-inner.split, .js .panel-inner.hero { display: grid; align-content: center; }

/* Ohne JS: normale Seite untereinander */
html:not(.js) .panel { max-width: 1160px; margin: 24px auto; border-radius: var(--radius); border: 1px solid #dbe3ee; }

/* Übersicht: Punkte der Abschnitte. Sichtbar, solange die Seite nicht aufgebaut ist. */
.hit { display: none; }
/* Übersicht: das Etikett ist der Zielpunkt der Station. Sichtbar, solange die Seite nicht aufgebaut ist. */
.js .hit {
  --b: 0;
  display: block;
  position: absolute; left: 0; top: 0; z-index: 0;   /* unter der Seite: sie wächst aus dem Etikett heraus */
  border: 0; padding: 0; margin: 0; background: none; cursor: pointer;
  font: inherit; font-size: 17px;
  opacity: calc((1 - var(--b)) * var(--vis, 1)); pointer-events: none;   /* --vis: Rückseite der Kugel blendet aus */
}
.is-overview .hit { pointer-events: auto; }
.hit .lab {
  position: relative;
  display: flex; align-items: center; gap: .5em;
  font-weight: 800; padding: .4em 1em; border-radius: 999px;
  background: var(--navy); color: #fff; white-space: nowrap;
  box-shadow: 0 .5em 1.4em -.6em rgba(19,48,106,.6);
  transition: transform .2s, background .2s;
}
.hit:hover .lab { transform: scale(1.08); }
.hit:focus-visible { outline: none; }
.hit:focus-visible .lab { outline: .15em solid var(--teal); outline-offset: .15em; }
/* Ausgewählte Seite: das Etikett pulsiert */
.hit .lab::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  border: .14em solid var(--teal); opacity: 0;
}
.hit.is-current .lab { background: var(--teal); animation: beat 1.4s ease-in-out infinite; }
.hit.is-current .lab::after { animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35, 1.9); opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } 30% { transform: scale(1); } }

/* Anschlüsse zu den Nachbarn (am Rand des aktiven Abschnitts) */
.port { display: none; }
.js .port {
  display: flex; align-items: center; gap: 6px;
  position: absolute; left: 0; top: 0; z-index: 3;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid #d3dcea; background: #fff; color: var(--navy);
  font: inherit; font-size: .8rem; font-weight: 700; white-space: nowrap; cursor: pointer;
  opacity: calc(1 - var(--ov) * 1.6);
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.js .port:hover { border-color: var(--teal); color: var(--teal); box-shadow: 0 6px 18px -8px rgba(43,179,198,.6); }
.port b { color: var(--teal); font-weight: 800; }
.is-moving .port, .is-overview .port { pointer-events: none; }
.is-moving .port { opacity: 0; }
.narrow .port { display: none; }
.narrow .hit { font-size: 12px; }

/* ---------- Inhalte ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ph-tag { margin-left: auto; font-size: .62rem; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; border: 1px dashed #e0a43a; color: #a76a06; background: #fff8ea; }
.ph { border-bottom: 2px dashed #e0a43a; color: #a76a06; }
.accent { color: var(--teal); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #34425e; max-width: 46ch; margin: 0 0 1.4em; }
p { margin: 0 0 1em; }

.btn { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px; border: 1px solid #cdd8e8; background: #fff; color: var(--navy); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(19,48,106,.6); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero-mark svg { width: 100%; max-width: 380px; aspect-ratio: 112 / 100; display: block; margin: 0 auto; }
/* Start: persönliche Vorstellung (rechte Spalte), Klick fliegt zu „Über mich“ */
.me { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 320px; padding: 28px 26px 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: center; text-decoration: none; box-shadow: 0 30px 60px -40px rgba(15, 29, 58, .5); transition: border-color .2s, transform .2s; }
.me:hover { border-color: var(--teal); transform: translateY(-3px); }
.me img { width: 168px; height: 168px; margin-bottom: 14px; border-radius: 50%; object-fit: cover; border: 5px solid var(--teal-soft); }
.me-hi { font-size: .85rem; color: var(--muted); }
.me b { font-size: 1.35rem; color: var(--navy); line-height: 1.2; }
.me-text { margin-top: 6px; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.me-more { margin-top: 10px; font-weight: 700; color: var(--teal); }
@media (max-width: 900px) {
  .me { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: center; justify-self: stretch; max-width: none; padding: 14px 18px; text-align: left; }
  .me img { grid-row: 1 / span 3; width: 64px; height: 64px; margin: 0; border-width: 3px; }
  .me-more { margin-top: 2px; }
  .me-text { display: none; }
}
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts li { padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid #e3e9f2; }
.facts b { display: block; color: var(--navy); }
.facts span { font-size: .85rem; color: var(--muted); }

.split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.photo { aspect-ratio: 4 / 5; border-radius: 20px; border: 2px dashed #e0a43a; background: repeating-linear-gradient(45deg, #fff8ea 0 12px, #fff 12px 24px); display: grid; place-items: center; color: #a76a06; font-weight: 700; }
.photo span { text-align: center; padding: 0 12px; }
.photo small { display: block; margin-top: 4px; font-size: .75rem; font-weight: 500; }

/* Über mich: Fotowand mit angehefteten Tierkartei-Karten (Kartenfächer) */
.wall { position: relative; margin: 0; padding-bottom: 140px; }
.wall .photo { box-shadow: 0 24px 50px -28px rgba(15, 29, 58, .5); }
/* Echte Fotos (img) statt Platzhalter: weißer Fotorand wie ein Abzug */
img.photo { display: block; height: auto; object-fit: cover; border: 6px solid #fff; background: #fff; }
.photo-main { width: 94%; aspect-ratio: 4 / 3; transform: rotate(-1.5deg); }
.photo-side { position: absolute; top: 18px; right: -2%; width: 30%; aspect-ratio: 611 / 560; object-position: top; transform: rotate(5deg); z-index: 1; }
.fan { position: absolute; left: 0; right: 0; bottom: 14px; height: 150px; z-index: 2; }
/* Karte im Stil der Tierkartei aus dem Orga-Tool (NaturGut-Farben, unabhängig vom Seiten-Design) */
.tk {
  --r: 0deg; --x: 0px; --xo: 0px; --s: .62;
  position: absolute; left: 0; bottom: 0; width: 240px; display: block; text-align: left;
  padding: 12px 14px 13px; border-radius: 10px; border: 1px solid #e5decb; background: #fff;
  font: inherit; font-family: "Signika", system-ui, sans-serif; color: #2c3d24; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(35, 50, 31, .45);
  transform-origin: 50% 130%;
  transform: translateX(var(--x)) rotate(var(--r)) scale(var(--s));
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .3s, border-color .3s;
}
/* Karten nebeneinander, kaum überlappend; --xo = Position im geöffneten Zustand (bleibt in der Spalte) */
.tk:nth-child(1) { --r: -5deg; --x: -40px; --xo: 0px; }
.tk:nth-child(2) { --r: 1deg; --x: 120px; --xo: 120px; }
.tk:nth-child(3) { --r: 6deg; --x: 280px; --xo: 240px; }
.tk::before {   /* Pinnnadel */
  content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a7a, #c9372c 60%, #8e2219); box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
  transition: opacity .3s;
}
.tk.is-open, .tk:focus-visible { --r: 0deg; --s: 1; --x: var(--xo); z-index: 5; border-color: #43754a; box-shadow: 0 30px 60px -20px rgba(35, 50, 31, .55); }
@media (hover: hover) { .tk:hover { --r: 0deg; --s: 1; --x: var(--xo); z-index: 5; border-color: #43754a; box-shadow: 0 30px 60px -20px rgba(35, 50, 31, .55); } }
.tk.is-open::before, .tk:focus-visible::before { opacity: 0; }
@media (hover: hover) { .tk:hover::before { opacity: 0; } }
.tk:focus-visible { outline: 2px solid #43754a; outline-offset: 2px; }
.tk > span { display: block; }
.tk-head { margin: -12px -14px 10px; padding: 6px 14px; border-radius: 10px 10px 0 0; background: #43754a; color: #fffce6; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tk-head::before { content: "🐾 "; }
.tk .tk-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tk-photo { width: 46px; height: 46px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
img.tk-photo { display: block; object-fit: cover; background: #e7e1d6; }
.tk-name { display: block; font-size: 14.5px; }
.tk-sub { display: block; font-size: 12px; color: #5c6b52; }
.tk-line { display: block; font-size: 12.5px; color: #5c6b52; margin-top: 2px; }
.tk .tk-more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .3s; }
.tk.is-open .tk-more, .tk:focus-visible .tk-more { max-height: 220px; opacity: 1; }
@media (hover: hover) { .tk:hover .tk-more { max-height: 220px; opacity: 1; } }
.tk-note { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #f4f0d9; font-size: 12px; line-height: 1.45; }
.tk-note b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #43754a; margin-bottom: 2px; }
.tk-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tk-badges i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #e2f2e1; color: #2e7d32; }
.wall-tip { margin: 0 0 14px; font-size: .78rem; color: var(--muted); }
/* Fotos vom Hof unter dem Text */
.hof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 340px; margin: 4px 0 1.2em; }   /* klein wie Abzüge, groß per Antippen */
.hof-foto { display: grid; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .78rem; text-align: left; cursor: zoom-in; }
.hof-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 4px solid var(--card); box-shadow: 0 16px 34px -22px rgba(15, 29, 58, .55); transition: transform .25s; }
.hof-foto:nth-child(1) img { transform: rotate(-1.2deg); }
.hof-foto:nth-child(2) img { transform: rotate(1.4deg); }
.hof-foto:hover img, .hof-foto:focus-visible img { transform: rotate(0) scale(1.03); }
.hof-foto:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 14px; }
.hof-gross { max-width: min(1000px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); cursor: zoom-out; overflow: hidden; }
.hof-gross::backdrop { background: rgba(0, 0, 0, .72); }
.hof-gross img { display: block; width: 100%; height: auto; max-height: calc(92vh - 48px); object-fit: contain; }
.hof-gross p { margin: 0; padding: 12px 16px; font-size: .9rem; }
.heart { display: inline-flex; align-items: center; gap: .5em; margin: -.2em 0 1.1em; padding: .4em 1em; border-radius: 999px; background: var(--teal-soft); color: var(--navy); font-weight: 700; font-size: .92rem; }
.heart span { color: #e0475a; }
.ticks { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid #dfe6f0; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card p { color: #44526c; font-size: .95rem; }
.card a { font-weight: 700; text-decoration: none; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.card .dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); box-shadow: 16px 0 0 -3px var(--teal), 28px 0 0 -4px #9fb0c8; margin-bottom: 16px; }
.note { margin-top: 24px; color: var(--muted); font-size: .9rem; }

/* Projekte: Karten mit Bildschirmfoto, das beim Darüberfahren durchscrollt; Klick fliegt zum Projekt-Knoten */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pcard { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.pcard:hover, .pcard:focus-visible { border-color: var(--teal); transform: translateY(-2px); }
.pcard-shot { display: block; height: 190px; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.pcard-shot img { display: block; width: 100%; height: auto; transform: translateY(0); transition: transform 4s ease-in-out; }
.pcard:hover .pcard-shot img { transform: translateY(calc(-100% + 190px)); }
.pcard-text { display: grid; gap: 6px; padding: 18px 20px 20px; }
.pcard-text > b { font-size: 1.25rem; color: var(--navy); }
.pcard-text > span:not(.tag):not(.tags):not(.more) { color: var(--muted); font-size: .95rem; }
.pcard .tag { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags i { font-style: normal; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--navy); }
.more { font-weight: 700; color: var(--teal); margin-top: 4px; }

/* Projekt-Seite (Unterpunkt): Leiste wie der Vorschau-Rahmen, darunter die Live-Demo über die ganze Seite */
.demo { display: flex; flex-direction: column; height: 100%; min-height: 70vh; }
.js .demo { min-height: 0; }
.demo-bar { flex: none; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.demo-back { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; font-weight: 800; color: var(--navy); }
.demo-back:hover { border-color: var(--teal); color: var(--teal); }
.demo-title { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 12px; }
.demo-title h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.7rem); white-space: nowrap; }
.demo-sub { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-pill { flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.demo-devices { flex: none; display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.demo-devices button { width: 34px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.demo-devices button.on { background: var(--navy); color: var(--card); }
.demo-devices svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.demo-open { flex: none; padding: 9px 16px; min-height: 0; font-size: .88rem; }
.demo-stage { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; padding: 14px; background: var(--bg); overflow: hidden; }
/* Bildschirmfoto als Platzhalter (ohne JS, während der Fahrt und bis die Demo geladen ist) */
.demo-poster { position: absolute; inset: 14px; display: flex; flex-direction: column; gap: 10px; }
.demo-poster img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); }
.demo-poster p { margin: 0; font-size: .9rem; color: var(--muted); }
html:not(.js) .demo-poster { position: static; }
html:not(.js) .demo-poster img { max-height: 60vh; }
.demo-frame { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; border-radius: 10px; background: #fff; opacity: 0; box-shadow: 0 20px 60px -24px rgba(0, 0, 0, .45); transition: opacity .4s, width .45s cubic-bezier(.2, .8, .2, 1); }
.demo-stage.is-live .demo-frame { opacity: 1; }
.demo-stage.is-live .demo-poster { visibility: hidden; }
.demo[data-device="tablet"] .demo-frame { width: min(100%, 820px); }
.demo[data-device="phone"] .demo-frame { width: min(100%, 390px); border-radius: 26px; outline: 8px solid #222; outline-offset: -1px; }
.js .panel.project::before { z-index: 2; }

/* Leistungen: Ablauf und Preise */
.sub { font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--navy); margin: 48px 0 18px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 46px 16px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--navy); color: var(--card); }
.steps b { display: block; color: var(--navy); margin-bottom: 4px; }
.steps span { font-size: .88rem; color: var(--muted); }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price { display: flex; flex-direction: column; padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.price.featured { border: 2px solid var(--teal); }
.price h4, .custom h4 { margin: 0 0 6px; font-size: 1.15rem; color: var(--navy); }
.price .amount { margin: 0; font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.price .amount small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price .rate { font-size: .85rem; color: var(--muted); }
.price ul { margin: 0 0 16px; padding-left: 1.1em; font-size: .9rem; display: grid; gap: 4px; }
.price a { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--teal); }
.custom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 22px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.custom p { margin: 0; color: var(--muted); }

/* Kontakt */
.clinks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; }
.clinks a { display: flex; align-items: baseline; gap: 12px; font-weight: 700; text-decoration: none; }
.clinks span { min-width: 82px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form small { font-weight: 500; color: var(--muted); }
.form select { font: inherit; padding: 11px 13px; border: 1px solid #cdd8e8; border-radius: 10px; background: #fff; width: 100%; color: inherit; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .85rem; }
.form label.check input { width: auto; margin-top: 3px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .88rem; background: #fff4e5; color: #8a4b00; border: 1px solid #f1c27d; }
.form-danke { align-content: center; min-height: 220px; }
.form-danke h3 { color: var(--navy); }

/* Kontaktwege als Reiter: Anfrage oder Telefontermin */
.kwege { min-width: 0; }
.ktabs { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); width: max-content; max-width: 100%; }
.ktabs[hidden] { display: none; }
.ktabs button { white-space: nowrap; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.ktabs button[aria-selected="true"] { background: var(--navy); color: var(--bg); }
.ktabs button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* Telefontermin buchen (Termin-Dienst wie auf one-rep.de) */
.tbuch { gap: 0; }
.tintro { margin: 0 0 4px; color: var(--muted); font-size: .92rem; }
.tlabel { margin: 14px 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tdays { display: grid; gap: 14px; }
.tmonat { margin: 0 0 6px; font-size: .88rem; font-weight: 700; color: var(--navy); }
.tgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.twd { text-align: center; font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--muted); padding-bottom: 2px; }
.tday, .tslot { border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tday { min-width: 0; height: 38px; border-radius: 10px; padding: 0; font-size: .92rem; }
.tday:disabled { opacity: .25; cursor: default; }
.tday.vorbei { visibility: hidden; }
.tslots { display: flex; flex-wrap: wrap; gap: 8px; }
.tslot { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: .88rem; }
.tday:hover:not(:disabled), .tslot:hover { border-color: var(--teal); }
.tday[aria-checked="true"], .tslot[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--bg); }
.twahl { margin: 0; font-weight: 700; color: var(--teal); }
.tform { display: grid; gap: 14px; margin-top: 4px; }
.tform[hidden] { display: none; }

address { font-style: normal; line-height: 1.8; margin-bottom: 1em; }
.legal-links { font-size: .9rem; color: var(--muted); }
.form[hidden] { display: none; }
.form { display: grid; gap: 14px; padding: 24px; border-radius: 18px; background: var(--bg); border: 1px solid #e3e9f2; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form textarea { font: inherit; padding: 11px 13px; border: 1px solid #cdd8e8; border-radius: 10px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .8rem; color: var(--muted); }

.hint { display: none; }
.js .hint {
  display: block; position: fixed; z-index: 10; left: 16px; bottom: 12px; margin: 0;
  font-size: .75rem; color: var(--muted); background: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 999px; border: 1px solid #e3e9f2;
  transition: opacity .4s;
}
kbd { font: inherit; font-weight: 700; padding: 0 5px; border-radius: 4px; border: 1px solid #d3dcea; background: #fff; }

/* Logo-Pixel flackern leicht */
.hero-mark .mark-px rect { animation: blink 3.2s infinite; }
.hero-mark .mark-px rect:nth-child(2n) { animation-delay: -1.1s; }
.hero-mark .mark-px rect:nth-child(3n) { animation-delay: -2.3s; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
  .cards, .cards.four, .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .demo-pill, .demo-sub, .demo-devices { display: none; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; row-gap: 8px; padding-bottom: 8px; }
  .net-btn { margin-left: auto; }
  .tabs { order: 3; width: 100%; margin: 0 -14px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 8px 12px; font-size: .9rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .wall { max-width: 340px; width: 100%; margin: 0 auto; }
  .wall { padding-bottom: 120px; }
  .tk { --s: .5; }
  /* Handy: Karten (240 px, verkleinert auf 120 px) über die Breite des Fächers verteilt (cqw = Fächerbreite),
     die geöffnete Karte immer mittig, damit sie ganz sichtbar ist */
  .fan { container-type: inline-size; }
  .fan .tk:nth-child(1) { --x: -60px; }
  .fan .tk:nth-child(2) { --x: calc(50cqw - 120px); }
  .fan .tk:nth-child(3) { --x: calc(100cqw - 180px); }
  .fan .tk.is-open, .fan .tk:focus-visible { --x: calc(50cqw - 120px); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .js .hint { display: none; }
  .ph-tag { display: none; }
}
@media (max-width: 520px) {
  .cards, .cards.four, .pcards, .steps, .form .row { grid-template-columns: minmax(0, 1fr); }
  .custom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hit.is-current .lab, .hit.is-current .lab::after { animation: none; }
  .js .panel, .js .panel-inner > *, .js .panel-inner.hero > div > *, .js .panel-inner.split > div > * { transform: none; transition: none; }
  .hero-mark .mark-px rect { animation: none; }
  .btn, .card, .tk, .tk .tk-more { transition: none; }
}

/* Über mich: Fotowand bekommt mehr Breite als der Text */
#ueber-mich .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 760px) { #ueber-mich .split { grid-template-columns: minmax(0, 1fr); } }
/* Kontakt auf dem Handy: Reiter über die volle Breite, Formular-Kasten schmaler eingerückt */
@media (max-width: 480px) {
  .ktabs { width: 100%; }
  .ktabs button { flex: 1; padding: 9px 8px; font-size: .84rem; }
  .form { padding: 18px 16px; }
  .tday { height: 36px; border-radius: 8px; }
  .tgrid { gap: 3px; }
}
