/* ==========================================================================
   Gesundheitszentrum Embken – Design System
   Farbkonzept beibehalten (Navy/Blau aus dem Logo), modernisiert.
   Keine externen Fonts (DSGVO – kein Google Fonts), reine System-Schrift.
   ========================================================================== */

:root {
  /* Markenfarben (aus dem Logo abgeleitet) */
  --navy:        #15357e;   /* tiefes Logo-Blau – Schriftzug, Headings */
  --navy-700:    #0f2a66;
  --blue:        #1b6eda;   /* Primär – Buttons, Links, Akzente */
  --blue-600:    #1559b8;
  --blue-light:  #3b8ee6;
  --sky:         #eaf2fd;   /* zarter Blauschleier für Flächen */
  --sky-2:       #f5f9fe;

  /* Neutral */
  --ink:         #1f2a37;   /* Fließtext */
  --muted:       #5b6b7c;   /* sekundärer Text */
  --line:        #e2eaf3;   /* Rahmen/Trenner */
  --bg:          #ffffff;
  --bg-soft:     #f6f9fd;

  /* Signal */
  --green:       #1f9d6b;
  --amber:       #d98a00;

  /* Form */
  --radius:      16px;
  --radius-sm:   10px;
  --shadow-sm:   0 2px 8px rgba(21,53,126,.06);
  --shadow:      0 12px 30px rgba(21,53,126,.10);
  --shadow-lg:   0 24px 60px rgba(21,53,126,.16);
  --maxw:        1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* Inline-Icons skalieren mit der Schrift (verhindert riesige SVGs) */
svg { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.18em; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 65ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .8rem;
}
.section--navy .eyebrow { color: var(--blue-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(27,110,218,.30); }
.btn--primary:hover { background: var(--blue-600); color: #fff; box-shadow: 0 10px 26px rgba(27,110,218,.40); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--sky); color: var(--navy); }
.btn--lg { font-size: 1.08rem; padding: .95em 1.8em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar { background: var(--navy); color: #cfe0fb; font-size: .86rem; }
.topbar .container { display: flex; gap: 22px; justify-content: flex-end; align-items: center; height: 38px; }
.topbar a { color: #eaf2fd; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .4; }
.header-inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .b1 { font-weight: 800; color: var(--navy); font-size: 1.12rem; letter-spacing: .02em; }
.brand-text .b2 { font-size: .72rem; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav a.navlink {
  display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink);
  font-weight: 600; font-size: .96rem;
}
.nav a.navlink:hover, .nav li.has-children:hover > a.navlink { background: var(--sky); color: var(--navy); }
.nav a.navlink[aria-current="page"] { color: var(--blue); }
.nav .caret { font-size: .7em; opacity: .6; margin-left: 3px; }

/* Dropdown */
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .16s ease;
}
.nav li.has-children:hover > .submenu,
.nav li.has-children:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: .94rem; }
.submenu a:hover { background: var(--sky); color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(150deg, var(--sky-2) 0%, var(--sky) 60%, #ffffff 100%); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(59,142,230,.18), transparent 70%); border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 64px 0; position: relative; }
.hero h1 span { color: var(--blue); }
.hero .lead { font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,157,107,.18); }
.hero-badge b { color: var(--navy); display: block; font-size: .98rem; }
.hero-badge small { color: var(--muted); }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 30px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.trust svg { color: var(--blue); flex: none; }

/* ---------- Hero-Banner (Vollbild-Titelbild Praxisgebäude) ---------- */
.hero-banner { position: relative; display: flex; align-items: center; min-height: 540px; background: var(--navy); overflow: hidden; }
.hero-banner > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(11,32,78,.92) 0%, rgba(13,38,92,.78) 38%, rgba(15,53,126,.30) 72%, rgba(15,53,126,.05) 100%);
}
.hero-banner .container { position: relative; z-index: 2; }
.hero-banner-inner { max-width: 640px; padding: 78px 0; color: #fff; }
.hero-banner .eyebrow { color: #9cc4f7; }
.hero-banner h1 { color: #fff; margin-top: .35em; }
.hero-banner h1 span { color: #8fc0f7; }
.hero-banner .lead { color: #e4edfb; }
.hero-banner .hero-actions { margin-top: 28px; }
.pill--light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,157,107,.25); }

/* Trust-Streifen unter dem Banner */
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-strip .trust { margin: 0; padding: 18px 0; justify-content: center; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0fb; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: .6rem; font-size: .98rem; }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue); margin-bottom: 16px;
}
.card .ico svg { width: 28px; height: 28px; }
.card-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform .15s ease; }
.card:hover .card-link::after { transform: translateX(4px); }
.card--link { display: block; color: inherit; }

/* feature list */
.feature-list { list-style: none; padding: 0; }
.feature-list li { position: relative; padding-left: 32px; margin-bottom: .7rem; color: var(--ink); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231b6eda' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.team-card .photo { aspect-ratio: 1/1; background: linear-gradient(135deg, var(--sky), #fff); display: grid; place-items: center; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card .avatar-fallback { font-size: 2.4rem; font-weight: 800; color: var(--blue-light); letter-spacing: .04em; }
.team-card .body { padding: 20px 22px 24px; }
.team-card .role { color: var(--blue); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.team-card h3 { margin: 4px 0 8px; }
.team-card .body p { color: var(--muted); font-size: .92rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { background: var(--sky); color: var(--navy); font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

/* ---------- Hours / Contact ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th { text-align: left; font-weight: 700; color: var(--navy); padding: 10px 0; }
.hours-table td { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.hours-table td.day { font-weight: 600; }
.hours-table td.closed { color: var(--muted); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-line { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .ci { width: 40px; height: 40px; border-radius: 11px; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-line b { color: var(--navy); display: block; font-size: .92rem; }
.contact-line span { color: var(--muted); font-size: .95rem; }

/* note / callout */
.note { background: var(--sky); border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px 20px; color: var(--navy); font-weight: 500; }
.callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: linear-gradient(160deg, #fff, var(--sky-2)); }

/* prose blocks for content pages */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--blue-600); }
.prose ul { padding-left: 1.25rem; }
.prose .columns { columns: 2; column-gap: 40px; }
.prose .columns li { break-inside: avoid; }

/* page hero (sub pages) */
.page-hero { background: linear-gradient(150deg, var(--sky-2), var(--sky)); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(27,110,218,.14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; }
.req { color: #d23; }

/* embed (Terminkalender / Widget) */
.embed-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px; overflow: hidden; }
.embed-card iframe { width: 100%; border: 0; border-radius: 12px; min-height: 640px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery .ph {
  position: relative; margin: 0; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.gallery .ph:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; }
.gallery .ph figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px;
  color: #fff; font-size: .85rem; font-weight: 600;
  background: linear-gradient(to top, rgba(15,42,102,.78), transparent);
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #fff; border-radius: 24px; padding: 48px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dce8fb; max-width: 56ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-700); color: #b9cbe9; padding: 60px 0 30px; }
.site-footer a { color: #d7e4f8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-brand img { height: 46px; filter: brightness(0) invert(1); opacity: .96; margin-bottom: 14px; }
.footer-brand p { color: #93a9cf; font-size: .92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .94rem; }
.footer-mini { font-size: .92rem; color: #d7e4f8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .86rem; color: #8ba2c8; }
.footer-bottom a { color: #b9cbe9; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.pill { display:inline-flex; align-items:center; gap:8px; background: var(--sky); color: var(--navy); padding: 8px 16px; border-radius: 999px; font-weight:600; font-size:.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: #fff;
    flex-direction: column; align-items: stretch; padding: 90px 18px 30px; gap: 4px;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav.open { transform: translateX(0); }
  .nav > ul { flex-direction: column; gap: 2px; }
  .nav a.navlink { padding: 12px 14px; font-size: 1.02rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 6px 14px; padding: 0; min-width: 0; }
  .nav-toggle { display: flex; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(15,42,102,.45); opacity: 0; visibility: hidden; transition: .2s; z-index: 99; }
  .nav-overlay.open { opacity: 1; visibility: visible; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .team-grid, .form-grid { grid-template-columns: 1fr; }
  .prose .columns { columns: 1; }
  .cta-band { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text .b2 { display: none; }
  .brand img { height: 40px; }
  .brand-text .b1 { font-size: .92rem; letter-spacing: 0; }
  .hero-badge { left: 8px; }
  .topbar .container { gap: 14px; font-size: .8rem; }
  .hero-banner { min-height: 460px; }
  .hero-banner-inner { padding: 54px 0; }
  .hero-banner::after { background: linear-gradient(15deg, rgba(11,32,78,.94) 12%, rgba(13,38,92,.7) 50%, rgba(15,53,126,.35) 100%); }
  .trust-strip .trust { justify-content: flex-start; }
}
@media (max-width: 430px) {
  .header-cta .btn--primary { padding: .72em .82em; }
  .cta-label { display: none; }          /* nur Icon im Termin-Button */
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
