/* ============================================================
   Praxis Dr. Poths — Serene Hearth Medical Design System
   ============================================================ */

/* ===== FONTS =====
   Loaded via <link> in HTML head with preconnect hints.
   @import removed — it creates a blocking request chain (HTML→CSS→@import→fonts).
   ===== */

/* ===== CSS VARIABLES ===== */
:root {
  --c-primary: #1D5C6C;
  --c-primary-hover: #2A4460;
  --c-secondary: #B5706A;
  --c-secondary-muted: rgba(181, 112, 106, 0.10);
  --c-secondary-border: rgba(181, 112, 106, 0.28);
  --c-bg: #F5F5F4;
  --c-bg-alt: #FAFAF9;
  --c-surface: #FFFFFF;
  --c-text: #44403C;
  --c-text-light: #78716C;
  --c-text-subtle: #A8A29E;
  --c-border: #E7E5E4;
  --c-border-medium: #D6D3D1;

  --radius-card: 24px;
  --radius-sm: 12px;
  --radius-btn: 100px;

  --shadow-card: 0 2px 16px rgba(30,50,69,0.07), 0 1px 4px rgba(30,50,69,0.04);
  --shadow-elevated: 0 8px 40px rgba(30,50,69,0.10), 0 2px 8px rgba(30,50,69,0.06);
  --shadow-float: 0 16px 64px rgba(30,50,69,0.14), 0 4px 16px rgba(30,50,69,0.08);

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
}

/* ===== BASE RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== GRAIN TEXTURE OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--c-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ===== NAVIGATION ===== */
.nav-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(245, 245, 244, 0.85);
  border-bottom: 1px solid rgba(30, 27, 75, 0.06);
  transition: background 300ms var(--ease-smooth), box-shadow 300ms var(--ease-smooth);
}

.nav-glass.scrolled {
  background: rgba(245, 245, 244, 0.96);
  box-shadow: 0 2px 20px rgba(30, 27, 75, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 5px 8px;
  border-radius: 8px;
  position: relative;
  transition: color 200ms var(--ease-smooth), background 200ms var(--ease-smooth);
}

.nav-link:hover {
  color: var(--c-primary);
  background: rgba(30, 27, 75, 0.05);
}

.nav-link:focus-visible {
  outline: 3px solid var(--c-secondary);
  outline-offset: 2px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-primary);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms var(--ease-smooth),
              transform 200ms var(--ease-spring),
              box-shadow 200ms var(--ease-smooth);
  box-shadow: 0 2px 12px rgba(30, 27, 75, 0.28);
}

.btn-primary:hover {
  background: var(--c-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(30, 27, 75, 0.36);
}

/* Teal button (bg-secondary) inside dark CTA card: invert to outlined on hover */
.med-cta .btn-primary:hover {
  background: var(--c-primary);
  color: var(--c-secondary);
  border-color: var(--c-secondary);
  box-shadow: 0 6px 24px rgba(45, 212, 191, 0.25);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 1px 6px rgba(30, 27, 75, 0.2);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--c-secondary);
  outline-offset: 3px;
}

.btn-primary.btn-sm {
  font-size: 0.8125rem;
  padding: 8px 16px;
}

.btn-primary.btn-lg {
  font-size: 1rem;
  padding: 14px 28px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--c-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: 2px solid var(--c-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms var(--ease-smooth),
              color 200ms var(--ease-smooth),
              transform 200ms var(--ease-spring);
}

.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0) scale(0.97);
}

.btn-outline:focus-visible {
  outline: 3px solid var(--c-secondary);
  outline-offset: 3px;
}

.btn-outline.btn-lg {
  font-size: 1rem;
  padding: 14px 28px;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms var(--ease-smooth),
              border-color 200ms var(--ease-smooth),
              transform 200ms var(--ease-spring);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn-outline-white:active {
  transform: translateY(0) scale(0.97);
}

.btn-outline-white.btn-lg {
  font-size: 1rem;
  padding: 14px 28px;
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-secondary);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-secondary);
  flex-shrink: 0;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 96px 0;
}

.section-pad-sm {
  padding: 72px 0;
}

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-primary);
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 15%;
  opacity: 0.35;
  transform: scale(1.04);
  transition: transform 10s ease-out, opacity 1s ease;
}

.hero-bg.loaded {
  transform: scale(1);
  opacity: 1.00;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30, 50, 69, 0.96)  0%,
    rgba(30, 50, 69, 0.90) 20%,
    rgba(30, 50, 69, 0.65) 40%,
    rgba(30, 50, 69, 0.20) 58%,
    rgba(30, 50, 69, 0.00) 100%
  );
}

.hero-teal-glow {
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(181, 112, 106, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-teal-glow-2 {
  position: absolute;
  top: 20%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(181, 112, 106, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--c-secondary);
}

.hero-headline {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--c-secondary);
}

.hero-subline {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Floating card in hero */
.hero-badge {
  position: absolute;
  right: 5%;
  bottom: 10%;
  z-index: 2;
  background: rgba(20, 35, 50, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 20px 24px;
  max-width: 240px;
}

.hero-badge-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: 6px;
}

.hero-badge-text {
  font-family: 'Newsreader', serif;
  font-size: 1.125rem;
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.45;
}

/* ===== INFO CARDS (overlap hero) ===== */
.info-cards-wrapper {
  position: relative;
  z-index: 3;
  margin-top: -56px;
}

.info-card {
  background: var(--c-surface);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--c-border);
  transition: transform 250ms var(--ease-spring),
              box-shadow 250ms var(--ease-smooth);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
}

.info-card:focus-within {
  outline: 3px solid var(--c-secondary);
  outline-offset: 2px;
}

.info-icon-wrap {
  width: 67px;
  height: 67px;
  border-radius: 16px;
  background: var(--c-secondary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: background 200ms;
}

.info-card:hover .info-icon-wrap {
  background: rgba(181, 112, 106, 0.18);
}

.info-icon {
  width: 36px;
  height: 36px;
  filter: invert(47%) sepia(24%) saturate(630%) hue-rotate(318deg) brightness(103%) contrast(87%);
}

.info-card-title {
  font-family: 'Newsreader', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.info-card-text {
  font-size: 0.8125rem;
  color: var(--c-text-light);
  line-height: 1.65;
}

/* ===== WELCOME / STATS SECTION ===== */
.stat-block {
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
}

.stat-number {
  font-family: 'Newsreader', serif;
  font-size: 3.25rem;
  font-weight: 300;
  color: var(--c-primary);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 6px;
}

.stat-number sup {
  font-size: 1.75rem;
  vertical-align: super;
  font-weight: 300;
}

.stat-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-light);
  line-height: 1.5;
}

/* ===== SECTION ALTERNATING BG ===== */
.section-alt {
  background: var(--c-bg-alt);
}

.section-dark {
  background: var(--c-primary);
  border-radius: 32px;
}

/* ===== SERVICE GRID ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--c-surface);
  border-radius: 20px;
  padding: 24px 16px 20px;
  text-align: center;
  border: 1px solid var(--c-border);
  text-decoration: none;
  cursor: pointer;
  transition: transform 250ms var(--ease-spring),
              box-shadow 250ms var(--ease-smooth),
              border-color 200ms var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--c-secondary-border);
}

.service-card:focus-visible {
  outline: 3px solid var(--c-secondary);
  outline-offset: 2px;
}

.service-icon-wrap {
  width: 71px;
  height: 71px;
  border-radius: 18px;
  background: var(--c-secondary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms var(--ease-smooth),
              transform 250ms var(--ease-spring);
}

.service-card:hover .service-icon-wrap {
  background: rgba(181, 112, 106, 0.18);
  transform: scale(1.08);
}

.service-icon {
  width: 39px;
  height: 39px;
  filter: invert(47%) sepia(24%) saturate(630%) hue-rotate(318deg) brightness(103%) contrast(87%);
}

.service-name {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.45;
}

/* ===== GALLERY ===== */
.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  cursor: grab;
  user-select: none;
}

.gallery-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.gallery-track::-webkit-scrollbar {
  height: 3px;
}

.gallery-track::-webkit-scrollbar-track {
  background: var(--c-border);
  border-radius: 2px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: var(--c-primary);
  border-radius: 2px;
  opacity: 0.4;
}

.gallery-item {
  flex: 0 0 calc(33.333% - 11px);
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,27,75,0.35) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== TEAM CARDS ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--c-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  transition: transform 250ms var(--ease-spring),
              box-shadow 250ms var(--ease-smooth);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.team-photo-wrap {
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  background: var(--c-border);
}

.team-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,27,75,0.3) 0%, transparent 45%);
  pointer-events: none;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 450ms var(--ease-smooth);
}

.team-card:hover .team-photo {
  transform: scale(1.04);
}

.team-info {
  padding: 20px 22px 22px;
}

.team-name {
  font-family: 'Newsreader', serif;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--c-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.team-role {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-light);
}

/* ===== NEWS CARDS ===== */
.news-card {
  background: var(--c-surface);
  border-radius: var(--radius-card);
  padding: 32px 32px 32px 28px;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-secondary);
  box-shadow: var(--shadow-card);
  transition: transform 250ms var(--ease-spring),
              box-shadow 250ms var(--ease-smooth);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.news-tag {
  display: inline-flex;
  align-items: center;
  background: var(--c-secondary-muted);
  color: #0f766e;
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ===== MEDIKAMENTE CTA ===== */
.med-cta {
  background: var(--c-primary);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.med-cta-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.med-cta-glow-2 {
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== HAUSARZTMODELL ===== */
.partner-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.partner-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.partner-card-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== HOURS TABLE ===== */
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.875rem;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 500;
  color: var(--c-text);
}

.hours-time {
  color: var(--c-text-light);
  font-weight: 400;
}

.hours-closed {
  color: var(--c-text-subtle);
  font-style: italic;
}

/* ===== CONTACT SECTION ===== */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-bg {
  width: 61px;
  height: 61px;
  border-radius: 16px;
  background: var(--c-secondary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 200ms;
}

.contact-item:hover .contact-icon-bg {
  background: rgba(181, 112, 106, 0.18);
}

.contact-icon {
  width: 30px;
  height: 30px;
  filter: invert(47%) sepia(24%) saturate(630%) hue-rotate(318deg) brightness(103%) contrast(87%);
}

.contact-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  margin-bottom: 3px;
}

.contact-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  transition: color 150ms;
}

a.contact-value:hover {
  color: var(--c-primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 32px 32px 0 0;
  padding: 64px 0 40px;
  margin-top: -32px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  text-decoration: none;
  padding: 4px 0;
  transition: color 200ms var(--ease-smooth);
}

.footer-link:hover {
  color: #fff;
}

.footer-link:focus-visible {
  outline: 2px solid var(--c-secondary);
  outline-offset: 2px;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 40px 0 28px;
}

.footer-legal {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 150ms;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 200ms var(--ease-smooth),
              filter 200ms var(--ease-smooth);
}

.footer-link:hover .footer-contact-icon {
  opacity: 1;
  filter: brightness(0) invert(1);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--c-primary);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 90px 40px 48px;
  gap: 0;
  transform: translateX(100%);
  transition: transform 380ms var(--ease-spring);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav-link {
  display: block;
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 16px 0;
  letter-spacing: -0.02em;
  transition: color 180ms, padding-left 200ms var(--ease-spring);
}

.mobile-nav-link:hover {
  color: var(--c-secondary);
  padding-left: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 150ms;
}

.hamburger:hover {
  background: rgba(30,27,75,0.07);
}

.hamburger:focus-visible {
  outline: 3px solid var(--c-secondary);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 300ms var(--ease-spring), opacity 200ms;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hamburger.open span {
  background: #fff;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-smooth),
              transform 600ms var(--ease-smooth);
}

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

.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }
.reveal-d5 { transition-delay: 400ms; }
.reveal-d6 { transition-delay: 480ms; }

/* ===== TEAL ACCENT DOT ===== */
.teal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--c-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== ICON FILTER UTILITY ===== */
.icon-primary {
  filter: invert(12%) sepia(30%) saturate(1200%) hue-rotate(195deg) brightness(85%) contrast(100%);
}

.icon-secondary {
  filter: invert(47%) sepia(24%) saturate(630%) hue-rotate(318deg) brightness(103%) contrast(87%);
}

.icon-sm {
  width: 25px;
  height: 25px;
}

.icon-white {
  filter: brightness(0) invert(1);
}

/* ===== PHOTO CAROUSEL (between Aktuelles and Hausarztmodell) ===== */
.photo-carousel-section {
  overflow: hidden;
}

.photo-carousel-track {
  display: flex;
  gap: 0;
  animation: carousel-scroll 22s linear infinite;
  will-change: transform;
}

.photo-carousel-section:hover .photo-carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.photo-carousel-item {
  flex: 0 0 auto;
  /* width = 1/3 of container minus one gap each, using margin for spacing */
  width: calc(min(100vw - 112px, 1168px) / 3 - 11px);
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  margin-right: 16px;
  position: relative;
}

.photo-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-smooth);
}

.photo-carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,50,69,0.30) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== SUBPAGE HERO ===== */
.subpage-hero {
  background: var(--c-primary);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(181, 112, 106, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

/* ===== BACK LINK ===== */
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text-light);
  text-decoration: none;
  transition: color 150ms, gap 200ms var(--ease-spring);
  margin-bottom: 40px;
}

.back-link:hover {
  color: white;
  gap: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section-pad { padding: 72px 0; }
  .section-pad-sm { padding: 56px 0; }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-item {
    flex: 0 0 76%;
  }

  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .hamburger { display: flex; }

  .hero-badge {
    display: none;
  }

  .info-cards-wrapper {
    margin-top: -32px;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .gallery-item {
    flex: 0 0 85%;
  }
}

/* ============================================================
   UTILITY CLASSES — replacing inline styles
   ============================================================ */

/* ===== TYPOGRAPHY ON DARK BACKGROUNDS ===== */
.heading-on-dark {
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.text-on-dark {
  color: rgba(255, 255, 255, 0.70);
  font-size: 1rem;
  line-height: 1.75;
}

.text-white-65 { color: rgba(255, 255, 255, 0.65); }
.text-white-55 { color: rgba(255, 255, 255, 0.55); }
.text-white-50 { color: rgba(255, 255, 255, 0.50); }
.text-white-40 { color: rgba(255, 255, 255, 0.40); }

.dark-italic-quote {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* ===== LAYOUT UTILITIES ===== */
.teal-divider {
  width: 48px;
  height: 3px;
  background: var(--c-secondary);
  border-radius: 2px;
  margin-bottom: 28px;
}

.detail-card {
  background: var(--c-surface);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
}

.cta-inner {
  padding: 64px 56px;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .cta-inner {
    padding: 40px 28px;
  }
}

/* ===== TEAL NOTICE BOX ===== */
.teal-notice {
  background: var(--c-secondary-muted);
  border: 1px solid var(--c-secondary-border);
  border-radius: 14px;
  padding: 16px 20px;
}

.teal-notice p,
.teal-notice strong {
  color: #0f766e;
}

/* ===== DARK GLASS CARD ===== */
.dark-glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px;
}

.dark-glass-card-sm {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 320px;
}

/* ===== APOTHEKE / PHARMACY CARD ===== */
.apotheke-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px;
  max-width: 300px;
}

.apotheke-label {
  color: var(--c-secondary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.apotheke-body {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ===== HERO BADGE UTILITIES ===== */
.hero-badge-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.hero-badge-byline {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== INFO CARD LINK ===== */
.info-card-link {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  color: var(--c-primary);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 150ms;
}

.info-card-link:hover {
  text-decoration: underline;
}

.info-card-link-sm {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-text-light);
  text-decoration: none;
  margin-top: 4px;
  transition: color 150ms;
}

.info-card-link-sm:hover {
  color: var(--c-primary);
}

/* ===== SECTION-LABEL ON DARK (same as section-label but explicit) ===== */
.section-label-on-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: 20px;
}

.section-label-on-dark::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-secondary);
  flex-shrink: 0;
}

/* ===== FOOTER UTILITIES ===== */
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 20px;
}

/* ===== PARTNER CARD (Hawadoc) ===== */
.partner-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 24px 28px;
}

/* ===== IMPORTANT NOTICE (dark bg) ===== */
.dark-notice {
  background: rgba(30, 27, 75, 0.04);
  border: 1px solid rgba(30, 27, 75, 0.10);
  border-radius: 20px;
  padding: 24px 28px;
}

/* ===== CONTACT CARD HEADINGS ===== */
.contact-card-heading {
  font-family: 'Newsreader', serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--c-primary);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* ===== MAP PLACEHOLDER ===== */
.map-embed {
  background: var(--c-bg);
  border-radius: 16px;
  height: 180px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== EMERGENCY BOX ===== */
.emergency-notice {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.20);
  border-radius: 14px;
  padding: 16px 20px;
}

.emergency-notice p {
  color: #b91c1c;
  font-size: 0.875rem;
}

/* ===== SUBPAGE QUICK NAV ===== */
.quick-nav-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  color: var(--c-primary);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  text-decoration: none;
  gap: 6px;
  transition: border-color 200ms, box-shadow 200ms;
}

.quick-nav-pill:hover {
  border-color: var(--c-secondary-border);
  box-shadow: var(--shadow-card);
}

/* ===== SERVICE DETAIL CARD ===== */
.service-detail-card {
  background: var(--c-surface);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  scroll-margin-top: 100px;
}

.service-detail-icon-wrap {
  width: 89px;
  height: 89px;
  border-radius: 22px;
  flex-shrink: 0;
}

.service-detail-icon {
  width: 49px;
  height: 49px;
  filter: invert(47%) sepia(24%) saturate(630%) hue-rotate(318deg) brightness(103%) contrast(87%);
}

/* ===== CHIP TAG ===== */
.service-chip {
  background: var(--c-secondary-muted);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: #0f766e;
  font-weight: 500;
}

/* ===== PHONE LINK STYLE ===== */
.phone-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-primary);
  text-decoration: none;
  transition: color 150ms;
}

.phone-link:hover {
  text-decoration: underline;
}

.email-link-sm {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-text-light);
  text-decoration: none;
  margin-top: 4px;
  transition: color 150ms;
}

.email-link-sm:hover {
  color: var(--c-primary);
}

/* ===== NAV ACTIVE STATE ===== */
.nav-link-active {
  color: var(--c-primary) !important;
  font-weight: 700;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(30, 50, 69, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 250ms var(--ease-smooth),
              transform 250ms var(--ease-spring),
              background 200ms var(--ease-smooth),
              box-shadow 200ms var(--ease-smooth);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--c-primary-hover);
  box-shadow: 0 6px 28px rgba(30, 50, 69, 0.45);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0) scale(0.96);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--c-secondary);
  outline-offset: 3px;
}

/* ===== SUBPAGE HERO TEXT ===== */
.subpage-hero-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.0625rem;
  max-width: 560px;
  line-height: 1.75;
}

/* ===== SERVICE DETAIL HEADING ===== */
.service-heading {
  letter-spacing: -0.02em;
}

/* ===== INLINE BODY LINK ===== */
.link-primary {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms;
}

.link-primary:hover {
  text-decoration: underline;
}

/* ===== QUICK NAV CARD ===== */
.quick-nav-card {
  background: linear-gradient(160deg, #f0f2ff 0%, #edf8f7 100%);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  margin-bottom: 64px;
}

/* ===== KUNST GALLERY DESCRIPTION ===== */
.kunst-description {
  max-width: 50%;
}

@media (max-width: 768px) {
  .kunst-description {
    max-width: 100%;
  }
}

/* ===== CTA BODY TEXT (centred paragraph in dark CTA) ===== */
.cta-body-text {
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin: 0 auto 32px;
}


/* ===== MEDICATION ORDER FORM ===== */
.med-form-body {
  background: linear-gradient(160deg, #f0f2ff 0%, #edf8f7 100%);
  padding: 48px;
}

@media (max-width: 640px) {
  .med-form-body { padding: 28px 20px; }
}

.med-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .med-form-grid { grid-template-columns: 1fr; }
}

.med-form-full {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.med-field { display: flex; flex-direction: column; gap: 6px; }

.med-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
}

.med-label .req { color: var(--c-secondary); margin-left: 2px; }

.med-input {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(30, 27, 75, 0.12);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--c-primary);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.med-input::placeholder { color: rgba(30, 27, 75, 0.32); }

.med-input:hover:not(:focus) { border-color: rgba(30, 27, 75, 0.22); }

.med-input:focus {
  outline: none;
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
  background: rgba(255, 255, 255, 0.95);
}

textarea.med-input {
  resize: vertical;
  min-height: 96px;
}

/* Autocomplete */
.med-search-wrap { position: relative; }

.med-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(30, 27, 75, 0.10);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(30, 27, 75, 0.14);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.med-autocomplete.open { display: block; animation: fadeSlideDown 0.15s ease; }

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.med-autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(30, 27, 75, 0.05);
  transition: background 0.12s;
}

.med-autocomplete-item:last-child { border-bottom: none; }

.med-autocomplete-item:hover { background: rgba(30, 27, 75, 0.04); }

.med-autocomplete-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--c-primary);
  font-family: var(--font-sans);
}

.med-autocomplete-info {
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-top: 2px;
  font-family: var(--font-sans);
}

.med-autocomplete-manual {
  border-top: 1px solid rgba(30, 27, 75, 0.08) !important;
  background: rgba(45, 212, 191, 0.03);
}

.med-autocomplete-manual:hover {
  background: rgba(45, 212, 191, 0.07) !important;
}

.med-autocomplete-empty {
  padding: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--c-muted);
  font-style: italic;
}

/* Selected medications */
.med-selected-wrap {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(30, 27, 75, 0.10);
  border-radius: 12px;
  padding: 12px;
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.med-empty {
  font-size: 0.8125rem;
  color: rgba(30, 27, 75, 0.32);
  font-style: italic;
  padding: 6px 4px;
  font-family: var(--font-sans);
}

.med-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-primary);
  color: white;
  padding: 8px 10px 8px 14px;
  border-radius: 10px;
}

.med-tag-info { display: flex; flex-direction: column; gap: 1px; }

.med-tag-name {
  font-weight: 600;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  color: white;
}

.med-tag-dosage {
  font-size: 0.6875rem;
  opacity: 0.65;
  font-family: var(--font-sans);
}

.med-tag-qty {
  width: 48px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 0.75rem;
  text-align: center;
  font-family: var(--font-sans);
}

.med-tag-remove {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  transition: background 0.15s;
  flex-shrink: 0;
}

.med-tag-remove:hover { background: rgba(255, 255, 255, 0.28); }

/* Section titles */
.med-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
}

.med-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(30, 27, 75, 0.08);
}

/* Feedback messages */
.med-feedback {
  display: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
}

.med-feedback.show { display: flex; animation: fadeSlideDown 0.2s ease; }

.med-feedback-success {
  background: rgba(45, 212, 191, 0.10);
  border: 1.5px solid rgba(45, 212, 191, 0.28);
  color: #0f766e;
}

.med-feedback-error {
  background: rgba(239, 68, 68, 0.07);
  border: 1.5px solid rgba(239, 68, 68, 0.18);
  color: #dc2626;
}

/* Privacy row */
.med-privacy-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(30, 27, 75, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 28px;
}

.med-privacy-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--c-secondary);
  margin-top: 1px;
  cursor: pointer;
}

.med-privacy-text {
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.55;
  font-family: var(--font-sans);
}

/* Spinner */
.med-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

.med-spinner.show { display: inline-block; }

/* ============================================================
   Legal Pages (Impressum, Datenschutz)
   ============================================================ */

.legal-content {
  max-width: 720px;
  background: white;
  border-radius: 20px;
  padding: 48px 56px;
  box-shadow: 0 2px 24px rgba(30, 27, 75, 0.07);
}

.legal-meta {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--c-primary);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .legal-content {
    padding: 32px 24px;
  }
}

@keyframes spin { to { transform: rotate(360deg); } }
