/* ═══════════════════════════════════════════
   Hausarztpraxis Goldmann – Shared Stylesheet
   ═══════════════════════════════════════════ */

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

:root {
  --green:       #1a6b5a;
  --green-mid:   #218a6e;
  --green-light: #e6f4f0;
  --green-pale:  #f2faf7;
  --gold:        #c8974a;
  --dark:        #0e1f1c;
  --body:        #374140;
  --muted:       #7a8e8b;
  --border:      #daeae5;
  --white:       #ffffff;
  --off-white:   #f8fcfb;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--body); line-height: 1.65; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 72px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(26,107,90,0.1);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(14,31,28,0.1); }
.nav-wrap {
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(26,107,90,0.3);
  flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { display: block; font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--dark); letter-spacing: -.2px; line-height: 1.2; }
.logo-text span { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .3px; margin-top: 1px; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-link {
  text-decoration: none; padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--body); transition: all .2s;
}
.nav-link:hover,
.nav-link.active { background: var(--green-light); color: var(--green); }
.nav-btn {
  margin-left: 8px; cursor: pointer;
  background: var(--green); color: white; font-weight: 600;
  padding: 10px 22px; border-radius: 10px; text-decoration: none;
  font-size: 14px; border: none; font-family: 'Inter', sans-serif;
  transition: all .25s; box-shadow: 0 4px 14px rgba(26,107,90,0.3);
}
.nav-btn:hover { background: var(--green-mid); transform: translateY(-1px); }

/* Hamburger */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; transition: background .2s;
}
.burger:hover { background: var(--green-light); }
.burger span { display: block; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }
.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); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 190;
  background: white; border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(14,31,28,0.1);
  padding: 16px 24px 24px; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; padding: 13px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--body); transition: all .2s;
}
.mobile-menu a:hover,
.mobile-menu a.active { background: var(--green-light); color: var(--green); }
.mobile-menu .mob-btn {
  background: var(--green); color: white !important; text-align: center;
  margin-top: 8px; font-weight: 700; padding: 14px 16px; border-radius: 10px;
}
.mobile-menu .mob-btn:hover { background: var(--green-mid) !important; }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(14,31,28,0.6); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: 24px; width: 100%; max-width: 560px;
  box-shadow: 0 32px 80px rgba(14,31,28,0.3);
  overflow: hidden; animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  background: linear-gradient(135deg, var(--green) 0%, #0d4d3d 100%);
  padding: 28px 32px; color: white; position: relative;
}
.modal-header h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.modal-header p { font-size: 14px; opacity: .75; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; background: rgba(255,255,255,0.15);
  border: none; border-radius: 50%; cursor: pointer; color: white;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,0.25); }
.modal-body { padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 14px; font-family: 'Inter', sans-serif;
  color: var(--dark); background: var(--off-white); transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,107,90,0.12); background: white;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; padding: 15px; background: var(--green); color: white;
  font-size: 15px; font-weight: 700; border: none; border-radius: 12px;
  cursor: pointer; transition: all .25s; font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(26,107,90,0.3);
}
.form-submit:hover { background: var(--green-mid); transform: translateY(-1px); }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.form-success { display: none; text-align: center; padding: 16px 0 8px; }
.form-success .success-icon { font-size: 52px; margin-bottom: 12px; }
.form-success h4 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--muted); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(160deg, #0b3329 0%, #1a6b5a 100%);
  padding: 140px 32px 72px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}
.page-hero::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-hero-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .tag { background: rgba(255,255,255,0.15); color: #a8dfcf; margin-bottom: 16px; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  color: white; line-height: 1.15; margin-bottom: 14px;
}
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.72); max-width: 560px; line-height: 1.75; }

/* ── COMMONS ── */
section { padding: 80px 32px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-light); color: var(--green);
  padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 38px); font-weight: 700;
  color: var(--dark); line-height: 1.2; margin-bottom: 10px;
}
.section-sub { font-size: 16px; color: var(--muted); max-width: 520px; margin-bottom: 48px; line-height: 1.7; }

/* ── FOOTER ── */
footer { background: var(--dark); padding: 56px 32px 28px; }
.footer-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand h3 { color: white; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-chip {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 12px; border-radius: 100px; font-size: 12px; color: rgba(255,255,255,0.55);
}
footer h4 { color: rgba(255,255,255,0.45); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a { text-decoration: none; font-size: 14px; color: rgba(255,255,255,0.6); transition: color .2s; }
footer ul li a:hover { color: white; }
.footer-bottom {
  max-width: 1160px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.3);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .7s ease forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; }
.d3 { animation-delay: .4s; } .d4 { animation-delay: .55s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  nav .nav-link, nav .nav-btn { display: none; }
  .burger { display: flex; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 20px; }
  .page-hero { padding: 120px 20px 56px; }
}
