/* ==========================================================================
   drkleinrath.at — Stylesheet
   ========================================================================== */

/* ===== Variables ===== */
:root {
  --blue:       #1a3a5c;
  --blue-light: #2a5080;
  --blue-dark:  #0f2238;
  --blue-pale:  #eef2f7;
  --gold:       #a0a8cc;
  --gold-light: #bec4dc;
  --gold-dark:  #7480b0;
  --text:       #1f2937;
  --text-light: #6b7280;
  --bg:         #ffffff;
  --bg-light:   #f8f9fb;
  --border:     #e5e7eb;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --transition: 0.25s ease;
  --container: 1140px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: white;
  color: var(--blue);
  border-color: white;
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: white;
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* Footer-Variante (weiß auf dunklem Hintergrund) */
.footer-wordmark {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.footer-zahn { color: rgba(255,255,255,0.42); }
.footer-arzt { color: white; font-weight: 700; }
.footer-dr {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-pale);
}
.nav-links a.active {
  border-bottom-color: var(--gold);
}
.nav-cta { margin-left: 0.75rem; flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  transition: all var(--transition);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.75rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    border-left: none;
    font-size: 1rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
  }
  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Hero ===== */
.hero {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(160,168,204,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 10%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero-content { max-width: 540px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(160,168,204,0.18);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(160,168,204,0.35);
  text-transform: uppercase;
}
.hero h1 {
  color: white;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-visual-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(160,168,204,0.12) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}
.hero-visual-placeholder svg {
  width: 64px; height: 64px;
  opacity: 0.3;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { min-height: 440px; }
}

/* ===== Hours Strip ===== */
.hours-strip {
  background: var(--gold);
  padding: 1.1rem 0;
}
.hours-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hours-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue-dark);
  font-size: 0.9rem;
}
.hours-item svg { flex-shrink: 0; opacity: 0.7; }
.hours-item strong { font-weight: 700; }
.hours-sep {
  width: 1px;
  height: 20px;
  background: rgba(26,58,92,0.25);
}
@media (max-width: 600px) {
  .hours-strip .container { gap: 0.75rem; }
  .hours-sep { display: none; }
  .hours-item { width: 100%; justify-content: center; }
}

/* ===== Section Title ===== */
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head .label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p {
  max-width: 540px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1rem;
}

/* ===== Service Cards (Index preview) ===== */
.services-preview {
  background: var(--bg-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.service-card .icon-wrap {
  width: 60px; height: 60px;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--blue);
  transition: all var(--transition);
}
.service-card:hover .icon-wrap {
  background: var(--blue);
  color: white;
}
.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .services-grid { grid-template-columns: 1fr; } }

/* ===== About Teaser ===== */
.about-teaser {
  background: var(--blue);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text h2 { color: white; margin-bottom: 1.25rem; }
.about-text p { color: rgba(255,255,255,0.78); margin-bottom: 1rem; }
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 420px;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 820px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-width: 320px; }
}

/* ===== Kontakt / Map Section ===== */
.kontakt-section { background: var(--bg-light); }
.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.kontakt-info h2 { margin-bottom: 1.5rem; }
.contact-list { margin-bottom: 2rem; }
.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .ci-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-list .ci-body { flex: 1; }
.contact-list .ci-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
  display: block;
}
.contact-list .ci-value {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}
.contact-list a.ci-value:hover { color: var(--blue); text-decoration: underline; }
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 420px;
}
.map-embed iframe { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 820px) {
  .kontakt-inner { grid-template-columns: 1fr; gap: 2rem; }
  .map-embed { height: 300px; }
}

/* ===== CTA Band ===== */
.cta-band {
  text-align: center;
  padding: 5rem 0;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
footer {
  background: var(--blue-dark);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col address {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
}
.footer-col address a { color: var(--gold-light); transition: color var(--transition); }
.footer-col address a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ===== Page Hero ===== */
.page-hero {
  background: var(--blue);
  padding: 3.5rem 0 3rem;
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.875rem;
}
.page-hero .breadcrumb a {
  color: var(--gold-light);
  transition: color var(--transition);
}
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero h1 {
  color: white;
  max-width: 700px;
}
.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-top: 0.875rem;
  max-width: 600px;
}

/* ===== Leistungen Page ===== */
.leistungen-section { padding: 5rem 0; }
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.leistung-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.leistung-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.leistung-card .card-icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
  transition: all var(--transition);
}
.leistung-card:hover .card-icon {
  background: var(--blue);
  color: white;
}
.leistung-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.leistung-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; }
@media (max-width: 900px) { .leistungen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .leistungen-grid { grid-template-columns: 1fr; } }

/* ===== Dr. Kleinrath Page ===== */
.doctor-section { padding: 5rem 0; }
.doctor-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4rem;
  align-items: start;
}
.doctor-photo-wrap {
  position: sticky;
  top: 88px;
}
.doctor-photo-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.doctor-bio p { color: var(--text); margin-bottom: 1rem; line-height: 1.75; }
.cv-block { margin-top: 2.5rem; }
.cv-block-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.cv-list { list-style: none; }
.cv-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--bg-light);
}
.cv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.chip {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}
@media (max-width: 900px) {
  .doctor-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .doctor-photo-wrap { position: static; max-width: 320px; }
}

/* ===== Zufahrtsplan Page ===== */
.zufahrt-section { padding: 5rem 0; }
.map-large {
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 3.5rem;
}
.map-large iframe { width: 100%; height: 100%; border: none; display: block; }
.anfahrt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.anfahrt-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.anfahrt-card .icon-wrap {
  width: 48px; height: 48px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.anfahrt-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.anfahrt-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; }
@media (max-width: 768px) {
  .anfahrt-grid { grid-template-columns: 1fr; }
  .map-large { height: 320px; margin-bottom: 2.5rem; }
}

/* ===== Impressum Page ===== */
.legal-section { padding: 5rem 0; }
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.legal-block { margin-bottom: 3.5rem; }
.legal-block h2 {
  font-size: 1.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.75rem;
}
.legal-block h3 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}
.legal-block p,
.legal-block li {
  font-size: 0.925rem;
  color: var(--text-light);
  line-height: 1.85;
}
.legal-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-block a {
  color: var(--blue);
  text-decoration: underline;
}
.legal-block a:hover { color: var(--blue-light); }
