/* ==========================================================================
   TEAM-Praxis Website — Stylesheet
   ========================================================================== */

/* Selbst gehostete Fonts (statt Google-Fonts-CDN) — variable Fonts, ein File deckt 400–700 ab */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/roboto-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/roboto-slab-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Markenfarben von urologie-raita.de: Grau (Logo/Elementor-Kit #4D4E50) + Rosa/Violett (Kit-Akzent #7A3991) */
  --color-primary: #4d4e50;
  --color-primary-dark: #313234;
  --color-primary-light: #eef0f0;
  --color-accent: #7a3991;
  --color-accent-dark: #5e2c70;
  --color-ink: #232324;
  --color-text: #3c3d3f;
  --color-muted: #75767a;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f6f7;
  --color-border: #e3e3e5;
  --shadow-sm: 0 2px 8px rgba(20, 20, 22, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 20, 22, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 20, 22, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1160px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-secondary: "Roboto Slab", Georgia, "Times New Roman", serif;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Scroll reveal ---------- */
/* WICHTIG: Diese Regel bewusst ganz am Anfang der Datei, damit spätere
   :hover-Regeln (z. B. Hover-Lift bei Kacheln) bei gleicher Spezifität
   im Cascade gewinnen, statt vom translateY(0) hier überschrieben zu werden. */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; }

.section-head {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
}
.section-head p { color: var(--color-muted); font-size: 17px; margin: 0; }

section { padding: 36px 0; }
.alt-bg { background: var(--color-bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-4px); box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 6px 18px rgba(122, 57, 145, 0.32);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, height 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 18px rgba(122, 57, 145, 0.44);
  height: 68px;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav { margin-left: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.25;
  color: var(--color-ink);
}
.brand .logo-mark {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.brand .logo-mark svg { width: 20px; height: 20px; }
.brand .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand small {
  display: block;
  font-weight: 800;
  font-size: inherit;
  color: inherit;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.main-nav a:hover {
  background: #fff;
  color: var(--color-primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: var(--color-primary-light);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--color-primary-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 36px) 0 16px;
  background: radial-gradient(1200px 600px at 85% -10%, #f2e8f5 0%, transparent 60%), var(--color-bg);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero .lead {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-trust .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.hero-trust svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }

.hero-visual {
  position: relative;
  min-height: 260px;
  aspect-ratio: 6 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@supports not (aspect-ratio: 1 / 1) {
  .hero-visual { height: 0; padding-bottom: 83.3%; }
}
.hero-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 55%;
}

.hero-card {
  position: absolute;
  left: -28px; bottom: 28px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.hero-card .dot {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card .dot svg { width: 22px; height: 22px; }
.hero-card strong { display: block; font-size: 15px; color: var(--color-ink); }
.hero-card span { font-size: 13px; color: var(--color-muted); }

/* ---------- Info-Kacheln (Wartezeit / 116117 / gesund.de) ---------- */
.contact-section .section-head {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}
.info-tile {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.info-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
  border-color: transparent;
}
.info-tile:last-of-type { margin-bottom: 24px; }

.info-tile-text { flex: 1 1 320px; }
.wartezeit-label {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 10px;
}
.wartezeit-bar {
  position: relative;
  width: 100%;
  background: #f6d9d4;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 14px;
  overflow: hidden;
}
.wartezeit-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: #e0402e;
  border-radius: var(--radius-sm);
  animation: wartezeit-fill 1.3s ease-out forwards;
}
.wartezeit-bar-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
@keyframes wartezeit-fill {
  from { width: 0%; }
  to { width: 100%; }
}
.wartezeit-note {
  font-size: 15px;
  color: var(--color-text);
  margin: 0;
  line-height: 1.65;
}
.wartezeit-note a { color: var(--color-primary); font-weight: 700; }

.info-tile-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}
.info-tile-actions .btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 20px;
}
.info-tile-actions .btn span { display: flex; flex-direction: column; line-height: 1.35; }
.info-tile-actions .btn small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.8; }
.info-tile-actions .btn strong { font-size: 15px; font-weight: 700; }
.info-tile-actions .btn svg { display: none; }

.store-badge-img { display: inline-flex; width: 168px; transition: transform 0.2s ease, opacity 0.2s ease; }
.store-badge-img:hover { transform: translateY(-2px); opacity: 0.85; }
.store-badge-img img { width: 100%; height: auto; display: block; }

.tile-logo { width: auto; display: block; }
.tile-logo-116117 { height: 44px; margin-bottom: 14px; }
.tile-logo-gesundde { height: 26px; }

.tile-logo-chip {
  display: inline-block;
  background: #d9414e;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 14px;
}


@media (max-width: 640px) {
  .info-tile { flex-direction: column; align-items: stretch; }
  .info-tile-actions { width: 100%; }
  .info-tile-actions .btn { width: 100%; }
}

/* ---------- Leistungen ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
  border-color: transparent;
}
.service-card .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.service-card .icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 17px; margin-bottom: 6px; }
.service-card p { color: var(--color-muted); font-size: 14px; margin: 0; }
.service-card .service-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.service-card.is-expanded .service-detail {
  max-height: 280px;
  opacity: 1;
  margin-top: 10px;
}
.service-card .service-toggle {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}
.service-card.is-expanded .service-toggle { display: none; }

/* ---------- Team ---------- */
.team-profile {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.1fr;
  gap: 48px;
  align-items: start;
}
.team-profile-photo img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: 75% 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-profile-photo img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
}
.team-profile-caption { margin-top: 16px; text-align: center; }
.team-profile-caption h3 { margin-bottom: 2px; font-size: 19px; }
.team-profile-caption .role { color: var(--color-primary); font-weight: 600; font-size: 14px; }
.team-profile-bio p { color: var(--color-text); font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.team-profile-bio p:last-child { margin-bottom: 0; }

/* ---------- Öffnungszeiten + Info ---------- */
.hours-map-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.hours-map-block .map-wrap { aspect-ratio: auto; min-height: 320px; }
.info-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 36px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
  border-color: transparent;
}
.info-card h3 {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.info-card h3 svg { width: 22px; height: 22px; color: var(--color-primary); }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-weight: 600; color: var(--color-ink); }
.hours-row .time { color: var(--color-muted); }
.hours-row.is-today .day,
.hours-row.is-today .time { color: var(--color-primary); }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.contact-list strong { display: block; color: var(--color-ink); font-size: 13px; margin-bottom: 2px; }
.contact-list a:hover { color: var(--color-primary); }

.quick-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.quick-actions .btn { justify-content: flex-start; }

/* ---------- Anfahrt / Map ---------- */
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 7;
  background: var(--color-bg-alt);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.map-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
  border-color: transparent;
}
.map-wrap iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.map-consent {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(77, 78, 80, 0.6) 0%, rgba(49, 50, 52, 0.68) 100%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.16) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, 0.16) 58px 60px),
    repeating-linear-gradient(45deg, transparent 0 84px, rgba(255, 255, 255, 0.09) 84px 86px),
    #b9bdc0;
  color: #fff;
}
.map-consent svg { width: 40px; height: 40px; opacity: 0.9; }
.map-consent p { max-width: 460px; font-size: 14px; color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Urlaubskalender ---------- */
.urlaub-calendar {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.urlaub-calendar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
  border-color: transparent;
}
.urlaub-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.urlaub-cal-title { font-weight: 700; font-size: 22px; color: var(--color-ink); text-transform: capitalize; }
.urlaub-cal-nav {
  width: 42px; height: 42px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.urlaub-cal-nav svg { width: 18px; height: 18px; }
.urlaub-cal-nav:hover { background: var(--color-border); }
.urlaub-cal-weekdays, .urlaub-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.urlaub-cal-weekdays span {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  padding-bottom: 10px;
}
.urlaub-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  color: var(--color-text);
}
.urlaub-day.is-other-month { color: var(--color-border); }
.urlaub-day.is-today { box-shadow: inset 0 0 0 2px var(--color-primary); font-weight: 700; }
.urlaub-day.is-closed {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.urlaub-day.is-closed:hover {
  background: var(--color-accent-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
}
.urlaub-cal-detail {
  position: absolute;
  z-index: 20;
  width: 260px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #eef2f9;
  box-shadow: var(--shadow-lg);
  text-align: left;
  display: none;
}
.urlaub-cal-detail.is-visible { display: block; }
.urlaub-cal-detail-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 1.5px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.urlaub-cal-detail-close svg { width: 14px; height: 14px; }
.urlaub-cal-detail-head { display: flex; align-items: center; gap: 10px; margin: 0 24px 6px 0; }
.urlaub-cal-detail-head .dot { width: 13px; height: 13px; border-radius: 4px; background: var(--color-accent); flex-shrink: 0; }
.urlaub-cal-detail-head strong { font-size: 17px; color: var(--color-ink); }
.urlaub-cal-detail-date { font-size: 14px; color: var(--color-text); margin: 0; }
.urlaub-cal-detail-desc { font-size: 13px; color: var(--color-muted); white-space: pre-line; margin: 10px 0 0; }
.urlaub-cal-detail-desc:empty { display: none; }

/* ---------- Download-Bereich ---------- */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
  align-items: start;
}
.download-col-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
  border-color: transparent;
}
.download-card .icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.download-card .icon svg { width: 17px; height: 17px; }
.download-card-text { display: flex; flex-direction: column; gap: 1px; }
.download-card-text strong { font-size: 14px; color: var(--color-ink); }
.download-card-text small { font-size: 12px; color: var(--color-muted); }

.download-card.is-disabled {
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
  opacity: 0.55;
}
.download-card.is-disabled .icon { background: var(--color-bg-alt); color: var(--color-muted); }

/* ---------- Bewertungen ---------- */
.rating-stars {
  position: relative;
  display: inline-block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 4px;
  margin-bottom: 14px;
}
.rating-stars-empty { color: var(--color-border); }
.rating-stars-filled {
  position: absolute;
  top: 0; left: 0;
  width: 90%; /* 4,5 von 5 */
  overflow: hidden;
  white-space: nowrap;
  color: #f5a623;
}
.review-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.review-link {
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.review-link:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32); border-color: transparent; }

/* ---------- Kontakt / Formular ---------- */
.contact-section .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 40px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.form-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(122, 57, 145, 0.32);
  border-color: transparent;
}
.form-card-title {
  font-size: 20px;
  margin-bottom: 20px;
}
.form-tabs {
  display: flex;
  gap: 8px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 28px;
}
.form-tab {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 11px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-muted);
  overflow-wrap: break-word;
  hyphens: auto;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.form-tab.is-active {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--color-ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 22px;
}
.field-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.field-check a { color: var(--color-primary); font-weight: 600; }

/* reCAPTCHA-Widget ist von Google fest ~304px breit -> auf schmalen Screens
   verkleinern (transform-scale) statt die Seite horizontal scrollbar zu machen. */
.recaptcha-wrap {
  width: 264px;
  max-width: 100%;
  height: 68px;
  overflow: hidden;
}
.recaptcha-wrap .g-recaptcha {
  transform: scale(0.87);
  transform-origin: 0 0;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 16px;
  justify-content: center;
}
.form-note svg { width: 16px; height: 16px; }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e5f6ee; color: #1a7a4c; }
.form-status.is-error { background: #fdeceb; color: #c23b2f; }

/* honeypot field — hidden from real users */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Terminanfrage-Popup ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 20, 22, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.modal-close svg { width: 16px; height: 16px; }
.modal h3 { font-size: 22px; margin-bottom: 4px; padding-right: 40px; }
.modal-sub { color: var(--color-muted); font-size: 14px; margin: 0 0 24px; }

.radio-row { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
}
.radio-option input { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 480px) {
  .modal { padding: 28px 20px; }
  .container { padding: 0 16px; }
  .download-card { padding: 12px 14px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 32px 0 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 280px; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 11px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Simple pages (Impressum/Datenschutz) ---------- */
.simple-page {
  padding: calc(var(--header-h) + 64px) 0 96px;
  max-width: 820px;
  margin: 0 auto;
}
.simple-page h1 { margin-bottom: 32px; }
.simple-page h2 { font-size: 22px; margin-top: 40px; }
.simple-page p, .simple-page li { color: var(--color-text); font-size: 15.5px; }
.simple-page ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.simple-page a { color: var(--color-primary); font-weight: 600; }
.placeholder {
  background: #fff8e8;
  border: 1px dashed #e0b84b;
  color: #7a5b12;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .downloads-grid { grid-template-columns: repeat(2, 1fr); }
  .team-profile { grid-template-columns: 1fr; }
  .hours-map-block { grid-template-columns: 1fr; }
  .contact-section .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

@media (max-width: 880px) {
  section { padding: 48px 0; }
  .main-nav { display: none; }
  .header-actions { display: flex; }
  .nav-toggle { display: flex; }
  .brand { font-size: 15px; gap: 8px; }
  .brand .logo-mark { width: 40px; height: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; }
  .info-card, .form-card { padding: 24px; }
  .urlaub-calendar { padding: 18px; }
  .urlaub-cal-detail { left: 50% !important; right: auto !important; width: calc(100% - 36px); max-width: 280px; transform: translateX(-50%); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.mobile-nav-close {
  width: 44px; height: 44px;
  border: none;
  background: var(--color-bg-alt);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav-close svg { width: 20px; height: 20px; }
.mobile-nav a {
  display: block;
  font-size: 22px;
  font-weight: 700;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink);
}
.mobile-nav .btn { margin-top: 24px; }

/* ---------- Intro-Banner (weist auf Chat-Assistentin hin) ---------- */
.intro-banner {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 940;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 30px 16px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.intro-banner.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.intro-banner-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.intro-banner-icon svg { width: 17px; height: 17px; }
.intro-banner p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--color-text); padding-top: 6px; }
.intro-banner p strong { color: var(--color-ink); }
.intro-banner-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  display: flex; align-items: center; justify-content: center;
}
.intro-banner-close svg { width: 14px; height: 14px; }

/* ---------- Chat-Widget (FAQ-Assistent) ---------- */
.chat-launcher {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 950;
  transition: transform 0.2s ease, background 0.2s ease;
}
.chat-launcher:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .chat-launcher-close { display: none; }
.chat-launcher.is-open .chat-launcher-chat { display: none; }
.chat-launcher.is-open .chat-launcher-close { display: block; }
/* back-to-top verschiebt sich nach oben, damit es nicht mit dem Chat-Button kollidiert */
.back-to-top { bottom: 96px; }

.chat-panel {
  position: fixed;
  right: 24px; bottom: 96px;
  width: min(380px, calc(100vw - 48px));
  height: min(560px, calc(100vh - 140px));
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 960;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-header .chat-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-header .chat-avatar svg { width: 18px; height: 18px; }
.chat-header strong { display: block; font-size: 15px; }
.chat-header span { display: block; font-size: 12px; color: rgba(255,255,255,0.75); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-bg-alt);
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-msg.is-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}
.chat-msg.is-user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
}
.chat-msg a:hover { color: var(--color-accent-dark); }
.chat-msg ul { margin: 0; padding-left: 18px; list-style: disc; }
.chat-msg.is-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 14px;
}
.chat-msg.is-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-muted);
  animation: chat-typing 1.2s infinite ease-in-out;
}
.chat-msg.is-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.is-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-disclaimer {
  font-size: 11.5px;
  color: var(--color-muted);
  padding: 10px 18px;
  border-top: 1px solid var(--color-border);
  background: #fff;
  flex-shrink: 0;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
  background: #fff;
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-ink);
}
.chat-input-row input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.chat-input-row button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-input-row button svg { width: 18px; height: 18px; }
.chat-input-row button:disabled { opacity: 0.5; }

@media (max-width: 480px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 88px; }
  .chat-launcher { right: 12px; bottom: 12px; width: 48px; height: 48px; }
  .chat-launcher svg { width: 22px; height: 22px; }
  .back-to-top { right: 12px; bottom: 72px; width: 44px; height: 44px; }
  .form-tab { font-size: 12px; padding: 10px 4px; }
  .intro-banner { right: 12px; left: 12px; max-width: none; bottom: 72px; }
}
