/* ==========================================================================
   Digitalwerkstatt Thalfang – Website-Styles
   Basis: Design System „Digitalwerkstatt Thalfang“ (Tokens unverändert übernommen)
   ========================================================================== */

/* ---------- Schrift (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens: Farbe (Hell = Standard) ---------- */
:root,
[data-theme="light"] {
  --paper: #fbfaf6;
  --surface: #ffffff;
  --surface-sunken: #f2f1ec;
  --surface-inverse: #021c60;
  --glass: rgba(251, 250, 246, 0.9);
  --line: #e3e4ea;
  --line-strong: #858ea6;
  --ink: #0a1a4a;
  --ink-muted: #4a5676;
  --ink-subtle: #5d6782;
  --ink-inverse: #ffffff;
  --brand: #1d64fa;
  --brand-hover: #1553d6;
  --brand-bright: #2f7afe;
  --brand-soft: #bfdafe;
  --brand-tint: #e8f1ff;
  --brand-deep: #021c60;
  --on-brand: #ffffff;
  --on-brand-deep: #ffffff;
  --link: var(--brand-hover);
  --focus: #1d64fa;
  --success: #11734b;
  --success-tint: #e3f4ec;
  --warning: #9a5a00;
  --warning-tint: #fbf0dc;
  --danger: #c4302b;
  --danger-tint: #fbe7e5;
  --shadow-sm: 0 1px 2px rgba(2, 28, 96, 0.06);
  --shadow-md: 0 4px 12px -4px rgba(2, 28, 96, 0.12);
  --shadow-lg: 0 16px 32px -12px rgba(2, 28, 96, 0.18);
}

/* ---------- Tokens: Raster, Formen, Motion ---------- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --blur-nav: 12px;
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-reveal: 400ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --container: 1200px;
  --container-narrow: 760px;
  --navbar-height: 72px;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: var(--space-4);
  --section-y: var(--space-8);
}

@media (min-width: 720px) {
  :root { --gutter: var(--space-7); }
}

@media (min-width: 960px) {
  :root { --section-y: var(--space-9); }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--navbar-height) + var(--space-4));
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--brand-deep);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: var(--brand-soft);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--on-brand);
}

/* ---------- Typografie ---------- */
.display-xl,
.hero h1 {
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 720px) {
  .hero h1 {
    font-size: 48px;
    line-height: 54px;
    letter-spacing: -0.025em;
  }
}

@media (min-width: 1100px) {
  .hero h1 {
    font-size: 64px;
    line-height: 68px;
    letter-spacing: -0.03em;
  }

  .hero-compact h1 {
    font-size: 48px;
    line-height: 54px;
    letter-spacing: -0.025em;
  }
}

h2,
.h2 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3,
.h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 19px;
  line-height: 30px;
  color: var(--ink-muted);
  max-width: 62ch;
}

.body-sm {
  font-size: 14px;
  line-height: 22px;
}

.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: var(--space-3);
}

.caption {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.accent {
  color: var(--brand);
}

.muted {
  color: var(--ink-muted);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.section {
  padding-block: var(--section-y);
}

.section-sunken {
  background: var(--surface-sunken);
  border-block: 1px solid var(--line);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-7);
}

.section-header .lead {
  margin-top: var(--space-3);
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  max-width: none;
}

.section-header-row > div {
  max-width: 720px;
}

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .split-reverse > :first-child {
    order: 2;
  }
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose {
  max-width: 68ch;
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--glass);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(var(--blur-nav));
  backdrop-filter: blur(var(--blur-nav));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--navbar-height);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  padding-block: var(--space-2);
}

.brand-logo {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav a {
  position: relative;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  transition:
    color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-sunken);
}

.site-nav a.is-active {
  color: var(--brand);
}

.site-nav .nav-cta {
  margin-left: var(--space-3);
  padding: var(--space-2) var(--space-4);
  color: var(--on-brand);
  background: var(--brand);
}

.site-nav .nav-cta:hover {
  color: var(--on-brand);
  background: var(--brand-hover);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.nav-toggle:hover {
  border-color: var(--line-strong);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--navbar-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-4) var(--gutter) var(--space-5);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: var(--space-3) var(--space-4);
    font-size: 16px;
  }

  .site-nav .nav-cta {
    margin: var(--space-3) 0 0;
  }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.button-sm {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
}

.button-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
  box-shadow: var(--shadow-md);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  color: var(--ink-muted);
}

.button-ghost:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

.button-on-inverse {
  background: var(--surface);
  color: var(--ink);
}

.button-on-inverse:hover {
  background: var(--brand-tint);
  color: var(--ink);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.button.is-loading {
  opacity: 0.7;
  cursor: progress;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

.text-link:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--space-7) var(--section-y);
}

@media (min-width: 960px) {
  .hero {
    padding-top: var(--space-8);
  }
}

.hero-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-8);
  }
}

.hero .lead {
  margin-top: var(--space-5);
}

.hero .button-row {
  margin-top: var(--space-6);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-points svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.media-md {
  border-radius: var(--radius-md);
}

.hero-compact {
  padding-bottom: var(--space-7);
}

.hero-compact .hero-copy {
  max-width: 820px;
}

/* ---------- Karten ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.card-lg {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.card h3 + p,
.card h3 + ul {
  margin-top: var(--space-2);
}

.card p {
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

a.card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.icon-tile svg {
  width: 24px;
  height: 24px;
}

.feature-card:hover .icon-tile {
  background: var(--brand);
  color: var(--on-brand);
}

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card .text-link {
  margin-top: auto;
  padding-top: var(--space-4);
}

/* ---------- Ablauf ---------- */
.steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.step {
  counter-increment: step;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
}

.step-number::before {
  content: counter(step);
}

/* ---------- Pakete ---------- */
.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card.is-featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--link);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.price-card-head h3 {
  margin: 0;
}

.card .price,
.price {
  margin-top: var(--space-4);
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
}

.check-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-5) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 22px;
}

.check-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--space-3);
  color: var(--ink);
}

.check-list svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand);
}

.price-card .button {
  margin-top: auto;
}

.price-card .check-list {
  margin-bottom: var(--space-6);
}

.note {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  color: var(--ink);
  font-size: 14px;
  line-height: 22px;
}

.note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--link);
  margin-top: 1px;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--brand);
}

.faq summary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ink-subtle);
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 68ch;
  padding-bottom: var(--space-5);
  color: var(--ink-muted);
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-8);
  }
}

.contact-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: 0;
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.contact-item .icon-tile {
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
}

.contact-item .icon-tile svg {
  width: 20px;
  height: 20px;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-muted);
}

.contact-item a,
.contact-item span {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--link);
  text-decoration: underline;
}

.form {
  display: grid;
  gap: var(--space-5);
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink);
}

.field .optional {
  font-weight: 500;
  color: var(--ink-subtle);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-subtle);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink-muted);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--brand);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-subtle);
}

.checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
  cursor: pointer;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.checkbox input[aria-invalid="true"] {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.form-footer .caption {
  color: var(--ink-subtle);
}

.honeypot {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 22px;
}

.alert:empty {
  display: none;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-error {
  background: var(--danger-tint);
  color: var(--danger);
}

.success-state {
  text-align: left;
}

.success-state .icon-tile {
  background: var(--success-tint);
  color: var(--success);
}

.success-state p {
  margin-top: var(--space-2);
  color: var(--ink-muted);
}

.success-state .button {
  margin-top: var(--space-5);
}

/* ---------- Über uns ---------- */
.person {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 720px) {
  .person {
    grid-template-columns: 220px 1fr;
    gap: var(--space-6);
  }
}

.person-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: var(--surface-sunken);
  color: var(--ink-subtle);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.person-photo svg {
  width: 32px;
  height: 32px;
}

.person-role {
  margin-top: var(--space-1);
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
}

.person blockquote {
  margin: var(--space-4) 0 0;
  font-size: 19px;
  line-height: 30px;
  color: var(--ink);
}

/* ---------- CTA-Band (der eine invertierte Block) ---------- */
.cta-band {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-7) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface-inverse);
  color: var(--ink-inverse);
}

@media (min-width: 720px) {
  .cta-band {
    padding: var(--space-8) var(--space-7);
  }
}

@media (min-width: 960px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    gap: var(--space-7);
  }
}

.cta-band h2 {
  color: var(--ink-inverse);
}

.cta-band p {
  margin-top: var(--space-3);
  color: var(--ink-inverse);
  opacity: 0.86;
  max-width: 60ch;
}

/* ---------- Rechtliches ---------- */
.legal h2 {
  margin-top: var(--space-7);
  font-size: 22px;
  line-height: 30px;
}

.legal h3 {
  margin-top: var(--space-5);
  font-size: 17px;
  line-height: 26px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal ul {
  margin-top: var(--space-3);
  color: var(--ink-muted);
}

.legal ul {
  padding-left: var(--space-5);
}

.legal li + li {
  margin-top: var(--space-1);
}

.legal address {
  font-style: normal;
}

.legal .card {
  margin-top: var(--space-4);
}

.legal .card p {
  font-size: 16px;
  line-height: 26px;
  margin-top: 0;
}

.legal-meta {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-subtle);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section-y);
  padding-block: var(--space-7) var(--space-6);
  background: var(--surface-sunken);
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 22px;
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-brand p {
  margin-top: var(--space-4);
  max-width: 36ch;
  color: var(--ink-muted);
}

.footer-title {
  margin-bottom: var(--space-3);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.footer-list {
  display: grid;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.footer-list a,
.footer-list button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-muted);
  text-decoration: none;
  text-align: left;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-list a:hover,
.footer-list button:hover {
  color: var(--link);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-subtle);
}

.page-legal .site-footer,
.site-footer.no-gap {
  margin-top: 0;
}

/* ---------- Cookie-Banner & Dialog ---------- */
.cookie-banner {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 60;
  display: flex;
  justify-content: center;
}

.cookie-panel {
  display: grid;
  gap: var(--space-4);
  width: 100%;
  max-width: 720px;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.cookie-panel strong {
  font-size: 16px;
}

.cookie-panel p {
  margin-top: var(--space-1);
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.cookie-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 28, 96, 0.4);
}

.cookie-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2 * var(--space-4));
  overflow: auto;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.cookie-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.cookie-dialog-header h2 {
  font-size: 22px;
  line-height: 30px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.cookie-option p {
  margin-top: var(--space-1);
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
}

.cookie-dialog .cookie-actions {
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  margin-top: 2px;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.switch input:disabled {
  cursor: not-allowed;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-out);
}

.switch input:checked + span {
  background: var(--brand);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.switch input:disabled + span {
  opacity: 0.45;
}

.switch input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Reveal (optional, höchstens einmal pro Sektion) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 959px) {
  .contact-grid > .card {
    order: -1;
  }
}
