/* ==========================================================
   Praxis Dr. Metreveli-Wiese & Dr. Metreveli – Landingpage
   Basis: Bootstrap 5 (lokal: css/bootstrap.min.css)
   ========================================================== */

/* Roboto lokal einbinden (keine Verbindung zu Google) */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/Roboto-Regular.ttf") format("ttf"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Roboto-SemiBold.ttf") format("ttf"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Roboto-Bold.ttf") format("ttf"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Roboto-ExtraBold.ttf") format("ttf"); }

:root {
  --pm-blue: #1f4e9e;
  --pm-blue-dark: #163a78;
  --pm-blue-soft: #e9eff9;
  --pm-text: #4a4a4a;
  --pm-muted: #6f6f6f;
  --pm-grey-bg: #f3f2f1;
  --pm-footer: #58585a;
  --header-h: 96px;

  --bs-body-font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bs-body-color: var(--pm-text);
  --bs-link-color: var(--pm-blue);
  --bs-link-color-rgb: 31, 78, 158;
  --bs-link-hover-color: var(--pm-blue-dark);
  --bs-link-hover-color-rgb: 22, 58, 120;
  --bs-primary: var(--pm-blue);
  --bs-primary-rgb: 31, 78, 158;
}

html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-weight: 300; font-size: 1.0625rem; line-height: 1.7; background: #fff; }
strong, b { font-weight: 500; }

h1, h2, .display-title { font-weight: 300; color: var(--pm-text); letter-spacing: -.01em; }
h3, h4 { font-weight: 500; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .75rem; }
.section-lead { color: var(--pm-muted); max-width: 46rem; margin-inline: auto; }
.kicker {
  display: block; font-size: .95rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--pm-blue); margin-bottom: .5rem;
}

section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.bg-soft { background: var(--pm-grey-bg); }

/* Skip-Link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--pm-blue); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030; background: #fff;
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 10px rgba(0,0,0,.08); }

.topbar { font-size: .95rem; font-weight: 500; }
.topbar a { color: var(--pm-text); text-decoration: none; }
.topbar a:hover { color: var(--pm-blue); }
.topbar svg { width: 18px; height: 18px; margin-right: .4rem; vertical-align: -3px; color: var(--pm-muted); }

.navbar-brand img { height: 80px; width: auto; }
.site-header .navbar { padding-block: .75rem; }
.site-header .nav-link {
  font-weight: 500; text-transform: uppercase; color: var(--pm-text);
  font-size: 1rem; letter-spacing: .01em; padding-inline: .9rem !important; white-space: nowrap;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--pm-blue); }
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(31,78,158,.25); }

@media (max-width: 1199.98px) {
  .navbar-brand img { height: 52px; }
  .site-header .navbar-collapse { padding-block: .5rem 1rem; }
  .site-header .nav-link { padding-block: .6rem !important; border-top: 1px solid #eee; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 0 2rem; }
.hero-inner {
  position: relative; min-height: clamp(360px, 52vw, 620px);
  /* Foto: links heller Flur (Platz für den Text), rechts das Ärzteteam */
  background: #f1f1f1 url("../img/hero-desktop.jpg") right 25% / cover no-repeat;
  display: flex; align-items: center;
}
.hero-inner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.7) 32%, rgba(255,255,255,0) 52%);
}
.hero-text { position: relative; padding: 2rem clamp(1.25rem, 3vw, 2.5rem); max-width: 38rem; }
.hero-text h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.05; margin-bottom: 1rem; }
.hero-text p { font-size: clamp(1.15rem, 2.2vw, 1.8rem); font-weight: 400; line-height: 1.4; margin-bottom: 1.75rem; }

@media (max-width: 1199.98px) {
  /* Mobil & Tablet: eigener Bildzuschnitt oben, Text darunter */
  .hero-inner {
    display: block; min-height: 0;
    padding-top: 79.4%;                     /* Seitenverhältnis des Zuschnitts 1662 × 1320 */
    background-image: url("../img/hero-tablet.jpg");
    background-size: 100% auto;
    background-position: center top;
  }
  .hero-inner::before {
    /* weicher Übergang am unteren Bildrand */
    background: linear-gradient(180deg, rgba(241,241,241,0) 0, rgba(241,241,241,0) calc(79.4vw - 7rem), #f1f1f1 calc(79.4vw - 1.25rem), #f1f1f1 100%);
  }
  .hero-text { padding-top: 1.25rem; padding-bottom: 1.75rem; }
}

@media (max-width: 767.98px) {
  .hero-inner { background-image: url("../img/hero-mobil.jpg"); }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 0; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; padding: .7rem 1.4rem; }
.btn-primary { --bs-btn-bg: var(--pm-blue); --bs-btn-border-color: var(--pm-blue); --bs-btn-hover-bg: var(--pm-blue-dark); --bs-btn-hover-border-color: var(--pm-blue-dark); --bs-btn-active-bg: var(--pm-blue-dark); --bs-btn-active-border-color: var(--pm-blue-dark); background-image: none; }
.btn-outline-dark { --bs-btn-border-width: 2px; --bs-btn-color: var(--pm-text); --bs-btn-border-color: var(--pm-text); --bs-btn-hover-bg: var(--pm-text); }

/* ---------- Aktuelles ---------- */
.news-box {
  border-left: 4px solid var(--pm-blue); background: var(--pm-blue-soft);
  padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem);
}
.news-box h2 { font-size: 1.6rem; font-weight: 500; color: var(--pm-blue); margin-bottom: 1rem; }
.news-box ul { padding-left: 1.1rem; margin-bottom: 0; }
.news-box li + li { margin-top: .6rem; }
.closures { background: #fff; padding: 1rem 1.25rem; margin-top: 1.25rem; }
.closures dt { font-weight: 500; }
.closures dd { margin-bottom: .4rem; }

/* ---------- Sprechzeiten ---------- */
.hours-tabs { border: 0; gap: .5rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.hours-tabs .nav-link {
  border: 2px solid var(--pm-blue) !important; border-radius: 0; color: var(--pm-blue);
  font-weight: 500; text-transform: uppercase; letter-spacing: .03em; padding: .55rem 1.2rem;
}
.hours-tabs .nav-link.active { background: var(--pm-blue); color: #fff; }
.hours-note { text-align: center; color: var(--pm-muted); max-width: 44rem; margin: 0 auto 2rem; }
.day { border-left: 1px solid #bbb; padding-left: 1rem; height: 100%; }
.day dt { font-weight: 700; font-size: 1.15rem; margin-bottom: .2rem; }
.day dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- Praxis / Teaser ---------- */
.feature-icon { width: 64px; height: 64px; color: var(--pm-blue); margin-bottom: 1rem; }
.feature h3 { color: var(--pm-blue); text-transform: uppercase; font-size: 1.25rem; font-weight: 700; }
.praxis-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e6e6e6; }

/* ---------- Karten ---------- */
.pm-card { background: #fff; border: 0; border-top: 4px solid var(--pm-blue); height: 100%; padding: 1.75rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.pm-card h3 { font-size: 1.25rem; color: var(--pm-blue); }
.pm-card .small { font-size: .95rem; }

/* ---------- Kontakt ---------- */
.contact-card address { font-style: normal; margin-bottom: 1rem; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; row-gap: .15rem; margin: 0 0 1rem; }
.contact-card dt { font-weight: 500; }
.contact-card dd { margin: 0; }
.contact-card a { text-decoration: none; }
.contact-card h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; color: var(--pm-muted); margin-top: 1.25rem; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 52rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; font-weight: 500; color: var(--pm-blue); margin-top: 2.5rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pm-footer); color: #fff; font-size: .95rem; padding-block: 1.5rem; text-transform: uppercase; letter-spacing: .02em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { opacity: .6; margin-inline: .5rem; }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--pm-blue); color: #fff; opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Druck */
@media print {
  .site-header, .to-top, .hero-inner::before { display: none !important; }
  section { padding-block: 1.5rem; }
}
