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

:root {
  --navy:       #1a3472;
  --navy-dark:  #0f2151;
  --navy-mid:   #2a4a9a;
  --navy-light: #e8edf8;
  --navy-pale:  #f2f5fc;
  --accent:     #2d5cc8;
  --text:       #1e2535;
  --text-muted: #5a6680;
  --border:     #cdd5e8;
  --bg:         #f5f7fd;
  --white:      #ffffff;
  --radius:     10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

/* HEADER */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(26,52,114,0.08);
}
.header-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo-svg-wrap {
  display: block;
  text-decoration: none;
  line-height: 0;
}
.logo-svg-wrap svg {
  height: 58px;
  width: auto;
  display: block;
}
.header-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 4px;
  line-height: 1.4;
}
nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background 0.15s;
}
nav a:hover { background: var(--navy-light); }

.hamburger-btn {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  margin-left: auto;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* HERO */
.hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 76px 24px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.hero-content { position: relative; z-index: 1; }
.hero h2 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
}
.hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 520px;
  margin: 0 auto 30px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.hero-cta:hover { opacity: 0.93; transform: translateY(-1px); }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(74, 222, 128, 0.15);
  border: 3px solid rgba(251, 191, 36, 0.5);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  white-space: nowrap;
}
.hero-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fbbf24;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
  animation: hero-status-pulse 2s ease-in-out infinite;
}
@keyframes hero-status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.15); }
}

.hero-cta-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255,255,255,0.6);
}
.hero-cta-tooltip {
  position: relative;
  display: inline-block;
}
.hero-cta-tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.78rem;
  text-align: center;
  padding: 6px 12px;
  border-radius: 6px;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.2s;
  pointer-events: none;
}
.hero-cta-tooltip .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0,0,0,0.75);
}
.hero-cta-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* SECTION */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 28px;
  scroll-margin-top: 82px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title svg {
  width: 20px; height: 20px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--navy-mid);
  box-shadow: 0 2px 12px rgba(26,52,114,0.1);
}
.card-icon {
  width: 46px; height: 46px;
  background: var(--navy-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card-icon svg {
  width: 22px; height: 22px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 7px;
}
.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.card-more-btn {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.card-more-btn:hover { text-decoration: underline; }

/* ── CARD MODAL (read more) ── */
.card-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 33, 81, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}
.card-modal-overlay.hidden { display: none; }
.card-modal-box {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  padding: 36px 40px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.card-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--navy-light);
  color: var(--navy-dark);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.card-modal-close:hover { background: var(--border); }
.card-modal-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 14px;
  padding-right: 30px;
}
.card-modal-box p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
}
@media (max-width: 480px) {
  .card-modal-box { padding: 28px 22px; }
}

.divider { height: 1px; background: var(--border); }

/* ARZT SECTION */
.arzt-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}
.arzt-photo {
  width: 220px;
  height: 230px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(26,52,114,0.12);
}
.arzt-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.arzt-title {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.arzt-bio {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 22px;
}
.arzt-qualifications {
  list-style: none;
}
.arzt-qualifications li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.arzt-qualifications li:first-child { border-top: none; }
.arzt-qualifications li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy-mid);
  flex-shrink: 0;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .arzt-block { grid-template-columns: 1fr; }
  .arzt-photo { width: 100%; height: auto; max-width: 220px; }
}

/* ARZT EXTRA: LEBENSLAUF / MITGLIEDSCHAFTEN / PHILOSOPHIE */
.arzt-extra {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.arzt-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 18px;
}
.arzt-extra > .arzt-subtitle:not(:first-child) {
  margin-top: 40px;
}

.lebenslauf-rows {
  border-top: 1px solid var(--border);
}
.lebenslauf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.lebenslauf-date {
  flex: 0 0 auto;
  min-width: 140px;
  font-weight: 700;
  color: var(--navy);
}
.lebenslauf-text {
  flex: 1 1 260px;
  color: var(--text);
}

.mitgliedschaften-list {
  list-style: none;
}
.mitgliedschaften-list li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.mitgliedschaften-list li:first-child { border-top: none; }
.mitgliedschaften-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy-mid);
  flex-shrink: 0;
  margin-top: 4px;
}

.philosophie-block {
  position: relative;
  background: var(--navy-pale);
  border-left: 3px solid var(--navy-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 30px 34px;
}
.philosophie-quote-icon {
  width: 36px; height: 36px;
  fill: var(--navy-light);
  stroke: none;
  display: block;
  margin-bottom: 4px;
}
.philosophie-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 22px;
}
.philosophie-body p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 10px;
}
.philosophie-body p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .lebenslauf-date { min-width: 100%; }
  .philosophie-block { padding: 24px 22px; }
}

/* CONTACT */
.contact-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.contact-item {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-item:last-child { border-right: none; }
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  font-weight: 700;
}
.contact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  text-decoration: none;
  word-break: break-all;
}
a.contact-value:hover { color: var(--accent); }
.contact-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* HOURS */
.hours-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hours-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.hours-row:last-child { border-bottom: none; }
.hours-day {
  flex: 0 0 160px;
  padding: 15px 22px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-dark);
  background: var(--navy-pale);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.hours-day.closed-day {
  background: #f8f8f8;
  color: #aaa;
}
.hours-times {
  padding: 15px 22px;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.slot {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.slot::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy-mid);
  flex-shrink: 0;
}
.hours-closed {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

/* FOOTER */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 30px 24px;
  font-size: 0.82rem;
}
footer a { color: rgba(255,255,255,0.82); text-decoration: none; }
footer a:hover { color: #fff; }
footer .footer-logo { margin-bottom: 16px; display: flex; justify-content: center; }

/* RESPONSIVE */
@media (max-width: 620px) {
  .header-inner { flex-wrap: nowrap; gap: 10px; }
  .header-sub { display: none; }
  .hamburger-btn { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(26,52,114,0.1);
    gap: 0;
    padding: 6px 0;
  }
  nav.nav-open { display: flex; }
  nav a { padding: 13px 24px; border-radius: 0; }
  nav a:hover { background: var(--navy-light); }
  .hero h2 { font-size: 1.55rem; }
  .hero-status { font-size: 1.1rem; padding: 7px 14px; letter-spacing: -0.015em; }
  .hours-day { flex: 0 0 110px; font-size: 0.8rem; padding: 12px 14px; }
  .hours-times { padding: 12px 16px; }
  .contact-item { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-item:last-child { border-bottom: none; }
}

/* ── COOKIE BANNER ── */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 33, 81, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}
.cookie-overlay.hidden { display: none; }
.cookie-box {
  background: var(--white);
  border-radius: 14px;
  padding: 36px 40px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.cookie-box h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-box h2 svg {
  width: 22px; height: 22px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.cookie-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.cookie-box p a { color: var(--navy); }
.cookie-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  flex: 1;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-btn-accept:hover { background: var(--navy-dark); }
.cookie-btn-decline {
  flex: 1;
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cookie-btn-decline:hover { border-color: var(--navy); color: var(--navy); }
@media (max-width: 480px) {
  .cookie-box { padding: 28px 22px; }
  .cookie-buttons { flex-direction: column; }
}

/* ── MAP CONSENT PLACEHOLDER ── */
.map-placeholder {
  width: 100%;
  height: 360px;
  background: var(--navy-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.map-placeholder p {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 300px;
  line-height: 1.6;
}
.map-placeholder button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.map-placeholder button:hover { background: var(--navy-dark); }
.map-iframe-wrap { display: none; width: 100%; height: 360px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.map-iframe-wrap iframe { border: 0; display: block; width: 100%; height: 100%; }


/* ── PRAXIS GALLERY ── */
.praxis-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 40px;
}
.praxis-intro p {
  margin-bottom: 10px;
}
.zigzag {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.zigzag-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.zigzag-item.reverse {
  direction: rtl;
}
.zigzag-item.reverse > * {
  direction: ltr;
}
.zigzag-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(26,52,114,0.12);
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.zigzag-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.zigzag-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  /* PLACEHOLDER: replace this text */
}
.zigzag-text .placeholder-notice {
  display: inline-block;
  background: #fff3cd;
  border: 1px dashed #f0ad00;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #856404;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .zigzag-item, .zigzag-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .zigzag-img { aspect-ratio: 16/9; }
}