/* ===================================================================
   Basislager IT – Stylesheet
   =================================================================== */

/* ===== Tokens ===== */
:root {
  --bg: #f6f4ef;
  --bg-tint: #efece4;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #001a21;
  --ink-2: #3f5157;
  --ink-3: #5c6c71;
  --line: #e2ded4;
  --line-strong: #d3cec2;
  --accent: #f17624;        /* Logo-Orange */
  --accent-ink: #a64b0c;    /* Orange für Text auf hellem Grund (AA) */
  --accent-soft: #fde9da;
  --on-accent: #001a21;     /* Schrift auf orangem Grund */
  --dark: #001a21;          /* Logo-Petrol */
  --dark-2: #062730;
  --dark-line: #173a44;
  --on-dark: #fcfcf7;
  --on-dark-2: #b6c4c7;
  --on-dark-3: #8a9ea3;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(80px, 11vw, 136px);

  --shadow-sm: 0 1px 2px rgba(22, 25, 29, .04), 0 1px 1px rgba(22, 25, 29, .03);
  --shadow: 0 1px 2px rgba(22, 25, 29, .04), 0 8px 24px -8px rgba(22, 25, 29, .08);
  --shadow-lg: 0 2px 4px rgba(22, 25, 29, .04), 0 24px 48px -16px rgba(22, 25, 29, .16);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071318;
    --bg-tint: #0b1a20;
    --surface: #10222a;
    --surface-2: #0d1e25;
    --ink: #fcfcf7;
    --ink-2: #b6c4c7;
    --ink-3: #8a9ea3;
    --line: #1a3139;
    --line-strong: #254049;
    --accent: #f17624;
    --accent-ink: #f68b45;
    --accent-soft: #3a2414;
    --dark: #001a21;
    --dark-2: #04222b;
    --shadow-sm: none;
    --shadow: 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .6);
  }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.032em; margin-bottom: clamp(36px, 5vw, 64px); max-width: 20ch; }
h3 { font-size: 1.1875rem; letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent-ink); }
.muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ===== Icons ===== */
.icon {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-tint); color: var(--ink);
  border: 1px solid var(--line);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 28px; height: 28px; border-radius: 8px; }
.icon--sm svg { width: 16px; height: 16px; stroke-width: 2; }
.icon--accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.icon--light { background: rgba(255, 255, 255, .06); color: var(--on-dark); border-color: var(--dark-line); }

/* ===== Buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px; text-decoration: none; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .1);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out); }
.btn:hover { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--accent { background: var(--accent); color: var(--on-accent); font-weight: 600; min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--accent:hover { background: var(--on-dark); color: var(--dark); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4); }
.btn--accent svg { width: 20px; height: 20px; }
.btn--accent:hover svg { transform: none; }

/* ===== Navigation ===== */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; }
.nav__bar {
  position: relative; display: flex; align-items: center; gap: 16px;
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 24px); height: 64px; margin-inline: auto;
  padding: 0 10px 0 18px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled .nav__bar {
  /* bewusst ohne backdrop-filter: Weichzeichnen über der 3D-Animation kostet beim Scrollen viel Leistung */
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; min-height: 44px; margin-right: auto; }
.brand__pic { display: contents; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__it { color: var(--accent-ink); }
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; color: var(--ink-2); font-size: .9375rem; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-tint); }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 800px) {
  .nav__toggle { display: inline-block; }
  .nav__cta { display: none; }
  .nav__bar { padding-right: 6px; }
  .nav__menu {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 8px;
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open .nav__menu { opacity: 1; transform: none; visibility: visible; }
  .nav.is-open .nav__bar { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
  .nav__links { flex-direction: column; }
  .nav__links a { width: 100%; min-height: 52px; padding: 0 16px; font-size: 1.0625rem; color: var(--ink); border-radius: var(--radius); }
}

/* ===== Hero ===== */
.hero { position: relative; padding-block: clamp(72px, 13vw, 168px) clamp(80px, 12vw, 144px); margin-top: -76px; padding-top: calc(clamp(72px, 13vw, 168px) + 76px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__topo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--ink); opacity: .1;
}
.hero__pin { fill: var(--accent); stroke: none; }
.hero__glow {
  position: absolute; width: 640px; height: 640px; right: -120px; top: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__visual { display: none; }
/* Vorgerendertes 3D-Bild: ragt rundherum über den Platzhalter hinaus
   (links 22 %, oben 20 %, rechts 35 %, unten 15 % – wie im Render-Werkzeug) */
.hero__art {
  position: absolute; left: -22%; top: -20%; width: 157%; max-width: none; height: auto;
  pointer-events: none; user-select: none;
  /* auf breiten Fenstern etwas nach rechts schieben (Abstand zum Text) */
  transform: translateX(clamp(0px, (100vw - 1000px) * .36, 80px));
}
@media (min-width: 960px) {
  .hero__inner {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(40px, 5vw, 80px);
    grid-template-rows: auto auto auto 1fr; align-items: start;
  }
  .hero__inner > :not(.hero__visual) { grid-column: 1; }
  .hero .eyebrow { justify-self: start; }
  .hero h1 { max-width: none; font-size: clamp(2.75rem, 4.7vw, 4.75rem); }
  .hero__visual {
    display: block; grid-column: 2; grid-row: 1 / -1; align-self: center;
    position: relative; width: calc(100% + 32px); margin-right: -32px; aspect-ratio: 1 / .92; max-height: 600px;
  }
}
.hero h1 { max-width: 13ch; }
.hero h1 em { padding-right: .05em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px;
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  padding: 7px 16px 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: var(--shadow-sm);
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: .5; animation: ping 2.4s var(--ease-out) 3; }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.lead { margin-top: 32px; max-width: 52ch; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 44px; }
.hint { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .9375rem; }
.hint svg { width: 18px; height: 18px; color: var(--accent-ink); }

/* ===== Sections ===== */
.section { position: relative; padding-block: var(--section); overflow-x: clip; }
.section--tint { background: var(--bg-tint); }
.section--tint::before, .section--tint::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.section--tint::before { top: 0; }
.section--tint::after { bottom: 0; }
h2::before {
  content: ""; display: block; width: 32px; height: 3px; border-radius: 3px; background: var(--accent); margin-bottom: 24px;
}
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

/* ===== Problem-Karten ===== */
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.card::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card:hover::after { transform: scaleX(1); }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card__num { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--line-strong); line-height: 1; transition: color .4s var(--ease); }
.card:hover .card__num { color: var(--accent-ink); }
.card:hover .icon { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.card .icon { transition: background-color .4s var(--ease), color .4s var(--ease); }
.card p { color: var(--ink-2); }

/* ===== Leistungen (Bento) ===== */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "start basis plus" "start wide wide";
}
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.service:nth-child(2) { grid-area: basis; }
.service--start { grid-area: start; }
.service--plus { grid-area: plus; }
.service--wide { grid-area: wide; }
.service header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.service header h3 { margin-right: auto; }
.tag { font-size: .8125rem; font-weight: 500; color: var(--ink-2); background: var(--bg-tint); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.tag--accent { color: var(--accent-ink); background: var(--accent-soft); }

.service--start {
  background: var(--dark); color: var(--on-dark); border-color: var(--dark);
  position: relative; overflow: hidden;
}
.service--start::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -140px; bottom: -160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
  opacity: .55; pointer-events: none;
}
.service--start header { border-bottom-color: var(--dark-line); }
.service--start .tag { background: rgba(255, 255, 255, .08); color: var(--on-dark-2); }
.service--start .checks li { color: var(--on-dark-2); }
.service--start .checks li::before { background-color: rgba(241, 118, 36, .2); }
.service--plus { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "start basis" "start plus" "wide wide"; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "start" "basis" "plus" "wide"; }
  .service { padding: 24px; }
  .service header { flex-wrap: wrap; }
}

.checks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.checks--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); column-gap: 32px; }
.checks li, .crosses li { position: relative; padding-left: 32px; color: var(--ink-2); line-height: 1.5; }
.checks li::before, .crosses li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}
.checks li::before {
  background-color: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5 9.5 3.5' fill='none' stroke='%23f17624' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.crosses li::before {
  background-color: var(--bg-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5m0-5-5 5' fill='none' stroke='%238f939a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ===== Bild ===== */
.banner { margin-block: 0; padding-top: var(--section); }
.banner__frame {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--dark); box-shadow: var(--shadow-lg);
}
.banner__frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 14, .35));
}
.banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.banner.is-in img { transform: scale(1); }
@media (max-width: 640px) { .banner img { aspect-ratio: 4 / 3; } }

/* ===== Fokus ===== */
.focus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.focus__panel { border-radius: var(--radius-lg); padding: 32px; }
.focus__panel--yes { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.focus__panel--no { border: 1.5px dashed var(--line-strong); }
.focus__title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 1.0625rem; font-weight: 500; }
.focus__panel--no .focus__title { color: var(--ink-2); }
.crosses li { color: var(--ink-3); }
.note {
  display: flex; align-items: center; gap: 16px;
  margin-top: 40px; font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 2.4vw, 1.75rem); color: var(--ink-2); line-height: 1.3;
}
.note::before { content: ""; flex: none; width: 40px; height: 1px; background: var(--accent); }

/* ===== Ablauf ===== */
.steps {
  --progress: 0;
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.steps::before, .steps::after {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; border-radius: 2px;
}
.steps::before { background: var(--line-strong); }
.steps::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--progress)); transition: transform .2s linear; }
.step { position: relative; z-index: 1; }
.step__num {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong);
  font-family: var(--serif); font-style: italic; font-size: 1.625rem; line-height: 1; color: var(--ink);
  box-shadow: 0 0 0 8px var(--bg-tint);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.step.is-active .step__num { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); max-width: 30ch; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--progress)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 24px; }
  .step__num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: end; margin-top: 4px; }
}

/* ===== Preise ===== */
.prices { align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price h3 { font-size: 1rem; color: var(--ink-2); font-weight: 500; }
.price__amount { margin-top: 28px; font-size: clamp(3rem, 5.5vw, 3.75rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.price__amount small { font-size: 1rem; letter-spacing: 0; color: var(--ink-3); font-weight: 400; margin-right: 6px; }
.price__unit { margin-top: 10px; color: var(--ink-3); font-size: .9375rem; }
.price__note { margin-top: auto; padding-top: 24px; font-size: .9375rem; color: var(--ink-2); border-top: 1px solid var(--line); margin-block-start: 32px; }

.price--featured {
  background: var(--dark); color: var(--on-dark); border-color: transparent; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.price--featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, var(--accent), transparent 45%, transparent 70%, color-mix(in srgb, var(--accent) 40%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.price--featured::after {
  content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
  pointer-events: none;
}
.price--featured h3, .price--featured .price__note { color: var(--on-dark-2); }
.price--featured .price__unit, .price--featured .price__amount small { color: var(--on-dark-3); }
.price--featured .price__note { border-top-color: var(--dark-line); }
.badge {
  position: absolute; top: 28px; right: 28px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8125rem; font-weight: 600; color: var(--on-accent); background: var(--accent); padding: 5px 12px; border-radius: 999px;
}
.badge::before { content: "★"; font-size: .7rem; }

.extras-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.extras { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.extras li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9375rem; color: var(--ink-2); }
.extras strong { color: var(--ink); font-weight: 600; margin-left: 4px; }
.fineprint { font-size: .875rem; color: var(--ink-3); }

/* ===== Über mich ===== */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__img { position: relative; margin: 0; padding: 0 24px 24px 0; }
.about__img::before {
  content: ""; position: absolute; inset: 24px 0 0 24px; border-radius: var(--radius-xl);
  background: var(--accent); opacity: .9;
}
.about__topo { position: absolute; z-index: 0; width: 70%; right: -18%; top: -14%; color: var(--ink); opacity: .12; }
.about__img img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-xl); background: var(--bg); box-shadow: var(--shadow-lg);
}
.about__text h2 { margin-bottom: 32px; }
.about__text > p { color: var(--ink-2); max-width: 60ch; }
.quote {
  margin: 28px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent);
}
.quote p { font-size: 1.125rem; line-height: 1.6; color: var(--ink); max-width: 56ch; }
.certs { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.certs li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 500; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.certs svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__img { max-width: 400px; } }

/* ===== Kontakt ===== */
.cta { padding-block: var(--section); }
.cta__inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 80px); align-items: center;
  background: var(--dark); color: var(--on-dark); border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 72px);
  box-shadow: var(--shadow-lg);
}
.cta__inner::after {
  content: ""; position: absolute; z-index: -1; right: -160px; bottom: -220px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent), transparent 68%);
  opacity: .55;
}
.cta__topo { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .06; }
.cta h2 { margin-bottom: 18px; color: var(--on-dark); }
.cta__book > p { color: var(--on-dark-2); margin-bottom: 36px; max-width: 46ch; font-size: 1.125rem; }
.cta__book .cta__small { margin: 18px 0 0; font-size: .875rem; color: var(--on-dark-3); }

.cta__direct { display: grid; gap: 12px; }
.cta__label { font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-3); margin-bottom: 4px; }
.contact {
  display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px 18px 14px 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--dark-line); border-radius: var(--radius);
  text-decoration: none; color: var(--on-dark);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease-out);
}
.contact:hover { border-color: var(--accent); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.contact__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(241, 118, 36, .16); color: var(--accent); }
.contact__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__text { display: grid; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.contact__text small { font-size: .8125rem; font-weight: 400; color: var(--on-dark-3); }
.contact__arrow { flex: none; width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--on-dark-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out), stroke .3s; }
.contact:hover .contact__arrow { stroke: var(--accent); transform: translate(2px, -2px); }
@media (max-width: 860px) {
  .cta__inner { grid-template-columns: 1fr; }
  .cta__direct { padding-top: 32px; border-top: 1px solid var(--dark-line); }
}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding-block: 40px 28px; font-size: .9375rem; color: var(--ink-3); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.footer__brand div { display: grid; line-height: 1.4; }
.footer__brand strong { font-weight: 600; letter-spacing: -0.01em; }
.footer__brand span { color: var(--ink-3); font-size: .875rem; }
.footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.footer nav { display: flex; gap: 4px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; border-radius: 999px; transition: color .2s, background-color .2s; }
.footer a:hover { color: var(--ink); background: var(--bg-tint); }
.footer a[aria-current="page"] { color: var(--ink); }
.footer__copy { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; }

/* ===== Rechtliche Seiten ===== */
.legal { padding-block: clamp(56px, 9vw, 104px) var(--section); }
.legal h1 { font-size: clamp(2rem, 7vw, 3.75rem); margin-bottom: 40px; hyphens: auto; overflow-wrap: break-word; }
.legal__body {
  max-width: 72ch; min-height: 240px; color: var(--ink-2); line-height: 1.7;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow-sm);
  hyphens: auto; overflow-wrap: break-word;
}
.legal__body:empty { background: transparent; border-style: dashed; box-shadow: none; }
.legal__body section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal__body section { scroll-margin-top: 104px; }
.legal__body h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin: 0 0 16px; max-width: none; color: var(--ink); letter-spacing: -0.02em; }
.legal__body h2::before { width: 24px; height: 2px; margin-bottom: 16px; }
.legal__body h3 { font-size: 1.0625rem; margin: 32px 0 10px; color: var(--ink); }
.legal__body p + p, .legal__body ul + p, .legal__body p + ul { margin-top: 14px; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__body a:hover { text-decoration-thickness: 2px; }

/* Stammdaten (Verantwortliche Stelle) als ruhige Infobox */
.legal__facts {
  list-style: none; margin: 16px 0 0; padding: 20px 24px; display: grid; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
/* Aufzählungen a., b., c. … – Buchstaben stehen im Text, daher ohne eigene Listenzeichen */
.legal__items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.legal__items li { position: relative; padding-left: 28px; }
.legal__items li > strong:first-child { position: absolute; left: 0; color: var(--accent-ink); }
.legal__bullets { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal__bullets li::marker { color: var(--accent); }
/* Platzhalter, die vor dem Livegang ausgefüllt werden müssen – absichtlich auffällig */
mark.todo {
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600;
  padding: 1px 6px; border-radius: 6px; outline: 1.5px dashed var(--accent); outline-offset: 1px;
}
.legal__address {
  font-style: normal; margin-top: 14px; padding: 20px 24px; display: grid; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.legal__address p + p { margin-top: 0; }

/* Impressum: Stammdaten als Karten */
.legal__lead { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 16px; }
.imprint { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.imprint__card {
  font-style: normal; padding: 22px 24px; display: grid; gap: 6px; align-content: start;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.imprint__card p + p { margin-top: 0; }
.imprint__card--wide { grid-column: 1 / -1; }
.imprint__label { font-size: .875rem; color: var(--ink-3); }
.imprint__name { font-size: 1.125rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.imprint__contact { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.imprint__contact li { display: flex; align-items: center; gap: 12px; }
.imprint__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.imprint__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Telefonnummer und E-Mail nie mitten im Wort trennen */
.legal__body .imprint__contact a { white-space: nowrap; hyphens: none; overflow-wrap: normal; }
@media (max-width: 420px) {
  .imprint__card { padding: 18px; }
  .imprint__icon { display: none; }
}
.legal__credit { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.6; color: var(--ink-3); }
.legal__body .legal__credit a { color: inherit; }

/* Inhaltsverzeichnis: oben auf dem Handy, links und mitlaufend auf großen Bildschirmen */
.legal__layout { display: grid; gap: 24px; align-items: start; }
.legal__toc {
  padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2);
  font-size: .9375rem;
}
.legal__toc-title { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 10px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal__toc a {
  display: flex; align-items: center; min-height: 40px; padding: 6px 10px; margin-inline: -10px;
  border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; line-height: 1.35;
  transition: background-color .2s, color .2s;
}
.legal__toc a:hover { background: var(--bg-tint); color: var(--ink); }
.legal__toc a.is-current { color: var(--accent-ink); background: var(--accent-soft); }
@media (min-width: 1024px) {
  .legal__layout { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .legal__toc { position: sticky; top: 100px; }
}
.back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 28px; padding: 0 16px 0 12px;
  color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  transition: color .2s, border-color .2s;
}
.back:hover { color: var(--ink); border-color: var(--line-strong); }
.back svg { transition: transform .3s var(--ease-out); }
.back:hover svg { transform: translateX(-3px); }

/* ===== Reveal-Animation ===== */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .banner img { transform: none; }
}
