:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-strong: #eef4ea;
  --text: #1e2723;
  --muted: #66736c;
  --line: #dfe5dc;
  --green: #2f6d4f;
  --green-dark: #1f4f39;
  --gold: #c28d32;
  --blue: #355c7d;
  --shadow: 0 18px 50px rgba(30, 39, 35, 0.12);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(246, 247, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.view-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.switch-button,
.side-link {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.switch-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
}

.switch-button.active {
  background: var(--green);
  color: #fff;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.45fr) minmax(460px, 0.55fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 155px);
}

.hero-copy {
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 4.8vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 2.1rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.62;
}

.hero-actions,
.form-footer,
.stacked-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
}

.primary-action {
  background: var(--green);
  color: #fff;
}

.primary-action:hover {
  background: var(--green-dark);
}

.secondary-action {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.secondary-action:hover {
  border-color: var(--green);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.hero-media {
  height: min(68vh, 620px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img,
.photo-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: -8px;
}

.service-strip button {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}

.service-strip button:hover {
  border-color: var(--green);
  color: var(--text);
  transform: translateY(-2px);
}

.page-heading {
  max-width: 760px;
  margin: 26px 0 28px;
}

.page-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.page-heading.compact {
  margin-top: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover,
.service-card.selected {
  border-color: var(--green);
  transform: translateY(-2px);
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--green);
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
  line-height: 1.46;
}

.request-form,
.booking-panel,
.confirmation-panel,
.table-panel,
.detail-panel,
.ai-panel,
.offer-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 14px 34px -28px rgba(20, 45, 32, 0.4);
}

.request-form {
  overflow: hidden;
}

.form-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.photo-row img,
.upload-tile {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.upload-tile {
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--green);
  font-weight: 800;
}

.form-footer {
  justify-content: flex-end;
  padding: 22px 0 0;
}

.request-form .form-footer {
  padding: 20px 24px;
}

.form-footer.left {
  justify-content: flex-start;
}

.booking-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 16px;
}

.booking-panel {
  padding: 22px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.radio-card.selected {
  border-color: var(--green);
  background: var(--surface-strong);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.slot {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.slot.selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.confirmation-panel {
  max-width: 720px;
  margin: 60px auto;
  padding: 34px;
  box-shadow: var(--shadow);
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  min-height: 680px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #20372d;
  color: #fff;
}

.sidebar strong {
  margin-bottom: 18px;
}

.side-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  text-align: left;
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.side-link.active {
  background: var(--green);
  color: #fff;
}

.workspace-main {
  min-width: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 30px -26px rgba(20, 45, 32, 0.4);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-family: "Spectral", Georgia, serif;
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.table-panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.compact-button {
  min-height: 38px;
  padding: 0 12px;
}

.request-list {
  display: grid;
  gap: 8px;
}

.request-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr 0.7fr 0.6fr;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.request-item.is-clickable {
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.request-item.is-clickable:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -22px rgba(20, 45, 32, 0.45);
}

.request-item .req-status {
  justify-self: start;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--green);
  font-weight: 800;
  font-size: 0.8rem;
}

.request-item small,
.request-item span {
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
}

.detail-panel,
.ai-panel {
  padding: 24px;
}

.summary-list.dense {
  gap: 0;
}

.description-text,
.ai-panel p,
.check-list {
  color: var(--muted);
  line-height: 1.58;
}

.check-list {
  padding-left: 18px;
}

.status-note {
  padding: 12px;
  border-left: 4px solid var(--blue);
  background: #eef3f7;
  border-radius: 0 8px 8px 0;
}

.stacked-actions {
  align-items: stretch;
  flex-direction: column;
  margin-top: 20px;
}

.offer-panel {
  overflow: hidden;
}

.offer-row,
.offer-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 150px;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.offer-row.header {
  min-height: 46px;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 800;
}

.offer-total {
  background: #fff9ed;
  font-size: 1.15rem;
  border-bottom: 0;
}

/* Summenzeile: Label über Position + Menge, Wert bündig unter der Preis-Spalte */
.offer-total > :first-child {
  grid-column: 1 / 3;
}

/* Menge & Preis rechtsbündig (saubere Zahlen-Optik) */
.offer-row > :nth-child(2),
.offer-row > :nth-child(3),
.offer-total > :last-child {
  text-align: right;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 16px;
  border-radius: 8px;
  background: #20372d;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar,
  .hero-actions,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .view-switch,
  .brand,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero,
  .booking-layout,
  .workspace,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 280px;
    height: 42vh;
  }

  .service-strip,
  .service-grid,
  .field-grid,
  .metrics,
  .photo-row {
    grid-template-columns: 1fr;
  }

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

  .request-item,
  .offer-row,
  .offer-total {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }

  .sidebar {
    min-height: 0;
  }
}

/* ===== Varianten-Umschalter (Auftritt M/L) ===== */
.topbar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.variant-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.variant-switch.hidden {
  display: none;
}

.variant-label {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== Website-Variante (L) ===== */
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.site-brand .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

.site-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-links button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.site-links button:hover,
.site-links button.active {
  color: var(--text);
  background: rgba(47, 109, 79, 0.1);
}

.website-hero {
  min-height: auto;
  margin-bottom: 8px;
  padding-top: 8px;
}

.l-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head .eyebrow,
.section-head h2 {
  margin-bottom: 0;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--green-dark);
}

/* Referenz-Galerie */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reference-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.reference-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.reference-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
}

.reference-card figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Team / Über uns */
.team-section {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  gap: 48px;
  align-items: center;
}

.team-section .hero-media {
  height: 340px;
  min-height: 0;
}

.inline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.inline-metrics .metric strong {
  font-size: 1.7rem;
}

/* Bewertungen */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.testimonial p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.55;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial footer span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Leistungen-Detailseite */
.service-detail-list {
  display: grid;
  gap: 16px;
}

.service-detail {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-detail-media {
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-copy p {
  color: var(--muted);
  line-height: 1.6;
}

/* CTA-Band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 32px;
  border-radius: 8px;
  background: #20372d;
  color: #fff;
}

.cta-band h2 {
  margin-bottom: 6px;
}

.cta-band .hero-text {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
  .topbar-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .variant-switch {
    justify-content: center;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-links {
    flex-wrap: wrap;
  }

  .team-section,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .reference-grid,
  .testimonial-grid,
  .inline-metrics {
    grid-template-columns: 1fr;
  }

  .section-head,
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   L-WEBSITE: Qualitäts-Upgrade (Hebel 1–4)
   ============================================================ */

/* --- Hebel 3: Typografie (Website-Variante + M-Landingpage) --- */
.view-website,
#home {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

.view-website h1,
.view-website h2,
.view-website h3,
.view-website .site-brand,
#home h1,
#home h2,
#home h3 {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.view-website h2,
#home h2 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.06;
}

.view-website .eyebrow,
#home .eyebrow {
  letter-spacing: 0.08em;
}

/* --- Hebel 4: Full-Bleed-Hero --- */
.l-hero {
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 4px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.l-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 24s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  to {
    transform: scale(1.18);
  }
}

.l-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(14, 28, 20, 0.86) 0%,
    rgba(14, 28, 20, 0.58) 45%,
    rgba(14, 28, 20, 0.12) 100%
  );
}

.l-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 clamp(24px, 7vw, 100px);
}

.l-hero h1 {
  max-width: none;
  margin-bottom: 22px;
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  line-height: 1.02;
}

.l-hero-text {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.62;
}

.eyebrow.light {
  color: var(--gold);
}

.l-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.l-hero-trust strong {
  color: #fff;
}

.ghost-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.ghost-action:hover {
  background: rgba(255, 255, 255, 0.14);
}

.section-hint {
  align-self: flex-end;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Hebel 2: Vorher/Nachher-Slider --- */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  box-shadow: 0 26px 60px -32px rgba(20, 45, 32, 0.55);
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ba-handle::after {
  content: "\2039 \203A";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
}

.ba-label {
  position: absolute;
  top: 16px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(14, 28, 20, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-label-before {
  left: 16px;
}

.ba-label-after {
  right: 16px;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: ew-resize;
}

.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 46px;
  height: 100%;
  background: transparent;
  cursor: ew-resize;
}

.ba-range::-moz-range-thumb {
  width: 46px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: ew-resize;
}

/* --- Hebel 1: Foto-Leistungskacheln --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-photo-card {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  text-align: left;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 22px 44px -26px rgba(20, 45, 32, 0.5);
}

.service-photo-media {
  display: block;
  height: 200px;
  overflow: hidden;
}

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

.service-photo-card:hover .service-photo-media img {
  transform: scale(1.07);
}

.service-photo-body {
  display: block;
  padding: 16px 18px 20px;
}

.service-photo-body h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.service-photo-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Referenz-Karten: Hover-Zoom */
.reference-card img {
  transition: transform 0.55s ease;
}

.reference-card:hover img {
  transform: scale(1.07);
}

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

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .ba-slider {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================================
   HEBEL 5: Motion & Tiefe + Vertrauens-Sektion
   ============================================================ */

/* --- Scroll-Reveal (nur wenn JS aktiv + Motion erwünscht) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  }
  .reveal-ready .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* --- Kennzahlen-Band (full-bleed) --- */
.stats-band {
  margin: 8px calc(-50vw + 50%) 0;
  padding: 50px clamp(24px, 6vw, 96px);
  background: #20372d;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stats-band .stat {
  text-align: center;
}

.stats-band .stat strong {
  display: block;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
  font-weight: 600;
  line-height: 1;
}

.stats-band .stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* --- Google-Bewertungszeile --- */
.google-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 24px;
  color: var(--muted);
  font-weight: 600;
}

.google-rating .stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.google-rating strong {
  color: var(--text);
}

/* --- Testimonials: Sterne + Avatar + Tiefe --- */
.testimonial {
  box-shadow: 0 12px 32px -24px rgba(20, 45, 32, 0.45);
}

.t-stars {
  margin-bottom: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.testimonial footer {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.t-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* --- etwas mehr Tiefe für Referenzkarten --- */
.reference-card {
  box-shadow: 0 12px 32px -26px rgba(20, 45, 32, 0.4);
}

@media (max-width: 900px) {
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }
}

/* ============================================================
   Betriebsansicht: Vorgänge-Pipeline (5 Phasen) + Phasen-Track
   ============================================================ */
.panel-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.pipe-col {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef1ec;
}

.pipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.86rem;
}

.pipe-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  font-size: 0.76rem;
}

.pipe-body {
  display: grid;
  gap: 8px;
}

.pipe-card {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pipe-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -18px rgba(20, 45, 32, 0.5);
}

.pipe-card.is-active {
  border-color: var(--green);
  background: #f1f7f3;
}

.pipe-card strong {
  display: block;
  font-size: 0.9rem;
}

.pipe-card span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.pipe-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.pipe-empty {
  padding: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

/* Phasen-Fortschritt in der Detailansicht */
.phase-track {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 18px;
}

.phase-step {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.phase-step.done {
  color: var(--green);
  border-color: rgba(47, 109, 79, 0.35);
}

.phase-step.current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ============================================================
   Paket 3: Angebote (Status) + Nachfass-Aufgaben
   ============================================================ */
.metric-link {
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.metric-link:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.offer-list,
.task-list {
  display: grid;
  gap: 8px;
}

.offer-list {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.offer-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr 0.8fr 120px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.offer-item:last-child {
  border-bottom: 0;
}

.offer-item.offer-head {
  min-height: 0;
  padding: 9px 14px;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Betrag-Spalte rechtsbündig (Header + Werte), Status-Header rechts */
.offer-item > :nth-child(3) {
  text-align: right;
}

.offer-head > :last-child {
  justify-self: end;
}

.offer-item strong {
  font-size: 0.92rem;
}

.offer-item > span,
.offer-item small {
  color: var(--muted);
  font-size: 0.85rem;
}

.offer-sum {
  color: var(--text) !important;
  font-weight: 700;
}

.status-badge {
  justify-self: end;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.status--entwurf {
  background: #eef1ec;
  border-color: var(--line);
  color: var(--muted);
}

.status--gesendet {
  background: #e7effa;
  color: #2f5aa0;
}

.status--angenommen {
  background: #e6f2ea;
  color: var(--green);
}

.status--abgelehnt {
  background: #fbeaea;
  color: #b3453b;
}

.task-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.task-main strong {
  display: block;
  font-size: 0.92rem;
}

.task-main span {
  color: var(--muted);
  font-size: 0.83rem;
}

.task-when {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .offer-item,
  .task-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .status-badge {
    justify-self: start;
  }
}

/* ============================================================
   Paket 3: Kampagnen + Bewertungsimpuls
   ============================================================ */
.status--aktiv {
  background: #e6f2ea;
  color: var(--green);
}

.status--geplant {
  background: #fdf3e0;
  color: #a9762a;
}

.status--beendet {
  background: #eef1ec;
  border-color: var(--line);
  color: var(--muted);
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.campaign-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.campaign-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.campaign-title {
  font-weight: 700;
  font-size: 1.02rem;
}

.campaign-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.campaign-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.campaign-stat strong {
  display: block;
  font-size: 1.05rem;
}

.campaign-stat span {
  color: var(--muted);
  font-size: 0.74rem;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.review-summary .stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.review-summary strong {
  font-size: 1.3rem;
}

.review-summary span {
  color: var(--muted);
  font-size: 0.88rem;
}

.review-list {
  display: grid;
  gap: 8px;
}

.review-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-main strong {
  display: block;
  font-size: 0.92rem;
}

.review-main span {
  color: var(--muted);
  font-size: 0.83rem;
}

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

/* ============================================================
   Paket 4: Termine, Tagesroute & Teams (Betriebszentrale)
   ============================================================ */
.week-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.week-col {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef1ec;
}

.week-day {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.86rem;
}

.termin-chip {
  display: block;
  margin-bottom: 6px;
  padding: 7px 9px;
  border-radius: 6px;
  border-left: 3px solid;
  font-size: 0.76rem;
  line-height: 1.3;
}

.termin-chip b {
  font-weight: 700;
}

.chip--besichtigung {
  background: #e7effa;
  border-color: #2f5aa0;
  color: #2f5aa0;
}

.chip--einsatz {
  background: #e6f2ea;
  border-color: var(--green);
  color: var(--green);
}

.chip--pflege {
  background: #fdf3e0;
  border-color: #a9762a;
  color: #a9762a;
}

.schedule-split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.route {
  position: relative;
}

.route::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: var(--line);
}

.route-stop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.route-stop:last-child {
  border-bottom: 0;
}

.route-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.route-info strong {
  display: block;
  font-size: 0.92rem;
}

.route-info span {
  color: var(--muted);
  font-size: 0.82rem;
}

.route-team {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.team-card {
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.team-card strong {
  display: block;
}

.team-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.team-card small {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.78rem;
}

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

/* ============================================================
   Betriebsansicht & Anfrage-Flow: Spectral-Seitentitel (Look-Angleich)
   ============================================================ */
.page-heading h2,
.detail-panel h2,
.confirmation-panel h2 {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
