/* ==========================================================================
   Praxis Britt Lange – Stylesheet
   Statische Seite, kein Framework. Aufbau angelehnt an eine klassische
   Praxis-Website: Hero mit Wolken-Video, Sektionen, Karten, Footer.
   ========================================================================== */

:root {
  --color-main: #2a6f97;          /* Praxisblau */
  --color-main-dark: #1f5677;
  --color-accent: #6fb1d3;         /* Himmelblau */
  --color-sky-top: #7fb6d9;
  --color-sky-bottom: #dbeefa;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f8fb;
  --color-text: #1e2a33;
  --color-muted: #5b6b77;
  --color-line: #d8e4ec;
  --color-warn-bg: #fff4e0;
  --color-warn-line: #f0b64f;
  --color-on-main: #ffffff;

  --radius: 14px;
  --shadow: 0 8px 24px rgba(30, 60, 90, 0.10);
  --spacing: clamp(1rem, 3vw, 2rem);
  --header-h: 72px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img, video, canvas { max-width: 100%; display: block; }
a { color: var(--color-main); }
a:hover { color: var(--color-main-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--color-main-dark); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--color-main-dark); }
.muted { color: var(--color-muted); }
.section-intro { color: var(--color-muted); margin-top: -0.4em; margin-bottom: 1.8em; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--spacing);
}

/* --- Skip-Link -------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--color-main); color: #fff;
  padding: .5rem 1rem; border-radius: 6px; z-index: 1000;
}
.skip-link:focus { left: 8px; }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: var(--color-main);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--color-main);
  transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { background: var(--color-main-dark); border-color: var(--color-main-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-outline { background: transparent; color: var(--color-main) !important; }
.btn-outline:hover { background: var(--color-main); color: #fff !important; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: " →"; }

/* --- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap;
  text-decoration: none; color: var(--color-main-dark); font-weight: 700; font-size: 1.15rem;
}
.brand-mark {
  width: 46px; height: 46px; border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(30,60,90,.25);
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; font-size: .97rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.05rem; }
.site-nav a { text-decoration: none; color: var(--color-text); font-weight: 500; white-space: nowrap; }
.site-nav ul a:hover { color: var(--color-main); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.icon-link.phone { text-decoration: none; font-weight: 600; white-space: nowrap; }
.icon-link.phone::before { content: "☏ "; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--color-line); border-radius: 8px;
  padding: .45rem .8rem; font: inherit; color: var(--color-text); cursor: pointer;
  align-items: center; gap: .5rem;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--color-line);
    padding: .5rem var(--spacing) 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--color-line); }
  .nav-actions { padding-top: 1rem; justify-content: space-between; }
}

/* --- Hero / Video-Header ---------------------------------------------- */
.v-header {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-sky-top), var(--color-sky-bottom));
  color: var(--color-on-main);
}
.fullscreen-video-wrap { position: absolute; inset: 0; z-index: 10; }
.cloud-canvas, .cloud-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cloud-canvas { filter: blur(1.5px); }
/* Video liegt über dem Canvas und wird erst sichtbar, wenn es abspielbereit ist. */
.cloud-video { opacity: 0; transition: opacity 1.2s ease; }
.cloud-video.is-ready { opacity: 1; }

.header-overlay {
  position: absolute; inset: 0; z-index: 20;
  background: linear-gradient(0deg, rgba(31,86,119,.05) 0%, rgba(31,86,119,.55) 100%);
}
.hero-content {
  position: relative; z-index: 30;
  text-align: center; max-width: 900px;
  padding-block: 4rem;
  text-shadow: 0 2px 18px rgba(20,50,80,.35);
}
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; font-weight: 600; opacity: .9; }
.claim { font-size: clamp(1rem, 2.2vw, 1.35rem); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.motion-toggle {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); background: rgba(31,86,119,.5);
  cursor: pointer; display: grid; place-items: center;
}
.motion-toggle:hover { background: rgba(31,86,119,.8); }
.motion-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.motion-icon { width: 14px; height: 14px; position: relative; }
/* Pause-Symbol (zwei Balken) */
.motion-icon::before, .motion-icon::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: #fff; border-radius: 1px;
}
.motion-icon::before { left: 1px; } .motion-icon::after { right: 1px; }
/* Play-Symbol (Dreieck) wenn pausiert */
.motion-toggle[aria-pressed="true"] .motion-icon::before {
  left: 3px; width: 0; height: 0; background: none;
  border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.motion-toggle[aria-pressed="true"] .motion-icon::after { display: none; }

/* --- Sektionen -------------------------------------------------------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-main-dark); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .section-intro { color: rgba(255,255,255,.8); }

.section-notice { padding-block: 2.5rem; background: var(--color-bg-alt); border-bottom: 1px solid var(--color-line); }
.notice-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.notice {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.notice h3 { font-size: 1.05rem; margin-bottom: .5em; }
.notice p:last-child { margin-bottom: 0; }
.notice-important { background: var(--color-warn-bg); border-color: var(--color-warn-line); }

.split { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(30,60,90,.16); color: inherit; }
.card-cta { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--color-main); }

/* Leistungs-Icons als Inline-SVG-Masken */
.card-icon {
  display: block; width: 44px; height: 44px; margin-bottom: 1rem;
  background: var(--color-main);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.icon-general  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3h4v7h7v4h-7v7h-4v-7H3v-4h7z'/%3E%3C/svg%3E"); }
.icon-palliativ{ --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.3-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.7-8 11-8 11z'/%3E%3C/svg%3E"); }
.icon-sucht    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='12' r='6'/%3E%3Ccircle cx='16' cy='12' r='6' fill-opacity='.55'/%3E%3C/svg%3E"); }
.icon-psycho   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H9l-5 4v-4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }

/* Ärztin-Karte */
.doctor-card { text-align: center; }
.doctor-photo {
  width: 180px; height: 180px; margin: 0 auto 1.2rem; border-radius: 50%;
  object-fit: cover; object-position: center 22%;   /* Gesicht mittig, Hintergrund oben abschneiden */
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--color-accent);
}
.doctor-title { color: var(--color-main-dark); font-weight: 500; }

/* Notdienste */
.emergency-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.emergency {
  display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: background .2s;
}
.emergency:hover { background: rgba(255,255,255,.16); color: #fff; }
.emergency-label { font-size: .95rem; opacity: .85; }
.emergency-number { font-size: 2rem; font-weight: 700; letter-spacing: .02em; }

/* Kontakt */
address { font-style: normal; margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.contact-list li { padding: .35rem 0; border-bottom: 1px solid var(--color-line); }
.contact-label { display: inline-block; min-width: 4.5rem; color: var(--color-muted); }
.hours { width: 100%; border-collapse: collapse; margin-bottom: .8rem; }
.hours th, .hours td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.hours th { font-weight: 600; width: 40%; }

/* --- Footer ----------------------------------------------------------- */
.site-footer { background: #10222f; color: rgba(255,255,255,.8); padding-block: 1.6rem; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* --- Unterseiten (Impressum, Datenschutz) ------------------------------ */
.page-content { max-width: 800px; padding-block: 3rem 4rem; }
.page-content h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--color-main-dark); }
.page-content h2 { font-size: 1.35rem; margin-top: 2em; }
.page-content dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; }
.page-content dt { font-weight: 600; color: var(--color-muted); }
.page-content dd { margin: 0; }
@media (max-width: 600px) { .page-content dl { grid-template-columns: 1fr; } .page-content dt { margin-top: .6rem; } }
.todo {
  background: var(--color-warn-bg); border-left: 4px solid var(--color-warn-line);
  padding: .8rem 1rem; border-radius: 6px; font-size: .95rem;
}
