﻿/* Otmani Amersid — Design tokens (Logo-kompatibel, Premium-Clean) */
/* Schriften: Fraunces + Plus Jakarta Sans per <link> im HTML */
:root {
  /* Palette: Logo-aligned brand blue + mint accent.
     PRIMARY Brand Blue #21ABE3 · ACCENT Mint #7CD3C0
     HEADING Forest Ink #0F2A28 · TEXT Soft Slate #4F6068
     SURFACE Warm White #FBFDFC · SURFACE ALT Mint Tint #E7F6F2 · BORDER Pale Line #DCE7E4 */
  --color-bg: #FBFDFC;
  --color-surface: #FFFFFF;
  --color-surface-alt: #E7F6F2;
  --color-text: #0F2A28;
  --color-muted: #4F6068;
  --color-primary: #21ABE3;
  --color-primary-hover: #1A8FC4;
  --color-accent: #7CD3C0;
  --color-accent-soft: rgba(124, 211, 192, 0.18);
  --color-border: #DCE7E4;
  --shadow-sm: 0 2px 8px rgba(15, 42, 40, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 42, 40, 0.1);
  --shadow-glow: 0 0 60px rgba(33, 171, 227, 0.20);
  --radius: 16px;
  --radius-lg: 24px;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1140px;
  --header-h: 88px;
  --header-h-shrunk: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(33, 171, 227, 0.09), transparent),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(124, 211, 192, 0.10), transparent),
    linear-gradient(180deg, #F0F8F5 0%, var(--color-bg) 28%, #F9FCFB 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary-hover);
}

.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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 231, 228, 0.85);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 32px rgba(15, 42, 40, 0.08);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
  transition: min-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header layout via flex order:
   [logo] ← slogan auto-centred → [nav] [CTA]
   The slogan's `margin: 0 auto` absorbs the free space on both sides,
   keeping it visually centred between the logo and the nav+CTA cluster. */
.site-slogan { order: 1; margin: 0 auto; }
.site-nav    { order: 2; }
.header-cta  { order: 3; }
.nav-toggle  { order: 4; } /* hidden on desktop; mobile rule below */

/* The colourful tagline — brand gradient (primary blue ↔ mint accent),
   Fraunces italic for a hand-written feel, soft underline for emphasis. */
.site-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  /* Fluid size: smaller on phones, larger on big screens. Never breaks the layout. */
  font-size: clamp(0.7rem, 1.6vw + 0.35rem, 1.2rem);
  letter-spacing: 0.005em;
  white-space: nowrap;
  background: linear-gradient(120deg,
    var(--color-primary) 0%,
    var(--color-accent) 55%,
    var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-bottom: 4px;
  transition: font-size 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-slogan::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(33, 171, 227, 0)   0%,
    var(--color-accent)    50%,
    rgba(33, 171, 227, 0) 100%);
  border-radius: 2px;
}

/* When the header shrinks on scroll, the slogan softens a touch */
.site-header.is-scrolled .site-slogan {
  font-size: 1.025rem;
}

/* Shrink-on-scroll — .is-scrolled is toggled by js/main.js */
.site-header.is-scrolled .site-header__inner {
  min-height: var(--header-h-shrunk);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.site-header.is-scrolled .site-logo img {
  height: 48px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.site-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo image already contains the brand name — hide the duplicate text. */
.site-logo__text { display: none; }

/* Mobile-only Kontakt entry inside the nav drawer (see HTML <li class="nav-kontakt">) */
.nav-kontakt { display: none; }

.nav-toggle {
  display: none;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-primary);
}

.site-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Very narrow screens — hide only if there's truly no room (≤ 320 px). */
@media (max-width: 319px) {
  .site-slogan { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    /* No auto-margin: the slogan's `margin: 0 auto` already absorbs the
       free space on both sides, so the hamburger naturally lands on the right. */
  }

  /* Mobile = logo + hamburger only. Kontakt lives inside the drawer. */
  .header-cta { display: none; }

  .site-header__inner {
    flex-wrap: wrap;       /* drawer needs to drop to its own row when open */
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 99;      /* drops to its own full-width row when open */
    margin-left: 0; /* reset desktop auto-margin */
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--color-border);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  /* Show the Kontakt entry inside the drawer on mobile only */
  .nav-kontakt { display: list-item; }

  .site-logo img { height: 56px; }
  .site-header.is-scrolled .site-logo img { height: 46px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: rgba(33, 171, 227, 0.08);
  color: var(--color-primary-hover);
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  border-radius: 999px;
}

@media (max-width: 480px) {
  .btn--sm {
    min-height: 44px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

.btn--glow {
  box-shadow: 0 6px 28px rgba(33, 171, 227, 0.35);
}

.btn--glow:hover {
  box-shadow: 0 8px 36px rgba(33, 171, 227, 0.42);
}

/* Hero — Startseite mit Bild */
.hero.hero--visual {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 920px);
  display: flex;
  align-items: center;
  padding: 4.5rem 1.25rem 4rem;
  color: #fff;
  background: #0A1A18;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(10, 26, 24, 0.92) 0%,
    rgba(15, 42, 40, 0.78) 42%,
    rgba(33, 171, 227, 0.45) 100%
  );
}

.hero__glow-orb {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.hero__glow-orb--1 {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: -8%;
  right: -5%;
  background: var(--color-accent);
}

.hero__glow-orb--2 {
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  bottom: 10%;
  left: 35%;
  background: #4fd1c5;
  opacity: 0.2;
}

.hero.hero--visual .hero__inner {
  position: relative;
  z-index: 3;
}

.hero.hero--visual h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.hero.hero--visual .hero__lead {
  font-size: 1.125rem;
  max-width: 34rem;
}

.hero.hero--visual .hero__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* If the hero has no aside card, keep the content at readable width instead of stretching */
.hero__inner:not(:has(.hero__card)) {
  max-width: 760px;
}

@media (min-width: 880px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero .btn--primary {
  background: #fff;
  color: var(--color-primary);
}

.hero .btn--primary:hover {
  background: #f0f9fa;
  color: var(--color-primary-hover);
}

.hero .btn--outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  opacity: 0.92;
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero__card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero__card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.hero__card p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Sections */
.section {
  padding: 3.5rem 1.25rem;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
  color: var(--color-text);
}

.section__head p {
  margin: 0;
  color: var(--color-muted);
}

/* Cards grid */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cfe8ec;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  padding-top: 2.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Quotes */
.quotes {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .quotes {
    grid-template-columns: 1fr 1fr;
  }
}

.quote {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.quote blockquote {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text);
}

.quote figcaption {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
}

.quotes--reviews {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .quotes--reviews {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .quotes--reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rating-stars {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.12em;
  color: #c9a227;
}

.quote--google blockquote {
  font-style: normal;
}

.google-reviews__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.google-reviews__head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.google-reviews__meta {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
}

.google-reviews__note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.google-reviews__link {
  margin-top: 2rem;
  text-align: center;
}

.section__h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-family: var(--font-display);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), #1380AE);
  color: #fff;
  padding: 3rem 1.25rem;
  text-align: center;
}

.cta-band__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--color-primary);
}

.cta-band .btn--outline {
  border-color: #fff;
  color: #fff;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: #0F2A28;
  color: #B8C7CC;
  padding: 3rem 1.25rem 2rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #e8eef3;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer__brand img {
  height: 160px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: brightness(1.05);
}

.site-footer__brand p {
  margin: 0;
  line-height: 1.5;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.social-row a:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.social-row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer__credit {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

.site-footer__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s, color 0.2s;
}

.site-footer__credit a:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Page hero (inner) */
.page-hero {
  background: linear-gradient(135deg, #0E6792, var(--color-primary));
  color: #fff;
  padding: 2.5rem 1.25rem;
}

.page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.page-hero p {
  margin: 0;
  opacity: 0.92;
  max-width: 40rem;
}

/* Page hero mit Hintergrundbild (Leistungs-Detailseiten) */
.page-hero.page-hero--visual {
  position: relative;
  overflow: hidden;
  min-height: min(50vh, 520px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  background: #0A1A18;
  color: #fff;
}

.page-hero--visual .page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero--visual .page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero--visual .page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 26, 24, 0.45) 0%,
    rgba(10, 26, 24, 0.78) 55%,
    rgba(10, 26, 24, 0.92) 100%
  );
}

.page-hero--visual .page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 3rem 1.25rem 2.5rem;
}

.page-hero--visual h1 {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
  margin: 0 0 0.65rem;
}

.page-hero--visual .page-hero__lead {
  margin: 0 0 1.35rem;
  opacity: 0.95;
  font-size: 1.0625rem;
  max-width: 38rem;
  line-height: 1.55;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-hero--visual .btn--primary {
  background: #fff;
  color: var(--color-primary);
}

.page-hero--visual .btn--primary:hover {
  background: #f0f9fa;
  color: var(--color-primary-hover);
}

.page-hero--visual .btn--outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.page-hero--visual .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Kompakter Bild-Header (z. B. Leistungs-Übersicht) */
.page-hero--visual.page-hero--compact {
  min-height: min(38vh, 420px);
}

@media (min-width: 768px) {
  .page-hero--visual.page-hero--compact {
    min-height: min(34vh, 380px);
  }
}

.page-hero--compact .page-hero__inner {
  padding: 2.15rem 1.25rem 1.9rem;
}

.page-hero--compact.page-hero--visual h1 {
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.page-hero--compact .page-hero__lead {
  margin-bottom: 1.05rem;
  font-size: 1rem;
  max-width: 40rem;
}

/* Leistungs-Detail: Inhalt + Sticky-Sidebar */
.service-detail {
  display: grid;
  gap: 2rem;
  margin-top: 0.35rem;
}

@media (min-width: 960px) {
  .service-detail--split {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 2.5rem;
    align-items: start;
  }

  .service-detail__aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.content-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.content-panel .legal-prose > h2:first-of-type {
  margin-top: 0;
}

.sidebar-cta {
  background: linear-gradient(145deg, var(--color-primary), #063d47);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
}

.sidebar-cta h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
}

.sidebar-cta p {
  margin: 0 0 1.1rem;
  opacity: 0.92;
  font-size: 0.95rem;
  line-height: 1.55;
}

.sidebar-cta .btn--primary {
  background: #fff;
  color: var(--color-primary);
}

.sidebar-cta .btn--primary:hover {
  background: #f0f9fa;
  color: var(--color-primary-hover);
}

.sidebar-cta .btn--outline {
  border-color: rgba(255, 255, 255, 0.88);
  color: #fff;
}

.sidebar-cta .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-side-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.service-side-img img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

/* Two column layout */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 880px) {
  .split--reverse {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-list strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.contact-list a {
  font-weight: 600;
  font-size: 1.05rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hours-table th,
.hours-table td {
  padding: 0.5rem 0;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.hours-table th {
  color: var(--color-muted);
  font-weight: 500;
  width: 38%;
}

/* Form */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

.map-embed {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  margin-top: 1rem;
}

/* GDPR-friendly placeholder shown until the user consents to Google Maps. */
.map-embed--placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 1.5rem;
  background:
    linear-gradient(135deg, rgba(33, 171, 227, 0.08), rgba(124, 211, 192, 0.10)),
    repeating-linear-gradient(45deg,
      rgba(15, 42, 40, 0.04) 0 8px,
      transparent 8px 16px);
  border: 1px dashed var(--color-border);
  overflow: hidden;
}
.map-placeholder__content {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.map-placeholder__icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.map-placeholder__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-text);
}
.map-placeholder__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.55;
}
.map-placeholder__legal {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.map-placeholder__legal a { color: var(--color-primary); }

/* Cookie / consent banner — fixed to the bottom of the viewport on first visit. */
.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.5rem;
  animation: consentSlideUp 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes consentSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.consent-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.consent-banner__text {
  flex: 1 1 22rem;
  min-width: 0;
}
.consent-banner__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}
.consent-banner__text p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.55;
}
.consent-banner__text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-banner__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.consent-banner__actions .btn { padding: 0.6rem 1.1rem; }

@media (max-width: 640px) {
  .consent-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 1rem 1.1rem;
  }
  .consent-banner__inner { gap: 1rem; }
  .consent-banner__actions { width: 100%; }
  .consent-banner__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Service subnav */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.subnav a,
.subnav button {
  padding: 0.4rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  font-family: inherit;
  cursor: pointer;
}

.subnav a:hover,
.subnav a.is-active,
.subnav button:hover,
.subnav button.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.subnav button {
  appearance: none;
}

/* Sticky WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none !important;
}

.whatsapp-float:hover {
  background: #1fb855;
  color: #fff !important;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes wa-soft-glow {
    0%,
    100% {
      box-shadow: 0 4px 24px rgba(37, 211, 102, 0.48);
    }
    50% {
      box-shadow: 0 8px 36px rgba(37, 211, 102, 0.68);
    }
  }

  .whatsapp-float {
    animation: wa-soft-glow 3.5s ease-in-out infinite;
  }
}

/* Legal */
.legal-prose {
  max-width: 46rem;
  margin: 0 auto;
}

.legal-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.legal-prose p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ——— Premium UI: Reveal, Service-Cards, Team, Testimonials ——— */

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__media img {
    transform: scale(1.03) !important;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
}

/* Service cards (Bild + Icon + CTA-Button) */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(220, 231, 228, 0.95);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  height: 100%;
}

.service-card[data-service] {
  cursor: pointer;
}

.service-card[data-service]:focus-visible {
  outline: 3px solid rgba(33, 171, 227, 0.45);
  outline-offset: 4px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(33, 171, 227, 0.12);
  border-color: rgba(33, 171, 227, 0.25);
}

.service-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-card__img img {
  transform: scale(1.06);
}

.service-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 26, 24, 0.35) 100%);
  pointer-events: none;
}

.service-card__body {
  position: relative;
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__icon {
  position: absolute;
  top: -1.85rem;
  right: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(33, 171, 227, 0.4);
  pointer-events: none;
  z-index: 1;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card__body h3 {
  margin: 0 0 0.5rem;
  padding-right: 3rem;
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.service-card__body p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  flex: 1;
}

.service-card__cta {
  align-self: flex-start;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

/* Karten mit Links nie „unsichtbar“ lassen (Reveal) */
.service-card[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
    border-color 0.35s ease !important;
}

.service-card__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Service Modal (Glassmorphism) */
.is-modal-open {
  overflow: hidden;
}

.service-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.service-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 22, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-modal__dialog {
  position: relative;
  width: min(980px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-modal.is-open .service-modal__dialog {
  transform: none;
}

.service-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  line-height: 1;
  z-index: 2;
}

.service-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.service-modal__close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.service-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.service-modal__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  opacity: 1;
  transition: opacity 0.22s ease;
}

/* Hide image while a new src is loading — prevents previous-image flash */
.service-modal__media img.is-loading {
  opacity: 0;
}

.service-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

/* Before/After comparison inside the modal */
.service-modal__compare {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.25rem;
  background: var(--color-bg);
  z-index: 1;
}

/* Honour the [hidden] attribute (display:grid above would otherwise override it) */
.service-modal__compare[hidden] {
  display: none;
}

@media (min-width: 720px) {
  .service-modal__compare {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
}

.service-modal__compare figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.service-modal__compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.service-modal__compare img.is-loading {
  opacity: 0;
}

.service-modal__compare figcaption {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 42, 40, 0.85);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}

.service-modal__content {
  padding: clamp(1.25rem, 2.6vw, 2rem);
  color: rgba(255, 255, 255, 0.95);
}

.service-modal__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.7rem;
}

.service-modal__kicker svg {
  width: 18px;
  height: 18px;
}

.service-modal__content h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.service-modal__content p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
}

.service-modal__cert {
  margin: -0.35rem 0 1.1rem;
}

.service-modal__cert-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-modal__cert-link:hover {
  color: #fff;
}

.service-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 900px) {
  .service-modal__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .service-modal__media {
    aspect-ratio: auto;
    min-height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-modal,
  .service-modal__dialog {
    transition: none !important;
  }
  .service-modal__dialog {
    transform: none !important;
  }
}

/* Team / Vertrauen */
.team-showcase {
  display: grid;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 250, 0.9));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.team-showcase::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(33, 171, 227, 0.12), transparent 65%);
  pointer-events: none;
}

@media (min-width: 900px) {
  .team-showcase {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }
}

.team-showcase__visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 42, 40, 0.15);
}

.team-showcase__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.team-showcase__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.team-showcase__content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.team-showcase__content .lead {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (max-width: 520px) {
  .team-stats {
    grid-template-columns: 1fr;
  }
}

.team-stat {
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.team-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--color-primary);
  line-height: 1.1;
}

.team-stat span {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 600;
}

/* Steps mit Icon-Look */
.step {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Instagram-Feed (API: /api/instagram-feed auf Vercel o. Ä.) */
.insta-feed-section__head {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.insta-feed__status {
  min-height: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.insta-feed__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .insta-feed__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

@media (min-width: 960px) {
  .insta-feed__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    gap: 1rem;
  }
}

.insta-feed__item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.insta-feed__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.insta-feed__item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.insta-feed__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.insta-feed__play {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(15, 42, 40, 0.72);
  color: #fff;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.insta-feed__fallback {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.insta-feed__fallback-text {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.insta-feed-section[data-state="loaded"] .insta-feed__fallback {
  display: none;
}

.insta-feed__foot {
  margin: 1.75rem 0 0;
  text-align: center;
}

.insta-feed__grid--focus {
  grid-template-columns: 1fr;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.insta-feed__item--video {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: auto;
}

.insta-feed__item--video video {
  width: 100%;
  height: auto;
  display: block;
  background: #0f1418;
}

.insta-feed__video-link {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 1rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--color-primary);
}

.insta-feed__video-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Testimonials reichhaltiger */
.section--testimonials {
  position: relative;
  overflow: hidden;
}

.section--testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(33, 171, 227, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(33, 171, 227, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(240, 248, 250, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
  opacity: 1;
  pointer-events: none;
}

.section--testimonials .section__inner {
  position: relative;
  z-index: 1;
}

.quote {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Split mit Bild */
.split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.split-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* CTA Band Premium */
.cta-band--premium {
  position: relative;
  overflow: hidden;
}

.cta-band--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 20% 50%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 60% at 90% 80%, rgba(79, 209, 197, 0.15), transparent);
  pointer-events: none;
}

.cta-band--premium .cta-band__inner {
  position: relative;
  z-index: 1;
}

.cta-band--premium h2 {
  font-family: var(--font-display);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-primary) !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  border: 1px solid rgba(33, 171, 227, 0.2);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card__link:hover {
  background: rgba(33, 171, 227, 0.2);
  transform: translateX(2px);
  color: var(--color-primary-hover) !important;
}

/* Karriere */
.jobs-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  /* Default: 2–3 cards spread across the row, each adapting to the available space */
  .jobs-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  /* Single-card layout: put the section head on the left, the card on the right.
     Triggered when #stellen contains an active job card but no second one as a sibling. */
  #stellen .section__inner:has(.job-card[data-active="true"]):not(:has(.job-card[data-active="true"] ~ .job-card[data-active="true"])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
  }
  #stellen .section__inner:has(.job-card[data-active="true"]):not(:has(.job-card[data-active="true"] ~ .job-card[data-active="true"])) .section__head {
    text-align: left;
    margin: 0;
    max-width: none;
  }
  #stellen .section__inner:has(.job-card[data-active="true"]):not(:has(.job-card[data-active="true"] ~ .job-card[data-active="true"])) .jobs-grid {
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
  }
}

.job-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(33, 171, 227, 0.22);
  transform: translateY(-3px);
}

.job-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.job-card__title {
  margin: 0.35rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.35;
  color: var(--color-text);
}

.job-card__list {
  margin: 0 0 1.35rem;
  padding: 0 0 0 1.2rem;
  flex: 1;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.job-card__list li {
  margin-bottom: 0.5rem;
}

.job-card__list li:last-child {
  margin-bottom: 0;
}

.job-card__cta {
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 28px rgba(217, 119, 6, 0.28);
}

.job-perk {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.job-perk__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.job-perk__icon svg {
  width: 24px;
  height: 24px;
}

.job-perk h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.job-perk p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Kontrast-CTA (z. B. Bewerbung / Karriere-Karten) */
.btn--accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #ea580c 0%, #d97706 48%, #ca8a04 100%);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn--accent:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.42);
  color: #fff !important;
}

.btn--accent.btn--glow:hover {
  box-shadow: 0 8px 32px rgba(234, 88, 12, 0.5);
}

.btn--accent.btn--lg {
  padding: 0.8rem 1.65rem;
  font-size: 1rem;
}

/* Bewerbungsseite */
.application-shell {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .application-shell {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.application-shell__intro {
  position: static;
}

@media (min-width: 960px) {
  .application-shell__intro {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.application-shell__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.application-shell__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.application-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--color-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.application-steps li {
  margin-bottom: 0.65rem;
}

.application-steps strong {
  color: var(--color-text);
}

.application-shell__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.application-form-card {
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 960px) {
  .application-form-card {
    margin-left: 0;
    max-width: none;
  }
}

.application-form-card__heading {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.application-form-card__lead {
  margin: 0 0 1.35rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.application-form .form-group input,
.application-form .form-group textarea,
.application-form .form-group select {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 0.75rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.application-form .form-group input:focus,
.application-form .form-group textarea:focus,
.application-form .form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form-row--2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 520px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group--flush {
  margin-bottom: 1.25rem;
}

.application-uploads {
  border: 0;
  margin: 0 0 0.5rem;
  padding: 0;
}

.application-uploads__legend {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.85rem;
  padding: 0;
}

.file-field-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.45rem;
}

.file-field-label__opt {
  font-weight: 500;
  color: var(--color-muted);
}

.file-drop {
  position: relative;
  border: 2px dashed rgba(33, 171, 227, 0.28);
  border-radius: var(--radius);
  padding: 1.35rem 1rem 1.1rem;
  background: linear-gradient(165deg, rgba(33, 171, 227, 0.07) 0%, rgba(255, 255, 255, 0.6) 55%, var(--color-surface) 100%);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.file-drop:hover {
  border-color: rgba(33, 171, 227, 0.45);
  box-shadow: var(--shadow-sm);
}

.file-drop.is-dragover {
  border-color: var(--color-accent);
  border-style: solid;
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 3px rgba(33, 171, 227, 0.15);
}

.file-drop:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.file-drop__input:focus {
  outline: none;
}

.file-drop:focus-within .file-drop__icon {
  border-color: var(--color-accent);
  color: var(--color-primary-hover);
}

.file-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.file-drop__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.65rem;
  border-radius: 16px;
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.file-drop__icon svg {
  width: 26px;
  height: 26px;
}

.file-drop__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.file-drop__title strong {
  color: var(--color-primary);
  font-weight: 700;
}

.file-drop__hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.file-drop__name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-word;
  min-height: 1.25em;
}

.application-form__submit-wrap {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.application-form__submit {
  width: 100%;
  justify-content: center;
}

/* Karriere: per-job visibility toggle.
   Flip data-active="true" / "false" on each .job-card in karriere.html.
   When no card is active, the .no-hiring-notice block is shown automatically. */
.job-card[data-active="false"] { display: none; }

.no-hiring-notice { display: none; }

body:not(:has(.job-card[data-active="true"])) #stellen,
body:not(:has(.job-card[data-active="true"])) .page-hero__actions {
  display: none;
}
body:not(:has(.job-card[data-active="true"])) .no-hiring-notice {
  display: block;
}

/* ----------- Legal pages (Impressum / Datenschutz) ----------
   Wrap the prose in a proper card so the text reads as a
   contained document, not loose text on a blank section.    */
.legal-prose {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2.75rem;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.legal-prose > h2:first-child,
.legal-prose > h2:first-of-type {
  margin-top: 0;
}
@media (max-width: 640px) {
  .legal-prose { padding: 1.5rem 1.25rem; }
}
