/* =========================================================
   Chirurgie Dresden Nord-West – Stylesheet
   ========================================================= */

:root {
  --blue-900: #0f2a44;
  --blue-800: #163d5e;
  --blue-700: #1b4d79;
  --blue-600: #2569a0;
  --blue-500: #3a82bd;
  --blue-100: #e8f0f7;
  --gray-900: #2b2f33;
  --gray-700: #545b62;
  --gray-500: #7c848c;
  --gray-300: #c6ccd1;
  --gray-100: #f2f4f6;
  --white: #ffffff;

  --font-base: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 42, 68, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 42, 68, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }

h1, h2, h3, h4 {
  font-family: var(--font-base);
  color: var(--blue-800);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-700); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 0.8em;
}

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--gray { background: var(--gray-100); }
.section--blue {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  color: var(--white);
}
.section--blue h2, .section--blue h3 { color: var(--white); }
.section--blue p { color: var(--blue-100); }

.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-600); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--blue-700);
  color: var(--blue-700);
}
.btn-outline:hover { background: var(--blue-700); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--blue-700);
}
.btn-white:hover { background: var(--blue-100); color: var(--blue-800); }
.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--blue-700); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header.scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding 0.25s ease;
}
.brand { display: flex; align-items: center; }
.brand img { height: 64px; width: auto; transition: height 0.25s ease; }
.site-header.scrolled .brand img { height: 46px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 10px 13px;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--blue-100); color: var(--blue-700); }
.main-nav a.active { color: var(--blue-700); background: var(--blue-100); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue-800);
  font-size: 0.98rem;
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--blue-800);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 88px;
  padding-bottom: 72px;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: var(--blue-100); font-size: 1.15rem; max-width: 540px; }
.hero-art { justify-self: center; }
.hero-badges {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--blue-100);
}
.hero-badge svg { width: 22px; height: 22px; flex: none; }

.page-hero {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p { color: var(--blue-100); max-width: 640px; font-size: 1.08rem; margin: 0; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--blue-100);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--blue-100); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--blue-500); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; color: var(--blue-700); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.96rem; }

.card--flat {
  background: var(--gray-100);
  border: none;
}

/* ---------- Feature row (image + text) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-row.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; }
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-300);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list svg { flex: none; width: 20px; height: 20px; color: var(--blue-600); margin-top: 2px; }

/* ---------- Illustration blocks (placeholder photography) ---------- */
.art-block {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.art-block svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-block .art-caption {
  position: relative;
  z-index: 2;
  padding: 18px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(to top, rgba(15,42,68,0.65), transparent);
  width: 100%;
}

/* ---------- Doctor profile ---------- */
.profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.profile-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.tag {
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--gray-700);
}
.cred-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-600);
}

/* ---------- Timetable ---------- */
.timetable {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.timetable th, .timetable td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.98rem;
}
.timetable th {
  background: var(--blue-700);
  color: var(--white);
  font-weight: 700;
}
.timetable tr:last-child td { border-bottom: none; }
.timetable tr:nth-child(even) td { background: var(--gray-100); }
.timetable td.closed { color: var(--gray-500); font-style: italic; }

.notice-box {
  display: flex;
  gap: 16px;
  background: var(--blue-100);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 26px;
}
.notice-box svg { flex: none; width: 30px; height: 30px; color: var(--blue-700); }
.notice-box.warn { background: #fff4e5; border-color: #e0a232; }
.notice-box.warn svg { color: #b5771f; }
.notice-box p { margin: 0; color: var(--gray-900); font-size: 0.95rem; }

/* ---------- Steps / process ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 32px 56px;
  border-left: 2px solid var(--gray-300);
  margin-left: 20px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -21px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-300);
}
.info-list li:last-child { border-bottom: none; }
.info-list .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.info-list svg { width: 22px; height: 22px; color: var(--blue-700); }
.info-list strong { display: block; color: var(--blue-800); font-size: 0.92rem; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-800);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-base);
  font-size: 0.96rem;
  background: var(--white);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 105, 160, 0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 10px; }
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#form-status { margin-bottom: 22px; }
[hidden] { display: none !important; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-300);
}
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.cta-banner h3 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: var(--blue-100); margin: 0; }

/* ---------- Startseiten-Layer (Overlay) ---------- */
.site-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 42, 68, 0.66);
}
.site-overlay-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 480px;
  width: 100%;
  padding: 40px 34px 32px;
}
.site-overlay-card h2 {
  margin-bottom: 14px;
  padding-right: 20px;
}
.site-overlay-card p {
  white-space: pre-line;
}
.site-overlay-dismiss { cursor: pointer; }
.site-overlay-x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-overlay-x:hover { background: var(--gray-300); }
.site-overlay-card .btn.site-overlay-dismiss { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: var(--blue-100);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid img { height: 46px; margin-bottom: 16px; }
.footer-grid p { color: rgba(232,240,247,0.75); font-size: 0.92rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(232,240,247,0.8); font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(232,240,247,0.6);
}
.footer-bottom a { color: rgba(232,240,247,0.6); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.88rem; color: var(--gray-500); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-check li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--gray-700); }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--blue-600);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.reverse .feature-media { order: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-art { order: -1; max-width: 380px; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-photo { max-width: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1300px) {
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .brand img { height: 40px; }
  .site-header.scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }
  .site-header.scrolled .brand img { height: 30px; }
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--white);
    padding: 20px 24px;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-md);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 10px; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-cta { gap: 8px; }
  .header-phone span { display: none; }
  .header-cta .btn-primary { display: none; }
}

@media (max-width: 760px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
