/* hubig.info | Hub-Seite, dunkel mit orangen Akzenten
   Schrift: Archivo (variabel) für alles, Newsreader Kursiv für die Hilfesätze. Lokal eingebunden. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #070a10;
  --bg-raised: #0d1220;
  --line: #232c3b;
  --text: #f1ede4;
  --muted: #a3adba;
  --orange: #ff8a3d;
  --orange-soft: #ffb98a;
  --orange-deep: #b8420d;
  --cream: #f6efe3;
  --ink: #1a0d03;
  --ink-muted: #5b4a3c;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 78rem;
  --r-lg: 1.75rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease: var(--ease-out);

  color-scheme: dark;
  accent-color: var(--orange);
  scrollbar-color: #2a3446 var(--bg);
  scrollbar-width: thin;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

::selection { background: rgba(255, 138, 61, 0.35); color: #fff7e6; }
input, textarea { caret-color: var(--orange-soft); }
:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3446; border-radius: 999px; border: 2px solid var(--bg); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 400;
  padding: 0.6rem 1rem;
  background: var(--orange);
  color: #17120a;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
h1 em, h2 em { display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--orange-soft); }

/* Eyebrow-Pille wie im Vorbild */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem;
  border: 1px solid rgba(255, 138, 61, 0.35);
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.08);
  color: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pill::before { content: "\2192"; color: var(--orange); letter-spacing: 0; }

/* ---------- Ladebild: kurz, nur mit Bewegung erlaubt ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  background: var(--bg);
  pointer-events: none;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
@media (prefers-reduced-motion: no-preference) {
  .js .intro { display: grid; animation: intro-out 0.7s var(--ease-out) 0.5s both; }
  .js .intro span { animation: intro-txt 0.5s var(--ease-out) both; }
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-txt { from { opacity: 0; transform: translateY(0.5rem); filter: blur(4px); } }

/* ---------- Kopfzeile ---------- */

.site-head { position: fixed; inset: 0.75rem 0 auto 0; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.site-head .wrap {
  pointer-events: auto;
  max-width: 64rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0.55rem 0.5rem 1.5rem;
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(241, 237, 228, 0.14);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s;
}
.site-head.is-stuck .wrap { background: rgba(7, 10, 16, 0.78); border-color: rgba(255, 138, 61, 0.25); }
section[id] { scroll-margin-top: 5.5rem; }

.brand span { color: var(--orange); }
.brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: clamp(0.25rem, 1.6vw, 1rem); font-size: 0.95rem; font-weight: 500; }
.site-nav a { white-space: nowrap; color: var(--muted); text-decoration: none; padding: 0.5rem 0.85rem; border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
.site-nav a[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.site-nav a:last-child { background: var(--orange); color: var(--ink); padding-inline: 1.15rem; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
  .site-nav a:last-child:hover { background: var(--orange-soft); color: var(--ink); }
}
@media (max-width: 40rem) {
  .site-nav .nav-extra { display: none; }
  .site-head .wrap { padding-left: 1.1rem; gap: 0.5rem; }
  .site-nav { font-size: 0.88rem; gap: 0.1rem; }
  .site-nav a { padding-inline: 0.6rem; }
  .site-nav a:last-child { padding-inline: 0.95rem; }
}

/* ---------- Hero: Text links, Foto mit schwebenden Karten rechts ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding-block: 7.5rem 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.finale::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(40rem 34rem at 76% 52%, rgba(255, 138, 61, 0.26), transparent 68%),
    radial-gradient(34rem 26rem at 0% 90%, rgba(255, 138, 61, 0.12), transparent 66%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1rem, 3vw, 3rem); align-items: stretch; }
.hero-copy { display: grid; justify-items: start; align-content: center; gap: 1.5rem; padding-bottom: 5rem; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.9rem); line-height: 1.03; max-width: 13ch; }
.hero-lead { max-width: 32rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: #cfcac1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; }
.hero-note { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); }
.hero-note::before { content: "\21B3\00a0"; color: var(--orange); font-style: normal; }
.btn-line { color: var(--text); background: rgba(255, 255, 255, 0.05); border-color: rgba(241, 237, 228, 0.28); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { border-color: var(--orange-soft); background: rgba(255, 138, 61, 0.12); } }

.hero-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 28rem; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 4% 0;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  background: radial-gradient(closest-side at 50% 38%, rgba(255, 138, 61, 0.5), rgba(255, 138, 61, 0.12) 62%, transparent 100%);
}
.hero-photo {
  position: relative;
  width: min(100%, 31rem);
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 99%), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 76%, transparent 99%), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}

.chip-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  border: 1px solid rgba(241, 237, 228, 0.16);
  border-radius: 1rem;
  background: rgba(14, 17, 24, 0.9);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.85);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.25;
  transition: border-color 0.25s, background-color 0.25s, transform 0.16s var(--ease-out);
}
.chip-card:active { transform: scale(0.97); }
.chip-ico { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 0.7rem; background: rgba(255, 138, 61, 0.16); color: var(--orange); }
.chip-ico svg { width: 1.3rem; height: 1.3rem; }
.chip-txt { display: grid; gap: 0.05rem; }
.chip-txt strong { font-weight: 600; font-size: 0.95rem; }
.chip-txt span { color: var(--muted); }
.chip-card--a { left: -2%; top: 20%; }
.chip-card--b { right: -6%; top: 56%; }
.chip-card--c { left: 1%; bottom: 17%; }
.chip-card--d { right: -2%; bottom: 8%; cursor: default; }
.chip-soon { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .chip-card:hover { border-color: var(--orange); background: #1a1410; }
}
@media (prefers-reduced-motion: no-preference) {
  .chip-card--a { animation: drift 7s ease-in-out infinite alternate; }
  .chip-card--b { animation: drift 8s ease-in-out -2s infinite alternate; }
  .chip-card--c { animation: drift 9s ease-in-out -4s infinite alternate; }
}
@keyframes drift { from { transform: translateY(-0.4rem); } to { transform: translateY(0.4rem); } }

@media (max-width: 62rem) {
  .chip-card--a { left: 0; }
  .chip-card--b { right: 0; }
}
@media (max-width: 52rem) {
  .hero { min-height: 0; padding-block: 5.75rem 0; }
  .hero-note { display: none; }
  .hero-visual { padding-bottom: 1.5rem; }
  .foot-ext + .foot-ext::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 2.5rem; }
  .hero-visual { min-height: 0; margin-top: 0.5rem; display: grid; grid-template-columns: repeat(2, auto); justify-content: center; align-items: start; gap: 0.4rem; }
  .hero-photo { grid-column: 1 / -1; justify-self: center; width: min(74%, 19rem); }
  .chip-card { position: relative; inset: auto; margin-top: -2.4rem; padding: 0.45rem 0.65rem 0.45rem 0.45rem; gap: 0.45rem; font-size: 0.78rem; }
  .chip-ico { width: 1.8rem; height: 1.8rem; border-radius: 0.55rem; }
  .chip-ico svg { width: 1.05rem; height: 1.05rem; }
  .chip-txt strong { font-size: 0.82rem; }
  .chip-txt span { display: none; }
  .chip-card--a, .chip-card--b, .chip-card--c, .chip-card--d { left: auto; right: auto; top: auto; bottom: auto; }
  .chip-card--c, .chip-card--d { margin-top: 0; }
  .chip-txt span { display: none; }
}

/* Ein Auftritt: Inhalt steigt weich auf, Rest blendet beim Scrollen ein */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy, .js .hero-visual { animation: rise 1s var(--ease-out) 0.95s both; }
  .js .reveal {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(1.1rem);
    transition: opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }
  .js .reveal.in { opacity: 1; filter: none; transform: none; }
}
@keyframes rise { from { opacity: 0; filter: blur(6px); transform: translateY(1.1rem); } to { opacity: 1; filter: none; transform: none; } }

/* ---------- Schaltflächen ---------- */

.btn {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn-solid { background: var(--orange); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--cream); justify-self: start; }
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--orange-soft); }
  .btn-dark:hover { background: #3a2210; }
}

/* ---------- Abschnitte ---------- */

.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-head { display: grid; justify-items: center; gap: 1.25rem; margin: 0 auto clamp(2.25rem, 5vw, 3.75rem); text-align: center; }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 18ch; }
.section-intro { max-width: 36rem; color: var(--muted); }

/* ---------- Die vier Türen ---------- */

.doors { display: flex; gap: 0.75rem; min-height: min(74vh, 44rem); padding-inline: 0.75rem; }
.door {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.2rem;
  padding: clamp(1.4rem, 2.6vw, 2.25rem);
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--r-lg);
  background-color: var(--bg-raised);
  border: 1px solid rgba(241, 237, 228, 0.1);
  transition: flex-grow 0.7s var(--ease-out), transform 0.16s var(--ease-out);
}
.door:active { transform: scale(0.99); }
.door::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out);
}
.door::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 8, 6, 0.93) 8%, rgba(10, 8, 6, 0.45) 55%, rgba(10, 8, 6, 0.08));
}
.door--web::before, .door--foto::before, .door--shop::before, .door--ki::before { background-color: #090c12; background-position: center top; }
.door-title { font-size: clamp(1.35rem, 1.8vw, 2rem); font-weight: 600; letter-spacing: -0.03em; overflow-wrap: break-word; }
.door-sub { font-size: 1rem; line-height: 1.5; color: #dcd7cd; max-width: 22rem; }
.door-more { display: grid; gap: 1.1rem; }
.door-list { list-style: none; margin: 0; padding: 0; font-size: 0.98rem; color: #dcd7cd; }
.door-list li { padding-block: 0.55rem; border-top: 1px solid rgba(241, 237, 228, 0.2); }
.door-go { justify-self: start; padding: 0.55rem 1.2rem; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.door-status { align-self: flex-start; padding: 0.3rem 0.85rem; border: 1px solid rgba(255, 138, 61, 0.55); border-radius: 999px; font-size: 0.85rem; color: var(--orange-soft); }

@media (min-width: 62rem) and (hover: hover) {
  .doors:hover .door, .doors:focus-within .door { flex-grow: 1; }
  .doors .door:hover, .doors .door:focus-visible { flex-grow: 2.2; }
  .door-more { opacity: 0; transform: translateY(0.75rem); transition: opacity 0.45s ease, transform 0.6s var(--ease-out); min-width: 17rem; }
  .door-sub { transition: opacity 0.3s; }
  .doors:hover .door:not(:hover) .door-sub { opacity: 0.6; }
  .door:hover .door-more, .door:focus-visible .door-more { opacity: 1; transform: none; transition-delay: 0.18s; }
  .door:hover::before, .door:focus-visible::before { transform: scale(1); }
}
@media (max-width: 61.99rem), (hover: none) {
  .doors { flex-direction: column; min-height: 0; }
  .door { flex: none; min-height: 22rem; }
  .door--web, .door--foto, .door--shop { padding-top: calc(48vw + 1rem); background-color: #090c12; }
  .door--ki { padding-top: calc(60vw + 1rem); background-color: #090c12; }
  .door--web::before, .door--foto::before, .door--shop::before, .door--ki::before { background-size: 100% auto; background-repeat: no-repeat; background-position: top center; }
  .door-more { opacity: 1; transform: none; }
}

/* ---------- Wobei kann ich helfen ---------- */

.help-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.help-list li { border-bottom: 1px solid var(--line); }
.help-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding: clamp(1.25rem, 2.6vw, 1.9rem) 0.25rem;
  text-decoration: none;
  transition: color 0.25s;
}
.help-q { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; }
.help-to { font-size: 0.98rem; font-weight: 500; color: var(--muted); text-align: right; transition: color 0.25s; }
@media (hover: hover) and (pointer: fine) {
  .help-q { transition: transform 0.45s var(--ease-out); }
  .help-link:hover { color: var(--orange-soft); }
  .help-link:hover .help-to { color: var(--orange-soft); }
  .help-link:hover .help-q { transform: translateX(0.75rem); }
}
@media (max-width: 40rem) { .help-link { grid-template-columns: 1fr; } .help-to { text-align: left; } }

/* ---------- Über mich: heller Abschnitt wie im Vorbild ---------- */

.about-light {
  margin: clamp(2rem, 5vw, 4rem) 0.75rem 0;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--ink);
}
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.about-text { display: grid; justify-items: start; gap: 1.3rem; }
.about-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); max-width: 14ch; }
.about-text h2 em { color: var(--orange-deep); }
.pill--ink { border-color: rgba(184, 66, 13, 0.4); background: rgba(184, 66, 13, 0.08); color: var(--orange-deep); }
.pill--ink::before { color: var(--orange-deep); }
.about-text p { color: var(--ink-muted); font-size: 1.05rem; }
.portrait-card { margin: 0; position: relative; border-radius: 1.25rem; overflow: hidden; background: #cfc3ae; }
.portrait { aspect-ratio: 4 / 5; --img: url('../img/patrick.jpg'); background-image: var(--img, none); background-size: cover; background-position: center 18%; }
.portrait-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  padding: 3rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(20, 12, 4, 0.82), transparent);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
}
.portrait-card figcaption strong { font-weight: 600; font-size: 1.1rem; }
.portrait-card figcaption span { color: rgba(255, 255, 255, 0.85); }
.facts { display: grid; margin: 0; border-top: 1px solid #d8ccb7; font-size: 1rem; }
.facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-block: 0.95rem; border-bottom: 1px solid #d8ccb7; }
.facts dt { color: var(--ink-muted); }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 62rem) {
  .about { grid-template-columns: 1fr 1fr; }
  .about-text { grid-column: 1 / -1; }
}
@media (max-width: 40rem) { .about { grid-template-columns: 1fr; } .portrait-card { max-width: 22rem; } }

/* ---------- So läuft es ab ---------- */

.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 56rem; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 1rem; }
.step-card {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.25rem, 2.6vw, 1.9rem) clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid rgba(241, 237, 228, 0.12);
  border-radius: 1.5rem;
  background: var(--bg-raised);
  transition: border-color 0.3s;
}
.step-no { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.step-card h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.025em; }
.step-card p { color: var(--muted); font-size: 1.02rem; max-width: 38rem; }
.step-tile {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 138, 61, 0.22);
  border-radius: 1.5rem;
  background: rgba(255, 138, 61, 0.07);
  color: var(--orange);
}
.step-tile svg { width: 3.4rem; height: 3.4rem; }
@media (hover: hover) and (pointer: fine) { .step:hover .step-card { border-color: rgba(255, 138, 61, 0.45); } }
@media (max-width: 40rem) {
  .step { grid-template-columns: 1fr; }
  .step-tile { display: none; }
}

/* ---------- Fragen ---------- */

.faq-list { max-width: 50rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid rgba(241, 237, 228, 0.12); border-radius: 1.25rem; background: var(--bg-raised); transition: border-color 0.3s; }
.faq-item[open] { border-color: rgba(255, 138, 61, 0.4); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: 1.25rem; }
.faq-plus { position: relative; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(255, 138, 61, 0.14); transition: transform 0.35s var(--ease-out), background-color 0.25s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 0.8rem; height: 2px; margin: -1px 0 0 -0.4rem; background: var(--orange); border-radius: 2px; }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: rgba(255, 138, 61, 0.28); }
.faq-item p { padding: 0 1.5rem 1.4rem; max-width: 42rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .faq-item:hover { border-color: rgba(255, 138, 61, 0.35); } }

/* ---------- Anfrage ---------- */

.finale { position: relative; isolation: isolate; margin-top: clamp(2rem, 5vw, 4rem); }
.finale::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(44rem 26rem at 14% 82%, rgba(255, 138, 61, 0.14), transparent 70%),
    radial-gradient(32rem 22rem at 92% 26%, rgba(255, 138, 61, 0.08), transparent 70%);
}
.finale::before { -webkit-mask-image: radial-gradient(ellipse 60% 52% at 38% 56%, #000 8%, transparent 78%); mask-image: radial-gradient(ellipse 60% 52% at 38% 56%, #000 8%, transparent 78%); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-intro { display: grid; justify-items: start; gap: 1.4rem; }
.finale--page { padding-top: 0; }
.contact-intro h1, .contact-intro h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 16ch; }
.contact-intro p { max-width: 30rem; color: #dcd7cd; }
.contact-alt { font-size: 1rem; }

.form {
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(241, 237, 228, 0.16);
  border-radius: var(--r-lg);
  background: rgba(10, 14, 24, 0.82);
}
.topics { border: 0; padding: 0; margin: 0; min-width: 0; }
.topics legend { padding: 0; margin-bottom: 1rem; font-weight: 600; font-size: 1.1rem; }
.req { margin-left: 0.15rem; color: var(--orange-soft); font-weight: 700; text-decoration: none; cursor: help; }
.consent .req { margin: 0 0.25rem 0 0; }
.req-note { margin: 0 0 -0.4rem; font-size: 0.88rem; color: var(--muted); }
.hint { display: block; margin-top: 0.25rem; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.chip-group + .chip-group { margin-top: 1.1rem; }
.group-title { margin: 0 0 0.6rem; font-size: 0.92rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(241, 237, 228, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.98rem;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.16s var(--ease-out);
}
.chip:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: var(--orange-soft); } }
.chip input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--ink); font-weight: 600; }
.chip input:checked + span::before { content: "\2713"; }
.chip input:focus-visible + span { outline: 2px solid var(--orange-soft); outline-offset: 3px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: end; }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field > span { font-size: 0.95rem; font-weight: 500; }
.field em { margin-left: 0.35rem; font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(241, 237, 228, 0.2);
  border-radius: 0.75rem;
  background: rgba(7, 10, 16, 0.65);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: #94a0ae; }
.field input:focus, .field textarea:focus { outline: 2px solid rgba(255, 185, 138, 0.55); outline-offset: 2px; border-color: var(--orange-soft); }
.field input:user-invalid { border-color: #ff9d8a; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; font-size: 0.95rem; line-height: 1.5; color: #cbc6bc; }
.consent input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--orange); }
.consent a { text-decoration-color: var(--orange); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { margin: 0; font-size: 0.98rem; }
.form-status.is-error { color: #ffb4a3; }
.form-success { display: grid; gap: 1rem; padding-block: 1rem; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.form-success p { max-width: 30rem; color: #dcd7cd; }

@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .field-row { grid-template-columns: 1fr; gap: 1.6rem; } }

.mail { display: inline-block; font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: -0.02em; text-decoration-color: var(--orange); text-underline-offset: 0.35rem; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .mail:hover { color: var(--orange-soft); } }

/* ---------- Fuß ---------- */

.site-foot { padding-block: 2.5rem 3rem; font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2.5rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-foot a { text-decoration: none; }
.foot-ext + .foot-ext::before { content: "|"; margin-right: 1.75rem; color: rgba(241, 237, 228, 0.3); }
.foot-ext + .foot-ext { display: inline-flex; }
.foot-soon { cursor: default; }
.foot-links .foot-ext:last-of-type { margin-right: 0; }
@media (hover: hover) and (pointer: fine) { .site-foot a:hover { color: var(--text); text-decoration: underline; } }

/* ---------- Rechtstexte und 404 ---------- */

.legal { padding-block: 9rem 6rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; }
.legal p, .legal ul { max-width: 44rem; color: #d2cdc4; }
.legal p + p { margin-top: 1rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { text-decoration-color: var(--orange); }
.todo { background: rgba(255, 138, 61, 0.14); color: var(--orange); padding: 0 0.3rem; border-radius: 2px; }

.notfound { min-height: 100svh; display: grid; place-content: center; gap: 1.5rem; padding: var(--gutter); }
.notfound h1 { font-size: clamp(3rem, 10vw, 7rem); }

/* ---------- Nach oben ---------- */

.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.3s, transform 0.4s var(--ease-out), visibility 0s linear 0.3s, background-color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top.is-visible:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .to-top:hover { background: var(--orange-soft); } }
.to-top svg { width: 1.25rem; height: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; filter: none; transform: none; }
}

/* Bilder der Türkarten (statt Inline-Style, damit die CSP ohne unsafe-inline auskommt) */
.door--web { --img: url('../img/door-web.jpg'); }
.door--foto { --img: url('../img/door-foto.jpg'); }
.door--ki { --img: url('../img/door-ki.jpg'); }
.door--shop { --img: url('../img/door-shop.jpg'); }
