@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/jost-v14-cyrillic_latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-v14-cyrillic_latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-v14-cyrillic_latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jost-v14-cyrillic_latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/jost-v14-cyrillic_latin-800.woff2") format("woff2");
}

:root {
  --color-primary: #866b44;
  --color-primary-dark: #624e36;
  --color-primary-deep: #2a1a00;
  --color-accent: #ff6600;
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-text: #866b44;
  --color-muted: #7a6043;
  --font: "Jost", "Segoe UI", sans-serif;
  --header-h: 5.5rem;
  --radius: 0.4rem;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --max: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

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

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

/* Header und Footer: siehe konsolidierter Block am Dateiende */

.site-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--color-primary-dark) center/cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 26, 0, 0.15), rgba(42, 26, 0, 0.55));
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
}

.page-hero h1 {
  color: #fff;
  margin: 0;
}

.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.breadcrumb a { color: #fff; }

.section {
  padding: 3.5rem 0;
}

.section--tight { padding: 2.5rem 0; }

.prose :where(ul, ol) {
  padding-left: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  /* <button> erbt Schrift und Zeilenhöhe nicht von selbst - ohne diese
     beiden Zeilen erscheinen Schaltflächen in der Systemschrift und
     niedriger als gleich aussehende Links. */
  font-family: inherit;
  line-height: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--color-primary-deep);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Home */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  background: var(--color-primary-dark) center/cover no-repeat;
  color: #fff;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(42, 26, 0, 0.55), rgba(134, 107, 68, 0.35)),
    url("../images/hero-bg.jpg") center/cover no-repeat;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

.home-hero h1 {
  color: #fff;
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
}

.home-hero .lead {
  max-width: 42rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
}

.home-hero .meta {
  margin-top: 1.5rem;
  white-space: pre-line;
  font-size: 1rem;
}

/* Startseiten-Kacheln: siehe konsolidierter Block am Dateiende */

.cta-band {
  background: var(--color-surface);
  border-block: 1px solid rgba(134, 107, 68, 0.15);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band a.phone {
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-decoration: none;
  font-weight: 500;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Cards / tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.tile {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: #fff;
}

/* Team: siehe konsolidierter Block am Dateiende */

/* FAQ: siehe konsolidierter Block am Dateiende */

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.form {
  display: grid;
  gap: 1rem;
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--color-primary-deep);
  border: 1px solid rgba(134, 107, 68, 0.35);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.form input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  padding: 0;
  flex: 0 0 auto;
}

/* Kein Umbruch: sonst rutscht ein längerer Text auf schmalen Bildschirmen
   komplett unter das Kästchen, statt neben ihm umzubrechen. */
.form label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.form [aria-invalid="true"] {
  border-color: #b42318;
  outline: 2px solid rgba(180, 35, 24, 0.15);
}

.form textarea { min-height: 8rem; resize: vertical; }

.form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert--ok { background: #e8f5e9; color: #1b5e20; }
.alert--err { background: #fbe9e7; color: #bf360c; }

.download-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.download-list a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid rgba(134, 107, 68, 0.15);
}

.download-list a:hover {
  border-color: var(--color-primary);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .home-hero__inner,
  .member,
  .tile {
    animation: rise 0.7s var(--ease) both;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .teaser-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-nav-grid { grid-template-columns: 1fr; }
}

/* Visual alignment with the former Joomla/Spectrum website */
:root {
  --header-h: 6.25rem;
  --max: 82.5rem;
}

.home-slider {
  position: relative;
  /* Zwei Drittel der Bildschirmhöhe: Der Einstieg darunter ist schon auf dem
     ersten Bildschirm zu sehen. */
  height: 66vh;
  min-height: 30rem;
  overflow: hidden;
  background: #ddd;
}

.home-slider__track,
.home-slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.home-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.home-slide.is-active {
  opacity: 1;
}

.home-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.68);
  font: 300 2.2rem/1 var(--font);
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-arrow--prev { left: 1rem; }
.slider-arrow--next { right: 1rem; }

.slider-down {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2.5rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.72);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  transform: translateX(-50%);
}

/* Startseite: Willkommen, Adresse und Kacheln siehe Block am Dateiende */

.cta-band {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4.7px);
}

.cta-band a.phone {
  font-size: 2.6rem;
  font-weight: 400;
}

/* Nummer bzw. E-Mail-Adresse wird nie getrennt; umbrechen darf nur nach
   "TELEFON:". */
.cta-band__value {
  white-space: nowrap;
}

.cta-band__inner {
  padding-block: 0.5rem;
}

.home-teaser {
  background: #f7f7f7;
}

.home-map {
  height: 18.75rem;
}

/* Nur die direkte Verknüpfung auf die statische Grafik füllt den Bereich.
   Ohne den Kindselektor träfe die Regel auch die Schaltflächen in der
   Einwilligungssperre und zöge sie auf volle Breite. */
.home-map > a,
.home-map > a > img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-map > a > img {
  object-fit: cover;
}

.page-hero {
  min-height: 0;
  display: block;
  color: var(--color-primary);
  background: #fff !important;
}

.page-hero::after {
  display: none;
}

.page-hero__inner {
  padding: 1.25rem 0 0.75rem;
}

.page-hero h1 {
  display: none;
}

.breadcrumb,
.breadcrumb a {
  color: var(--color-primary);
  opacity: 1;
}

.page-hero + .section {
  padding-top: 2.5rem;
}

@media (max-width: 900px) {
  .home-slider {
    min-height: 26rem;
  }

  .cta-band a.phone {
    font-size: 1.7rem;
  }
}

@media (max-width: 560px) {
  .home-slider {
    height: 66vh;
    min-height: 24rem;
  }

  .home-welcome h1 {
    font-size: 2rem;
  }

  .cta-band a.phone {
    font-size: 1.5rem;
  }
}

.team-banner {
  width: 100%;
  height: 32rem;
  margin: 0;
  overflow: hidden;
}

.team-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.services-banner {
  width: 100%;
  height: 24rem;
  margin: 0;
  overflow: hidden;
}

.services-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Leistungsübersicht: siehe konsolidierter Block am Dateiende */

/* ==========================================================================
   Header und Footer
   Ein einziger, verbindlicher Block. Zuvor waren diese Regeln auf drei
   Stellen verteilt, die sich gegenseitig überschrieben haben.
   ========================================================================== */

:root {
  --header-service-h: 2.375rem;
  --header-main-h: 7.25rem;
  --header-main-h-compact: 5.25rem;
  --header-h: calc(var(--header-service-h) + var(--header-main-h));
  --footer-line: rgba(255, 255, 255, 0.25);
}

.icon {
  width: 0.9375rem;
  height: 0.9375rem;
  flex: 0 0 auto;
  display: block;
}

/* --- Grundgerüst ---------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: box-shadow 0.3s var(--ease);
}

/* Der Header liegt immer außerhalb des Textflusses. Auf Inhaltsseiten
   reserviert der Seitenkörper stattdessen fest seine volle Höhe (siehe
   body-Regel unten). Läge er im Fluss, würde das Einklappen der Servicezeile
   den Inhalt um deren Höhe verschieben - die Scrollposition fiele wieder unter
   die Schaltschwelle und der Header würde zwischen beiden Zuständen flackern. */
.site-header.is-solid {
  position: fixed;
  background: var(--color-surface);
  box-shadow: 0 1px 0 rgba(134, 107, 68, 0.18);
}

.site-header.is-scrolled:not(.is-solid) {
  position: fixed;
}

/* Nur die Startseite blendet den Slider hinter den Header; alle anderen
   Seiten halten den Platz frei. */
body:not(.page-home) {
  padding-top: var(--header-h);
}

.site-header.is-scrolled {
  background: var(--color-surface);
  box-shadow: 0 6px 26px rgba(42, 26, 0, 0.11);
}

.site-header__inner {
  width: min(100% - 2rem, 71.25rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Servicezeile --------------------------------------------------------- */

.site-header__service {
  background: #f3efe8;
  border-bottom: 1px solid rgba(134, 107, 68, 0.18);
  font-size: 0.85rem;
}

.site-header__service .site-header__inner {
  justify-content: flex-end;
  gap: 1.625rem;
  height: var(--header-service-h);
}

.site-header__service a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-header__service a:hover {
  color: var(--color-primary-deep);
}

.site-header__sep {
  width: 1px;
  height: 0.95rem;
  background: rgba(134, 107, 68, 0.32);
}

/* Die Servicezeile hat auf allen Seiten denselben festen Hintergrund. Über den
   Slider-Motiven trug eine durchsichtige Variante die Schrift nicht: vor hellem
   Himmel war sie kaum lesbar. */

.site-header:not(.is-solid):not(.is-scrolled) .site-header__main {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* --- Hauptzeile ----------------------------------------------------------- */

.site-header__main .site-header__inner {
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-main-h);
  transition: height 0.3s var(--ease);
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo .logo__mark {
  width: 16.25rem;
  height: auto;
  max-height: 5.2rem;
  object-fit: contain;
  transition: width 0.3s var(--ease);
}

/* Landeswappen links neben dem Logo. Das Logo selbst steht linksbündig in
   seinem Rahmen, sonst klaffte zwischen beiden eine Lücke. */
.logo {
  gap: 1rem;
}

.logo .logo__mark {
  object-position: left center;
}

.logo .logo__crest {
  display: block;
  width: auto;
  height: 4.25rem;
  max-height: none;
  padding-right: 1rem;
  border-right: 1px solid rgba(134, 107, 68, 0.3);
  box-sizing: content-box;
  transition: height 0.3s var(--ease);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

/* --- Navigation ----------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.125rem;
}

.nav__links a {
  position: relative;
  padding: 0.375rem 0;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.012em;
  color: var(--color-primary);
  text-decoration: none;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  transform: scaleX(1);
}

.nav__links a[aria-current="page"] {
  color: var(--color-primary-deep);
}

.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  height: 2px;
}

/* Kontaktdaten stehen nur im geöffneten Mobilmenü. */
.nav__contact {
  display: none;
}

/* --- Sprachwechsel -------------------------------------------------------- */

.langswitch {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.langswitch a {
  padding: 0.1875rem 0.4375rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: #9d8a6d;
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.langswitch a:hover {
  color: var(--color-primary-deep);
  background: rgba(134, 107, 68, 0.09);
}

.langswitch a.is-active {
  color: #fff;
  background: var(--color-primary);
}

/* In der Navigation erscheint er erst im mitlaufenden Header. */
.langswitch--menu {
  display: none;
  margin-left: 1.875rem;
  padding-left: 1.875rem;
  border-left: 1px solid rgba(134, 107, 68, 0.18);
}

.site-header.is-scrolled .langswitch--menu {
  display: flex;
}

/* --- Anruf-Button und Menüschalter ---------------------------------------- */

.header-call,
.nav-toggle {
  display: none;
}

.header-call {
  width: 2.625rem;
  height: 2.625rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}

.header-call .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.header-call:hover {
  background: var(--color-primary-deep);
  color: #fff;
}

.nav-toggle {
  width: 2.625rem;
  height: 2.625rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.375rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(0.40625rem) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-0.40625rem) rotate(-45deg);
}

/* --- Mitlaufender, kompakter Zustand -------------------------------------- */

.site-header.is-scrolled .site-header__service {
  display: none;
}

.site-header.is-scrolled .site-header__main .site-header__inner {
  height: var(--header-main-h-compact);
}

.site-header.is-scrolled .logo .logo__mark {
  width: 12.5rem;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  margin-top: 0;
  padding: 0;
  background: var(--color-primary);
  color: #fff;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__grid,
.site-footer__bottom {
  width: min(100% - 2rem, 71.25rem);
  margin-inline: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 1.15fr 1fr;
  align-items: start;
  gap: 2.75rem;
  padding: 2.875rem 0 2.125rem;
}

.site-footer h3 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__line {
  display: flex;
  align-items: flex-start;
  gap: 0.6875rem;
  margin: 0 0 0.6875rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.site-footer__line .icon {
  margin-top: 0.25rem;
  opacity: 0.72;
}

.site-footer__hours {
  font-size: 0.9375rem;
  line-height: 1.75;
}

.site-footer__hours p {
  margin: 0 0 0.75rem;
}

.site-footer__label {
  display: block;
  margin-bottom: 0.1875rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5625rem;
  font-size: 0.9375rem;
}

.site-footer__nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-footer__nav a:hover::after,
.site-footer__nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.125rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--footer-line);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__social {
  display: flex;
  gap: 0.625rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.site-footer__social a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.8);
}

.site-footer__social .icon {
  width: 1rem;
  height: 1rem;
}

/* Wunsch der Kanzlei: weiße, fast durchsichtige Linien in der rechten
   Footer-Hälfte. Reiner Hintergrund, Texte und Links liegen darüber. */
.site-footer--loewen,
.site-footer--linien {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-footer--loewen::before,
.site-footer--linien::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
}

.site-footer--loewen::before {
  top: 1.5rem;
  bottom: 1.5rem;
  right: max(1rem, (100% - 71.25rem) / 2 - 2.5rem);
  aspect-ratio: 182 / 215;
  background-image: url("../images/footer-loewen.svg?v=20261027");
  background-position: center;
  background-size: contain;
  opacity: 0.13;
}

.site-footer--linien::before {
  top: 0;
  bottom: 0;
  right: 0;
  width: min(62%, 56rem);
  background-image: url("../images/footer-linien.svg?v=20261027");
  background-position: left center;
  background-size: cover;
  opacity: 0.13;
  mask-image: linear-gradient(to right, transparent, #000 35%);
}

/* --- Mobil ---------------------------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --header-main-h: 4.75rem;
    --header-h: var(--header-main-h);
  }

  .site-header__service {
    display: none;
  }

  .site-header:not(.is-solid):not(.is-scrolled) .site-header__main {
    background: rgba(255, 255, 255, 0.94);
  }

  .logo .logo__mark {
    width: 11.25rem;
    max-height: 3.5rem;
  }

  .site-header.is-scrolled .logo .logo__mark {
    width: 10rem;
  }

  .logo {
    gap: 0.625rem;
  }

  .logo .logo__crest {
    height: 2.875rem;
    padding-right: 0.625rem;
  }

  .header-call,
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.375rem 1.125rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  body.nav-open .nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__links a {
    padding: 0.9375rem 0.125rem;
    border-bottom: 1px solid rgba(134, 107, 68, 0.18);
  }

  .nav__links a::after {
    display: none;
  }

  .nav__contact {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 1.125rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(134, 107, 68, 0.32);
    font-size: 0.90625rem;
  }

  .nav__contact a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-muted);
    text-decoration: none;
  }

  .langswitch--menu {
    display: flex;
    gap: 0.375rem;
    margin: 1.125rem 0 0;
    padding-left: 0;
    border-left: 0;
  }

  .langswitch--menu a {
    flex: 1;
    padding: 0.5625rem 0;
    text-align: center;
    font-size: 0.8125rem;
    border: 1px solid rgba(134, 107, 68, 0.32);
    border-radius: 0;
  }

  .langswitch--menu a.is-active {
    border-color: var(--color-primary);
  }

  .site-header.is-scrolled .langswitch--menu {
    display: flex;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.875rem;
    padding: 2.125rem 0 1.625rem;
  }

  /* Telefonzeiten und Telefax stehen vollständig auf der Kontaktseite. */
  .site-footer__phonehours,
  .site-footer__line--fax {
    display: none;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }

  /* Einspaltig: Linien nur unten rechts neben Navigation und Wappen */
  .site-footer--loewen::before {
    top: auto;
    bottom: 5rem;
    right: 1rem;
    height: 15rem;
    opacity: 0.1;
  }

  .site-footer--linien::before {
    top: auto;
    width: 100%;
    height: 26rem;
    background-position: right bottom;
    background-size: auto 100%;
    opacity: 0.11;
    mask-image: linear-gradient(to bottom, transparent, #000 40%);
  }
}

/* ==========================================================================
   Einwilligung und gesperrte Einbettungen
   ========================================================================== */

.consent {
  position: fixed;
  z-index: 200;
  inset: auto 0 0 0;
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  background: var(--color-surface);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 -8px 40px rgba(42, 26, 0, 0.18);
}

.consent[hidden] {
  display: none;
}

.consent__inner {
  width: min(100% - 1rem, 52rem);
  margin-inline: auto;
}

.consent__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--color-primary-deep);
}

.consent__text {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted);
  text-wrap: pretty;
}

.consent__categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.consent__category label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}

.consent__category input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--color-primary);
}

.consent__category input:disabled {
  cursor: default;
}

.consent__category strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-deep);
}

.consent__category em {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.5;
  color: var(--color-muted);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.consent__actions .btn {
  flex: 1 1 auto;
  min-height: 2.75rem;
}

.consent__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1rem 0 0;
  font-size: 0.8125rem;
}

/* Breite Bildschirme: Erklärung links, Schaltflächen als Spalte rechts.
   Das halbiert die Höhe des Banners, ohne Text wegzulassen. */
@media (min-width: 901px) {
  .consent {
    padding-block: 1.125rem calc(1.125rem + env(safe-area-inset-bottom));
  }

  .consent__inner {
    width: min(100% - 2rem, 72rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    grid-template-areas:
      "title actions"
      "text  actions"
      "cats  actions"
      "legal actions";
    column-gap: 3rem;
  }

  .consent__title { grid-area: title; margin-bottom: 0.375rem; }
  .consent__text { grid-area: text; margin-bottom: 0.875rem; font-size: 0.875rem; }
  .consent__categories { grid-area: cats; margin-bottom: 0.75rem; }
  .consent__legal { grid-area: legal; margin-top: 0; }

  .consent__actions {
    grid-area: actions;
    align-self: center;
    flex-direction: column;
    padding-left: 3rem;
    margin-left: -3rem;
    border-left: 1px solid rgba(134, 107, 68, 0.2);
  }

  .consent__actions .btn {
    flex: 0 0 auto;
  }
}

/* Schmale Bildschirme: Die Beschreibungen der beiden Kategorien wiederholen
   den Einleitungstext und entfallen hier; dazu zwei Schaltflächen
   nebeneinander. So bleibt vom Inhalt der Seite noch etwas zu sehen. */
@media (max-width: 700px) {
  .consent {
    padding-block: 1rem calc(1rem + env(safe-area-inset-bottom));
  }

  .consent__title { margin-bottom: 0.375rem; font-size: 1.05rem; }
  .consent__text { margin-bottom: 0.75rem; font-size: 0.8125rem; line-height: 1.55; }

  .consent__categories {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.875rem;
  }

  .consent__category em { display: none; }
  .consent__category strong { font-size: 0.875rem; }

  .consent__actions .btn {
    flex: 1 1 calc(50% - 0.3125rem);
    min-height: 2.625rem;
    padding-inline: 0.75rem;
    font-size: 0.875rem;
  }

  .consent__actions .btn:first-child {
    flex-basis: 100%;
  }

  .consent__legal { margin-top: 0.75rem; }
}

.site-footer__consent {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer__consent:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Gesperrte Einbettung -------------------------------------------------- */

.embed {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ece8dc;
}

.embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed.is-loaded .embed__placeholder {
  display: none;
}

.embed__placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.embed__placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.35;
}

.embed__note {
  position: relative;
  width: min(100% - 2rem, 34rem);
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.embed__note p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.embed__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.embed__hint {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.85;
}

@media (max-width: 700px) {
  .embed__note {
    padding: 1.125rem;
  }
}

/* ==========================================================================
   Teamseite
   ========================================================================== */

.team-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2.75rem;
}

.team-intro h2 {
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a08f74;
}

.team-intro p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.team-intro p:last-child {
  margin-bottom: 0;
}

/* Abschnittsüberschrift mit auslaufender Linie */
.rule-head {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin: 0 0 1.625rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
}

.rule-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(134, 107, 68, 0.18);
}

.section--plain {
  background: var(--color-surface);
}

/* --- Notarin -------------------------------------------------------------- */

.lead-card {
  display: grid;
  grid-template-columns: 20rem 1fr;
  gap: 2.875rem;
  align-items: center;
  padding: 2.125rem;
  background: var(--color-surface);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 2px 30px rgba(42, 26, 0, 0.07);
}

.lead-card__photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 20%;
}

.lead-card__role {
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a08f74;
}

.lead-card h3 {
  margin: 0 0 0.875rem;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 400;
  color: var(--color-primary-deep);
}

.lead-card__bio {
  margin: 0 0 1.25rem;
  max-width: 46ch;
}

.lead-card__bio p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.lead-card__bio p:last-child {
  margin-bottom: 0;
}

.lead-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.625rem;
  font-size: 0.9375rem;
}

.lead-card__meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.lead-card__meta .icon {
  opacity: 0.8;
}

/* --- Team-Raster ---------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.875rem 1.5rem;
}

.member {
  background: var(--color-surface);
}

.member__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

/* Initialen, wenn kein Foto vorliegt */
.member__photo.is-placeholder,
.lead-card__photo.is-placeholder {
  display: grid;
  place-items: center;
  background: #f3efe8;
}

.member__photo.is-placeholder span,
.lead-card__photo.is-placeholder span {
  font-size: 2.125rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #b3a184;
}

.lead-card__photo.is-placeholder span {
  font-size: 3.25rem;
}

.member__body {
  padding: 0.8125rem 0.875rem 0.9375rem;
  border-top: 1px solid rgba(134, 107, 68, 0.18);
  text-align: center;
}

.member__body strong {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-primary-deep);
}

.member__body span {
  display: block;
  margin-top: 0.1875rem;
  hyphens: auto;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #8e7a5e;
}

/* Beruf und E-Mail halbtransparent über dem Foto, sobald die Maus darüber
   fährt oder die E-Mail-Adresse per Tastatur angesteuert wird. */
.member__media {
  position: relative;
}

.member__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.member:hover .member__overlay,
.member__overlay:focus-within {
  opacity: 1;
}

.member__overlay-role {
  max-width: 16rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-primary-deep);
}

.member__overlay-role::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  margin: 0.875rem auto 0;
  background: var(--color-primary);
}

.member__overlay-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-primary-deep);
  text-decoration: underline;
  text-decoration-color: rgba(134, 107, 68, 0.45);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.member__overlay-mail:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}

.member__overlay-mail .icon {
  color: var(--color-primary);
}

/* E-Mail unter dem Namen nur ohne Maus (Handy, Tablet) */
.member__mail {
  display: none;
}

@media (hover: none) {
  .member__overlay {
    display: none;
  }

  .member__body .member__mail {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-primary);
  }
}

/* Kachel "Jetzt bewerben!" am Ende des Teams: grauer Kopf wie bei einem
   fehlenden Foto, als Link zur Stellenanzeige */
.member--apply {
  display: block;
  text-decoration: none;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

/* In einem Link stehen Spans statt Divs; sie brauchen Blockdarstellung. */
.member--apply .member__body {
  display: block;
}

.member__photo.is-silhouette {
  overflow: hidden;
  background: #ebe8e3;
}

.member__photo.is-silhouette svg {
  width: 100%;
  height: 100%;
  align-self: end;
  fill: #c2bdb6;
  transition: fill 0.2s var(--ease);
}

.member--apply .member__body strong {
  color: var(--color-primary);
  font-weight: 500;
}

.member__arrow {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.12em;
  transition: transform 0.2s var(--ease);
}

.member--apply:hover,
.member--apply:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.member--apply:hover .member__photo.is-silhouette svg,
.member--apply:focus-visible .member__photo.is-silhouette svg {
  fill: #b3a184;
}

.member--apply:hover .member__arrow,
.member--apply:focus-visible .member__arrow {
  transform: translateY(2px);
}

/* --- Stellenanzeige ------------------------------------------------------- */

/* Einspaltig, weil die Stellenanzeige eine vollständige Ausschreibung mit
   Zwischenüberschriften und Listen ist. Neben so einem Text stünde die
   Schaltfläche sonst mittig im Leeren. */
.jobs {
  padding: 2.125rem 2.375rem;
  background: #f3efe8;
  border-left: 3px solid var(--color-primary);
}

.jobs__text :where(ul, ol) {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.jobs__text li {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.jobs h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3125rem;
  font-weight: 400;
  color: var(--color-primary-deep);
}

.jobs p {
  margin: 0 0 0.5rem;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.jobs p:last-child {
  margin-bottom: 0;
}

.jobs__action {
  margin: 1.25rem 0 0;
}

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

@media (max-width: 800px) {
  .lead-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lead-card__photo {
    max-width: 17rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* In den schmalen Kacheln fände der Pfeil keinen Platz neben dem Text. */
  .member__arrow {
    display: none;
  }

  .jobs {
    padding: 1.5rem 1.625rem;
  }
}

/* ==========================================================================
   Leistungs-Unterseiten
   ========================================================================== */

.service-intro {
  display: grid;
  grid-template-columns: 26rem 1fr;
  gap: 2.75rem;
  align-items: start;
}

.service-intro__figure {
  margin: 0;
}

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

.service-intro__text p {
  font-size: 1.05rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.section-lead {
  margin: -0.75rem 0 1.5rem;
  max-width: 68ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted);
  text-wrap: pretty;
}

/* --- Formulare und Fachlinks ---------------------------------------------- */

.file-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-grid a,
.link-grid a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 0.9375rem 1.125rem;
  background: var(--color-surface);
  border: 1px solid rgba(134, 107, 68, 0.18);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.file-grid a:hover,
.link-grid a:hover {
  border-color: var(--color-primary);
  background: #fbf9f5;
}

.file-grid__label,
.link-grid__label {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-primary-deep);
}

.file-grid__meta,
.link-grid__meta {
  flex: 0 0 auto;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #a08f74;
  white-space: nowrap;
}

.link-grid a {
  background: transparent;
  border-style: dashed;
}

.link-grid a:hover {
  background: var(--color-surface);
  border-style: solid;
}

/* --- Online-Verfahren ----------------------------------------------------- */

.embed--service {
  min-height: 16rem;
  background: var(--color-surface);
  border: 1px solid rgba(134, 107, 68, 0.18);
}

.embed__placeholder--plain {
  padding: 2.5rem 1rem;
}

.embed--service .embed__note {
  background: transparent;
  box-shadow: none;
}

.embed--service.is-loaded {
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .service-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .service-intro__figure img {
    aspect-ratio: 16/9;
  }
}

/* ==========================================================================
   Leistungsübersicht
   ========================================================================== */

.lead-text {
  max-width: 74ch;
  margin-bottom: 2.75rem;
}

.lead-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(134, 107, 68, 0.12);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(42, 26, 0, 0.12);
}

.service-card__photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.service-card__body {
  display: block;
  padding: 1.125rem 1.25rem 1.375rem;
  border-top: 1px solid rgba(134, 107, 68, 0.18);
}

.service-card__body strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-primary-deep);
}

.service-card__teaser {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
  text-wrap: pretty;
}

/* --- Notarkosten ---------------------------------------------------------- */

.costs {
  columns: 2;
  column-gap: 2.75rem;
  max-width: none;
}

.costs p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  break-inside: avoid;
  text-wrap: pretty;
}

.costs__download {
  margin-top: 1.5rem;
  grid-template-columns: minmax(0, 26rem);
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .costs {
    columns: 1;
  }

  .services-banner {
    height: 16rem;
  }
}

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

/* ==========================================================================
   Kontaktseite
   ========================================================================== */

/* --- Schnellkontakt -------------------------------------------------------- */

.contact-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-quick a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  height: 100%;
  padding: 1.125rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid rgba(134, 107, 68, 0.18);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-quick a:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.contact-quick .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
}

.contact-quick strong {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-primary-deep);
}

.contact-quick strong + span {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-muted);
}

/* --- Formular und Seitenspalte -------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 3rem;
  align-items: start;
}

.contact-form .rule-head,
.contact-aside .rule-head {
  margin-bottom: 1.25rem;
}

.contact-form .section-lead {
  margin: 0 0 1.25rem;
}

.form {
  display: grid;
  gap: 1.125rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

.form label {
  display: grid;
  gap: 0.375rem;
  font-size: 0.9375rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--color-primary-deep);
  background: var(--color-surface);
  border: 1px solid rgba(134, 107, 68, 0.35);
  border-radius: 0;
  padding: 0.75rem 0.875rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(134, 107, 68, 0.14);
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form__check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--color-primary);
}

.form__actions {
  margin-top: 0.375rem;
}

.contact-aside {
  padding: 1.75rem;
  background: var(--color-surface);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 2px 30px rgba(42, 26, 0, 0.07);
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6875rem;
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.contact-line .icon {
  margin-top: 0.25rem;
  opacity: 0.75;
}

.contact-line a {
  text-decoration: none;
}

.contact-hours {
  margin-top: 1.375rem;
  padding-top: 1.125rem;
  border-top: 1px solid rgba(134, 107, 68, 0.18);
}

.contact-hours h3 {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a08f74;
}

.contact-hours p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Anfahrt --------------------------------------------------------------- */

/* Einspaltig: der Text besteht aus Zwischenüberschriften mit zugehörigen
   Absätzen. Im Spaltensatz reißt CSS beide auseinander. */
.directions {
  max-width: 72ch;
}

.directions p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.directions p strong {
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--color-primary-deep);
}

/* Auf der Kontaktseite steht die Karte am Seitenende und darf höher sein. */
.page-kontakt .home-map {
  height: 26rem;
}

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

  .contact-layout,
  .form__row {
    grid-template-columns: 1fr;
  }

  .page-kontakt .home-map {
    height: 18rem;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19.5rem;
  gap: 3rem;
  align-items: start;
}

.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin: -0.5rem 0 1.5rem;
}

.faq-intro {
  max-width: 46rem;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.faq-toggle {
  padding: 0.25rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(134, 107, 68, 0.4);
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.faq-toggle:hover {
  color: var(--color-primary-deep);
  text-decoration-color: currentColor;
}

.faq-list {
  display: grid;
  gap: 0.625rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid rgba(134, 107, 68, 0.16);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item:hover {
  border-color: rgba(134, 107, 68, 0.4);
}

.faq-item[open] {
  border-color: rgba(134, 107, 68, 0.35);
  box-shadow: 0 4px 28px rgba(42, 26, 0, 0.07);
}

.faq-item summary {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.375rem 1.125rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.faq-item__num {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: #b3a184;
  transition: color 0.2s var(--ease);
}

.faq-item[open] .faq-item__num,
.faq-item summary:hover .faq-item__num {
  color: var(--color-primary);
}

.faq-item__question {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-primary-deep);
  text-wrap: pretty;
}

.faq-item__marker {
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  box-sizing: border-box;
  border: 1px solid rgba(134, 107, 68, 0.25);
  border-radius: 50%;
  color: var(--color-primary);
  transition: transform 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.faq-item summary:hover .faq-item__marker {
  border-color: var(--color-primary);
}

.faq-item[open] .faq-item__marker {
  transform: rotate(180deg);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Weiches Auf- und Zuklappen, wo der Browser es kann; sonst wie bisher */
@media (prefers-reduced-motion: no-preference) {
  .faq-list {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* --- Antworten ------------------------------------------------------------ */

.faq-item__body {
  margin: 0 1.375rem 0 4.5rem;
  padding: 1.25rem 0 1.625rem;
  border-top: 1px solid rgba(134, 107, 68, 0.14);
}

/* Die Linie läuft über die volle Breite, der Text bleibt gut lesbar schmal. */
.faq-item__body > * {
  max-width: 70ch;
}

.faq-item__body > :first-child {
  margin-top: 0;
}

.faq-item__body > :last-child {
  margin-bottom: 0;
}

.faq-item__body p,
.faq-item__body li,
.faq-item__body td,
.faq-item__body th {
  font-size: 0.9375rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.faq-item__body p {
  margin: 0 0 0.875rem;
}

.faq-item__body h3 {
  margin: 1.75rem 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-deep);
}

.faq-item__body strong {
  font-weight: 500;
  color: var(--color-primary-deep);
}

.faq-item__body a {
  color: var(--color-primary-deep);
  text-decoration: underline;
  text-decoration-color: rgba(134, 107, 68, 0.45);
  text-underline-offset: 0.2em;
}

.faq-item__body a:hover {
  text-decoration-color: currentColor;
}

/* Hinweis in Kursivschrift als eigener Kasten */
.faq-item__body p:has(> em:only-child) {
  padding: 0.75rem 1rem;
  background: #f6f2ec;
  border-left: 2px solid var(--color-primary);
}

.faq-item__body p > em:only-child {
  font-style: normal;
}

/* Aufzählungen */
.faq-item__body ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.faq-item__body ul li {
  position: relative;
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
}

.faq-item__body ul li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.7em;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-primary);
  transform: rotate(45deg);
}

/* Ablauf in Schritten */
.faq-item__body ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.faq-item__body ol li {
  position: relative;
  margin: 0;
  padding: 0 0 1.25rem 3rem;
  counter-increment: step;
}

.faq-item__body ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-surface);
}

/* Verbindungslinie zwischen den Schritten */
.faq-item__body ol li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 2.25rem;
  bottom: 0.25rem;
  border-left: 1px dashed rgba(134, 107, 68, 0.4);
}

.faq-item__body ol li:last-child {
  padding-bottom: 0;
}

.faq-item__body ol strong {
  display: inline-block;
  margin-bottom: 0.125rem;
  font-size: 1rem;
  line-height: 2rem;
}

/* Übersichtstabelle */
.faq-item__body table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.faq-item__body th {
  padding: 0 0.75rem 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  color: #8e7a5e;
  border-bottom: 1px solid rgba(134, 107, 68, 0.3);
}

.faq-item__body td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid rgba(134, 107, 68, 0.14);
  vertical-align: top;
}

.faq-item__body td:last-child,
.faq-item__body th:last-child {
  padding-right: 0;
  white-space: nowrap;
  text-align: right;
  color: var(--color-primary-deep);
}

/* Zielmarkierung beim Aufruf über einen Link auf eine einzelne Frage */
.faq-item:target {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(134, 107, 68, 0.14);
}

/* --- Kontaktkasten -------------------------------------------------------- */

.faq-aside {
  position: sticky;
  top: calc(var(--header-main-h-compact) + 1.5rem);
  /* Abstand wie die Überschrift links, damit beide oben bündig stehen */
  margin-top: 0.25rem;
}

.faq-help {
  padding: 1.75rem 1.75rem 1.875rem;
  background: #f3efe8;
  border-top: 3px solid var(--color-primary);
}

.faq-help h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-primary-deep);
}

.faq-help > p {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-help__line {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-primary-deep);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.faq-help__line--phone {
  font-size: 1.1875rem;
  white-space: nowrap;
}

.faq-help__line .icon {
  color: var(--color-primary);
}

.faq-help__line:hover {
  color: var(--color-primary);
}

.faq-help__hours {
  margin: 1rem 0 1.375rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(134, 107, 68, 0.2);
  font-size: 0.875rem;
  line-height: 1.6;
}

.faq-help__hours span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8e7a5e;
}

.faq-help__button {
  width: 100%;
}

@media (max-width: 1000px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .faq-aside {
    position: static;
    margin-top: 0;
  }

  .faq-help {
    max-width: 34rem;
  }
}

@media (max-width: 600px) {
  .faq-item summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.875rem;
    padding: 1rem 1rem 1rem 1.125rem;
  }

  .faq-item__num {
    display: none;
  }

  .faq-item__question {
    font-size: 1rem;
  }

  .faq-item__body {
    margin: 0 1.125rem;
  }

  .faq-item__body td:first-child {
    hyphens: auto;
  }
}

/* Sprungziele dürfen nicht unter dem mitlaufenden Header verschwinden. */
:target {
  scroll-margin-top: calc(var(--header-main-h-compact) + 1.5rem);
}

/* ==========================================================================
   Startseite: Willkommen, Adresse, Kacheln, Teaser
   ========================================================================== */

.home-welcome {
  background: var(--color-bg);
}

.home-welcome__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.home-welcome h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.2;
}

.home-welcome__copy p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.home-welcome__copy p:last-child {
  margin-bottom: 0;
}

.home-address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(134, 107, 68, 0.18);
}

.home-address__line {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.home-address__line--place {
  flex-basis: 100%;
}

.home-address__line .icon {
  margin-top: 0.2rem;
  flex: 0 0 auto;
  opacity: 0.75;
  color: var(--color-primary);
}

.home-address__line a {
  text-decoration: none;
}

/* --- Kachel-Navigation ---------------------------------------------------- */

.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(134, 107, 68, 0.12);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(42, 26, 0, 0.12);
}

.home-card__photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.home-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  padding: 1.125rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(134, 107, 68, 0.18);
}

.home-card__body strong {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-primary-deep);
}

.home-card__teaser {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
  text-wrap: pretty;
}

.home-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.home-card__arrow {
  width: 0.875rem;
  height: 0.875rem;
  transform: rotate(-90deg);
  transition: transform 0.25s var(--ease);
}

.home-card:hover .home-card__arrow {
  transform: rotate(-90deg) translateY(0.25rem);
}

.home-note {
  margin: 2.5rem auto 0;
  max-width: 60rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-muted);
  text-align: center;
  text-wrap: pretty;
}

/* --- Teaser --------------------------------------------------------------- */

.home-teaser {
  background: var(--color-bg);
}

.home-teaser__inner {
  max-width: 60rem;
}

.home-teaser__inner p {
  font-size: 1.0625rem;
  line-height: 1.7;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .home-welcome__head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .home-nav-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Wartungsmodus
   ========================================================================== */

.page-maintenance {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--color-bg);
}

.maintenance {
  width: min(100%, 36rem);
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 6vw, 3.5rem);
  text-align: center;
  background: var(--color-surface);
  border-top: 3px solid var(--color-primary);
  box-shadow: var(--shadow);
}

.maintenance__logo {
  display: block;
  width: min(100%, 15rem);
  height: auto;
  margin: 0 auto 2rem;
}

.maintenance__title {
  margin: 0 0 0.875rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-primary);
}

.maintenance__text {
  margin: 0 auto 1.5rem;
  max-width: 30rem;
  color: var(--color-muted);
  text-wrap: pretty;
}

.maintenance__note {
  margin: 0 0 1.75rem;
  padding: 0.875rem 1.125rem;
  background: #f2ede6;
  border-left: 3px solid var(--color-primary);
  color: var(--color-primary-deep);
  text-align: left;
}

.maintenance__contact {
  display: grid;
  gap: 0.625rem;
  justify-content: center;
  margin: 0 0 1.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(134, 107, 68, 0.2);
  list-style: none;
  text-align: left;
}

.maintenance__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.maintenance__contact .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.25rem;
  flex: 0 0 auto;
  color: var(--color-primary);
}

.maintenance__contact a {
  text-decoration: none;
}

.maintenance__hours {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.maintenance__hours span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hinweis für angemeldete Nutzer */
.maintenance-bar {
  position: fixed;
  z-index: 300;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.875rem;
  max-width: calc(100% - 2rem);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #fff;
  background: var(--color-primary-deep);
  border-left: 3px solid var(--color-primary);
  box-shadow: 0 8px 30px rgba(42, 26, 0, 0.25);
}

/* Solange der Cookie-Hinweis unten steht, weicht der Balken nach oben aus. */
body:has(.consent:not([hidden])) .maintenance-bar {
  top: 1rem;
  bottom: auto;
}

.maintenance-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Englisch/Russisch: Hinweis, dass die Formulare deutsch sind */
.forms-language {
  display: inline-block;
  margin: -0.5rem 0 1.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-primary-deep);
  background: #f3efe8;
  border-left: 2px solid var(--color-primary);
}
