/* ============================================================
   HAUSARZTPRAXIS DR. BERGER — styles.css
   Professionell · Warm · Vertrauenswürdig
   ============================================================ */

/* --- TOKENS ------------------------------------------------ */
:root {
  --navy:        #1a3a5c;
  --navy-dk:     #0f2340;
  --navy-mid:    #2a5a8c;
  --gold:        #c8811a;
  --gold-light:  #e4a84c;
  --cream:       #f8f5f0;
  --cream-dk:    #f0ebe2;
  --warm-gray:   #6b7280;
  --text:        #1f2937;
  --text-mid:    #4b5563;
  --white:       #ffffff;
  --line:        rgba(26,58,92,0.12);
  --line-str:    rgba(26,58,92,0.22);
  --shadow-sm:   0 2px 8px rgba(26,58,92,0.10);
  --shadow-md:   0 6px 24px rgba(26,58,92,0.14);
  --radius:      8px;
  --radius-lg:   14px;
  --transition:  0.25s ease;
  --header-h:    72px;
  --max-w:       1100px;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* --- HEADER ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.logo-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: rgba(26,58,92,0.07);
  color: var(--navy);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.75rem;
  padding: 0.45rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy-mid); color: var(--white); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- HERO -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    var(--hero-grad, linear-gradient(135deg, rgba(15,35,65,0.8), rgba(26,58,92,0.6))),
    var(--hero-img, none),
    var(--navy-dk);
  background-size: cover;
  background-position: center;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 2rem 4rem;
  width: 100%;
  max-width: 680px;
  padding-left: max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--gold-light); }
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 0.75rem 1.75rem;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--gold-light); color: var(--white); }
.btn-outline {
  padding: 0.75rem 1.75rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.hero-notfall {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  background: rgba(15,35,65,0.75);
  border: 1px solid rgba(200,129,26,0.4);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  backdrop-filter: blur(8px);
}
.notfall-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}
.notfall-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.notfall-num:hover { color: var(--gold-light); }
.notfall-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
}

/* --- KPI STRIP -------------------------------------------- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  gap: 0.25rem;
}
.kpi:last-child { border-right: none; }
.kpi-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}
.kpi-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  text-align: center;
}

/* --- SECTIONS COMMON -------------------------------------- */
.section { padding: 5rem 0; }
.section-light { background: var(--cream); }
.section-alt { background: var(--cream-dk); }
.section-dark { background: var(--navy-dk); }
.section-dark .section-title,
.section-dark .section-eyebrow { color: var(--gold-light); }
.section-dark p, .section-dark .section-sub { color: rgba(255,255,255,0.75); }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* --- TEAM -------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.team-photo {
  width: 100%;
  height: 220px;
  background:
    var(--team-img, none),
    var(--team-grad, linear-gradient(160deg, var(--navy), var(--navy-mid)));
  background-size: cover;
  background-position: center top;
  flex-shrink: 0;
}
.team-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.team-title {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}
.team-rule {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin: 0.9rem 0;
}
.team-bio {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}
.team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.team-badges span {
  padding: 0.2rem 0.65rem;
  background: rgba(26,58,92,0.08);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid rgba(26,58,92,0.15);
}

/* --- GALERIE ----------------------------------------------- */
.praxis-galerie { padding: 4rem 0; }
.praxis-galerie .section-inner { margin-bottom: 2rem; }
.galerie-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 6px;
  padding: 0 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.galerie-item--large {
  grid-row: span 2;
}
.galerie-item {
  position: relative;
  background:
    var(--galerie-img, none),
    var(--galerie-grad, linear-gradient(160deg, var(--navy), var(--navy-mid)));
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.galerie-item:hover .galerie-overlay { opacity: 0.55; }
.galerie-item:hover .galerie-label { letter-spacing: 0.14em; }
.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,35,65,0.4);
  opacity: 0.2;
  transition: opacity 0.35s;
}
.galerie-label {
  position: absolute;
  bottom: 0.9rem;
  left: 1rem;
  right: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  transition: letter-spacing 0.35s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- LEISTUNGEN ------------------------------------------- */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.leistung-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.leistung-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26,58,92,0.2);
}
.leist-icon {
  width: 44px;
  height: 44px;
  background: rgba(26,58,92,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.leistung-card h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.leistung-card p {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* --- SPRECHZEITEN ------------------------------------------ */
.sprechzeiten-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.sprechzeiten-table {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sz-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 1rem;
  align-items: center;
}
.sz-row:last-child { border-bottom: none; }
.sz-day {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
}
.sz-time {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 500;
}
.sz-row--closed .sz-day,
.sz-row--closed .sz-time {
  color: rgba(255,255,255,0.35);
}
.sz-info-block {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.85rem;
}
.sz-info-block:last-child { margin-bottom: 0; }
.sz-info-block--highlight {
  background: rgba(200,129,26,0.12);
  border-color: rgba(200,129,26,0.3);
}
.sz-info-block i {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.sz-info-block strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.3rem;
}
.sz-info-block p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6) !important;
  line-height: 1.65;
}

/* --- KONTAKT ---------------------------------------------- */
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.kontakt-block {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.kontakt-block:first-child { padding-top: 0; }
.kontakt-block:last-child { border-bottom: none; }
.kontakt-block i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.kontakt-block strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 0.3rem;
}
.kontakt-block p, .kontakt-block a {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}
.kontakt-form {
  background: var(--white);
  border: 1px solid var(--line-str);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-str);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}
.btn-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--navy-mid); }

/* --- FOOTER ----------------------------------------------- */
.site-footer {
  background: var(--navy-dk);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-logo-icon {
  width: 38px;
  height: 38px;
  background: rgba(200,129,26,0.2);
  border: 1px solid rgba(200,129,26,0.4);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1rem;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.footer-address {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.2rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
}
.footer-links a { color: rgba(255,255,255,0.4); }
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.25); }
.footer-copy a { color: rgba(200,129,26,0.7); }
.footer-copy a:hover { color: var(--gold-light); }

/* --- BESCAPE DISCLAIMER ------------------------------------ */
.escape-disclaimer {
  background: #030303;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.escape-disclaimer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  font-family: var(--font-body);
}
.escape-disclaimer__inner i { color: rgba(255,255,255,0.3); flex-shrink: 0; margin-top: 0.14rem; }
.escape-disclaimer__inner strong { font-weight: 600; color: rgba(255,255,255,0.6); }
.escape-disclaimer__inner a { color: #eb7005; text-decoration: underline; text-decoration-color: rgba(235,112,5,0.3); }
.escape-disclaimer__inner a:hover { color: #f59034; }

/* --- FADE-IN ANIMATION ------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 1024px) {
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .galerie-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .galerie-item--large { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    padding: 2rem;
    gap: 0.5rem;
    z-index: 199;
    border-top: 1px solid var(--line);
  }
  .site-nav.open .nav-link { padding: 0.75rem 1rem; font-size: 1rem; }
  .site-nav.open .nav-cta { margin: 0.5rem 0 0; padding: 0.75rem 1rem; justify-content: center; }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner { padding-top: calc(var(--header-h) + 2rem); padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-notfall { bottom: 1.5rem; right: 1.25rem; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: 1fr; grid-template-rows: auto; padding: 0 1.25rem; }
  .galerie-item { height: 200px; }
  .galerie-item--large { grid-column: span 1; height: 240px; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .sprechzeiten-layout { grid-template-columns: 1fr; gap: 2rem; }
  .kontakt-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
}
