/* ============================================================
   DIMENSIONAL LAYERING – Spatial UI
   Pflege Gambers GmbH Custom Theme
   Design: Glass morphism · 4-level shadows · Warm healthcare
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Brand */
  --color-primary:        #1B7A6B;
  --color-primary-hover:  #2A9B8A;
  --color-primary-dark:   #145F53;
  --color-accent:         #E8923A;
  --color-accent-hover:   #F0A84F;

  /* Background layers (dimensional) */
  --color-bg:             #F5F0E8;
  --color-surface-0:      #EDE7DB;
  --color-surface-1:      #FFFFFF;
  --color-surface-glass:  rgba(255,255,255,0.82);
  --color-surface-glass-d:rgba(255,255,255,0.62);

  /* Text */
  --color-text:           #1C1C1E;
  --color-text-muted:     #6E6E73;
  --color-text-light:     #AEAEB2;
  --color-text-inverse:   #FFFFFF;

  /* 4-level shadow elevation */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.11), 0 4px 16px rgba(0,0,0,0.07);
  --shadow-xl: 0 18px 60px rgba(0,0,0,0.14), 0 8px 30px rgba(0,0,0,0.09);
  --shadow-hover: 0 28px 80px rgba(27,122,107,0.22), 0 8px 32px rgba(0,0,0,0.10);

  /* Blur */
  --blur-sm:  blur(8px);
  --blur-md:  blur(16px);
  --blur-lg:  blur(24px);

  /* Borders */
  --color-border:        rgba(0,0,0,0.07);
  --color-border-strong: rgba(0,0,0,0.14);

  /* Z-index layers */
  --z-base:    1;
  --z-raised:  2;
  --z-float:   3;
  --z-overlay: 100;
  --z-nav:     1000;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms cubic-bezier(0.16,1,0.3,1);
}

/* ── CUSTOMIZER COLOR OVERRIDES ────────────────────────────── */
:root {
  --color-primary:       var(--custom-primary, #1B7A6B);
  --color-primary-hover: var(--custom-primary-hover, #2A9B8A);
  --color-accent:        var(--custom-accent, #E8923A);
}

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--color-primary-hover); }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--r-sm); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; }

/* ── LAYOUT UTILITIES ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container--wide { max-width: 1400px; }

.section {
  padding-block: var(--sp-20);
}
.section--sm { padding-block: var(--sp-12); }

.section__header {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(27,122,107,0.10);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-2xl);
  margin-bottom: var(--sp-3);
}
.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}
.section__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

/* ── DIMENSIONAL CARD BASE ─────────────────────────────────── */
.card {
  background: var(--color-surface-1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: var(--z-raised);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.card--glass {
  background: var(--color-surface-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255,255,255,0.5);
}

.card--elevated {
  box-shadow: var(--shadow-xl);
  z-index: var(--z-float);
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-2xl);
  transition: all var(--t-base);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}
.btn--accent:hover {
  background: var(--color-accent-hover);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--glass {
  background: var(--color-surface-glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  color: var(--color-text-inverse);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-md);
}
.btn--glass:hover {
  background: rgba(255,255,255,0.95);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(245,240,232,0.92);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.site-header.scrolled {
  background: rgba(245,240,232,0.97);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--sp-8);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.nav__logo-icon svg { width: 24px; height: 24px; color: #fff; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav__logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.nav__logo-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: center;
}
.nav__menu ul {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: nowrap;
}
.nav__menu a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--r-2xl);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav__menu a:hover,
.nav__menu .current-menu-item > a,
.nav__menu .current-page-ancestor > a {
  color: var(--color-primary);
  background: rgba(27,122,107,0.08);
}

/* Nav CTA */
.nav__cta {
  flex-shrink: 0;
}
.nav__phone {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(27,122,107,0.08);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-2xl);
  transition: all var(--t-base);
  white-space: nowrap;
}
.nav__phone svg { width: 16px; height: 16px; }
.nav__phone:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--r-sm);
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(245,240,232,0.97);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  z-index: calc(var(--z-nav) - 1);
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-6) var(--sp-12);
  transform: translateX(100%);
  transition: transform var(--t-slow);
}
.nav__drawer.open { transform: translateX(0); }
.nav__drawer ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.nav__drawer a {
  display: block;
  padding: var(--sp-4) var(--sp-4);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--r-md);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--t-fast);
}
.nav__drawer a:hover { color: var(--color-primary); background: rgba(27,122,107,0.06); }
.nav__drawer .drawer-phone {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  padding: var(--sp-5);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: 1rem;
}
.nav__drawer .drawer-phone svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__drawer { display: block; }
}

/* ════════════════════════════════════════════════════════════
   HERO SLIDER
   ════════════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin-top: 72px;
}

.hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.7s ease;
  will-change: transform;
}
.hero-slide.active .hero-slide__bg {
  transform: scale(1.0);
}

/* Multi-layer dimensional overlay */
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(21,95,83,0.72) 0%,
    rgba(27,122,107,0.45) 40%,
    rgba(0,0,0,0.30) 100%
  );
  z-index: var(--z-base);
}

/* Floating content panel – glass morphism */
.hero-slide__content {
  position: absolute;
  bottom: var(--sp-16);
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 760px);
  background: var(--color-surface-glass);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-12);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-float);
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.hero-slide.active .hero-slide__content {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-slide__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
}
.hero-slide__title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}
.hero-slide__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
  max-width: 560px;
}
.hero-slide__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--sp-10);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  z-index: var(--z-overlay);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  padding: 0;
}
.slider-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--color-primary);
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  transition: all var(--t-base);
}
.slider-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.08);
}
.slider-btn svg { width: 18px; height: 18px; }

/* Stats bar floating over slider bottom */
.hero-stats {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 900px);
  background: var(--color-surface-1);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: var(--z-float);
  overflow: hidden;
}
.hero-stat {
  padding: var(--sp-6) var(--sp-8);
  text-align: center;
  border-right: 1px solid var(--color-border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.hero-stat__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .hero-slide__content { padding: var(--sp-6) var(--sp-6); bottom: var(--sp-8); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); bottom: -36px; }
  .hero-stat { padding: var(--sp-4) var(--sp-4); }
  .hero-stat__number { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .slider-controls { bottom: var(--sp-4); right: var(--sp-4); }
  .hero-slide__actions { flex-direction: column; }
}

/* ════════════════════════════════════════════════════════════
   SERVICES SECTION
   ════════════════════════════════════════════════════════════ */
.services-section {
  padding-top: calc(var(--sp-20) + 60px);
  padding-bottom: var(--sp-20);
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}

.service-card {
  background: var(--color-surface-1);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
  z-index: var(--z-raised);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  z-index: var(--z-float);
}

.service-card__img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,122,107,0.3), transparent);
}

.service-card__icon {
  position: absolute;
  bottom: -20px;
  right: var(--sp-5);
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: var(--z-raised);
}
.service-card__icon svg { width: 24px; height: 24px; color: #fff; }

.service-card__body {
  padding: var(--sp-10) var(--sp-6) var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--sp-3);
}
.service-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--t-base), color var(--t-base);
}
.service-card__link:hover { gap: var(--sp-3); color: var(--color-primary-hover); }
.service-card__link svg { width: 16px; height: 16px; }

/* ════════════════════════════════════════════════════════════
   ABOUT / USP SECTION – Layered panels
   ════════════════════════════════════════════════════════════ */
.about-section {
  background: var(--color-surface-0);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27,122,107,0.12), transparent 70%);
  z-index: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  z-index: var(--z-base);
}

/* Dimensional image stack */
.about-imgs {
  position: relative;
  height: 480px;
}
.about-img--back {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 0;
  bottom: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  z-index: var(--z-base);
}
.about-img--front {
  position: absolute;
  top: 0;
  left: 0;
  right: 40px;
  bottom: 20px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-surface-1);
  z-index: var(--z-raised);
}
.about-img--back img,
.about-img--front img { width: 100%; height: 100%; object-fit: cover; }

/* Floating badge on image */
.about-badge {
  position: absolute;
  bottom: 40px;
  right: 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-float);
  text-align: center;
}
.about-badge__num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.about-badge__text { font-size: 0.75rem; font-weight: 500; opacity: 0.9; }

.about-content { }
.about-content .section__label { display: inline-block; margin-bottom: var(--sp-3); }

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}
.about-feature {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-surface-glass);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.about-feature:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

.about-feature__icon {
  width: 44px;
  height: 44px;
  background: rgba(27,122,107,0.10);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-feature__icon svg { width: 22px; height: 22px; color: var(--color-primary); }
.about-feature__title { font-size: 0.95rem; font-weight: 600; color: var(--color-text); margin-bottom: 2px; }
.about-feature__text { font-size: 0.85rem; color: var(--color-text-muted); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-imgs { height: 320px; order: -1; }
}

/* ════════════════════════════════════════════════════════════
   FEATURES / BENEFITS – Glass cards on depth
   ════════════════════════════════════════════════════════════ */
.features-section {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #1B8A7A 100%);
  position: relative;
  overflow: hidden;
}
.features-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
}
.features-section .section__label { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.features-section .section__title { color: #fff; }
.features-section .section__subtitle { color: rgba(255,255,255,0.75); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-5);
}

.feature-item {
  background: rgba(255,255,255,0.10);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  z-index: var(--z-raised);
  transition: all var(--t-slow);
}
.feature-item:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.20);
}

.feature-item__icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.feature-item__icon svg { width: 28px; height: 28px; color: #fff; }
.feature-item__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--sp-2);
}
.feature-item__text { font-size: 0.875rem; color: rgba(255,255,255,0.72); line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   LEISTUNGEN TEASER (Home)
   ════════════════════════════════════════════════════════════ */
.leistungen-teaser {
  background: var(--color-bg);
}
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
}
.leistung-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--color-surface-1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all var(--t-slow);
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}
.leistung-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transition: transform var(--t-base);
}
.leistung-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  color: var(--color-text);
}
.leistung-item:hover::after { transform: scaleX(1); }
.leistung-item__icon {
  width: 48px;
  height: 48px;
  background: rgba(27,122,107,0.10);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.leistung-item__icon svg { width: 24px; height: 24px; color: var(--color-primary); }
.leistung-item__title { font-size: 0.95rem; font-weight: 600; }
.leistung-item__hint { font-size: 0.8rem; color: var(--color-text-muted); }

/* ════════════════════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  background: var(--color-surface-0);
  overflow: hidden;
}
.cta-card {
  background: var(--color-surface-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-16) var(--sp-12);
  text-align: center;
  position: relative;
  z-index: var(--z-raised);
}
.cta-card__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}
.cta-card__text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}
.cta-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.cta-card__phone {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.cta-card__phone svg { width: 20px; height: 20px; }

/* ════════════════════════════════════════════════════════════
   CONTACT SECTION
   ════════════════════════════════════════════════════════════ */
.contact-section { background: var(--color-bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-10);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.contact-info-card {
  background: var(--color-surface-1);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  transition: box-shadow var(--t-base);
}
.contact-info-card:hover { box-shadow: var(--shadow-lg); }
.contact-info-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(27,122,107,0.10);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-card__icon svg { width: 22px; height: 22px; color: var(--color-primary); }
.contact-info-card__label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.contact-info-card__value { font-size: 0.95rem; font-weight: 500; color: var(--color-text); }
.contact-info-card__value a { color: var(--color-text); }
.contact-info-card__value a:hover { color: var(--color-primary); }

.contact-form-wrap {
  background: var(--color-surface-1);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

/* Default WP / contact-form plugin form styling */
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  margin-bottom: var(--sp-3);
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,122,107,0.15);
}
.contact-form-wrap input[type="submit"],
.wpcf7 input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-2xl);
  padding: 0.75rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: var(--shadow-md);
}
.contact-form-wrap input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: var(--sp-6); }
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.75);
  padding-top: var(--sp-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-col__logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.footer-col__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-col__logo-icon svg { width: 22px; height: 22px; color: #fff; }
.footer-col__logo-name { font-size: 1rem; font-weight: 700; color: #fff; }
.footer-col__desc { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col__tagline {
  display: inline-block;
  margin-top: var(--sp-4);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-accent);
}

.footer-col__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: var(--sp-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-3);
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 0.875rem; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-5);
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-bottom__copy { font-size: 0.8rem; }
.footer-bottom__links { display: flex; gap: var(--sp-5); }
.footer-bottom__links a { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom__links a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ════════════════════════════════════════════════════════════
   PAGE TEMPLATES
   ════════════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(72px + var(--sp-16)) 0 var(--sp-12);
  background: linear-gradient(160deg, var(--color-surface-0), var(--color-bg));
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}
.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}
.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb__sep { opacity: 0.4; }

/* Page content */
.page-content {
  padding-block: var(--sp-16);
}
.entry-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 800px;
}
.entry-content h1,
.entry-content h2 { font-size: 1.5rem; font-weight: 700; margin: var(--sp-8) 0 var(--sp-4); color: var(--color-text); }
.entry-content h3 { font-size: 1.15rem; font-weight: 600; margin: var(--sp-6) 0 var(--sp-3); }
.entry-content p { margin-bottom: var(--sp-4); }
.entry-content ul, .entry-content ol { margin: var(--sp-4) 0 var(--sp-4) var(--sp-6); }
.entry-content ul li { list-style: disc; margin-bottom: var(--sp-2); }
.entry-content ol li { list-style: decimal; margin-bottom: var(--sp-2); }
.entry-content strong { font-weight: 600; }
.entry-content a { color: var(--color-primary); text-decoration: underline; }

/* Page-specific layouts */
.leistungen-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}

.leistung-page-card {
  background: var(--color-surface-1);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  transition: all var(--t-slow);
  text-decoration: none;
  color: var(--color-text);
  display: block;
}
.leistung-page-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  color: var(--color-text);
}
.leistung-page-card__img { height: 180px; overflow: hidden; }
.leistung-page-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.leistung-page-card:hover .leistung-page-card__img img { transform: scale(1.05); }
.leistung-page-card__body { padding: var(--sp-6); }
.leistung-page-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--sp-2); }
.leistung-page-card__text { font-size: 0.875rem; color: var(--color-text-muted); }

/* Contact page */
.kontakt-page .contact-grid { margin-top: var(--sp-10); }

/* Karriere page shortcode wrapper */
.karriere-wrap {
  background: var(--color-surface-1);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  margin-top: var(--sp-10);
}

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.10s; }
.reveal--delay-2 { transition-delay: 0.20s; }
.reveal--delay-3 { transition-delay: 0.30s; }
.reveal--delay-4 { transition-delay: 0.40s; }
.reveal--delay-5 { transition-delay: 0.50s; }

/* ════════════════════════════════════════════════════════════
   MISC UTILITIES
   ════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.text-center { text-align: center; }
.mt-8 { margin-top: var(--sp-8); }
.d-flex { display: flex; }
.gap-4 { gap: var(--sp-4); }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }

/* GDPR / Complianz overrides */
.cc-window { font-family: var(--font) !important; }
