/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --ink: #1E1D1B;
  --ink-soft: #55524B;
  --ink-faint: #706C64;
  --paper: #F1EFE8;
  --paper-raised: #FFFFFF;
  --line: #D9D4C8;
  --line-strong: #B9B3A4;
  --teal: #2B5F5A;
  --teal-dark: #1D4441;
  --teal-tint: #E4EDEC;
  --brass: #96703F;
  --ok: #3B6B3E;

  --radius-sm: 6px;
  --radius-md: 12px;

  --max-width: 1140px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-space: clamp(40px, 5vw, 64px);
  --content-gap: clamp(24px, 3vw, 32px);
  --column-gap: clamp(24px, 4vw, 40px);
  --card-space: clamp(20px, 2.5vw, 24px);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 2.9rem);
  --step-4: clamp(2.6rem, 2rem + 3vw, 4rem);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); }
a:not(.btn) { text-underline-offset: 0.18em; }

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

ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

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

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

section {
  padding-block: var(--section-space);
}
section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 56ch;
  margin-bottom: var(--content-gap);
}

.section-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 1em;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
}

/* ==========================================================================
   Buttons & badges
   ========================================================================== */
.btn {
  justify-content: center;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--teal);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.text-link { font-weight: 600; text-decoration-thickness: 1px; }
.text-link span { display: inline-block; margin-left: 0.3em; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand img { width: 230px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.main-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.main-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1000px) {
  .site-header .container { padding-block: 12px; }
  .brand { min-height: 50px; align-items: center; }
  .brand img { width: min(200px, 52vw); }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    height: calc(100dvh - 74px);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px var(--gutter);
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow-y: auto;
  }
  .main-nav a:not(.btn) { font-size: 1.1rem; }
  body.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: var(--section-space);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: center;
}
.hero h1 { font-size: clamp(2.35rem, 4.3vw, 3.6rem); margin-bottom: 0.5em; }
.hero h1 { text-wrap: balance; }
.hero .lede { margin-bottom: 24px; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-emergency {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-emergency svg { width: 18px; height: 18px; flex: none; }

.hero-photo {
  margin: 0;
  background: #E2E5DC;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.photo-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--teal-dark);
}
.photo-placeholder svg { width: 36px; height: 36px; opacity: 0.65; }
.photo-placeholder small { color: var(--ink-soft); }
.hero-photo > .photo-placeholder,
.hero-photo > img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.hero-photo > .hero-team-photo { aspect-ratio: 4 / 3; object-fit: contain; }
.hero-photo figcaption {
  padding: 14px 20px;
  background: var(--teal-dark);
  color: #E4EDEC;
  font-size: 0.9rem;
}
.hero-photo figcaption span { display: block; font-size: 1.15rem; font-weight: 600; color: white; margin-bottom: 4px; }
.hero-photo .image-note { display: block; margin-top: 10px; font-size: 0.72rem; color: #C5DCD6; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo > .photo-placeholder,
  .hero-photo > img { aspect-ratio: 16 / 10; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 2rem; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--content-gap);
}
.service-card {
  min-width: 0;
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.service-photo { position: relative; margin: 0; }
.service-photo img {
  width: 100%;
  height: clamp(220px, 23vw, 280px);
  object-fit: cover;
  object-position: center 60%;
}
.service-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: rgba(29, 68, 65, 0.92);
  color: white;
  font-size: 0.7rem;
}
.service-content { padding: clamp(24px, 3vw, 36px); }
.service-card.is-primary {
  border-color: transparent;
  background: var(--teal-tint);
}
.service-card h3 { font-size: var(--step-1); margin-bottom: 0.5em; }
.service-card .service-kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.6em;
}
.service-card ul { list-style: none; padding: 0; margin: 1.2em 0 0; }
.service-card li {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.service-card li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--teal); }
.service-group { margin-top: 24px; }
.service-group h4 { font-family: var(--font-body); font-size: 1rem; }
.service-group p { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.7; }
.service-note { max-width: none; margin: 28px 0 0; padding-left: 18px; border-left: 3px solid var(--teal); font-weight: 500; }

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Process strip (legitimate sequence -> numbered) */
.process {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  border-top: 2px solid var(--line);
  padding: 20px 0 0;
}
.process-step .num {
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.6em;
}
.process-step h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0 0 0.3em;
}
.process-step p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 760px) {
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .process { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Arbeitsweise (system/documentation)
   ========================================================================== */
.method { background: var(--paper-raised); }
.method .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--content-gap);
  align-items: center;
}
.method-copy { max-width: 76ch; }
.method-copy h2, .section-head > :last-child { margin-bottom: 0; }
.app-demo { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: white; box-shadow: 0 16px 40px rgba(30,29,27,0.06); }
.app-demo-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 16px 22px; color: var(--teal-dark); font-size: 0.85rem; border-bottom: 1px solid var(--line); }
.app-demo-heading span:first-child { font-weight: 600; }
.app-demo > video { display: block; width: 100%; height: auto; object-fit: contain; background: var(--paper); }
.app-demo figcaption { padding: 22px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.app-demo figcaption p { margin: 8px 0 0; color: var(--ink-soft); }
.method-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.method-points li {
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
  margin-bottom: 0;
}
.method-points svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--teal); }
.method-points strong { display: block; color: var(--ink); }
.method-points span.desc { color: var(--ink-soft); font-size: 0.94rem; }

.protocol-mock {
  background: var(--ink);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 28px);
  color: #EDEBE3;
}
.protocol-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #A7A398;
  border-bottom: 1px solid #38362F;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.protocol-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding-block: 8px;
  border-bottom: 1px dashed #38362F;
}
.protocol-row:last-child { border-bottom: none; }
.protocol-row .label { color: #A7A398; }
.protocol-row .val { color: #EDEBE3; overflow-wrap: anywhere; }
.protocol-row .status {
  justify-self: end;
  padding: 0.15em 0.6em;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
}
.status.ok { background: rgba(126, 200, 148, 0.15); color: #8FD3A5; }
.status.open { background: rgba(214, 168, 110, 0.15); color: #E0B784; }

.method-art-caption {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 12px;
}

@media (max-width: 860px) {
  .method .container { grid-template-columns: 1fr; }
  .method-points { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 480px) {
  .protocol-mock-header { flex-wrap: wrap; gap: 8px; }
  .protocol-row { grid-template-columns: minmax(0, 1fr) auto; }
  .protocol-row .label { grid-column: 1 / -1; }
}

/* ==========================================================================
   Einsatzgebiet strip
   ========================================================================== */
.area-strip {
  padding-block: 20px;
  background: var(--teal-tint);
  border-bottom: 1px solid var(--line);
}
.area-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
}
.area-strip .area-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--teal-dark);
}
.area-strip .area-list {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ==========================================================================
   Anspruch (placeholder photo slots)
   ========================================================================== */
.work-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.work-video-card { margin: 0; min-width: 0; }
.work-video-media { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--teal-dark); aspect-ratio: 9 / 16; }
.work-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-toggle {
  position: absolute; bottom: 12px; right: 12px;
  min-height: 44px; padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius-sm);
  background: rgba(29,68,65,0.94); color: white;
  font: 500 0.8rem var(--font-body); cursor: pointer;
}
.video-toggle:hover { background: var(--teal-dark); }
.video-toggle:focus-visible { outline-color: white; outline-offset: -4px; }
.work-video-card figcaption { padding-top: 18px; }
.work-video-card h4 { font-size: 1.1rem; line-height: 1.3; }
.work-video-card p { color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 760px) {
  .work-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .work-video-card h4 { font-size: 1rem; }
  .video-toggle { right: 8px; bottom: 8px; }
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 28px);
  margin-top: clamp(28px, 4vw, 44px);
}
.photo-slot {
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--ink-faint);
  background: var(--paper-raised);
  padding: 20px;
}
.photo-slot svg { width: 34px; height: 34px; color: var(--line-strong); }
.photo-slot .slot-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
}

/* ==========================================================================
   Über uns
   ========================================================================== */
.about { background: var(--paper-raised); }
.about .container {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--column-gap);
  align-items: start;
}
/* Align the card with the heading below the section label. */
@media (min-width: 821px) {
  .about .team-slider { margin-top: calc(0.88rem * 2.55); }
}
.team-slider {
  min-width: 0;
  width: 100%;
  max-width: 420px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(30, 29, 27, 0.06);
}
.team-track {
  position: relative;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  border-radius: var(--radius-md);
}
.team-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.team-ready .team-track { display: block; overflow: hidden; }
.team-ready .team-slide[hidden] { display: none; }
.team-ready .team-slide:not([hidden]) { animation: team-appear 180ms ease-out; }
@keyframes team-appear { from { opacity: 0; } to { opacity: 1; } }
.team-slider .portrait-photo { border-radius: 14px; }
.team-slider .portrait-photo figcaption { background: var(--paper); font-size: 0.7rem; }
.team-slider .person-details { padding: 18px 14px 10px; }
.team-slider .person-details p { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.team-slider .person-details h3 { font-size: 1.65rem; letter-spacing: -0.025em; }
.team-slider .person-details span { color: var(--teal-dark); }
.team-photo-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal-tint);
  color: var(--teal-dark);
}
.team-photo-placeholder > span { font-family: var(--font-display); font-size: 4rem; }
.team-photo-placeholder small { font-size: 0.85rem; }
.team-controls:not([hidden]) {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 8px 14px 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.team-arrow {
  width: 52px; height: 44px; flex: none;
  border: 1px solid var(--teal);
  border-radius: 12px;
  background: var(--teal);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}
.team-arrow:hover { background: var(--teal-dark); transform: translateY(-1px); }
.team-arrow:active { transform: translateY(0); }
.team-prev { background: var(--paper-raised); color: var(--teal-dark); border-color: var(--line); }
.team-prev:hover { background: var(--teal-tint); }
.team-counter { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.portrait-photo {
  margin: 0;
  background: #E8E5DC;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.portrait-photo > .photo-placeholder,
.portrait-photo > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.portrait-photo > .team-photo { aspect-ratio: 1 / 1; object-position: center 80%; }
.portrait-photo > .team-photo-chef { object-position: center 25%; transform: scale(1.18); transform-origin: center 35%; }
.portrait-photo figcaption { padding: 10px 12px; font-size: 0.74rem; color: var(--ink-soft); }
.proof-photo { margin: 0; min-width: 0; }
.proof-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.proof-photo figcaption { margin-top: 14px; font-weight: 500; }
.proof-photo small { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 400; color: var(--ink-faint); }
.proof-description { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.person-details { padding-top: 18px; }
.person-details h3 { font-size: 1.25rem; margin-bottom: 4px; }
.person-details span { font-size: 0.9rem; color: var(--ink-soft); }
.about-copy .text-link { display: inline-block; margin-top: 8px; }
.about-contact-note {
  margin-block: 24px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--teal);
}
.about-contact-note h3 { font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 8px; }
.about-contact-note p { color: var(--ink-soft); font-size: 0.96rem; }
.proof-grid > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
@media (max-width: 600px) {
  .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .about .container { grid-template-columns: 1fr; }
  .about-copy { grid-row: 1; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 74ch; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  flex: none;
  width: 20px; height: 20px;
  color: var(--teal);
  transition: transform 0.15s ease;
}
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--teal-dark); }
.contact-direct h2 { color: white; }
.contact-direct .section-tag { color: #C5DCD6; }
.contact-direct .lede,
.contact-direct dd,
.contact-direct a { color: #E4EDEC; }
.contact-direct a:hover { color: white; }
.contact :focus-visible { outline-color: #C5DCD6; }
.quote-form :focus-visible { outline-color: var(--teal); }
.contact .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
}
.contact-direct dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin-top: 1.4em;
}
.contact-direct dt {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #C5DCD6;
}
.contact-direct dd { margin: 0; overflow-wrap: anywhere; }
.contact-direct dl { margin-bottom: 0; }
.quote-form > p { margin: 0; }

form.quote-form {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--card-space);
  display: grid;
  gap: 16px;
}
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.85em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); }
.form-status {
  font-size: 0.9rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: #A23B2E; }
.quote-form button:disabled { opacity: 0.65; cursor: wait; }

/* Dankeseite nach erfolgreichem Formularversand. */
.thank-page { min-height: 100vh; display: flex; flex-direction: column; }
.thank-main { flex: 1; display: grid; place-items: center; padding-block: var(--section-space); }
.thank-card {
  width: 100%;
  max-width: 780px;
  padding: clamp(24px, 5vw, 64px);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-md);
}
.thank-check {
  display: grid; place-items: center; width: 56px; height: 56px;
  margin-bottom: 24px; border-radius: 50%;
  color: var(--teal-dark); background: var(--teal-tint); font-size: 1.8rem;
}
.thank-card h1 { font-size: var(--step-3); }
.thank-card .lede { margin-block: 20px 28px; }

@media (max-width: 820px) {
  .contact .container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-block: 32px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink-faint);
}
.site-footer a { color: var(--ink-faint); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* The legal page has a single return link, no collapsible menu. */
.legal-nav a { font-size: 0.95rem; }
.site-header .container:has(.legal-nav) { flex-wrap: wrap; gap: 12px 20px; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
a.visually-hidden:focus {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  width: auto; height: auto;
  clip: auto;
  overflow: visible;
  white-space: normal;
  padding: 12px 18px;
  background: var(--paper-raised);
  color: var(--teal-dark);
  border-radius: var(--radius-sm);
}

/* Practical examples are part of the service offering. */
.service-examples { margin-top: clamp(40px, 6vw, 64px); scroll-margin-top: 110px; }
.service-examples .section-head { margin-bottom: 28px; }
.service-examples .section-head p { color: var(--ink-soft); }

.service-video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--teal-tint); }
.media-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 16px; background: var(--paper-raised); }
.media-play { min-height: 44px; padding: 8px 12px; font: 500 0.85rem var(--font-body); color: var(--teal-dark); background: var(--teal-tint); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.media-play:hover { border-color: var(--teal); }
.service-media { position: relative; }
.service-media .media-controls { position: absolute; bottom: 0; right: 0; padding: 12px; background: transparent; }
.service-media .media-play { color: white; background: rgba(29, 68, 65, 0.94); border-color: rgba(255, 255, 255, 0.65); }
.service-media .media-play:hover { background: var(--teal-dark); }
.service-media .media-play:focus-visible { outline-color: white; outline-offset: -4px; }
.app-demo-controls { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
.app-demo-controls a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.85rem; white-space: nowrap; }
.video-dialog { width: min(1200px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); color: var(--ink); }
.video-dialog::backdrop { background: rgba(15, 28, 27, 0.8); }
.video-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.video-dialog-header h2 { margin: 0; font-size: 1.1rem; }
.video-dialog-header button { flex-shrink: 0; }
.video-dialog-player video { display: block; width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; background: #000; }
body.video-dialog-open { overflow: hidden; }
.service-card .service-content { padding: var(--card-space); }
.service-content > p { color: var(--ink-soft); font-size: 0.96rem; }
.collaboration .process { margin-top: 0; }

/* Privacy information uses the site's spacing and colours. */
.legal-page { padding-block: var(--section-space); }
.legal-content { max-width: 860px; }
.legal-page h1 { font-size: var(--step-3); }
.legal-page .meta { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: var(--content-gap); }
.legal-page h2 { font-size: var(--step-1); margin-top: 32px; margin-bottom: 12px; }
.legal-page h3 { font-size: 1rem; margin-top: 24px; margin-bottom: 8px; }
.legal-page p, .legal-page li { font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); }
.legal-page p { max-width: none; }
.legal-page ul { margin-block: 12px 20px; }
.legal-page .provider-block { padding: 16px 20px; margin-block: 20px; border-left: 3px solid var(--teal); background: var(--teal-tint); font-size: 0.9rem; }
.legal-page .provider-block strong { display: block; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 0.9rem; }

/* Optional Google Ads consent, shared by all public pages. */
.consent-banner { position: fixed; z-index: 90; bottom: 16px; left: 16px; right: 16px; margin-inline: auto; max-width: 720px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 16px; background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: 0 8px 40px #0003; }
.consent-banner[hidden] { display: none; }
.consent-banner h2 { font-size: 1.3rem; margin-bottom: 6px; }
.consent-banner p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 4px; }
.consent-details { margin-bottom: 6px; }
.consent-details summary { display: flex; align-items: center; gap: 6px; min-height: 44px; width: fit-content; list-style: none; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.consent-details summary::-webkit-details-marker { display: none; }
.consent-details .consent-less, .consent-details[open] .consent-more { display: none; }
.consent-details[open] .consent-less { display: inline; }
.consent-details[open] .consent-arrow { transform: rotate(180deg); }
.consent-details p { margin-top: 8px; }
.consent-actions { display: flex; gap: 8px; }
.consent-choice { flex: 1; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--ink-soft); font: 600 0.95rem var(--font-body); cursor: pointer; }
.consent-choice:hover { background: var(--paper); }
.consent-choice[data-consent="yes"] { border-color: var(--teal); background: var(--teal); color: white; }
.consent-choice[data-consent="yes"]:hover { background: var(--teal-dark); }
@media (min-width: 768px) {
  .consent-banner { left: auto; right: 24px; bottom: 24px; width: 440px; margin-inline: 0; }
}
.consent-settings, .consent-dismiss { border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; padding: 0; }
.consent-dismiss { margin-top: 16px; font-size: 0.85rem; color: var(--ink-soft); }
