/* ============================================
   DR. PHILIPP VINZENZ – WEBSITE STYLES
   Primary: #033C98 | Clean, minimal, sharp
============================================ */

/* Inter – lokal gehostet (fonts/, SIL Open Font License), kein Google-Fonts-Request */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --primary: #033C98;
  --primary-dark: #022b70;
  --primary-light: #e8eef8;
  --black: #0a0a0a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --radius: 2px;
  --nav-width: 240px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* Cover-only page (no sidebar) */
body.page-cover {
  display: block;
}

body.page-cover .main-content {
  margin-left: 0;
}

.cover-page-logo {
  width: 200px;
  margin-bottom: 3.5rem;
  display: block;
}

.cover-logo-link {
  text-decoration: none;
}

/* ── SIDEBAR NAV ── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--gray-300);
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 2rem 0;
}

.sidebar-logo {
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-logo img { width: 160px; height: auto; }

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
  overflow-y: auto;
}

.sidebar-nav a {
  display: block;
  padding: 0.65rem 1.5rem;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}

.sidebar-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.sidebar-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
  font-weight: 600;
}

.sidebar-nav .nav-label {
  padding: 1.2rem 1.5rem 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

.sidebar-contact {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.8;
}

.sidebar-contact a { color: var(--primary); text-decoration: none; }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--nav-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Inhalt füllt die Höhe, damit der Footer immer ganz unten sitzt */
.main-content > section,
.main-content > .legal-section {
  flex: 1 0 auto;
}

/* ── SECTIONS ── */
section {
  padding: 6rem 5rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── COVER ── */
/* Echtes Split-Screen-Hero: Bild randabschließend über volle Höhe statt
   einer kleinen, freischwebenden Box. max-width verhindert, dass die
   beiden Hälften auf sehr breiten Monitoren auseinanderdriften. */
#cover {
  background: var(--white);
  padding: 0;
  position: relative;
  min-height: 100vh;
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cover-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 3rem 5rem;
}

.cover-logo { width: 200px; margin-bottom: 3.5rem; }

.cover-name {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.cover-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.cover-info {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cover-info-block { margin-bottom: 1rem; }

.cover-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0.3rem;
}

.cover-info-text {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.cover-info-text a { color: var(--primary); text-decoration: none; }

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.hours-grid .day { font-weight: 500; }
.hours-grid .closed { color: var(--gray-500); }

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}

.hours-status.open {
  background: #dcfce7;
  color: #15803d;
}

.hours-status.closed {
  background: #fee2e2;
  color: #b91c1c;
}

.hours-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.hours-status.open::before {
  animation: pulse-green 1.8s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.cover-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.875rem 2.5rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.cover-btn:hover { background: var(--primary-dark); }

.cover-right {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}

/* Gemälde "Out of the Blue" – füllt die Spalte randabschließend,
   komplett sichtbar (Galerie-Optik ohne Beschnitt) */
.cover-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 3.5rem; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-divider {
  width: 3rem;
  height: 3px;
  background: var(--primary);
  margin-top: 1rem;
}

/* ── PHILOSOPHIE ── */
#philosophie {
  background: var(--white);
  display: block; /* override section flex so sticky works */
}

.philosophie-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.philosophie-content { max-width: none; }

.philosophie-image-col {
  align-self: stretch;
}

.philosophie-image-sticky {
  position: sticky;
  top: 2rem;
  overflow: hidden;
  height: 80vh;
}

.philosophie-image-sticky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.philosophie-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.4;
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.philosophie-text {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.philosophie-highlight {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-900);
}

/* ── ÜBER UNS ── */
#ueber-uns { background: var(--gray-100); }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.team-photo-wrap {
  position: relative;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
}

.team-photo-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.team-cv h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.team-cv .team-title {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.cv-section { margin-bottom: 2rem; }

.cv-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gray-300);
}

.cv-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.cv-year { color: var(--gray-500); font-weight: 500; }
.cv-desc { color: var(--gray-700); line-height: 1.5; }

/* team members below */
.team-members {
  margin-top: 5rem;
}

.team-members-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--gray-300);
}

.team-member-card {
  background: var(--white);
  text-align: center;
  overflow: hidden;
}

.team-member-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 0.4s ease;
}

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

.team-member-info {
  padding: 1rem 1rem 1.25rem;
}

.team-member-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.2rem;
}

.team-member-role {
  font-size: 0.775rem;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

/* ── LEISTUNGEN ── */
#leistungen { background: var(--white); }

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-300);
}

.leistung-card {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.leistung-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.leistung-card:hover .leistung-img { transform: scale(1.04); }

.leistung-body {
  padding: 1.25rem 1.25rem 1rem;
}

.leistung-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

/* Toggle */
.leistung-toggle {
  margin-top: 0.75rem;
}

.toggle-btn {
  background: none;
  border: 1px solid var(--gray-300);
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
  font-family: inherit;
}

.toggle-btn:hover { background: var(--primary-light); }

.toggle-icon {
  width: 16px; height: 16px;
  transition: transform var(--transition);
}

.toggle-btn.open .toggle-icon { transform: rotate(45deg); }

.toggle-content {
  display: none;
  padding: 0.75rem;
  background: var(--gray-100);
  font-size: 0.8rem;
  color: var(--gray-700);
  line-height: 1.7;
  border: 1px solid var(--gray-300);
  border-top: none;
}

.toggle-content.open { display: block; }

/* ── LEISTUNGEN CTA ── */
.leistungen-cta {
  grid-column: span 1;
  background: var(--primary);
  display: flex;
  align-items: center;
}

.leistungen-cta-inner {
  padding: 2.5rem 2rem;
}

.leistungen-cta-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.leistungen-cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.leistungen-cta-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2rem;
}

.leistungen-cta-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.leistungen-cta-btn:hover {
  background: var(--primary-light);
}

/* ── LEISTUNGEN GROUPS ── */
.leistungen-group {
  margin-bottom: 3.5rem;
}

.leistungen-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-300);
}

/* Full-width CTA (below grid) */
.leistungen-cta-fullwidth {
  background: var(--primary);
  margin-top: 2rem;
}

.leistungen-cta-fullwidth .leistungen-cta-inner {
  padding: 3rem 3.5rem;
}

/* ── KONTAKT ── */
#kontakt { background: var(--gray-900); color: var(--white); }

#kontakt .section-label { color: rgba(255,255,255,0.5); }
#kontakt .section-title { color: var(--white); }
#kontakt .section-divider { background: var(--primary); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 3.5rem;
}

.kontakt-block { margin-bottom: 2.5rem; }

.kontakt-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}

.kontakt-value {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.kontakt-value a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }

.kontakt-hours { margin-top: 1.5rem; }

.kontakt-hours-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.875rem;
}

.kontakt-hours-row .day { color: rgba(255,255,255,0.5); font-weight: 500; }
.kontakt-hours-row .time { color: rgba(255,255,255,0.85); }
.kontakt-hours-row .closed-label { color: rgba(255,255,255,0.3); }

.kontakt-map {
  width: 100%;
  aspect-ratio: 4/3;
  border: none;
}

/* ── IMPRESSUM / DATENSCHUTZ ── */
.legal-section {
  padding: 5rem;
  max-width: 900px;
}

.legal-section h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 2rem 0 0.75rem;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 1.25rem 0 0.5rem;
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-section a { color: var(--primary); }

.legal-section hr {
  border: none;
  border-top: 1px solid var(--gray-300);
  margin: 2rem 0;
}

.legal-section strong { color: var(--gray-900); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.legal-table th {
  background: var(--gray-100);
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
}

.legal-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  vertical-align: top;
}

/* ── POPUP ── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.popup-overlay.active { display: flex; }

.popup-box {
  background: var(--white);
  max-width: 480px;
  width: 90%;
  padding: 2.5rem;
  position: relative;
}

.popup-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.popup-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.popup-text {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.popup-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--gray-500);
}

/* ── FOOTER ── */
footer {
  background: var(--gray-900);
  padding: 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

footer p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; margin-left: 1.5rem; font-size: 0.8rem; }
footer a:hover { color: var(--white); }

.footer-credit {
  width: 100%;
  font-size: 0.8rem !important;
  margin-top: 0.25rem;
}
.footer-credit a {
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  margin-left: 0;
}
.footer-credit a:hover {
  color: var(--white);
}

/* ── MOBILE HAMBURGER ── */
.hamburger {
  display: none;
  position: fixed;
  top: 1rem; right: 1rem;
  z-index: 200;
  background: var(--primary);
  border: none;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  :root { --nav-width: 200px; }

  section {
    padding: 4rem 3rem;
    min-height: auto;
  }

  /* Cover */
  #cover { grid-template-columns: 1fr; min-height: 100vh; padding: 0; gap: 0; }
  .cover-right { display: none; }
  .cover-left { padding: 5rem 3rem 4rem; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; gap: 3rem; }
  .team-photo-wrap { max-width: 360px; }
  .team-members-grid { grid-template-columns: repeat(2, 1fr); }
  .team-members { margin-top: 3rem; }

  /* Leistungen */
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .leistungen-cta { grid-column: span 2; }

  /* Philosophie */
  .philosophie-layout { grid-template-columns: 1fr 250px; gap: 3rem; }

  /* Kieferortho / Ästhetik / Kinder / Myopathie inline grids */
  #kieferortho > div[style*="grid"],
  #aesthetik > div[style*="grid"],
  #kinder > div[style*="grid"],
  #myopathie > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Kontakt */
  .kontakt-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Footer */
  footer { padding: 1.5rem 3rem; }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {

  /* Hamburger */
  .hamburger { display: flex; }

  /* Sidebar slide-in */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 300;
    width: 280px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.15); }

  /* Sidebar overlay */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 299;
  }
  .sidebar-overlay.active { display: block; }

  .main-content { margin-left: 0; }

  /* Sections */
  section {
    padding: 3rem 1.25rem;
    min-height: auto;
  }

  /* Cover – kompakt, Willkommen-Button ohne Scrollen sichtbar */
  .cover-left {
    padding: 2rem 1.25rem 2.5rem;
    justify-content: flex-start;
  }
  .cover-page-logo { width: 140px; margin-bottom: 1.5rem; }
  .cover-name { font-size: 2rem; }
  .cover-title { font-size: 0.85rem; margin-bottom: 1.25rem; }
  .cover-info-block { margin-bottom: 1rem; }
  /* Öffnungszeiten ans Ende – Button rückt vor die Öffnungszeiten */
  .cover-info .cover-info-block:nth-of-type(3) { order: 1; margin-top: 1.25rem; margin-bottom: 0; }
  .cover-btn { margin-top: 0.5rem; width: 100%; text-align: center; }

  /* Section headers */
  .section-header { margin-bottom: 2rem; }
  .section-title { font-size: 1.6rem; }

  /* Philosophie */
  .philosophie-quote { font-size: 1.1rem; margin: 1.75rem 0; }
  .philosophie-content { max-width: 100%; }
  .philosophie-layout { grid-template-columns: 1fr; }
  .philosophie-image-col { display: none; }

  /* Team – portrait + CV stack */
  .team-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-photo-wrap { max-width: 100%; }
  .team-photo { aspect-ratio: 2/3; object-position: top; }
  .team-cv h3 { font-size: 1.2rem; }
  .cv-item { grid-template-columns: 80px 1fr; font-size: 0.825rem; }
  .team-members { margin-top: 2.5rem; }
  .team-members-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Leistungen */
  .leistungen-grid { grid-template-columns: 1fr; background: none; gap: 0; }
  .leistung-card { border-bottom: 1px solid var(--gray-300); }
  .leistung-img { aspect-ratio: 16/9; }
  .leistungen-cta {
    grid-column: span 1;
    border-bottom: none;
  }
  .leistungen-cta-inner { padding: 2rem 1.25rem; }
  .leistungen-cta-title { font-size: 1.35rem; }
  .leistungen-group { margin-bottom: 2.5rem; }
  .leistungen-cta-fullwidth .leistungen-cta-inner { padding: 2rem 1.25rem; }

  /* Kieferortho / Ästhetik / Kinder / Myopathie */
  #kieferortho > div[style*="grid"],
  #aesthetik > div[style*="grid"],
  #kinder > div[style*="grid"],
  #myopathie > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  #kieferortho > div[style*="grid"] > div:last-child,
  #myopathie > div[style*="grid"] > div:last-child {
    order: -1;
  }

  /* Kontakt */
  .kontakt-grid { gap: 2rem; }
  .kontakt-map { aspect-ratio: 1/1; }
  .kontakt-hours-row { grid-template-columns: 90px 1fr; }

  /* Legal pages */
  .legal-section { padding: 3rem 1.25rem; }
  .legal-table { font-size: 0.78rem; }
  .legal-table th, .legal-table td { padding: 0.4rem 0.5rem; }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
  }
  footer a { margin-left: 0.75rem; }
}

/* ── VERY SMALL (≤ 400px) ── */
@media (max-width: 400px) {
  .team-members-grid { grid-template-columns: 1fr; }
  .cover-name { font-size: 1.75rem; }
}
