/* Variante A2 – „Hell & freundlich“ mit echtem Logo und 4D-Würfel im Hero
   Layout: asymmetrischer Hero mit schwebenden Farbflächen aus dem Logo,
   danach ruhige Abschnitte mit viel Weißraum und einem interaktiven Problem-Finder. */

@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f6f8fc;
  --surface: #ffffff;
  --ink: #0f1c2e;
  --muted: #56637d;
  --line: #dde4ef;
  --orange: #0098ec;
  --lime: #0098ec;
  --sky: #0098ec;
  --orange-soft: #e6f5fd;
  --lime-soft: #e6f5fd;
  --sky-soft: #e6f5fd;
  --display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(22, 34, 58, .05), 0 12px 32px -12px rgba(22, 34, 58, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sky); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--sky); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); padding: .6rem 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 86px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { height: 64px; width: auto; flex: none; display: block; }
@media (max-width: 420px) { .brand img { height: 50px; } }
.brand strong { font-family: var(--display); font-size: 1.15rem; display: block; line-height: 1.1; }
.brand span { font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--orange); transition: right .25s; }
.nav a:not(.btn):hover::after { right: 0; }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(22, 34, 58, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(22, 34, 58, .6); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-small { padding: .6rem 1rem; font-size: .92rem; }
.nav .btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 800; margin-block: 1.1rem 1.4rem; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .28em; z-index: -1;
  background: var(--lime); opacity: .45; border-radius: 4px;
  transform-origin: left; animation: mark 1s .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes mark { from { transform: scaleX(0); } }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.2rem; color: var(--muted); font-size: .95rem; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: .45rem; }
.trust svg { width: 18px; height: 18px; color: var(--lime); }

/* Bühne: Tesserakt aus dem Logo (Canvas) */
.stage { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
/* Logo-Zeichen: zwei Hälften gleiten ineinander */
.zeichen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.teil { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.teil .kontur { fill: none; stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; }
.teil-oben .kontur { stroke: var(--ink); }
.teil-unten .kontur { stroke: var(--sky); }
.teil-oben .flaeche { fill: var(--ink); }
.teil-unten .flaeche { fill: var(--sky); }
.js .teil .flaeche { opacity: 0; }
.js .teil-oben { transform: translate(-26px, -10px); }
.js .teil-unten { transform: translate(26px, 10px); }
.js .zeichen.an .kontur { animation: zeichnen 1.1s ease forwards; }
.js .zeichen.an .flaeche { animation: fuellen .6s ease 1s forwards; }
.js .zeichen.an .teil { transform: translate(var(--px, 0px), var(--py, 0px)); transition-delay: 1.1s; }
.js .zeichen.an .teil-unten { transform: translate(calc(var(--px, 0px) * -1), calc(var(--py, 0px) * -1)); }
.js .zeichen.fertig .teil { transition: transform .4s ease-out; transition-delay: 0s; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes fuellen { to { opacity: 1; } }
.stage::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(0,152,236,.14), transparent 65%); filter: blur(10px); }
.stage-hint { position: absolute; left: 50%; bottom: -1.6rem; translate: -50% 0; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.ticket {
  position: absolute; z-index: 3; pointer-events: none; display: flex; align-items: center; gap: .65rem;
  background: var(--surface); border-radius: 16px; padding: .75rem 1rem .75rem .8rem;
  box-shadow: var(--shadow); font-weight: 700; font-size: .95rem; white-space: nowrap;
  animation: pop .7s cubic-bezier(.2,1.4,.4,1) both;
}
.ticket small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.ticket .ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-soft); color: #5f8a12; flex: none; }
.ticket .ok svg { width: 16px; height: 16px; }
.t1 { left: -6%; bottom: 6%; animation-delay: 1.4s; }
.t2 { right: -4%; top: 2%; animation-delay: 1.8s; }
@keyframes pop { from { opacity: 0; scale: .7; } }

.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .16; z-index: -1; pointer-events: none; }
.blob-1 { width: 420px; height: 420px; background: var(--sky); right: -120px; top: -80px; }
.blob-2 { width: 320px; height: 320px; background: var(--orange); left: -160px; bottom: -120px; opacity: .18; }

/* ---------- Problem-Finder ---------- */
.finder { background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 8px); padding: clamp(1.8rem, 4vw, 3.2rem); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); position: relative; overflow: hidden; }
.finder::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(63,138,214,.55), transparent 70%); }
.finder h2 { color: #fff; }
.finder > div { position: relative; min-width: 0; }
.finder .eyebrow { color: #aeb9cf; }
.finder-intro p { color: #c4cde0; margin-top: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.chip {
  font: 700 .95rem var(--body); color: #fff; cursor: pointer;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.18);
  padding: .65rem 1rem; border-radius: 999px; transition: background .2s, border-color .2s, transform .2s;
}
.chip:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.answer { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.7rem; display: grid; gap: 1rem; align-content: start; min-height: 100%; }
.answer h3 { color: #fff; }
.answer .tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.answer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; color: #d6ddea; }
.answer li { display: flex; gap: .6rem; }
.answer li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: .62em; }
.answer .btn { justify-self: start; background: #fff; color: var(--ink); }
.answer.swap { animation: swap .45s cubic-bezier(.2,.8,.2,1); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; display: grid; gap: 1rem; align-content: start; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.service .icon svg { width: 28px; height: 28px; }
.service .icon { background: #eef1f6; color: var(--ink); transition: background .3s, color .3s; }
.service:hover .icon { background: var(--ink); color: #fff; }
.service p { color: var(--muted); }
.service ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.service li { font-size: .88rem; font-weight: 700; padding: .35rem .75rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 4.2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font: 800 1.35rem var(--display);
  background: var(--surface); border: 2px solid var(--ink);
}
.step:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 68px; right: 16px; border-top: 2px dashed var(--line); }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); }

/* ---------- Regionen ---------- */
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.map { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.map svg { width: 100%; height: auto; display: block; }
.map .road { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.map .town circle.dot { fill: var(--ink); }
.map .town circle.pulse { fill: var(--orange); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.map .town.home circle.dot { fill: var(--orange); }
.map text { font: 700 15px var(--body); fill: var(--ink); }
.map text.sub { font-weight: 600; font-size: 12px; fill: var(--muted); }
.map .area { fill: var(--lime-soft); stroke: var(--lime); stroke-width: 1.5; stroke-dasharray: 6 6; }
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
.region-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.region-list li { display: flex; align-items: center; gap: .6rem; font-weight: 700; background: var(--surface); border: 1px solid var(--line); padding: .8rem 1rem; border-radius: 14px; }
.region-list svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.remote { margin-top: 1.2rem; display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); }
.remote svg { width: 22px; height: 22px; color: var(--sky); flex: none; margin-top: .15rem; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.portrait { position: relative; max-width: 420px; }
.portrait img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; position: relative; z-index: 1; }
.portrait::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border-radius: var(--radius); background: var(--orange); }
.portrait::after { content: ""; position: absolute; width: 38%; aspect-ratio: 1; left: -1.4rem; top: -1.4rem; border-radius: 18px; background: var(--lime); z-index: 0; }
.about-text { display: grid; gap: 1.1rem; }
.about-text p { color: var(--muted); font-size: 1.1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1.1rem; }
.fact b { display: block; font: 800 1.5rem/1.1 var(--display); }
.fact span { font-size: .88rem; color: var(--muted); font-weight: 600; }

.about { align-items: start; }
.about-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.1rem; justify-items: start; max-width: 380px; }
.about-card img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--line); }
.about-card b { display: block; font: 700 1.3rem var(--display); }
.about-card span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.about-card .facts { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: .6rem; }
.about-card .fact { background: var(--surface); padding: .7rem .9rem; }
.about-card .fact b { font-size: 1.3rem; }
.about-card .fact span { font-size: .8rem; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: grid; gap: 1.4rem; }
.contact-card { display: grid; gap: .9rem; }
.contact-line { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; transition: border-color .2s, transform .2s; }
a.contact-line:hover { border-color: var(--ink); transform: translateX(4px); }
.contact-line .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.contact-line .ic svg { width: 20px; height: 20px; }
.contact-line small { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; }
.contact-line b { font-weight: 700; word-break: break-word; }
.mail-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; gap: 1.2rem; justify-items: start; box-shadow: var(--shadow);
}
.mail-box h3 { font-size: 1.5rem; }
.mail-box > p { color: var(--muted); }
.btn-gross { padding: 1.05rem 1.7rem; font-size: 1.08rem; }
.adresse { display: grid; gap: .4rem; width: 100%; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.adresse span { font-size: .9rem; color: var(--muted); }
.adresse-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.adresse-zeile b { font-size: 1.1rem; word-break: break-all; user-select: all; }
.kopieren { font: 700 .85rem var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; transition: border-color .2s; }
.kopieren:hover { border-color: var(--ink); }
.mail-box .hinweis { font-size: .95rem; color: var(--muted); }
.mail-box .hinweis a { color: var(--ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.2rem; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer-inner nav { display: flex; gap: 1.4rem; }
.footer-inner a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 46rem; padding-block: clamp(3rem, 7vw, 5rem); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; margin: 2.6rem 0 .8rem; }
.legal h3 { font-size: 1.12rem; margin: 1.8rem 0 .5rem; }
.legal p, .legal ul, .legal address { color: var(--muted); margin: 0 0 1rem; font-style: normal; }
.legal ul { padding-left: 1.2rem; }
.legal strong { color: var(--ink); }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.legal .box p:last-child { margin-bottom: 0; }
mark.todo { background: #ffe58a; color: #3d2f00; padding: .05em .3em; border-radius: 4px; }

/* ---------- Scroll-Animation (nur mit JS, Ruhezustand sichtbar) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .finder, .regions, .about, .contact { grid-template-columns: 1fr; }
  .stage { max-width: 420px; }
  .portrait { margin-inline: auto 1.2rem; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 86px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 1.2rem 1.2rem;
    transform: translateY(-130%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s .35s; z-index: -1;
  }
  .nav.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow); }
  .nav a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: .9rem; border-bottom: 0; }
}
@media (max-width: 720px) {
  .services, .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .region-list { grid-template-columns: 1fr; }
  .t2 { right: 0; }
  .t1 { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .teil .flaeche { opacity: 1; }
  .js .teil, .js .zeichen.an .teil-unten { transform: none; }
}

/* Hauptüberschrift: sachlich, etwas kleiner */
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); }
.hero h1 .hl { white-space: normal; }
.hero h1 .hl::after { opacity: .35; }
