/* ==========================================================================
   Office Doktor – Stylesheet
   Farbwelt: Tannengrün / Salbei / warmes Off-White
   Typografie: Plus Jakarta Sans (Überschriften) + Inter (Fließtext)
   ========================================================================== */

/* ---------- Schriften (lokal eingebunden, DSGVO-konform) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
}

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --color-bg:          #FAF9F5;   /* warmes Off-White */
  --color-bg-alt:      #F1EFE8;   /* warmer Stein-Ton für Wechselsektionen */
  --color-surface:     #FFFFFF;
  --color-ink:         #1B2A23;   /* fast-schwarzes Grün für Überschriften */
  --color-body:        #414F48;   /* Fließtext */
  --color-muted:       #64716A;   /* Nebentext */
  --color-accent:      #1F4A3B;   /* Tannengrün */
  --color-accent-hover:#173A2E;
  --color-accent-soft: #E7EDE6;   /* helles Salbei für Icon-Flächen */
  --color-sage:        #8FA796;   /* Salbei */
  --color-border:      #E5E2D8;
  --color-deep:        #16302A;   /* dunkles Grün, Kontakt-Panel */
  --color-on-deep:     #F4F5F0;
  --color-on-deep-muted: #B9C6BD;

  /* Typografie */
  --font-heading: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Abstände & Radien */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --container: 72rem;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(27, 42, 35, 0.05);
  --shadow-md: 0 6px 24px -8px rgba(27, 42, 35, 0.12);
  --shadow-lg: 0 20px 45px -18px rgba(27, 42, 35, 0.22);

  /* Bewegung */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--color-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Bilder gegen versehentliches Ziehen/Markieren schützen */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 550;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.eyebrow-light {
  color: var(--color-sage);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 32ch;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head .section-title {
  margin-inline: auto;
}

.section-head {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 560;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--ease),
              color 200ms var(--ease),
              border-color 200ms var(--ease),
              box-shadow 200ms var(--ease),
              transform 200ms var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: var(--shadow-md);
  }
}

.btn-lg {
  min-height: 3.4rem;
  padding: 1rem 2.2rem;
  font-size: 1.0625rem;
}

.btn-sm {
  min-height: 2.75rem;
  padding: 0.6rem 1.35rem;
  font-size: 0.9375rem;
}

.btn-outline-light {
  color: var(--color-on-deep);
  border: 1px solid rgba(244, 245, 240, 0.35);
}

@media (hover: hover) {
  .btn-outline-light:hover {
    border-color: rgba(244, 245, 240, 0.8);
    background: rgba(244, 245, 240, 0.08);
  }
}

/* Pfeil-Animation im CTA-Button: standardmäßig nur die Pfeilspitze,
   beim Hover zeichnet sich der Schaft weich heraus und der Pfeil
   gleitet mit leichtem Nachfedern nach rechts */
.btn-arrow-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  transition: transform 400ms cubic-bezier(0.34, 1.3, 0.64, 1);
}

.btn-arrow-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.arrow-shaft {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 400ms var(--ease);
}

@media (hover: hover) {
  .btn-arrow:hover .btn-arrow-icon {
    transform: translateX(3px);
  }

  .btn-arrow:hover .arrow-shaft {
    stroke-dashoffset: 0;
  }
}

/* ---------- Icons ---------- */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1.125rem;
  height: 1.125rem;
}

.icon-check {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px -12px rgba(27, 42, 35, 0.15);
}

/* Nur Desktop: Im Hero bleiben Logo + Menüpunkte sichtbar, nur der (doppelte)
   Kontakt-Button wird ausgeblendet – er erscheint erst beim Scrollen.
   Auf Mobil unverändert (CTA liegt im Hamburger-Menü). */
@media (min-width: 48rem) {
  .site-header.nav-collapsed .nav-cta {
    display: none;
  }

  .site-header:not(.nav-collapsed) .nav-cta {
    animation: nav-cta-in 280ms var(--ease);
  }
}

@keyframes nav-cta-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.brand-logo {
  width: 1.4rem;
  height: 1.4rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

/* „Doktor" tritt gegenüber „Office" zurück */
.brand-name-soft {
  font-weight: 500;
  color: var(--color-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--color-body);
  font-weight: 500;
  font-size: 0.9875rem;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

@media (hover: hover) {
  .nav-link:hover {
    color: var(--color-accent);
    background: var(--color-accent-soft);
  }
}

/* Scrollspy: markiert den Menüpunkt der aktuell sichtbaren Sektion */
.nav-link.is-current {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* Mobile-Navigation */
.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  position: absolute;
  left: 50%;
  width: 1.375rem;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 250ms var(--ease), top 250ms var(--ease);
}

.nav-toggle-bar:nth-child(1) { top: calc(50% - 4px); transform: translateX(-50%); }
.nav-toggle-bar:nth-child(2) { top: calc(50% + 3px); transform: translateX(-50%); }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 47.99rem) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1.5rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    display: none;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 0.65rem 0.85rem;
    font-size: 1.0625rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
  }
}

/* ---------- Sektionen ---------- */
.section {
  padding-block: var(--section-pad);
}

.section-alt {
  background: var(--color-bg-alt);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  overflow: clip;
}

/* Dezenter Salbei-Schein hinter dem Porträt */
.hero::before {
  content: "";
  position: absolute;
  top: -14rem;
  right: -10rem;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 167, 150, 0.22), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.15rem, 4.6vw, 3.25rem);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-bottom: 2.25rem;
  font-weight: 550;
  color: var(--color-ink);
  font-size: 0.9875rem;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.hero-note {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* Sternchen-Marker (Anmerkung) – gleiche Farbe wie der umgebende Text */
.note-star {
  color: inherit;
}

/* Porträt */
.hero-portrait {
  justify-self: center;
  width: min(24rem, 100%);
}

.portrait-frame {
  position: relative;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  background: var(--color-accent-soft);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* Punktraster als ruhiges Gestaltungselement hinter der oberen linken Ecke */
.portrait-frame::after {
  content: "";
  position: absolute;
  top: -2.25rem;
  left: -2.75rem;
  width: 8.5rem;
  height: 8.5rem;
  background-image: radial-gradient(var(--color-sage) 1.3px, transparent 1.3px);
  background-size: 16px 16px;
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

.portrait-placeholder,
.portrait-img {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto; /* überschreibt das height-Attribut des Bildes, damit aspect-ratio greift */
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, #DCE4DA 0%, #C4D1C4 100%);
  color: var(--color-accent);
  border: 1px solid rgba(31, 74, 59, 0.12);
}

.portrait-placeholder svg {
  width: 45%;
  opacity: 0.9;
}

.portrait-placeholder span {
  font-size: 0.875rem;
  font-weight: 550;
  color: rgba(31, 74, 59, 0.55);
  letter-spacing: 0.04em;
}

.portrait-card {
  position: absolute;
  left: -1.25rem;
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-muted);
}

.portrait-card strong {
  display: block;
  font-size: 0.9875rem;
  color: var(--color-ink);
  font-weight: 600;
}

.portrait-card-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
  flex-shrink: 0;
}

@media (max-width: 63.99rem) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    width: min(20rem, 85%);
    margin-top: 1rem;
  }
}

/* ---------- Kennen Sie das? (Sticky-Scroll) ---------- */
.probleme-pin {
  position: relative;
}

.probleme-sticky {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-pad);
}

/* Nur Desktop: konzentrische Wellen + weicher Schein hinter dem Panel.
   Auf Mobil bleibt der Block ohne Deko. */
@media (min-width: 48rem) {
  /* Konzentrische Wellen, die nach außen größer werden – greift den Gedanken
     „kleine Probleme, die im Alltag groß werden" bildhaft auf. */
  .probleme-sticky::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-radial-gradient(circle at 50% 46%,
      transparent 0 89px,
      rgba(143, 167, 150, 0.32) 89px 90.5px);
    -webkit-mask-image: radial-gradient(circle at 50% 46%, transparent 0 10%, #000 30%, transparent 68%);
    mask-image: radial-gradient(circle at 50% 46%, transparent 0 10%, #000 30%, transparent 68%);
  }

  /* weicher Schein im Zentrum der Wellen */
  .probleme-sticky::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(34rem 27rem at 50% 46%, rgba(143, 167, 150, 0.12), transparent 60%);
  }
}

/* Desktop: Der Block wird angepinnt; die zusätzliche Höhe des Abschnitts
   entspricht der Scroll-Strecke, über die die vier Punkte durchlaufen. */
@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  html.js .probleme-pin {
    height: 260vh;
  }

  html.js .probleme-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: var(--section-pad);
  }
}

.pain-panel {
  max-width: 42rem;
  margin-inline: auto;
  padding: 0.85rem 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1rem;
  margin-inline: -1rem;
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-ink);
  transition: background-color 220ms var(--ease);
}

/* Aktivierung läuft auf allen Geräten über die Scroll-Position (kein Hover) */
.pain-list li.is-active {
  background: var(--color-accent-soft);
}

.pain-list li + li {
  border-top: 1px solid var(--color-border);
}

.pain-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--color-sage);
  transition: background-color 220ms var(--ease), transform 220ms var(--ease);
}

.pain-list li.is-active::before {
  background: var(--color-accent);
  transform: scale(1.3);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  flex-shrink: 0;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}

.service-card.is-active .service-icon {
  background: var(--color-accent);
  color: #fff;
}

@media (hover: hover) {
  .service-card:hover .service-icon {
    background: var(--color-accent);
    color: #fff;
  }
}

/* Icon-Animationen beim Karten-Hover */

/* Störungen: der Schraubenschlüssel wackelt kurz hin und her */
@keyframes wrench-wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-14deg); }
  45% { transform: rotate(11deg); }
  70% { transform: rotate(-7deg); }
  85% { transform: rotate(4deg); }
}

.service-card.is-active .svc-wrench {
  animation: wrench-wiggle 900ms var(--ease);
  transform-origin: 50% 50%;
}

@media (hover: hover) {
  .service-card:hover .svc-wrench {
    animation: wrench-wiggle 900ms var(--ease);
    transform-origin: 50% 50%;
  }
}

/* Einrichtung: die Regler gleiten weich hin und her –
   gleiche Geschwindigkeit, nur zeitlich versetzt gestartet */
@keyframes slider-a {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3px); }
}

@keyframes slider-b {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

@keyframes slider-c {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3.5px); }
}

.service-card.is-active .sl-a { animation: slider-a 1.6s ease-in-out infinite; }
.service-card.is-active .sl-b { animation: slider-b 1.6s ease-in-out -0.55s infinite; }
.service-card.is-active .sl-c { animation: slider-c 1.6s ease-in-out -1.1s infinite; }

@media (hover: hover) {
  .service-card:hover .sl-a { animation: slider-a 1.6s ease-in-out infinite; }
  .service-card:hover .sl-b { animation: slider-b 1.6s ease-in-out -0.55s infinite; }
  .service-card:hover .sl-c { animation: slider-c 1.6s ease-in-out -1.1s infinite; }
}

/* Optimierung: der Pfeil zeichnet sich von unten links nach oben rechts,
   die Pfeilspitze blendet zum Schluss ein */
.tr-line {
  stroke-dasharray: 48;
  stroke-dashoffset: 0;
}

@keyframes draw-line {
  from { stroke-dashoffset: 48; }
  to { stroke-dashoffset: 0; }
}

@keyframes fade-head {
  0%, 70% { opacity: 0; }
  100% { opacity: 1; }
}

.service-card.is-active .tr-line { animation: draw-line 900ms var(--ease) both; }
.service-card.is-active .tr-head { animation: fade-head 900ms linear both; }

@media (hover: hover) {
  .service-card:hover .tr-line { animation: draw-line 900ms var(--ease) both; }
  .service-card:hover .tr-head { animation: fade-head 900ms linear both; }
}

.pain-conclusion {
  max-width: 46rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

/* ---------- Leistungen ---------- */
#leistungen {
  position: relative;
  isolation: isolate;
}

/* Punktraster als ruhiges Gestaltungselement (Prinzip wie im Hero) */
#leistungen::before {
  content: "";
  position: absolute;
  top: 4.5rem;
  right: 4%;
  width: 8.5rem;
  height: 8.5rem;
  background-image: radial-gradient(var(--color-sage) 1.3px, transparent 1.3px);
  background-size: 16px 16px;
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 63.99rem) {
  #leistungen::before {
    display: none;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}

.services-note {
  max-width: 40rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  text-wrap: balance;
}


.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease), border-color 220ms var(--ease);
}

.service-card.is-active {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: #D5DCCF;
}

@media (hover: hover) {
  .service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: #D5DCCF;
  }
}

.service-card h3 {
  font-size: 1.4rem;
}

.service-card > p {
  font-size: 0.9875rem;
}

/* Kennzeichnung, dass die Aufzählungen Beispiele sind – dezent, sekundär */
.service-examples-label {
  margin-bottom: 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8B948D;
}

.check-list {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.check-list li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.9875rem;
  color: var(--color-body);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background-color: var(--color-accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4A3B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.6rem;
}

/* ---------- Zusammenarbeit (Schritte) ---------- */
#zusammenarbeit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Weiche Farbflächen als ruhige Hintergrund-Elemente */
#zusammenarbeit::before,
#zusammenarbeit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

#zusammenarbeit::before {
  top: -9rem;
  left: -9rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(143, 167, 150, 0.25), transparent 65%);
}

#zusammenarbeit::after {
  bottom: -11rem;
  right: -7rem;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, rgba(31, 74, 59, 0.10), transparent 65%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.15rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}

.step.is-active .step-number {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  transform: scale(1.08);
}

@media (hover: hover) {
  .step:hover .step-number {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    transform: scale(1.08);
  }
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9875rem;
}

/* ---------- Kundenstimmen (Slider) ---------- */
.testi-slider {
  position: relative;
  max-width: 60rem;
  margin-inline: auto;
}

/* Fenster zeigt eine Bewertung; die nächste lugt rechts zu ~1/3 hervor */
.testi-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.testi-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 500ms var(--ease);
  will-change: transform;
}

.testi-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.testi-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testi-photo,
.testi-photo-img {
  width: 100%;
  height: auto; /* überschreibt das height-Attribut, damit aspect-ratio greift */
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.testi-photo {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #DCE4DA 0%, #BFCDBF 100%);
  border: 1px solid rgba(31, 74, 59, 0.12);
  color: rgba(31, 74, 59, 0.4);
}

.testi-photo svg {
  width: 55%;
}

.testi-name {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.testi-name strong {
  display: block;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 1.0625rem;
}

.testi-role {
  display: block;
  margin-top: 0.15rem;
  color: var(--color-accent);
  font-weight: 550;
}

.testimonial-task {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.testi-mark {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
  opacity: 0.9;
}

.testi-quote {
  margin: 0;
}

.testi-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.testi-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.testi-btn {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.testi-btn:disabled {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-sage);
  box-shadow: var(--shadow-sm);
  cursor: not-allowed;
}

@media (hover: hover) {
  .testi-btn:not(:disabled):hover {
    background: #fff;
    border-color: var(--color-accent);
    color: var(--color-accent);
  }
}

/* Desktop: aktive Bewertung ~2/3 breit, die nächste lugt rechts zu ~1/3 hervor */
@media (min-width: 48rem) {
  html.js .testi-slide {
    flex-basis: 68%;
  }
}

/* Mobil: kein Slider, alle Bewertungen gestapelt (kein Button) */
@media (max-width: 47.99rem) {
  .testi-track {
    flex-direction: column;
    transform: none !important;
  }

  .testi-slide {
    flex: 1 1 auto;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .testi-media {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .testi-photo,
  .testi-photo-img {
    width: 4.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .testi-photo svg {
    width: 60%;
    margin-top: 12%;
  }

  .testi-nav {
    display: none;
  }
}

/* ---------- Erwartungen ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.value {
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.value::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  transition: width 350ms var(--ease);
}

.value.is-active::before {
  width: 100%;
}

@media (hover: hover) {
  .value:hover::before {
    width: 100%;
  }
}

.value h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  transition: color 220ms var(--ease);
}

.value.is-active h3 {
  color: var(--color-accent);
}

@media (hover: hover) {
  .value:hover h3 {
    color: var(--color-accent);
  }
}

.value p {
  font-size: 0.9875rem;
}

/* ---------- Preise ---------- */
#preise {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.price-card {
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Punktraster hinter der oberen linken Ecke der Preiskarte */
.price-card::before {
  content: "";
  position: absolute;
  top: -2.25rem;
  left: -2.75rem;
  width: 8.5rem;
  height: 8.5rem;
  background-image: radial-gradient(var(--color-sage) 1.3px, transparent 1.3px);
  background-size: 16px 16px;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.price-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.price-option {
  padding-inline: 1.25rem;
}

.price-option + .price-option {
  border-left: 1px solid var(--color-border);
}

@media (max-width: 39.99rem) {
  .price-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .price-option + .price-option {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
  }
}

.price-amount {
  font-family: var(--font-heading);
  color: var(--color-ink);
}

.price-value {
  font-size: clamp(2.25rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-unit {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.0625rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.price-tax {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.price-list {
  gap: 0.9rem;
}

.price-list li {
  font-size: 1rem;
}

/* ---------- Über mich ---------- */
#ueber-mich {
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-portrait {
  position: relative;
  width: min(19rem, 100%);
  justify-self: center;
}

.about-copy .section-title {
  margin-bottom: 1.25rem;
}

.about-copy p + p {
  margin-top: 1rem;
}

@media (max-width: 63.99rem) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    width: min(15rem, 70%);
  }
}

/* ---------- Braunschweig-Band ---------- */
.local-band {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(14rem, 26vw, 20rem);
  padding: clamp(3rem, 6vw, 4.5rem) 1.25rem;
  background: linear-gradient(155deg, #1D4237 0%, var(--color-deep) 70%);
  overflow: hidden;
}

.local-band-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Panorama-Foto: volle Farben (warme goldene Akzente bleiben erhalten);
   etwas höher als das Band, damit die Parallax-Bewegung keine Ränder freilegt */
.local-band-img {
  position: absolute;
  left: 0;
  top: -24px;
  width: 100%;
  height: calc(100% + 48px);
  object-fit: cover;
  opacity: 1;
  will-change: transform;
}

/* Nur ein dezenter Schleier für die Textlesbarkeit – dunkler unten, hell oben,
   damit der warme Himmel und die goldenen Fassaden sichtbar bleiben */
.local-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 38, 32, 0.15) 0%, rgba(18, 38, 32, 0.30) 45%, rgba(18, 38, 32, 0.55) 100%);
}

.local-band-text {
  position: relative;
  max-width: 42rem;
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}

.local-band-text strong {
  color: #fff;
  font-weight: 650;
}

/* Variante 2 – mittiger Fokus: dunkler in der Mitte (hinter dem Text),
   zu den Seiten heller, sodass das Originalbild dort mehr durchscheint */
.local-band--focus .local-band-media::after {
  background:
    radial-gradient(ellipse 58% 130% at 50% 50%,
      rgba(16, 34, 28, 0.86) 0%,
      rgba(16, 34, 28, 0.66) 38%,
      rgba(16, 34, 28, 0.28) 68%,
      rgba(16, 34, 28, 0.05) 100%),
    linear-gradient(rgba(16, 34, 28, 0.10), rgba(16, 34, 28, 0.28));
}

/* farbig markierter Teil – in unserer Marken-Grünfarbe (Salbei), damit er auf
   dem dunklen Panorama lesbar bleibt (reines Tannengrün wäre dort unsichtbar) */
.local-band--focus .local-band-text strong {
  color: var(--color-sage);
}

/* ---------- Kontakt ---------- */
.section-contact {
  padding-top: var(--section-pad);
}

.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  background:
    radial-gradient(60rem 30rem at 85% -20%, rgba(143, 167, 150, 0.18), transparent 60%),
    var(--color-deep);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  color: var(--color-on-deep-muted);
}

.contact-panel .section-title {
  color: var(--color-on-deep);
  margin-bottom: 1rem;
}

/* Bild-Hintergrund im Kontakt-Panel */
.contact-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Schleier über dem Bild, damit weißer Text lesbar bleibt */
.contact-panel--bild::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(22, 48, 42, 0.5), rgba(22, 48, 42, 0.72));
}

/* Mobil: eigenes Hochformat-Foto (cta_mobile.jpg), etwas leichterer Schleier,
   damit die warme Bildstimmung sichtbar bleibt – Text bleibt lesbar */
@media (max-width: 47.99rem) {
  .contact-panel--bild::before {
    background: linear-gradient(rgba(22, 48, 42, 0.42), rgba(22, 48, 42, 0.74));
  }
}

/* Temporäres Label für den Varianten-Vergleich */
.cta-variant-label {
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-panel + .cta-variant-label {
  margin-top: 3rem;
}

/* ---------- TEMPORÄR: Logo-Varianten ---------- */
.logo-showcase {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.logo-showcase-title {
  margin: 0.25rem 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}

.logo-variant {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.logo-variant-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.logo-stage {
  display: grid;
  place-items: center;
  min-height: 7rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.logo-stage--light {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.logo-stage--dark {
  background: var(--color-deep);
}

/* Gemeinsame Logo-Bausteine */
.od-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
}

.od-word {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  white-space: nowrap;
}

.od-on-dark .od-word {
  color: var(--color-on-deep);
}

/* Variante 1 – Kachel mit Plus */
.od-tile {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
}

.od-tile svg {
  width: 1.35rem;
  height: 1.35rem;
}

.od-on-dark .od-tile {
  background: var(--color-on-deep);
  color: var(--color-accent);
}

/* Variante 2 – reine Wortmarke mit Akzent + Plus */
.od-v2 .od-word {
  font-size: 1.5rem;
}

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

.od-on-dark .od-accent {
  color: var(--color-sage);
}

.od-plus {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9em;
  vertical-align: 0.35em;
  margin-left: 0.05em;
}

.od-on-dark .od-plus {
  color: var(--color-sage);
}

/* Variante 3 – rundes Emblem mit Monogramm */
.od-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.od-badge-mono {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.od-badge-plus {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--color-sage);
  color: var(--color-deep);
  border: 2px solid var(--color-surface);
}

.od-badge-plus svg {
  width: 0.7rem;
  height: 0.7rem;
}

.od-on-dark .od-badge {
  background: var(--color-on-deep);
}

.od-on-dark .od-badge-mono {
  color: var(--color-accent);
}

.od-on-dark .od-badge-plus {
  border-color: var(--color-deep);
}

/* Zwischenüberschrift für die zweite Varianten-Reihe */
.logo-subhead {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  font-size: 1.15rem;
  color: var(--color-muted);
  font-weight: 600;
}

/* Variante 4 – Kachel mit Monogramm */
.od-tile--mono {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Variante 5 – Wortmarke mit Akzentpunkt */
.od-dot {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin-left: 0.12em;
  border-radius: 50%;
  background: var(--color-accent);
  vertical-align: 0.06em;
}

.od-on-dark .od-dot {
  background: var(--color-sage);
}

/* Variante 6 – gestapelte Wortmarke */
.od-stack {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.od-stack-top {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.28rem;
  margin-left: 0.05em;
}

.od-stack-bottom {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.od-on-dark .od-stack-top {
  color: var(--color-sage);
}

.od-on-dark .od-stack-bottom {
  color: var(--color-on-deep);
}

/* Runde Kachel-Variante */
.od-tile--round {
  border-radius: 50%;
}

/* Icon ohne Kachel (offen, direkt in Akzentfarbe) */
.od-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--color-accent);
}

.od-mark svg {
  width: 100%;
  height: 100%;
}

.od-on-dark .od-mark {
  color: var(--color-on-deep);
}

/* Wortmarke mit stärkerem Fokus auf „Office" (Doktor tritt zurück) */
.od-word--fo .od-soft {
  font-weight: 500;
  color: var(--color-muted);
}

.od-on-dark .od-word--fo .od-soft {
  color: var(--color-on-deep-muted);
}

.contact-sub {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 700;
  color: var(--color-on-deep);
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  transition: color 200ms var(--ease);
}

@media (hover: hover) {
  .contact-phone:hover {
    color: #fff;
  }
}

.contact-phone .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-sage);
}

.contact-free {
  margin-top: 0.75rem;
  margin-bottom: 2.25rem;
  font-size: 0.9375rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.contact-mail {
  font-size: 0.9375rem;
}

.contact-mail a {
  color: var(--color-on-deep);
  font-weight: 550;
  white-space: nowrap; /* E-Mail-Adresse nie mitten im Wort umbrechen */
  text-decoration: underline;
  text-decoration-color: rgba(244, 245, 240, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms var(--ease);
}

@media (hover: hover) {
  .contact-mail a:hover {
    text-decoration-color: var(--color-on-deep);
  }
}

/* Mobil: die drei Kontakt-Buttons gleich groß, jeweils volle Breite */
@media (max-width: 30rem) {
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
  }

  .contact-actions .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 2.5rem 2rem;
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 24rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--color-body);
  font-weight: 550;
  font-size: 0.9375rem;
  transition: color 180ms var(--ease);
}

@media (hover: hover) {
  .footer-contact a:hover {
    color: var(--color-accent);
  }
}

.footer-address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--color-body);
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  gap: 0.5rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--color-body);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

@media (hover: hover) {
  .footer-nav a:hover {
    color: var(--color-accent);
    background: var(--color-accent-soft);
  }
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ---------- Mobile Schnellkontakt-Buttons ---------- */
.quick-actions {
  display: none;
}

@media (max-width: 47.99rem) {
  .quick-actions {
    position: fixed;
    left: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    gap: 0.6rem;
  }

  .quick-action {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transition: transform 200ms var(--ease);
  }

  .quick-action:active {
    transform: scale(0.92);
  }

  .quick-action-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 46rem;
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

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

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform 250ms var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9875rem;
  max-width: 40rem;
}

.faq-mark {
  color: var(--color-accent);
  font-weight: 600;
  background: var(--color-accent-soft);
  padding: 0.05em 0.32em;
  border-radius: 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (hover: hover) {
  .faq-question:hover {
    color: var(--color-accent);
  }
}

/* ---------- 404-Seite ---------- */
.error-page {
  padding-block: clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-sage);
  opacity: 0.55;
}

.error-page h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.error-text {
  max-width: 28rem;
  margin: 0 auto 2.25rem;
}

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.legal-body {
  max-width: 42rem;
  margin-inline: auto;
}

.legal-body h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-bottom: 2rem;
}

.legal-body h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.legal-body p + p {
  margin-top: 0.85rem;
}

.legal-placeholder {
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  background: var(--color-accent-soft);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  color: var(--color-ink);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-weight: 550;
  font-size: 0.9375rem;
  min-height: 2.75rem;
}

@media (hover: hover) {
  .legal-back:hover {
    color: var(--color-accent-hover);
  }
}

/* ---------- Scroll-Reveal ----------
   Nur aktiv, wenn JS läuft (html.js) und keine reduzierte Bewegung gewünscht ist.
   Ohne JS ist alles sofort sichtbar. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  }

  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  html.js [data-reveal][data-reveal-delay="1"] { transition-delay: 90ms; }
  html.js [data-reveal][data-reveal-delay="2"] { transition-delay: 180ms; }
  html.js [data-reveal][data-reveal-delay="3"] { transition-delay: 270ms; }
  html.js [data-reveal][data-reveal-delay="4"] { transition-delay: 360ms; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
