/* =====================================================================
   Hausarztpraxis J. Nassar – Stylesheet
   Sauberer Neubau der WordPress/Divi-Seite (statisches HTML/CSS)
   Farben & Struktur zentral hier pflegbar.
   ===================================================================== */

/* Schrift „Inter" – selbst gehostet (DSGVO-sicher, nicht von Google geladen) */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-400.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-500.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-600.woff2") format("woff2");}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-700.woff2") format("woff2");}

:root {
  --primary:        #0f6e7e;   /* Hauptfarbe (Petrol/Teal) */
  --primary-dark:   #0a505c;
  --accent:         #14a0b5;
  --accent-soft:    #e3f1f3;
  --text:           #1f2d33;
  --text-soft:      #4a5b62;
  --bg:             #ffffff;
  --bg-soft:        #f4f8f9;
  --border:         #dfe7e9;
  --white:          #ffffff;
  --radius:         14px;
  --shadow:         0 6px 24px rgba(15, 110, 126, 0.08);
  --shadow-lg:      0 12px 40px rgba(15, 110, 126, 0.14);
  --maxw:           1140px;
  --font:           "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--text); font-weight: 700; }
h1 { font-size: 2.1rem; margin: 0 0 .6em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; color: var(--primary-dark); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-soft); }

/* ---------- Top-Bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: #cfe7eb;
  font-size: .9rem;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  align-items: center; justify-content: flex-end;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #eaf6f8; }
.topbar .tb-left { margin-right: auto; display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; gap: 16px;
}
.nav__logo img { height: 58px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { position: relative; }
.nav__menu a {
  display: block; padding: 10px 14px; color: var(--text);
  font-weight: 600; border-radius: 8px; font-size: .97rem;
}
.nav__menu a:hover { background: var(--accent-soft); color: var(--primary-dark); text-decoration: none; }
.nav__menu a.is-active { color: var(--primary); }
.nav__menu a.btn-nav {
  background: var(--accent); color: #fff;
}
.nav__menu a.btn-nav:hover { background: var(--primary); color:#fff; }

/* Dropdown */
.has-sub > .submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; box-shadow: var(--shadow-lg); border-radius: 10px;
  padding: 8px; list-style: none; margin: 6px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s ease;
}
.has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { white-space: nowrap; }

/* Mobile nav */
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--primary); margin: 5px 0; border-radius: 2px; }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; box-shadow: var(--shadow-lg);
    padding: 10px; gap: 2px; display: none;
  }
  .nav__menu.open { display: flex; }
  .has-sub > .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding-left: 14px; margin: 0;
  }
  .submenu a { padding-left: 24px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(100deg, rgba(8,64,74,.90) 0%, rgba(8,64,74,.62) 50%, rgba(8,64,74,.40) 100%), var(--hero-img) center/cover no-repeat;
  padding: 116px 0; min-height: 460px; display: flex; align-items: center;
}
.hero h1 { color: #fff; font-size: 2.7rem; max-width: 780px; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0,0,0,.18); }
.hero p { font-size: 1.22rem; max-width: 640px; color: #eaf6f8; }
.hero .btn { margin-top: 14px; margin-right: 10px; }
.hero .badge-line { display:inline-flex; align-items:center; gap:8px; background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); color:#eaf6f8; padding:6px 14px; border-radius:50px; font-size:.9rem; font-weight:600; margin-bottom:18px; }
.hero .badge-line .ico { width:16px; height:16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 13px 26px; border-radius: 50px; font-weight: 700;
  border: 0; cursor: pointer; transition: .2s; text-decoration: none !important;
}
.btn:hover { background: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; border: 2px solid #fff; }
.btn--outline:hover { background: #fff; color: var(--primary) !important; }
.btn--solid { background: var(--primary); }
.btn--solid:hover { background: var(--primary-dark); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card h3 { margin-top: 0; }
.card .icon { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .icon .ico { width: 28px; height: 28px; }
.card img.card__media { border-radius: 10px; margin-bottom: 14px; }

/* Info-Box */
.infobox {
  background: var(--accent-soft); border-left: 5px solid var(--accent);
  border-radius: 10px; padding: 18px 22px; margin: 22px 0;
}
.infobox--warn { background: #fff4e5; border-left-color: #e6932b; }

/* Two-column content */
.cols { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* Listen mit Häkchen */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* Team */
.team-photo {
  border-radius: 12px; aspect-ratio: 1/1; object-fit: cover; width: 100%;
  box-shadow: var(--shadow);
}
.team-name { font-weight: 700; margin: 12px 0 2px; color: var(--primary-dark); }
.team-role { color: var(--text-soft); font-size: .92rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 800px){ .gallery { grid-template-columns: repeat(2,1fr); } }
.gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; transition: .25s; cursor: zoom-in; }
.gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* Page header (kleiner Banner für Unterseiten) */
.page-head {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff; padding: 50px 0;
}
.page-head h1 { color: #fff; margin: 0; }
.breadcrumb { color: #d4eef2; font-size: .9rem; margin-bottom: 6px; }
.breadcrumb a { color: #fff; }

/* Tabellen */
table.tbl { width: 100%; border-collapse: collapse; margin: 16px 0; background:#fff; }
table.tbl td, table.tbl th { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; }
table.tbl tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #cfe7eb; padding: 50px 0 24px; margin-top: 20px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin: 0 0 14px; }
.site-footer a { color: #eaf6f8; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
@media (max-width: 800px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: .85rem; text-align: center; color:#9fc4cb; }

/* ---------- Formulare ---------- */
.formtabs { display: flex; gap: 8px; margin: 26px 0 0; }
.formtab {
  flex: 1; padding: 14px; border: 1px solid var(--border); background: var(--bg-soft);
  border-radius: 10px 10px 0 0; cursor: pointer; font-weight: 700; font-size: 1rem;
  color: var(--text-soft); border-bottom: 0;
}
.formtab.active { background: #fff; color: var(--primary-dark); box-shadow: 0 -2px 0 var(--accent) inset; }
.formpanel {
  display: none; border: 1px solid var(--border); border-radius: 0 0 12px 12px;
  padding: 26px; background: #fff;
}
.formpanel.active { display: block; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; color: var(--text); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px){ .field-row { grid-template-columns: 1fr; } }
.med-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: end; }
@media (max-width: 600px){ .med-row { grid-template-columns: 1fr; } }
.req { color: #c0392b; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-soft); }
.consent input { width: auto; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--text-soft); margin-top: 8px; }

/* ---------- SVG-Icons ---------- */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.topbar .ico { width: 15px; height: 15px; margin-right: 6px; vertical-align: -0.2em; opacity: .92; }
h3 .ico { width: 20px; height: 20px; color: var(--accent); margin-right: 9px; }
.btn .ico { width: 18px; height: 18px; margin-right: 7px; }

/* ---------- Vertrauensleiste (unter dem Hero) ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid var(--border); }
.trustbar .container { display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center; padding: 18px 20px; }
.trustbar .ti { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); font-size: .95rem; }
.trustbar .ti .ico { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Arzt-Kurzvorstellung ---------- */
.intro { display: grid; grid-template-columns: 270px 1fr; gap: 42px; align-items: center; }
@media (max-width: 760px){ .intro { grid-template-columns: 1fr; text-align: center; } }
.intro img { border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; }
.intro .sig { font-weight: 700; color: var(--primary-dark); margin-top: 4px; }

/* ---------- Sanfte Einblend-Animation beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* Hilfsklassen */
.mt0{margin-top:0}.mb0{margin-bottom:0}
.muted { color: var(--text-soft); }
.badge { display:inline-block; background:var(--accent-soft); color:var(--primary-dark); padding:4px 12px; border-radius:50px; font-size:.85rem; font-weight:600; }

/* ====== Nachgetragene Stile (Formular, Icons, Trust, Intro, Animation) ====== */

/* Formulare */
.formtabs { display: flex; gap: 8px; margin: 26px 0 0; }
.formtab { flex: 1; padding: 14px; border: 1px solid var(--border); background: var(--bg-soft); border-radius: 10px 10px 0 0; cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--text-soft); border-bottom: 0; }
.formtab.active { background: #fff; color: var(--primary-dark); box-shadow: 0 -2px 0 var(--accent) inset; }
.formpanel { display: none; border: 1px solid var(--border); border-radius: 0 0 12px 12px; padding: 26px; background: #fff; }
.formpanel.active { display: block; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; font: inherit; color: var(--text); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px){ .field-row { grid-template-columns: 1fr; } }
.med-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: end; }
@media (max-width: 600px){ .med-row { grid-template-columns: 1fr; } }
.req { color: #c0392b; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-soft); }
.consent input { width: auto; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--text-soft); margin-top: 8px; }

/* SVG-Icons */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.topbar .ico { width: 15px; height: 15px; margin-right: 6px; vertical-align: -0.2em; opacity: .92; }
h3 .ico { width: 20px; height: 20px; color: var(--accent); margin-right: 9px; }
.btn .ico { width: 18px; height: 18px; margin-right: 7px; }
.hero .badge-line .ico { width: 16px; height: 16px; }

/* Service-Kachel-Icon als Badge (überschreibt die alte Emoji-Variante) */
.card .icon { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1rem; }
.card .icon .ico { width: 28px; height: 28px; }

/* Vertrauensleiste */
.trustbar { background: var(--white); border-bottom: 1px solid var(--border); }
.trustbar .container { display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center; padding: 18px 20px; }
.trustbar .ti { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); font-size: .95rem; }
.trustbar .ti .ico { width: 22px; height: 22px; color: var(--accent); }

/* Arzt-Kurzvorstellung */
.intro { display: grid; grid-template-columns: 270px 1fr; gap: 42px; align-items: center; }
@media (max-width: 760px){ .intro { grid-template-columns: 1fr; text-align: center; } }
.intro img { border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; }

/* Einblend-Animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero-Verfeinerung (falls oben nicht synchron) */
.hero { min-height: 460px; display: flex; align-items: center; }
.hero .badge-line { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #eaf6f8; padding: 6px 14px; border-radius: 50px; font-size: .9rem; font-weight: 600; margin-bottom: 18px; }

/* ---------- Bewertungen ---------- */
.reviews { text-align: center; max-width: 640px; margin: 0 auto; }
.stars { display: inline-flex; gap: 4px; margin: 6px 0; }
.stars svg { width: 28px; height: 28px; fill: #f5b301; }
.rating-big { font-size: 2.6rem; font-weight: 800; color: var(--primary-dark); line-height: 1; }
.google-tag { display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--text-soft); }

/* ---------- Bewertungen ---------- */
.reviews { text-align: center; max-width: 640px; margin: 0 auto; }
.stars { display: inline-flex; gap: 4px; margin: 6px 0; }
.stars svg { width: 28px; height: 28px; fill: #f5b301; }
.rating-big { font-size: 2.6rem; font-weight: 800; color: var(--primary-dark); line-height: 1; }
.google-tag { display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--text-soft); }
