:root {
  --bg: #fff;
  --primary: #77c03d;
  --secondary: #7b858f;
  --font: #214b64;
  --custom: #efe1d3;
  --radius: 16px;
  --sep: #e6ebef;
  --alt1: #ffffff;
  --alt2: #f7fbfc;
  --alt2-grad: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
}




body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--font);
  background: var(--bg)
}

.text-font {
  color: var(--font)
}

.bg-custom {
  background: var(--font)
}

/* Buttons / Bootstrap overrides */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: #69ac36;
  --bs-btn-hover-border-color: #69ac36
}

.text-secondary {
  color: var(--secondary) !important
}

/* Full-bleed hero */
.hero-bleed {
  position: relative;
  min-height: 75vh;
}

.hero-img {
  display: block;
  width: 95%;
  height: 75vh;
  object-fit: cover;
  /* Fokus weiter unten setzen (x y): */
  object-position: 50% 30%;
  /* center + tiefer (85–100% = näher zum unteren Rand) */
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  /* zentriert Content */
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .35));
  z-index: 2;
  /* über dem Bild */
  pointer-events: none;
  /* Overlay klickt nicht weg */
}

.hero-overlay .btn {
  pointer-events: auto;
  /* Buttons klickbar */
  background-color: #77c03d;
  border-color: #77c03d;
  color: #0e1a1f;
  font-weight: 600;
}

.hero-overlay .container {
  padding-bottom: 6rem;
}

.text-shadow {
  text-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}

@media (max-width: 767.98px) {
  .hero-bleed {
    min-height: 72vh;
  }

  .hero-img {
    height: 72vh;
  }

  .hero-overlay .container {
    padding-bottom: 3.5rem;
  }

  .hero-overlay .btn {
    background-color: #77c03d;
  }

  .hero-overlay h1 {
    font-size: 2.3rem;
  }
}

.hero-icon-strip {
  position: relative;
  margin-top: -5.5rem;
  margin-bottom: 3.2rem;
  z-index: 2;
}

.hero-icon-strip .container {
  display: flex;
}

.hero-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.1rem;
  width: 100%;
  padding: .6rem .1rem;
  background: rgba(20, 57, 76, 0.40);
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(10, 31, 43, .28);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .55rem;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, color .2s ease;
}

.hero-icon-item:hover,
.hero-icon-item:focus-visible {
  transform: scale(1.05);
  color: #77c03d;
}

.hero-icon-item:focus-visible {
  outline: 3px solid rgba(119, 192, 61, .45);
  outline-offset: 6px;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  color: inherit;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.hero-icon svg {
  width: 30px;
  height: 30px;
}

.hero-icon-label {
  font-weight: 600;
  letter-spacing: .02em;
}


.section-below-fold { content-visibility:auto; contain-intrinsic-size: 1px 1000px; }


@media (max-width: 991.98px) {
  .hero-icon-strip {
    margin-top: -.8rem;
    margin-bottom: 3.4rem;
  }

  .hero-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-icon-strip {
    margin-top: -.4rem;
    margin-bottom: 2.4rem;
  }

  .hero-icon-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .35rem;
    padding: .75rem .4rem;
    background: transparent;
    box-shadow: none;
    color: var(--font);
    backdrop-filter: none;
  }

  .hero-icon-item {
    gap: .35rem;
  }

  .hero-icon {
    width: 28px;
    height: 28px;
    background: transparent;
    box-shadow: none;
  }

  .hero-icon svg {
    width: 22px;
    height: 22px;
  }

  .hero-icon-label {
    font-size: .78rem;
  }
}

.hero-icon-item:hover .hero-icon,
.hero-icon-item:focus-visible .hero-icon {
  background: rgba(119, 192, 61, .18);
  box-shadow: inset 0 0 0 1px rgba(119, 192, 61, .45), 0 8px 18px rgba(119, 192, 61, .25);
}

.product-feature-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-feature-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 20px 40px rgba(14, 26, 31, 0.2);
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-feature-card:hover,
.product-feature-card:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 28px 60px rgba(14, 26, 31, 0.28);
  color: #77c03d;
}

.product-feature-card:focus-visible {
  outline: 3px solid rgba(119, 192, 61, .45);
  outline-offset: 6px;
}

.product-feature-media {
  position: relative;
  width: 100%;
  padding-top: 68%;
  overflow: hidden;
}

.product-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.product-feature-card:hover .product-feature-media img,
.product-feature-card:focus-visible .product-feature-media img {
  transform: scale(1.1);
}

.product-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 28, 36, 0.1) 0%, rgba(12, 28, 36, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.6rem;
  transition: background .25s ease;
}

.product-feature-card:hover .product-feature-overlay,
.product-feature-card:focus-visible .product-feature-overlay {
  background: linear-gradient(180deg, rgba(12, 28, 36, 0.05) 0%, rgba(12, 28, 36, 0.55) 100%);
}

.product-feature-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  transition: color .25s ease;
}

.product-feature-card:hover .product-feature-title,
.product-feature-card:focus-visible .product-feature-title {
  color: #77c03d;
}

@media (max-width: 575.98px) {
  .product-feature-grid {
    gap: 1rem;
  }

  .product-feature-title {
    font-size: 1.05rem;
  }
}

/* Alternierende Sektionen */
.section {
  scroll-margin-top: 90px
}

#kontakt {
  scroll-margin-top: 90px;
}


.section-alt-1 {
  background: var(--alt1)
}

.section-alt-2 {
  background: var(--alt2-grad)
}

/* Trennlinie zwischen Sektionen */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sep), transparent)
}

/* Cards & Galerie */
.badge-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover
}

/* ===== Kontaktformular Basis ===== */
#contactForm {
  --brand: #244e5b;
  --brand-2: #3aa84f;
  --text: #0e1a1f;
  --muted: #f4f7f8;
  --danger: #c62828;
  --ok: #1b5e20;

  display: grid;
  gap: 1rem;
  font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
}

/* Zweispaltige Reihen – fallen auf Mobil auf 1 Spalte zurück */
#contactForm .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  #contactForm .row {
    grid-template-columns: 1fr;
  }
}

/* Gruppen */
#contactForm label {
  display: inline-block;
  margin-bottom: .5rem;
  font-weight: 600;
}

/* Inputs */
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm input[type="phone"],
#contactForm input[type="name"],
#contactForm select,
#contactForm textarea {
  width: 100%;
  border: 1px solid #d7e0e4;
  border-radius: .5rem;
  background: #fff;
  padding: .75rem .9rem;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* Höhe Textarea */
#contactForm textarea {
  min-height: 140px;
  resize: vertical;
}

/* Fokuszustände (barrierearm) */
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 80%, #000 0%);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 20%, transparent);
}

/* Pflichtfeld- und Fehlerzustände */
#contactForm [required]:required:user-invalid,
#contactForm [aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff7f7;
}

#contactForm .help {
  margin: .25rem 0 0;
  font-size: .875rem;
  color: #6b7b85;
}

/* Consent (Checkbox + Text als Block klickbar) */
#contactForm .consent-field {
  background: var(--muted);
  border: 1px solid #e6ecef;
  border-radius: .5rem;
  padding: .85rem 1rem;
}

#contactForm .consent-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: flex-start;
  cursor: pointer;
}

#contactForm .consent-label input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .2rem;
}

/* CTA-Bereich */
#contactForm .cta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Buttons (Bootstrap-ähnlich, ohne Bootstrap) */
#contactForm .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: .6rem;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .02s ease, background-color .15s ease, border-color .15s ease;
  user-select: none;
}

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

#contactForm .btn-primary {
  background: var(--brand);
  color: #fff;
}

#contactForm .btn-primary:hover {
  background: color-mix(in srgb, var(--brand) 85%, #000 15%);
}

#contactForm .btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 25%, #000 0%);
}

#contactForm .btn-ghost:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-color: color-mix(in srgb, var(--brand) 45%, #000 0%);
  text-decoration: none;
}

/* Erfolg- / Fehlermeldungen (default: versteckt) */
#contactForm .success,
#contactForm .error {
  display: none;
  padding: .9rem 1rem;
  border-radius: .6rem;
  border: 1px solid transparent;
  font-weight: 600;
}

#contactForm .success {
  background: #f0fff4;
  border-color: #c9e8cf;
  color: var(--ok);
}

#contactForm .error {
  background: #fff5f5;
  border-color: #f2c7c7;
  color: var(--danger);
}

/* Klasse, um Meldungen sichtbar zu schalten (per JS/PHP) */
#contactForm .is-visible {
  display: block;
}

/* Privacy-Link optisch hervorheben */
#contactForm [data-open="privacy"] {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Barrierefreiheit: sichtbarer Tastaturfokus für Links */
#contactForm a:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent);
  outline-offset: 2px;
}

/* Honeypot unsichtbar (falls CSS statt inline-style genutzt werden soll) */
#contactForm #company {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Spalten sauber ausrichten */
#contactForm .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  #contactForm .row {
    grid-template-columns: 1fr;
  }
}

/* Jede Spalte: Label über Input, einheitliche Abstände */
#contactForm .row>div {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* Einheitliches Aussehen für alle Felder */
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm select,
#contactForm textarea {
  width: 100%;
  border: 1px solid #d7e0e4;
  border-radius: .5rem;
  background: #fff;
  padding: .75rem .9rem;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* Select cross-browser angleichen */
#contactForm select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8aa3ad 50%),
    linear-gradient(135deg, #8aa3ad 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) calc(50% - 3px),
    calc(100% - .9rem) calc(50% - 3px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
  /* Platz für Chevron */
}

/* Fokuszustand */
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: #244e5b;
  box-shadow: 0 0 0 .2rem rgba(36, 78, 91, .15);
}

/* Textarea Höhe */
#contactForm textarea {
  min-height: 160px;
}

.navbar-brand img {
  max-height: 60px;
  /* Logo Höhe fixieren */
  height: auto;
  width: auto;
}

.navbar-brand span {
  font-size: 1rem;
  font-weight: 600;
}

.navbar-brand small {
  font-size: .875rem;
  color: #6c757d;
  /* leicht grau */
}

.brand-subline {
  font-size: 0.75rem;
  /* kleiner */
  font-weight: 400;
  /* normaler Schnitt */
  color: #6b7b85;
  /* ein dezentes Grau */
  line-height: 1.2;
  /* etwas kompakter */
  margin-top: -2px;
  /* optisch näher an den Slogan */
}

/* Farben (falls noch nicht vorhanden) */
:root {
  --brand: #244e5b;
  --text: #0e1a1f;
  --muted: #f4f7f8;
  --border: #d7e0e4;
}

/* Banner */
.c-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, .45);
  /* halbtransparent, Abdunkelung */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 5vh 1rem;
  /* Abstand von oben */
}

.c-banner-inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c-banner-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.c-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .c-banner-actions {
    justify-content: center;
  }
}

/* Modal */
.c-modal[hidden] {
  display: none !important;
}

.c-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.c-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.c-modal-dialog {
  position: relative;
  max-width: 760px;
  width: 92%;
  margin: 6vh auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  outline: none;
  display: flex;
  flex-direction: column;
}

.c-modal-header,
.c-modal-footer {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.c-modal-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

.c-modal-body {
  padding: 1rem 1.25rem;
}

.c-modal-close {
  margin-left: auto;
  font-size: 1.4rem;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* Kategorien */
.c-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.c-cat {
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .75rem 1rem;
  background: #fff;
}

.c-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.c-cat-desc {
  margin: .25rem 0 .5rem;
  color: #55616a;
}

.c-cat-detail {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: .5rem 1rem;
  padding: .5rem 0 0;
  font-size: .95rem;
}

@media (max-width: 640px) {
  .c-banner-inner {
    grid-template-columns: 1fr;
  }

  .c-cat-detail {
    grid-template-columns: 1fr;
  }
}

/* Switch (Slider) */
.c-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.c-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.c-slider {
  position: absolute;
  inset: 0;
  background: #cfd8dc;
  border-radius: 999px;
  transition: .2s;
}

.c-slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: .2s;
}

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

.c-switch input:checked+.c-slider:before {
  transform: translateX(20px);
}

.c-switch input:disabled+.c-slider {
  background: #b0bec5;
  cursor: not-allowed;
}

/* Buttons (nutzt deine vorhandenen btn/btn-ghost/btn-primary Klassen) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: .55rem;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

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

.btn-ghost {
  background: #fff;
  color: var(--brand);
  border-color: #cfe0e6;
}

.btn-primary:hover {
  filter: brightness(.95);
}

.btn-ghost:hover {
  background: #f2f8fa;
}

/* Icons inline schön ausrichten */
.contact-row {
  line-height: 1.4;
}


.contact-icon {
  width: 1em;
  /* skaliert wie Textgröße */
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Einheitliche Icon-Darstellung */
.contact-icon2-head {
  width: 1em;
  height: 1em;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Produkte */
/* Bild-Wrapper als Positionierungs-Context */
.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  /* hält die Kachel quadratisch */
  overflow: hidden;
}

/* Bild sauber füllen */
.product-image-wrap picture,
.product-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
}

.product-image-wrap img {
  object-fit: cover;
  transform: scale(1.0);
  transition: transform .35s ease;
}

.product-image-wrap:hover img {
  transform: scale(1.03);
}

/* CTA mittig über dem Bild */
.product-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  z-index: 2;
  opacity: 0;
  padding: .6rem .9rem;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  white-space: nowrap;
  transition: opacity .25s ease, transform .25s ease;
}

/* leichte Abdunklung bei Hover für Lesbarkeit (optional) */
.product-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity .25s ease;
}

/* Hover/Focus sichtbar */
.product-image-wrap:hover .product-cta,
.product-image-wrap:focus-within .product-cta {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.product-image-wrap:hover::after,
.product-image-wrap:focus-within::after {
  opacity: 1;
}

.whatsapp-btn {
  background: #25D366;
  /* WhatsApp-Grün */
  color: #fff;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
  opacity: .9;
  color: #fff;
}

.whatsapp-btn svg {
  display: block;
  fill: currentColor;
  /* Icon wird weiß */
}


/* --- Leistungen Karten --- */
.service-card {
  background: #fff;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
}

.service-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.service-link:focus {
  outline: 3px solid rgba(58, 168, 79, .35);
  outline-offset: -3px;
}

.service-link.disabled {
  pointer-events: none;
  cursor: default;
}

.service-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.service-media.ratio {
  --bs-aspect-ratio: 66%;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.service-card:hover .service-img,
.service-card:focus-within .service-img {
  transform: scale(1.05);
}

.service-media--rotate-90 .service-img {
  transform: rotate(0deg);
  transform-origin: center;
}

.service-card:hover .service-media--rotate-90 .service-img,
.service-card:focus-within .service-media--rotate-90 .service-img {
  transform: rotate(0deg) scale(1.05);
}

.service-title-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: .85rem 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .65) 85%);
}

.service-title-overlay h3 {
  font-size: 1.2rem;
}

.service-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.service-body .service-teaser {
  margin-bottom: 0;
}

.service-teaser {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
}

.service-detail-hero.hero-rotate-90 picture img {
  transform: rotate(90deg);
  transform-origin: center;
}

.service-cta {
  font-weight: 600;
  color: #0e1a1f;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.service-link.disabled .service-cta {
  color: #94a1a8;
}

.service-link.disabled .service-cta::after {
  opacity: .3;
}

.service-cta::after {
  content: '\2192';
  font-size: 1rem;
  transition: transform .25s ease;
}

.service-card:hover .service-cta::after,
.service-card:focus-within .service-cta::after {
  transform: translateX(4px);
}

/* Partner */
/* Grid: 12 Spalten fix, Anzahl pro Reihe über Card-Span steuern */
.partner-grid {
  --gap: 16px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

/* Karten: 3 pro Reihe (12 / 4) auf ≥992px */
.p-card {
  grid-column: span 4;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 12px;
  /* etwas kleiner */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  /* dezenter */
  transition: transform .15s ease, box-shadow .15s ease;
}

.p-card:focus {
  outline: 3px solid rgba(58, 168, 79, .35);
  outline-offset: 2px;
}

.p-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

/* Tablet: 2 pro Reihe */
@media (max-width: 991.98px) {
  .p-card {
    grid-column: span 6;
  }
}

/* Mobile: 1 pro Reihe */
@media (max-width: 575.98px) {
  .p-card {
    grid-column: span 12;
  }
}

/* Bild: flacher, damit die Karte insgesamt kleiner wirkt */
.p-media {
  position: relative;
  aspect-ratio: 16/9;
  background: #f4f7f8;
  overflow: hidden;
}

.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay kompakter */
.p-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: .5rem .75rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 85%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

/* Typo leicht kleiner */
.p-card .h5 {
  font-size: 1rem;
  margin: 0;
}

.p-badge {
  font-size: .72rem;
  padding: .15rem .45rem;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: .5rem;
}

/* --- Landingpages Leistungen --- */
.service-detail-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.service-detail-hero picture,
.service-detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14, 26, 31, .85) 0%, rgba(14, 26, 31, .35) 55%, rgba(14, 26, 31, .1) 100%);
}

.service-detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 0 4rem;
}

.service-breadcrumb {
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

.service-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.service-breadcrumb a:hover {
  text-decoration: underline;
}

.service-detail-main {
  background: #f6f8f9;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .65rem;
}

.list-check li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.5;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #3aa84f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(58, 168, 79, .35);
}

.list-check li::after {
  content: '\2713';
  position: absolute;
  left: .28rem;
  top: .1rem;
  font-size: .85rem;
  color: #fff;
  font-weight: 700;
}

.service-detail-section {
  padding: 4rem 0;
}

.service-detail-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-detail-section p.lead {
  font-size: 1.1rem;
  color: #4b5a60;
}

.service-detail-aside {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(14, 26, 31, .12);
  padding: 1.5rem;
}

.service-detail-cta {
  background: linear-gradient(135deg, #0e1a1f 0%, #1c3e45 45%, #3aa84f 100%);
  color: #fff;
  border-radius: 1.25rem;
  padding: 3rem 2rem;
}

.service-detail-cta .btn {
  padding: .8rem 1.6rem;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .service-detail-hero-content {
    padding: 5rem 0 3rem;
  }

  .service-detail-section {
    padding: 3rem 0;
  }
}

/* Teaser kompakter & ohne Mindesthöhe */
.p-teaser {
  padding: .5rem .75rem .75rem;
  font-size: .95rem;
  min-height: auto;
}

/* Hero (Detailseiten overrides entfernt – Hauptstyles oben) */

.gradient-bottom {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .35) 100%);
  color: #fff;
}

.hero-overlay .container {
  padding-bottom: 1.1rem;
}


@media (max-width: 575.98px) {
  .whatsapp-btn {
    padding: .3rem .5rem;
  }
}

/* Auf Touch-Geräten immer sichtbar */
@media (hover: none) {
  .product-cta {
    opacity: 1;
    transform: translate(-50%, -50%)
  }
}


/* Utility */
@media (max-width: 576px) {
  .shadow-sm-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important
  }
}

.modal-gallery-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 31, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}
.modal-gallery-backdrop.show {
  display: flex;
}
.modal-gallery-backdrop img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
