/* Medico Vital Centrum Berlin – Stylesheet
   Keine externen Schriften oder Skripte: alles wird vom eigenen Server geladen. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12243a;
  --text: #2c3a4b;
  --muted: #5d6c7d;
  --brand: #2a6fad;
  --brand-strong: #1d5690;
  --brand-soft: #e8f0f8;
  --sand: #f7f4ef;
  --surface: #ffffff;
  --line: #e2e7ed;
  --footer: #10213a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(18 36 58 / 0.05), 0 8px 24px rgb(18 36 58 / 0.07);
  --shadow-lift: 0 2px 4px rgb(18 36 58 / 0.06), 0 16px 40px rgb(18 36 58 / 0.12);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Platz für den fixierten Kopfbereich beim Springen und Fokussieren */
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

svg {
  flex: none;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--brand-strong);
}

/* E-Mail-Adresse nicht am Bindestrich umbrechen. */
a[href^="mailto:"] {
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  margin: 2.25rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
}

.spaced {
  margin-top: 1.5rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.button svg {
  width: 1.1em;
  height: 1.1em;
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgb(42 111 173 / 0.28);
}

.button-primary:hover {
  background: var(--brand-strong);
  color: #fff;
  transform: translateY(-1px);
}

.button-ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button-ghost:hover {
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Kopfbereich */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgb(226 231 237 / 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

/* Wellen-Bildmarke (SVG), Name und Slogan als echter Text daneben */
.logo img {
  width: 4.1rem;
  height: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #0e6eb6;
  white-space: nowrap;
}

.logo-slogan {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a,
.nav-mobile a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-desktop a:hover,
.nav-mobile a:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.nav-desktop a[aria-current],
.nav-mobile a[aria-current] {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.header-cta {
  padding: 0.6rem 1.05rem;
  font-size: 0.95rem;
}

/* Mobiles Menü ohne JavaScript: <details> klappt auf und zu. */
.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile summary svg {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-mobile[open] summary {
  box-shadow: inset 0 0 0 1px var(--brand);
  color: var(--brand-strong);
}

.nav-mobile ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(18rem, calc(100vw - 2.5rem));
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}

.nav-mobile a {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
}

.nav-mobile .nav-call {
  margin-top: 0.35rem;
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-weight: 600;
}

.nav-mobile .nav-call:hover {
  background: var(--brand-strong);
  color: #fff;
}

@media (max-width: 960px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }

  .nav-mobile {
    display: block;
  }
}

@media (max-width: 420px) {
  .logo {
    gap: 0.5rem;
  }

  .logo img {
    width: 3.1rem;
  }

  .logo-name {
    font-size: 1.1rem;
  }

  .logo-slogan {
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }
}

/* Inhalt */

main {
  flex: 1;
}

.section {
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0;
}

.section-sand {
  background: var(--sand);
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head h2 {
  margin-top: 0;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.prose {
  max-width: 46rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 1.25rem;
}

.prose li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.72em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.7;
}

/* Überschriften beginnen unterhalb eines rechts schwebenden Bildes. */
.prose h2 {
  clear: both;
}

.service-figure + h2 {
  clear: none;
  margin-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

/* Startseite: Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgb(42 111 173 / 0.12), transparent 70%),
    linear-gradient(180deg, var(--brand-soft) 0%, var(--sand) 100%);
  padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(3.5rem, 2rem + 5vw, 6rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -2rem 0;
  height: 22rem;
  background: url("/assets/img/wellen.svg") center bottom / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 4rem;
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem);
  font-weight: 450;
  line-height: 1.08;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero .lead {
  max-width: 34rem;
}

.hours-card {
  background: rgb(255 255 255 / 0.92);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgb(255 255 255 / 0.7);
}

.hours-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}

.hours-card .note {
  margin: 0;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1rem;
}

.icon-badge svg {
  width: 1.35rem;
  height: 1.35rem;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0 1.25rem;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.hours th {
  font-weight: 600;
  color: var(--ink);
  padding-right: 1rem;
}

.hours td {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hours-card .button {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.9rem;
}

/* Startseite: Fakten */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.facts li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.facts .icon-badge {
  margin: 0;
}

.facts strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.facts div span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Startseite: Über uns */

.about {
  display: grid;
  gap: 2rem 4rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1fr 1.2fr;
  }
}

.about h2 {
  margin-top: 0;
}

.about blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--brand);
  padding-left: 1.5rem;
}

/* Team */

.team {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.team li {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
}

/* Porträts in Originalgröße (127 × 173 px). */
.team img {
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgb(18 36 58 / 0.16);
}

.team strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
}

.team span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Leistungen */

.services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.services li {
  display: flex;
}

.service {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgb(42 111 173 / 0.35);
}

.service img,
.service .placeholder {
  width: 100%;
  aspect-ratio: 300 / 160;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand-soft), var(--sand));
}

.service div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 1.4rem;
}

.service h2,
.service h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.service p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.service div::after {
  content: "Mehr erfahren →";
  /* Für Screenreader stumm: der Link ist durch den Titel bereits benannt. */
  content: "Mehr erfahren →" / "";
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

/* Unterseiten: Titelband */

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--sand) 100%);
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -6rem 0;
  height: 14rem;
  background: url("/assets/img/wellen.svg") center bottom / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0;
  max-width: 48rem;
}

.page-hero .lead {
  max-width: 44rem;
  margin: 1rem 0 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

.page-body {
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) 0 clamp(3rem, 2rem + 3vw, 5rem);
}

.page-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: 4rem;
  }

  /* Nur kurze Seitenleisten mitlaufen lassen – lange würden unten abgeschnitten. */
  .sidebar:not(:has(.other-services)) {
    position: sticky;
    top: 6rem;
  }
}

.sidebar {
  display: grid;
  gap: 1.25rem;
}

.sidebar .hours-card {
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.sidebar h2 {
  font-size: 1.2rem;
}

.other-services {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.other-services h2 {
  margin: 0 0 0.75rem;
}

.other-services ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.other-services li + li {
  border-top: 1px solid var(--line);
}

.other-services a {
  display: block;
  padding: 0.45rem 0;
  text-decoration: none;
  color: var(--text);
}

.other-services a:hover {
  color: var(--brand-strong);
}

.service-figure {
  float: right;
  width: 300px;
  margin: 0.35rem 0 1.25rem 2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .service-figure {
    float: none;
    width: 100%;
    margin: 0 0 1.25rem;
  }
}

.callout {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Kontakt & Anfahrt */

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.contact-grid h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.map {
  max-width: min(500px, 100%);
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
}

/* Aufruf zur Terminvereinbarung */

.cta-band {
  background: var(--brand);
  background-image: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 800px) {
  .cta-band {
    grid-template-columns: 1fr auto;
  }
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.4rem;
}

.cta-band p {
  margin: 0;
  color: #fff;
}

.cta-band .button {
  background: #fff;
  color: var(--brand-strong);
}

.cta-band .button:hover {
  background: var(--brand-soft);
  color: var(--ink);
}

/* Fußbereich */

.site-footer {
  background: var(--footer);
  color: #b9c6d6;
  font-size: 0.95rem;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.footer-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #8fa2b8;
  margin-top: 0.2rem;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa2b8;
  margin: 0 0 0.9rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-hours {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 0.25rem 1rem;
  margin: 0 0 0.75rem;
}

.footer-hours dt {
  color: #fff;
}

.footer-hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;
  color: #8fa2b8;
}

.footer-bottom nav {
  display: flex;
  gap: 1.5rem;
}

/* Feinschliff */

.icon-badge {
  flex: none;
}

.facts + .about {
  margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}

.section + .section-cta {
  padding-top: 0;
}

.service .placeholder {
  display: block;
  background:
    url("/assets/img/wellen.svg") center / cover no-repeat,
    linear-gradient(135deg, var(--brand-soft), var(--sand));
}

.footer-bottom p {
  margin: 0;
}

/* Große Überschriften nicht silbentrennen. */
.hero h1,
.page-hero h1 {
  hyphens: manual;
}

/* Hinweis mit Abstand innerhalb der Karten (z. B. Seitenleiste „So finden Sie uns“). */
.hours-card .note.spaced {
  margin: 1rem 0 1.25rem;
}

/* Sehr schmale Displays: Menü nur als Symbol (Text bleibt für Screenreader lesbar). */
@media (max-width: 374px) {
  .logo img {
    width: 2.7rem;
  }

  .logo-name {
    font-size: 1.02rem;
  }

  .logo-slogan {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }

  .nav-mobile summary {
    padding: 0.6rem;
  }

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
