/* ==========================================================================
   MQData – Stylesheet
   Schriften lokal eingebunden (keine Verbindung zu Google o. Ä. – DSGVO)
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Farben aus dem Logo */
  --ink: #0c1b25;
  --ink-2: #13293a;
  --ink-3: #1c3a50;
  --blue: #028ad2;
  --blue-dark: #0270ab;
  --cyan: #00c5f4;
  --paper: #f5f8fa;
  --white: #ffffff;
  --slate: #4d6072;
  --slate-light: #9fb3c4;
  --line: #dce5ec;
  --danger: #c0392b;
  --success: #1e8e5a;

  --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.5vw, 3.6rem);

  --wrap: 1180px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s); }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -10px rgba(2,138,210,.7); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(2,138,210,.85); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { color: #fff; border-color: var(--cyan); background: rgba(0,197,244,.08); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { color: var(--ink); border-color: var(--blue); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s, box-shadow .35s, height .35s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; line-height: 0; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand .logo-dark { display: none; }
.site-header.is-solid, .site-header.is-light { background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .logo-light, .site-header.is-light .logo-light { display: none; }
.site-header.is-solid .logo-dark, .site-header.is-light .logo-dark { display: block; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.main-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: .95rem; position: relative; padding: .3rem 0; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a:hover { color: #fff; }
.main-nav .btn { padding: .6rem 1.2rem; font-size: .9rem; color: #fff; }
.is-solid .main-nav a:not(.btn), .is-light .main-nav a:not(.btn) { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: #fff; }
.is-solid .nav-toggle, .is-light .nav-toggle { color: var(--ink); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--ink);
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden; isolation: isolate;
}
.hero::before { /* feines Punktraster */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(159,179,196,.16) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero::after { /* Lichtschein */
  content: ""; position: absolute; z-index: -1; width: 780px; height: 780px; right: -180px; top: -120px;
  background: radial-gradient(circle, rgba(2,138,210,.28), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 15ch; margin-bottom: .45em; }
.hero-lead { font-size: var(--step-1); line-height: 1.55; color: #c9d7e2; max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 2.6rem 0 0; padding: 0; list-style: none; color: var(--slate-light); font-size: var(--step--1); }
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }

/* Hero-Grafik: das Q aus dem Logo */
.hero-visual { position: relative; width: 100%; max-width: 480px; justify-self: center; aspect-ratio: 1; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.q-ring { fill: none; stroke: #fff; stroke-width: 34; stroke-linecap: butt; stroke-dasharray: 830; stroke-dashoffset: 830; animation: draw 1.6s .25s var(--ease) forwards; }
.q-tail { transform-box: fill-box; opacity: 0; transform: translate(-60px,-60px); animation: tailIn .9s 1.45s var(--ease) forwards; }
.q-glow { opacity: 0; animation: fadeIn 1.2s 2s ease forwards; }
.orbit { fill: none; stroke: rgba(159,179,196,.28); stroke-width: 1.5; stroke-dasharray: 3 9; transform-origin: 240px 240px; animation: spin 90s linear infinite; }
.node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .6s var(--ease) forwards; }
.node circle { fill: var(--ink-2); stroke: rgba(0,197,244,.55); stroke-width: 1.5; }
.node use { color: var(--cyan); }
.node-1 { animation-delay: 2.1s; } .node-2 { animation-delay: 2.3s; } .node-3 { animation-delay: 2.5s; } .node-4 { animation-delay: 2.7s; }
.pulse { fill: var(--cyan); opacity: 0; animation: fadeIn .3s 2.4s forwards; }
.pulse-track { offset-path: path("M 284 276 L 384 378"); animation: travel 2.8s 2.6s ease-in-out infinite; }

.hero-text > * { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.hero-text > *:nth-child(1) { animation-delay: .1s; }
.hero-text > *:nth-child(2) { animation-delay: .25s; }
.hero-text > *:nth-child(3) { animation-delay: .4s; }
.hero-text > *:nth-child(4) { animation-delay: .55s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes tailIn { to { opacity: 1; transform: translate(0,0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* Übergang Hero → Inhalt: Diagonale wie der Q-Strich */
.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 80px); line-height: 0; }
.hero-edge svg { width: 100%; height: 100%; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--slate); font-size: var(--step-1); line-height: 1.55; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker-line { display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--grad); margin-bottom: 1.4rem; transform: skewX(-30deg); }
.center .kicker-line { margin-inline: auto; }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 5rem); list-style: none; margin: 0; padding: 0; }
.service { display: grid; grid-template-columns: 52px 1fr; gap: 1.2rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
.service-icon { width: 52px; height: 52px; border-radius: var(--radius-m); display: grid; place-items: center; background: #e9f5fc; color: var(--blue); transition: background .35s, color .35s, transform .35s var(--ease); }
.service-icon svg { width: 26px; height: 26px; }
.service:hover .service-icon { background: var(--ink); color: var(--cyan); transform: rotate(-6deg); }
.service h3 { margin-bottom: .35rem; }
.service p { margin: 0; color: var(--slate); }

/* ---------- Pakete ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 1.5rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(12,27,37,.35); border-color: #c5d5e1; }
.plan-name { font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); margin: 0 0 .3rem; }
.plan-desc { color: var(--slate); font-size: .95rem; min-height: 4.95em; margin-bottom: 1.4rem; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; font-family: var(--font-head); margin-bottom: .3rem; }
.plan-price strong { font-size: clamp(2.6rem, 2rem + 2vw, 3.3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.plan-price span { color: var(--slate); font-weight: 500; }
.plan-note { font-size: var(--step--1); color: var(--slate); margin-bottom: 1.6rem; min-height: 1.5em; }
.plan-list { list-style: none; margin: 0 0 2rem; padding: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .8rem; flex-grow: 1; }
.plan-list li { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; font-size: .97rem; line-height: 1.5; }
.plan-list svg { width: 20px; height: 20px; color: var(--blue); margin-top: .12em; }
.plan .btn { width: 100%; }

.plan-featured { background: var(--ink); color: #fff; border-color: var(--ink); overflow: hidden; }
.plan-featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.plan-featured::after { content: ""; position: absolute; width: 320px; height: 320px; right: -140px; top: -140px; background: radial-gradient(circle, rgba(0,197,244,.22), transparent 65%); pointer-events: none; }
.plan-featured:hover { border-color: var(--ink); box-shadow: 0 30px 60px -28px rgba(2,138,210,.55); }
.plan-featured .plan-desc, .plan-featured .plan-price span, .plan-featured .plan-note { color: var(--slate-light); }
.plan-featured .plan-list { border-color: rgba(255,255,255,.14); }
.plan-featured .plan-list svg { color: var(--cyan); }
.plan-badge { position: absolute; top: 1.4rem; right: 1.4rem; font-family: var(--font-head); font-size: .75rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; background: rgba(0,197,244,.14); color: var(--cyan); border: 1px solid rgba(0,197,244,.35); }

.plan-custom { background: transparent; border-style: dashed; border-width: 2px; }
.plan-custom .plan-price strong { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.5rem); }
.plans-footnote { text-align: center; color: var(--slate); font-size: var(--step--1); margin-top: 2rem; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.steps.is-visible::after { transform: scaleX(1); }
.step { position: relative; counter-increment: step; padding-right: .5rem; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  background: var(--white); color: var(--ink); border: 2px solid var(--line); margin-bottom: 1.4rem; position: relative; z-index: 1;
  transition: border-color .5s, background-color .5s, color .5s; transition-delay: var(--d, 0s);
}
.steps.is-visible .step::before { border-color: var(--blue); background: var(--ink); color: #fff; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--slate); margin: 0; font-size: .97rem; }

/* ---------- Über mich / Region ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-text p { color: var(--slate); }
.about-text p.lead { color: var(--ink); font-size: var(--step-1); line-height: 1.55; }
.about-points { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .9rem; }
.about-points li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; }
.about-points svg { width: 22px; height: 22px; color: var(--blue); margin-top: .1em; }

.region-card { background: var(--ink); border-radius: var(--radius-l); padding: clamp(1.4rem, 3vw, 2.2rem); color: #fff; position: relative; overflow: hidden; }
.region-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(159,179,196,.13) 1px, transparent 1.2px); background-size: 22px 22px; }
.region-card svg { position: relative; width: 100%; height: auto; }
.region-card figcaption { position: relative; color: var(--slate-light); font-size: var(--step--1); margin-top: .6rem; }
.region-line { fill: none; stroke: url(#regionGrad); stroke-width: 2.5; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.region-area { fill: rgba(2,138,210,.10); stroke: none; opacity: 0; transition: opacity 1.2s ease 1.4s; }
.is-visible .region-line { stroke-dashoffset: 0; }
.is-visible .region-area { opacity: 1; }
.city-dot { fill: var(--cyan); }
.city-ring { fill: none; stroke: var(--cyan); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-visible .city-ring { animation: ripple 3s ease-out infinite; }
.is-visible .city-ring.r2 { animation-delay: 1s; }
.is-visible .city-ring.r3 { animation-delay: 2s; }
.city-label { fill: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
@keyframes ripple { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info p { color: var(--slate); }
.contact-direct { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-direct li { display: flex; gap: .9rem; align-items: center; }
.contact-direct .service-icon { width: 44px; height: 44px; }
.contact-direct .service-icon svg { width: 22px; height: 22px; }
.contact-direct a { font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-direct a:hover { color: var(--blue); }
.contact-direct small { display: block; color: var(--slate); font-size: var(--step--1); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.4rem, 3.5vw, 2.6rem); box-shadow: 0 30px 60px -40px rgba(12,27,37,.3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.field label .opt { font-family: var(--font-body); font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: .78rem .9rem; transition: border-color .2s, background-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d6072' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(2,138,210,.14); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: .85rem; margin-top: .35rem; min-height: 0; }
.field-error:empty { display: none; }

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

.captcha { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: end; }
.captcha-box { display: flex; align-items: center; gap: .5rem; }
.captcha-img { width: 180px; height: 60px; border-radius: var(--radius-s); border: 1.5px solid var(--line); background: var(--paper); }
.captcha-refresh { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: transform .5s var(--ease), border-color .2s; }
.captcha-refresh:hover { border-color: var(--blue); }
.captcha-refresh.spin { transform: rotate(360deg); }
.captcha-refresh svg { width: 20px; height: 20px; }
.captcha .field { margin: 0; }
.captcha input { text-transform: uppercase; letter-spacing: .25em; font-family: var(--font-head); font-weight: 600; }
.captcha-hint { font-size: .82rem; color: var(--slate); margin: .5rem 0 1.1rem; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: .92rem; color: var(--slate); margin: 1.2rem 0; }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--blue); }

.form-status { margin-top: 1.1rem; padding: 0; border-radius: var(--radius-s); font-weight: 500; }
.form-status:not(:empty) { padding: .9rem 1.1rem; }
.form-status.ok { background: #e7f6ee; color: var(--success); }
.form-status.err { background: #fbeceb; color: var(--danger); }
.form .btn-primary { min-width: 220px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--slate-light); padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer-top p { max-width: 30rem; margin: 0; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; align-items: flex-start; }
.footer-nav a, .footer-nav button { color: #fff; text-decoration: none; background: none; border: 0; font: inherit; padding: 0; cursor: pointer; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--cyan); }
.footer-bottom { padding-top: 1.5rem; font-size: var(--step--1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ---------- Cookie-Hinweis ---------- */
.cookie-notice {
  position: fixed; z-index: 150; left: 1rem; right: 1rem; bottom: 1rem; margin-inline: auto; max-width: 560px;
  background: var(--ink); color: #dbe6ee; border-radius: var(--radius-m); padding: 1.2rem 1.3rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08);
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.cookie-notice.is-visible { transform: none; }
.cookie-notice p { margin: 0; font-size: .9rem; line-height: 1.5; }
.cookie-notice strong { color: #fff; font-family: var(--font-head); display: block; margin-bottom: .2rem; }
.cookie-notice a { color: var(--cyan); }
.cookie-notice .btn { padding: .65rem 1.2rem; font-size: .9rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding: calc(var(--header-h) + 3.5rem) 0 5rem; background: var(--white); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-size: var(--step-2); margin-top: 2.6rem; }
.legal h3 { margin-top: 1.8rem; }
.legal p, .legal li { color: #2c3e4d; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .toc { background: var(--paper); border-radius: var(--radius-m); padding: 1.2rem 1.5rem; margin: 1.5rem 0 2rem; }
.legal .toc ol { margin: 0; padding-left: 1.2rem; }
.legal .stand { color: var(--slate); font-size: var(--step--1); margin-top: 3rem; }
mark.todo { background: #fff1a8; color: #5a4600; padding: 0 .25em; border-radius: 3px; }

.result-page { min-height: 100vh; display: grid; place-items: center; background: var(--paper); padding: 2rem; text-align: center; }
.result-page .form { max-width: 520px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; order: -1; margin-bottom: -1rem; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-featured { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white);
    padding: 1rem 1.25rem 1.6rem; box-shadow: 0 20px 40px -20px rgba(12,27,37,.35);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .3s, visibility .3s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a:not(.btn) { color: var(--ink); display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 1rem; width: 100%; padding: .85rem 1.2rem; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-visual { max-width: 220px; }
  .hero-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; }
  .captcha { grid-template-columns: 1fr; }
  .form .btn-primary { width: 100%; }
  .cookie-notice { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem; gap: .8rem; }
  .cookie-notice p { font-size: .84rem; }
  .cookie-notice strong { font-size: .9rem; }
  .plan-desc { min-height: 0; }
  .brand img { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .pulse, .city-ring { display: none; }
}
