/* =========================================================================
   DICAM Facility Service – Design System
   Handgeschrieben, kein Build-Schritt, keine externen Requests.

   Farbwelt aus dem Logo: das Terrakotta-Orange #d9633d ist die Akzentfarbe,
   ein tiefes Marineblau traegt Ueberschriften und die dunklen Baender.
   Grundflaeche ist ein warmes Creme statt Weiss – das nimmt dem Auftritt
   die Haerte und laesst das Orange ruhiger wirken.
   ========================================================================= */

/* ---------- Fonts (selbst gehostet – kein Google-Fonts-Request) ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-var.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ----------
   Zur Barrierefreiheit: Das Logo-Orange #d9633d traegt auf Creme nur 3,4:1
   und ist damit fuer Text zu kontrastarm. Es bleibt deshalb Flaechen- und
   Grafikfarbe. Fuer Text gibt es abgedunkelte Varianten:
     --accent-700 auf Creme        4,97:1
     weiss auf --accent-600        4,64:1
     --accent-300 auf Marineblau   4,71:1
   Alle Text-/Hintergrund-Paare der Seite erfuellen damit WCAG AA. */
:root {
  --navy-900: #14293a;   /* dunkelste Flaeche */
  --navy-800: #1a3a52;   /* Primaer – Ueberschriften, dunkle Baender */
  --navy-700: #24506e;
  --navy-100: #e7edf2;

  --accent-700: #b8481f; /* Akzenttext auf hellem Grund */
  --accent-600: #c4502b; /* Button-Grund (weisser Text), Hover */
  --accent-500: #d9633d; /* Logo-Orange – Flaechen, Icons, Grafik */
  --accent-400: #e5825f; /* Verlaeufe */
  --accent-300: #eb8a63; /* Akzent auf dunklem Grund */

  --star: #f2b01e;       /* Google-Sterne bleiben gold (Konvention) */

  --cream: #faf8f5;
  --warm:  #f5f1ec;
  --line:  #e8e0d8;

  --ink:      #1f2a33;
  --ink-soft: #4a5b6e;
  --ink-mute: #5b6b7d;
  --on-dark:      #f2f6fa;
  --on-dark-soft: #c3d0dd;

  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(26 58 82 / .05), 0 8px 20px -12px rgb(26 58 82 / .18);
  --shadow-md: 0 2px 4px rgb(26 58 82 / .05), 0 20px 44px -20px rgb(26 58 82 / .28);
  --shadow-lg: 0 34px 70px -30px rgb(26 58 82 / .40);
  --shadow-accent: 0 18px 38px -16px rgb(217 99 61 / .55);

  --wrap: 1180px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.15rem, 4vw, 2.25rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Sticky-Kopf: Sprungziele duerfen nicht darunter verschwinden. */
:target, section[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.028em;
  color: var(--navy-800);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.4rem + 3.9vw, 4.1rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.5vw, 2.9rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.13rem, 1rem + .55vw, 1.35rem); font-weight: 700; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
:focus-visible {
  outline: 3px solid var(--accent-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.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: absolute; left: 50%; translate: -50% -120%;
  z-index: 200; background: var(--navy-800); color: #fff;
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none; transition: translate .2s var(--ease);
}
.skip-link:focus { translate: -50% 0; color: #fff; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: inherit; text-decoration: underline; text-underline-offset: 2px;
}

.eyebrow {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: .77rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: .85rem;
}
.eyebrow--on-dark { color: var(--accent-300); }
.eyebrow--center { text-align: center; }

.divider {
  display: block; width: 48px; height: 3px; border-radius: 2px;
  background: var(--accent-500); margin-top: 1.25rem;
}
.divider--center { margin-inline: auto; }

.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: var(--ink-soft); }
.lead--on-dark { color: var(--on-dark-soft); }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

.textlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .95rem;
  color: var(--navy-800); text-decoration: none; white-space: nowrap;
}
.textlink svg { width: 1.1em; height: 1.1em; fill: currentColor; transition: transform .25s var(--ease); }
.textlink:hover { color: var(--accent-700); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3.75rem, 2rem + 6.5vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--cream { background: var(--cream); }
.section--warm  { background: var(--warm); }
.section--dark  {
  background: var(--navy-800); color: var(--on-dark-soft);
  overflow: hidden; isolation: isolate;
}
.section--dark h2, .section--dark h3 { color: #fff; }

/* Weiche Farbschleier im Hintergrund – der Effekt, der die Demo-Vorlage
   optisch traegt. Rein dekorativ, deshalb per ::before/::after statt
   zusaetzlicher Markup-Elemente. */
.has-glow { overflow: hidden; isolation: isolate; }
.has-glow::before, .has-glow::after {
  content: ''; position: absolute; z-index: -1;
  border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.has-glow::before {
  top: -140px; right: -80px; width: 420px; height: 420px;
  background: rgb(217 99 61 / .16);
}
.has-glow::after {
  bottom: -160px; left: -100px; width: 380px; height: 380px;
  background: rgb(26 58 82 / .10);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 1.2rem + 2.8vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 2.5rem; flex-wrap: wrap; max-width: none;
}
.section-head > :last-child { margin-bottom: 0; }
.section-head .lead { margin-top: 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.9rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: 'Manrope', sans-serif; font-size: .97rem; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; }

.btn--accent { --btn-bg: var(--accent-600); box-shadow: var(--shadow-accent); }
.btn--accent:hover { --btn-bg: var(--accent-700); box-shadow: 0 22px 44px -16px rgb(217 99 61 / .6); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy-800);
  border-color: color-mix(in srgb, var(--navy-800) 28%, transparent);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--navy-800); --btn-fg: #fff; }

.btn--on-dark {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgb(255 255 255 / .34);
}
.btn--on-dark:hover { --btn-bg: rgb(255 255 255 / .12); }

.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* ---------- Pill (Hero-Label) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 1.1rem; margin-bottom: 1.6rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--accent-500) 35%, transparent);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-family: 'Manrope', sans-serif;
  font-size: .74rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-700);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-500); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-800);
  color: var(--on-dark-soft);
  font-size: .82rem;
}
.topbar__inner { display: flex; align-items: center; gap: .6rem; min-height: 42px; }
.topbar__sep { opacity: .4; }
.topbar__phone {
  margin-left: auto; display: inline-flex; align-items: center; gap: .45rem;
  color: #fff; font-weight: 600; text-decoration: none;
}
.topbar__phone svg { width: 15px; height: 15px; fill: var(--accent-300); }
.topbar__phone:hover { color: var(--accent-300); }
@media (max-width: 720px) {
  .topbar__item, .topbar__sep { display: none; }
  .topbar__item:first-child { display: inline; }
}
@media (max-width: 460px) {
  .topbar__item:first-child { display: none; }
  .topbar__phone { margin-inline: auto; }
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--cream) 97%, transparent);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 46px; width: auto; }
@media (max-width: 620px) { .brand__logo { height: 36px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; align-items: center; gap: 1.55rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: .35rem 0;
  font-size: .93rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; border-radius: 2px; background: var(--accent-500);
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--navy-800); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy-800); font-weight: 600; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 5px; justify-items: center; }
.nav-toggle__bars i {
  display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--navy-800);
  transition: transform .26s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: grid; place-items: center; }

  /* Das Panel haengt unter der Kopfzeile (absolute; top:100%), nicht am
     Viewport-Rand – sonst wuerde es sich ueber die Topbar legen und die
     Telefonnummer verdecken. Ein-/ausgeblendet wird ueber Sichtbarkeit
     statt Verschieben, weil es sonst nach oben ueber den Kopf laeuft. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    margin: 0; padding: 1.4rem var(--gutter) 2rem;
    flex-direction: column; align-items: stretch; gap: .3rem;
    background: var(--cream);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: 80dvh; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: .95rem .25rem; font-size: 1.06rem; font-weight: 600; color: var(--navy-800);
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent-700); }
  .nav__cta { margin-top: 1.35rem; align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); isolation: isolate; }
.hero__mesh {
  position: absolute; inset: 0; z-index: -1; opacity: .75;
  background-image:
    radial-gradient(at 18% 18%, rgb(217 99 61 / .18) 0, transparent 52%),
    radial-gradient(at 82% 28%, rgb(26 58 82 / .14) 0, transparent 50%),
    radial-gradient(at 32% 88%, rgb(217 99 61 / .10) 0, transparent 50%);
}
.hero__inner {
  display: grid; gap: clamp(2.75rem, 1rem + 6vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3rem, 1.8rem + 5vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 6.5rem);
}
@media (min-width: 940px) {
  .hero__inner { grid-template-columns: 1.08fr .92fr; }
}
.hero__lead {
  font-size: clamp(1.06rem, 1rem + .55vw, 1.28rem);
  color: var(--ink-soft); max-width: 56ch; margin-top: 1.7rem; margin-bottom: 2.1rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-500), var(--accent-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__actions { margin-bottom: 2.2rem; }

.hero__proof { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.hero__proof li {
  display: flex; align-items: center; gap: .65rem;
  font-size: .93rem; color: var(--ink-soft);
}
.hero__proof svg {
  width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent-500) 16%, transparent);
  fill: var(--accent-700);
}

/* Bildrahmen: versetzter Farbblock hinter einer weissen Passepartout-Karte,
   dazu ein Punktraster und eine ueberlappende Info-Karte. Der versetzte
   Block und das Raster erscheinen erst ab 940 px – auf schmalen Displays
   kosten sie nur Platz. */
.hero__frame { position: relative; max-width: 460px; margin-inline: auto; }
@media (min-width: 940px) { .hero__frame { margin-right: 0; max-width: none; } }

.hero__backdrop, .hero__dots { display: none; }
@media (min-width: 940px) {
  .hero__backdrop {
    display: block; position: absolute; inset: 0;
    translate: 20px 20px; border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--accent-500), var(--navy-800));
    opacity: .9;
  }
  .hero__dots {
    display: block; position: absolute; top: -32px; left: -32px;
    width: 128px; height: 128px; opacity: .5;
    background-image: radial-gradient(circle, var(--navy-800) 1.5px, transparent 1.6px);
    background-size: 10px 10px;
  }
}
.hero__mat {
  position: relative;
  background: #fff; padding: 12px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero__img { border-radius: 22px; overflow: hidden; }
.hero__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.hero__badge {
  position: absolute; left: -.75rem; bottom: -1.35rem;
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.15rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  max-width: 88%;
}
.hero__badge-icon {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  box-shadow: var(--shadow-accent);
}
.hero__badge-icon svg { width: 21px; height: 21px; fill: #fff; }
.hero__badge strong {
  display: block; font-family: 'Manrope', sans-serif; font-size: .97rem; color: var(--navy-800);
}
.hero__badge span span { font-size: .8rem; color: var(--ink-mute); }

/* ---------- Kennzahlenband ---------- */
.stat-band { background: var(--warm); border-block: 1px solid var(--line); }
.stat-band__inner {
  display: grid; gap: 1.6rem 2.5rem;
  padding-block: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .stat-band__inner { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat__value {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  line-height: 1.1; letter-spacing: -.03em; color: var(--accent-700);
}
.stat__label { font-size: .89rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Raster / Karten ---------- */
.grid { display: grid; gap: clamp(1.1rem, .7rem + 1.3vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

/* Icon-Karten mit ueberstehendem Icon oben links (Demo-Motiv) */
.feature {
  position: relative;
  margin-top: 1.75rem;
  padding: 2.6rem 1.9rem 1.9rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent-500) 40%, transparent);
  box-shadow: var(--shadow-md);
}
.feature > :last-child { margin-bottom: 0; }
.feature__icon {
  position: absolute; top: -1.6rem; left: 1.9rem;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 17px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  box-shadow: var(--shadow-accent);
}
.feature__icon svg { width: 27px; height: 27px; fill: #fff; }
.feature h3 { margin-bottom: .6rem; }
.feature p { color: var(--ink-soft); }

/* ---------- Leistungen: Bento-Raster ---------- */
.bento { display: grid; gap: clamp(1.1rem, .7rem + 1.3vw, 1.6rem); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } }

.svc {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent-500) 40%, transparent);
  box-shadow: var(--shadow-md);
}
/* Die erste Kachel ist der Schwerpunkt des Abschnitts: zwei Spalten breit
   und im dreispaltigen Raster zusaetzlich zwei Reihen hoch. Damit gehen
   2x2 + 5 Kacheln genau in drei Reihen auf – ohne diese Zeilenspanne
   bliebe in der letzten Reihe eine Luecke von zwei leeren Zellen. */
@media (min-width: 700px)  { .svc--wide { grid-column: span 2; } }
@media (min-width: 1040px) { .svc--wide { grid-row: span 2; } }

.svc__media { position: relative; overflow: hidden; background: var(--warm); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform .6s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.05); }

/* Die grosse Kachel ist zwei Reihen hoch. Die ueberschuessige Hoehe soll
   das Bild aufnehmen, nicht der Textblock – sonst klafft zwischen Absatz
   und Checkliste eine leere Flaeche. */
.svc--wide .svc__media { flex: 1; min-height: 260px; }
.svc--wide .svc__media img { aspect-ratio: auto; }
/* Der Textblock waechst hier nicht mit – sonst teilen sich Bild und Text
   die freie Hoehe und im Text klafft eine Luecke. */
.svc--wide .svc__body { flex: 0 0 auto; }

/* Kachel ohne Foto: gestaltetes Markenfeld statt eines beliebigen
   Stockmotivs, das die Leistung nicht wirklich zeigt. Bewusst dieselbe
   Bildsprache wie Hero-Backdrop und Schritt-Nummern, damit es als
   Gestaltung gelesen wird und nicht als fehlendes Bild. */
.svc__media--plain {
  display: grid; place-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--accent-500), var(--navy-800));
}
.svc__media--plain::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgb(255 255 255 / .22) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: .5;
}
.svc__media--plain svg { width: 58px; height: 58px; fill: #fff; opacity: .95; position: relative; z-index: 1; }
.svc__num {
  position: absolute; top: 1rem; left: 1rem;
  padding: .3rem .75rem; border-radius: var(--radius-pill);
  background: rgb(255 255 255 / .94); backdrop-filter: blur(4px);
  font-family: 'Manrope', sans-serif; font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy-800);
}

.svc__body { padding: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); display: flex; flex-direction: column; flex: 1; }
.svc__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 13px;
  background: color-mix(in srgb, var(--accent-500) 13%, transparent);
}
.svc__icon svg { width: 22px; height: 22px; fill: var(--accent-700); }
.svc h3 { margin-bottom: .55rem; }
.svc__body p { color: var(--ink-soft); font-size: .96rem; }
.svc__body > :last-child { margin-bottom: 0; }

/* ---------- Checklisten ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 1.85rem; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .4em;
  width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent-500) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8481f'%3E%3Cpath d='M9.55 17.4 4.2 12l1.6-1.6 3.75 3.75 8.65-8.65L19.8 7.1z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks--tight { margin-top: auto; padding-top: 1.15rem; margin-bottom: 0; gap: .45rem; }
.checks--tight li { font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 700px) {
  .svc--wide .checks--tight { grid-template-columns: 1fr 1fr; }
}

/* ---------- Ablauf ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.6rem, 1rem + 2vw, 2.25rem);
  position: relative;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; }
/* Gestrichelte Verbindungslinie zwischen den Schritten (nur Desktop). */
@media (min-width: 800px) {
  .step::after {
    content: ''; position: absolute; top: 30px; left: 76px; right: -1.2rem; height: 2px;
    background-image: linear-gradient(90deg, var(--accent-500) 50%, transparent 50%);
    background-size: 12px 2px; background-repeat: repeat-x;
    opacity: .55;
  }
  .step:last-child::after { display: none; }
}
.step__num {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 1.3rem; border-radius: 19px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  box-shadow: var(--shadow-accent), 0 0 0 5px var(--cream);
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.18rem; color: #fff;
}
.step h3 { margin-bottom: .45rem; }
.step p { margin-bottom: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Split (Bild + Text) ---------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}
.split__body > :last-child { margin-bottom: 0; }
.split__body .divider { margin-bottom: 1.6rem; }

/* Initial im ersten Absatz – das Magazin-Motiv aus der Vorlage. */
.dropcap::first-letter {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 3.6rem; line-height: .82;
  float: left; margin: .12em .12em 0 0;
  color: var(--accent-500);
}

/* ---------- Faktentabelle ---------- */
.facts {
  margin: 1.8rem 0 0; padding: clamp(1.2rem, 1rem + .8vw, 1.6rem);
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--accent-500); border-radius: var(--radius);
  display: grid; gap: .75rem;
}
.facts__row { display: grid; gap: .1rem .9rem; }
@media (min-width: 620px) { .facts__row { grid-template-columns: 10.5rem 1fr; gap: .3rem 1.3rem; } }
.facts__row + .facts__row { border-top: 1px solid var(--line); padding-top: .75rem; }
.facts__row dt {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .85rem; color: var(--navy-800);
}
.facts__row dd { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* ---------- Chips (Einsatzgebiet) ---------- */
.chips {
  display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center;
  padding: 0; margin: 0; list-style: none;
}
.chips li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.15rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
}
.chips svg { width: 15px; height: 15px; fill: var(--accent-500); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent-500) 45%, transparent); }
.faq details:hover { border-color: color-mix(in srgb, var(--accent-500) 35%, transparent); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.3rem 1.6rem; cursor: pointer; list-style: none;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.04rem;
  color: var(--navy-800);
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus, das sich beim Oeffnen zum Kreuz dreht */
.faq summary::after {
  content: '+'; flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent-500) 14%, transparent);
  color: var(--accent-700); font-size: 1.35rem; line-height: 1; font-weight: 500;
  transition: transform .3s var(--ease), background-color .25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: color-mix(in srgb, var(--accent-500) 22%, transparent);
}
.faq__body {
  padding: 1.1rem 1.6rem 1.5rem; margin-top: 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.faq__body > :last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.contact__glow {
  position: absolute; z-index: -1; pointer-events: none;
  top: -180px; right: -140px; width: 560px; height: 560px;
  border-radius: 50%; filter: blur(90px);
  background: rgb(217 99 61 / .30);
}
.contact-layout { display: grid; gap: clamp(1.9rem, 1rem + 3.5vw, 3rem); align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: .8fr 1.2fr; } }

.contact-aside { display: grid; gap: 1.75rem; align-content: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.info-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.info-list li:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .2); }
.info-list svg { width: 21px; height: 21px; flex: none; margin-top: .28rem; fill: var(--accent-300); }
.info-list strong {
  display: block;
  font-family: 'Manrope', sans-serif; font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent-300);
  margin-bottom: .25rem;
}
.info-list a { color: #fff; font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--accent-300); text-decoration: underline; }

.hours-list { display: grid; gap: .3rem; margin-top: .15rem; }
.hours-list__row { display: grid; grid-template-columns: 6.5rem 1fr; gap: .1rem .8rem; font-size: .92rem; }
.hours-list__row.is-closed { opacity: .6; }

/* ---------- Formular ---------- */
.form-card {
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; margin-bottom: .42rem;
  font-family: 'Manrope', sans-serif; font-size: .87rem; font-weight: 600; color: var(--navy-800);
}
.req { color: var(--accent-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1.05rem;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235b6b7d'%3E%3Cpath d='m12 15-5-5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 20px;
  padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-500) 18%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #c0392b;
}

.consent { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.5rem; }
.consent input { width: 19px; height: 19px; flex: none; margin-top: .3rem; accent-color: var(--accent-600); }
.consent label { font-size: .87rem; color: var(--ink-soft); line-height: 1.55; }

.form-note { margin: .9rem 0 0; font-size: .8rem; color: var(--ink-mute); text-align: center; }

/* Honeypot – fuer Menschen unsichtbar, fuer Bots verfuehrerisch */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1.05rem 1.3rem; border-radius: var(--radius); margin-bottom: 1.6rem; font-size: .94rem; }
.alert--ok  { background: #e8f3ec; border: 1px solid #9ecdb0; color: #1d5b38; }
.alert--err { background: #fdecea; border: 1px solid #e9b0aa; color: #8e2b20; }
.alert > :last-child { margin-bottom: 0; }
.alert ul { margin-bottom: 0; padding-left: 1.15em; }
.alert a { color: inherit; }

/* ---------- Seitenkopf (Impressum, Datenschutz, 404) ---------- */
.page-head {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: var(--on-dark-soft);
  padding-block: clamp(2.75rem, 1.8rem + 4.5vw, 5rem);
}
.page-head::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 86% 22%, rgb(217 99 61 / .28), transparent 62%);
}
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: 0; }
.page-head p { max-width: 60ch; margin-bottom: 0; }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: 0; font-size: .82rem; }
.crumbs a { color: var(--on-dark-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent-300); }
.crumbs li + li::before { content: '/'; margin-right: .45rem; opacity: .45; }
.crumbs [aria-current] { color: var(--accent-300); }

/* ---------- Rechtstexte ---------- */
.legal-body { max-width: 78ch; }
.legal-body h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); margin-top: 2.2rem; }
.legal-body h3 { margin-top: 1.6rem; }
.legal-body :first-child { margin-top: 0; }
.legal-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.legal-body th, .legal-body td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.legal-notice {
  padding: 1.1rem 1.3rem; margin-bottom: 2rem;
  background: color-mix(in srgb, var(--accent-500) 10%, var(--cream));
  border: 1px solid color-mix(in srgb, var(--accent-500) 45%, transparent);
  border-radius: var(--radius); font-size: .92rem; color: #7a3a1c;
}
.legal-notice > :last-child { margin-bottom: 0; }
.legal-meta { font-size: .82rem; color: var(--ink-mute); margin-top: 2.5rem; }

/* ---------- Google-Bewertungen ----------
   Der Abschnitt ist aktuell deaktiviert (config/content.php -> reviews).
   Die Stile stehen bereit, damit das Umlegen des Schalters genuegt. */
.stars { display: inline-block; line-height: 0; }
.stars svg { width: 116px; height: 23px; display: block; }
.stars__bg { fill: color-mix(in srgb, var(--navy-800) 14%, transparent); }

.reviews__summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem;
  padding-bottom: 1.8rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.reviews__score { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; }
.reviews__number {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  line-height: 1; color: var(--navy-800); letter-spacing: -.03em;
}
.reviews__meta { font-size: .9rem; color: var(--ink-mute); width: 100%; }
.reviews__summary .btn { margin-left: auto; }

.reviews__grid {
  display: grid; gap: clamp(1.1rem, .7rem + 1.3vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.review {
  margin: 0; padding: clamp(1.3rem, 1rem + .9vw, 1.7rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .9rem;
}
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.review figcaption {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .88rem; color: var(--navy-800);
}
.review__when { font-weight: 400; color: var(--ink-mute); }
.reviews__note { margin: 1.6rem 0 0; font-size: .82rem; color: var(--ink-mute); max-width: 68ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: var(--on-dark-soft);
  padding-top: clamp(3rem, 2rem + 3.5vw, 4.5rem);
  font-size: .93rem;
}
.footer-grid { display: grid; gap: clamp(1.9rem, 1.2rem + 2.5vw, 3rem); }
@media (min-width: 720px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.15fr 1fr; } }
.brand--footer { display: inline-flex; }
.brand--footer .brand__logo { height: 54px; }
.footer-blurb { margin-top: 1.2rem; max-width: 44ch; }

.footer-social { display: flex; gap: .7rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.footer-social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgb(255 255 255 / .08); color: var(--on-dark);
  border: 1px solid rgb(255 255 255 / .12);
  transition: background-color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.footer-social a:hover { background: var(--accent-600); color: #fff; border-color: transparent; transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-head {
  font-size: .77rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-300); margin-bottom: 1.1rem;
}
.footer-address { font-style: normal; line-height: 1.85; }
.footer-address strong { color: #fff; }
.footer-mail { overflow-wrap: break-word; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-300); text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
/* Ortsliste ohne Trennzeichen: Ein "·" am Zeilenende sieht nach einem
   abgeschnittenen Eintrag aus, sobald die Liste umbricht. Der Abstand
   trennt hier ausreichend. */
.footer-places {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .89rem;
}
.footer-note { font-size: .82rem; color: rgb(195 208 221 / .7); margin: 0; max-width: 34ch; }

.footer-bar {
  margin-top: clamp(2.5rem, 1.8rem + 2.5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .1);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center;
  font-size: .84rem;
}
.footer-bar p { margin: 0; max-width: 46ch; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0 0 0 auto; padding: 0; }

/* ---------- Scroll-Reveal ----------
   Progressive Enhancement: Der versteckte Zustand gilt nur, wenn JavaScript
   laeuft (html.js wird inline im <head> gesetzt). Ohne JS – oder wenn
   main.js scheitert – bleiben alle Inhalte sichtbar. Ein Marketingauftritt
   darf niemals wegen eines Skriptfehlers leer sein. */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .site-footer, .skip-link, .nav-toggle,
  .hero__mesh, .has-glow::before, .has-glow::after, .contact__glow { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
  .section--dark { background: #fff; color: #000; }
  .section--dark h2, .section--dark h3 { color: #000; }
}
