/* ============================================================
   Zahnarztpraxis Kalirad-Schneider – Hauptstylesheet
   Modernes, seriöses Design | Mobile-First
   ============================================================ */

/* --- Reset & Basis --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #1a6b8a;
  --primary-d: #124f68;
  --accent:    #4ab3d4;
  --light-bg:  #f0f6f9;
  --white:     #ffffff;
  --text:      #2c3e50;
  --text-light:#5a7080;
  --border:    #d0e4ed;
  --shadow:    0 2px 12px rgba(26,107,138,.12);
  --radius:    8px;
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
  --nav-h:     68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25; font-weight: 700; color: var(--primary-d); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; color: var(--primary); margin-bottom: .6rem; }
h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary-d); margin: 1.2rem 0 .4rem; }
p  { margin-bottom: .9rem; }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--alt { background: var(--light-bg); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); gap: 1rem;
}
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.logo-sub  { font-size: .78rem; color: var(--text-light); letter-spacing: .04em; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; transition: .3s; }

/* Nav */
.site-nav ul { display: flex; gap: 0; }
.site-nav a {
  display: block; padding: .5rem .85rem;
  font-size: .9rem; font-weight: 500; color: var(--text);
  border-radius: var(--radius); transition: background .2s, color .2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { background: var(--light-bg); color: var(--primary); }

/* Phone in header */
.header-phone { font-size: .95rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.header-phone span { font-size: .75rem; font-weight: 400; color: var(--text-light); display: block; text-align: right; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--accent) 100%);
  color: var(--white);
  min-height: 420px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/header.jpg');
  background-size: cover; background-position: center top;
  opacity: .28;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; padding: 3rem 1.25rem; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p  { font-size: 1.1rem; opacity: .9; margin-bottom: 1.6rem; }
.btn {
  display: inline-block; padding: .7rem 1.8rem;
  background: var(--white); color: var(--primary);
  font-weight: 600; border-radius: 50px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.22); color: var(--primary-d); }
.btn-primary {
  background: var(--primary); color: var(--white);
  border: 2px solid var(--primary);
}
.btn-primary:hover { background: var(--primary-d); color: var(--white); border-color: var(--primary-d); }

/* ============================================================
   INFO-BANNER (Öffnungszeiten-Schnellübersicht)
   ============================================================ */
.info-banner {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 0;
}
.info-banner-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center;
}
.info-banner-item { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.info-banner-item svg { flex-shrink: 0; }

/* ============================================================
   CARDS / GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,107,138,.18); }
.card-img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-body h3 { margin-top: 0; }
.card-body p { font-size: .92rem; color: var(--text-light); }

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.leistung-item {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.4rem 1.4rem 1.4rem 1.1rem;
  display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: var(--shadow); transition: transform .2s;
}
.leistung-item:hover { transform: translateY(-3px); }
.leistung-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--light-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.3rem;
}
.leistung-item h3 { margin: 0 0 .3rem; font-size: 1rem; }
.leistung-item p  { font-size: .875rem; color: var(--text-light); margin: 0; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.team-card { text-align: center; }
.team-card img {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover; object-position: top;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}
.team-card .name { font-weight: 700; color: var(--primary-d); }
.team-card .rolle { font-size: .85rem; color: var(--text-light); }

/* ============================================================
   KONTAKT / SPRECHZEITEN
   ============================================================ */
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-top: 2rem;
}
.kontakt-box {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 2rem;
  box-shadow: var(--shadow);
}
.kontakt-box h3 { margin-top: 0; }
.kontakt-box address { font-style: normal; line-height: 1.9; }

.oeffnung-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.oeffnung-table td { padding: .4rem .6rem; border-bottom: 1px solid var(--border); font-size: .95rem; }
.oeffnung-table td:first-child { font-weight: 600; color: var(--primary-d); padding-left: 0; }
.oeffnung-table tr:last-child td { border-bottom: none; }

/* Kontaktformular */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .65rem .9rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: .95rem; color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,179,212,.18);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-dsgvo { font-size: .82rem; color: var(--text-light); margin-top: .3rem; }
.form-submit { margin-top: 1.2rem; }

/* Map placeholder */
.map-wrap { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; height: 320px; border: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-d); color: rgba(255,255,255,.8);
  padding: 2.5rem 0 1.2rem;
  font-size: .88rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: .7rem; }
.footer-col p, .footer-col address { font-style: normal; line-height: 1.9; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1rem; text-align: center; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   PAGE HERO (innere Seiten)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-d), var(--accent));
  color: var(--white); padding: 2.5rem 0;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .2;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(1.4rem, 3.5vw, 2rem); }
.page-hero p { opacity: .85; margin: 0; }

/* Breadcrumb */
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: .4rem; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--white); }

/* ============================================================
   IMPRESSUM / DATENSCHUTZ content
   ============================================================ */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: .9rem; }
.prose ul li { margin-bottom: .25rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
    z-index: 99;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .85rem 1.5rem; border-radius: 0; border-bottom: 1px solid var(--border); }

  .header-phone { display: none; }

  .kontakt-grid { grid-template-columns: 1fr; }

  .hero { min-height: 320px; }
}

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

/* ============================================================
   UTILS
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.section-intro { max-width: 680px; margin: 0 auto 2rem; text-align: center; color: var(--text-light); }
