/* ==========================================================================
   Praxis Dr. med. Daniel Noth – Endokrinologie-Diabetologie
   Praxis-Design: ruhige Sektionen, feine Linien, eine Schriftfamilie
   ========================================================================== */

:root {
  --color-primary: #0b6ea3;      /* ruhiges Klinik-Blau – vertrauenswürdig, medizinisch */
  --color-primary-dark: #075277;
  --color-primary-light: #e5f1f8;
  --color-accent: #2f89b3;
  --color-accent-soft: #d8ecf4;
  --color-sand: #b89d72;         /* feiner warmer Akzent, nur für Linien */
  --color-ink: #14202b;
  --color-body: #3a4650;
  --color-muted: #66727a;
  --color-faint: #8a949b;
  --color-bg: #f7f8f7;
  --color-tint: #eef4f7;
  --color-surface: #ffffff;
  --color-border: #e6eaec;
  --color-warm-bg: #fbf1e4;
  --color-warm-ink: #a86a1f;
  --color-night: #0c3b58;
  --color-night-deep: #082c43;

  --font-base: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(10, 40, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 40, 60, 0.08);

  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;  /* Sprungmarken nicht unter der mitlaufenden Navigation */
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 1.02rem;
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-base);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Kleiner Abschnittstitel mit Sandlinie */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--color-sand);
}

/* ---------------------------------------------------------------------- */
/* Top bar (contact strip) */
/* ---------------------------------------------------------------------- */
.topbar {
  background: var(--color-primary-dark);
  color: #e0f0f8;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding-top: 8px;
  padding-bottom: 8px;
  align-items: center;
}
.topbar a {
  color: #eaf5fb;
}
.topbar a:hover {
  text-decoration: underline;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.topbar-item svg {
  flex-shrink: 0;
  opacity: 0.9;
}
.topbar-spacer {
  flex: 1;
}

/* ---------------------------------------------------------------------- */
/* Header */
/* ---------------------------------------------------------------------- */
.site-header {
  background: linear-gradient(100deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, var(--color-accent) 100%);
  color: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12% 18%, rgba(255,255,255,0.12) 0, transparent 40%);
  pointer-events: none;
}
/* Harder-Kulm-Panorama: läuft auf den Unterseiten rechts weich ein */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("images/harder-kulm-1200.jpg") right 58% / 72% auto no-repeat;
  mix-blend-mode: luminosity;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, rgba(0,0,0,0.6) 55%, #000 85%);
          mask-image: linear-gradient(90deg, transparent 25%, rgba(0,0,0,0.6) 55%, #000 85%);
  pointer-events: none;
}

/* Startseite: Panorama als Bühne (Duotone in Blau) */
.site-header--home {
  background: var(--color-accent);
}
.site-header--home::after {
  background: url("images/harder-kulm.jpg") center 60% / cover no-repeat;
  filter: grayscale(1) contrast(1.05) brightness(1.2);
  mix-blend-mode: multiply;
  opacity: 1;
  -webkit-mask-image: none;
          mask-image: none;
}
.site-header--home::before {  /* Blauverlauf links für Lesbarkeit */
  z-index: 0;
  background: linear-gradient(90deg, rgba(7,64,98,0.85) 0%, rgba(7,64,98,0.45) 45%, rgba(11,110,163,0) 80%);
}
.home-hero {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 64px;
}
.home-hero-eyebrow {
  display: inline-block;
  color: #dcebf4;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.05s;
}
.home-hero h1 {
  color: #fff;
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.14;
  max-width: 700px;
  margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(0, 30, 50, 0.35);
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.2s;
}
.home-hero h1 strong {
  font-weight: 600;
}
.home-hero .lead {
  color: #dcebf4;
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.35s;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 24px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
a.brand {
  color: #fff;
}
.brand-text .brand-name {
  display: block;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.2px;
}
.brand-text .brand-sub {
  display: block;
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: #e3f2f9;
  font-weight: 500;
}

/* ---------------------------------------------------------------------- */
/* Navigation (bleibt beim Scrollen oben) */
/* ---------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.nav-list a {
  display: inline-block;
  padding: 16px 16px;
  color: var(--color-body);
  font-weight: 600;
  font-size: 0.94rem;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nav-list a:hover {
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
}
.nav-list a[aria-current="page"] {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 14px 4px;
  cursor: pointer;
  color: var(--color-primary-dark);
}

/* ---------------------------------------------------------------------- */
/* Seitenkopf der Unterseiten */
/* ---------------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(900px 300px at 85% 0%, var(--color-accent-soft) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}
.page-hero .container {
  padding-top: 44px;
  padding-bottom: 40px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.05s;
}
.breadcrumb::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--color-sand);
  margin-right: 4px;
}
.breadcrumb a {
  color: var(--color-muted);
  transition: color 0.15s ease;
}
.breadcrumb a:hover {
  color: var(--color-primary-dark);
}
.breadcrumb span[aria-hidden] {
  color: #b9c3c9;
  font-weight: 400;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 760px;
  margin-bottom: 10px;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.2s;
}
.page-hero .lead {
  font-size: 1.08rem;
  color: var(--color-muted);
  max-width: 680px;
  margin: 0;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.35s;
}
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------------- */
/* Startseite: Sektionen */
/* ---------------------------------------------------------------------- */
.section {
  padding: 88px 0;
}
.section + .section {
  border-top: 1px solid var(--color-border);
}
.section--tint {
  background: var(--color-tint);
}
.section--tint,
.section--tint + .section {
  border-top: none !important;
}
.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.18;
  margin: 0 0 18px;
}
.intro-text {
  font-size: 1.08rem;
  color: #56626b;
  max-width: 620px;
  margin: 0;
}

/* Aktuell-Leiste */
.notice-band {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.notice-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.notice {
  display: flex;
  gap: 14px;
  padding: 28px 22px 28px 0;
}
.notice + .notice {
  padding-left: 22px;
  border-left: 1px solid var(--color-border);
}
/* Mittlere Bildschirme: Hinweise zwei mal zwei */
@media (max-width: 1100px) and (min-width: 961px) {
  .notice-band .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .notice:nth-child(odd of .notice) {
    padding-left: 0;
    border-left: none;
  }
  .notice:nth-child(n+3 of .notice) {
    border-top: 1px solid var(--color-border);
  }
}
.notice-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.notice--warm .notice-icon {
  background: var(--color-warm-bg);
  color: var(--color-warm-ink);
}
.notice h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 2px 0 4px;
}
.notice p {
  margin: 0;
  font-size: 0.92rem;
  color: #5c6770;
  line-height: 1.55;
}
.notice strong {
  color: var(--color-ink);
  font-weight: 600;
}
.notice-signoff {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 0 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-muted);
}
.notice-signoff span {
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-left: 4px;
}

/* Sprechstunden-Kopf mit grosser Telefonnummer */
.hours-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}
.phone-card {
  text-align: right;
}
.phone-card small {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.phone-big {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.phone-big:hover {
  color: var(--color-primary);
}

/* Wochenansicht (Startseite + Abwesenheiten) */
.week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--color-surface);
  border: 1px solid #e3e8eb;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.day {
  padding: 26px 22px 24px;
  position: relative;
}
.day + .day {
  border-left: 1px solid #edf0f2;
}
.day > div + div {
  margin-top: 18px;
}
.day.today {
  background: linear-gradient(180deg, #f1f7fb 0%, #fff 100%);
}
.day.today::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
}
.day-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-bottom: 18px;
}
.today-tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  padding: 3px 8px;
  border-radius: 999px;
}
.slot-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin: 0 0 4px;
}
.slot {
  font-size: 0.95rem;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  margin: 0;
  line-height: 1.5;
  min-height: 3em;  /* immer zwei Zeilen hoch, damit die Telefonzeiten auf einer Linie stehen */
}
.day.closed .day-name {
  color: #9aa4ab;
}
.closed-note {
  color: var(--color-faint);
  font-size: 0.92rem;
  font-style: italic;
  margin: 0;
}
.hours-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.hours-foot b {
  color: var(--color-ink);
  font-weight: 600;
}

/* Rezept online */
.rx {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.rx .btn {
  margin-top: 28px;
  padding: 15px 30px;
}
.rx-note {
  font-size: 0.86rem;
  color: #74808a;
  margin: 14px 0 0;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid #d7e3ea;
}
.steps li:last-child {
  border-bottom: 1px solid #d7e3ea;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-primary);
}
.steps li p {
  margin: 0;
  color: #46525b;
}

/* Praxis & Anreise */
.visit {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.visit figure {
  margin: 0;
  position: relative;
  z-index: 0;
}
.visit figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(12, 44, 66, 0.16);
}
.visit figure::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-lg);
  opacity: 0.6;
}
.facts {
  margin: 26px 0 0;
}
.fact {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.97rem;
}
.fact:last-child {
  border-bottom: 1px solid var(--color-border);
}
.fact dt {
  color: var(--color-muted);
}
.fact dd {
  margin: 0;
  color: var(--color-ink);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 600;
}
.text-link svg {
  transition: transform 0.2s ease;
}
.text-link:hover svg {
  transform: translateX(4px);
}

/* Notfall */
.emergency {
  background: var(--color-night);
  color: #d6e6ef;
  padding: 64px 0;
}
.emergency .eyebrow {
  color: #9fd0ea;
}
.emergency h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  margin: 0;
}
.emergency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.em-item {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
}
.em-item h3 {
  font-size: 0.95rem;
  letter-spacing: 0;
  color: #fff;
  margin: 0 0 8px;
}
.em-item p {
  margin: 0 0 10px;
  font-size: 0.93rem;
  line-height: 1.55;
}
.em-item a {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.em-item a:hover {
  text-decoration: underline;
}
.em-item small {
  display: block;
  color: #9fbccc;
  font-size: 0.82rem;
  margin-top: 2px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn svg {
  transition: transform 0.2s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------------- */
/* Unterseiten: ruhige Abschnitte statt Karten */
/* ---------------------------------------------------------------------- */
.page-body {
  padding: 64px 0 88px;
}
.content-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 880px;
}
.panel > h2:first-child,
.panel > h3:first-child {
  margin-top: 0;
}
.panel + .panel {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--color-border);
}
.panel h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 16px;
}
.panel h3 {
  font-size: 1.12rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}
.panel p {
  margin: 0 0 14px;
}
.panel p:last-child {
  margin-bottom: 0;
}
.panel .week {
  margin-top: 8px;
}

.page-lead {
  font-size: 1.04rem;
  color: var(--color-muted);
  margin: 0 0 4px;
}

.subsection + .subsection {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.subsection h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.person-photo-row {
  margin: 0 0 20px;
}
.person-photo-row img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.timeline-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.timeline-table td:first-child {
  font-weight: 600;
  color: var(--color-ink);
  width: 150px;
  white-space: nowrap;
  padding-right: 18px;
  font-variant-numeric: tabular-nums;
}
.timeline-table tr:last-child td {
  border-bottom: none;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plain-list li {
  padding-left: 22px;
  position: relative;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--color-sand);
}

.entry-list {
  display: flex;
  flex-direction: column;
}
.pub-entry, .study-entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.study-entry {
  grid-template-columns: 116px 1fr;
}
.entry-list > .pub-entry:last-child,
.entry-list > .study-entry:last-child {
  border-bottom: none;
}
.pub-year, .study-year {
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-primary);
  white-space: nowrap;
}
.pub-details p, .study-details p {
  margin: 0 0 3px;
}
.pub-authors {
  font-weight: 600;
  color: var(--color-ink);
}
.pub-title {
  color: var(--color-body);
}
.pub-journal, .study-ref {
  color: var(--color-muted);
  font-size: 0.9rem;
}
.study-desc {
  color: var(--color-body);
}

.link-list {
  display: flex;
  flex-direction: column;
}
.link-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease, padding 0.2s ease;
}
.link-item:first-child {
  border-top: 1px solid var(--color-border);
}
.link-item:hover {
  background: var(--color-surface);
  padding-left: 12px;
}
.link-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px;
}
.link-item .link-label {
  font-weight: 600;
  color: var(--color-ink);
}

.legal-num-section + .legal-num-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.legal-num-section h3 {
  font-size: 1.12rem;
  color: var(--color-primary-dark);
}
.legal-sub {
  margin-top: 18px;
}
.legal-sub h4 {
  font-size: 0.98rem;
  color: var(--color-ink);
  letter-spacing: 0;
  margin: 0 0 8px;
}
.legal-sub p {
  margin: 0 0 10px;
}
.legal-sub ul {
  margin: 0 0 10px;
  padding-left: 20px;
}
.legal-sub li {
  margin-bottom: 4px;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-list li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
}
.doc-list li a:hover {
  color: var(--color-primary-dark);
  transform: translateX(3px);
}

/* Textseiten aus Markdown-Dateien */
.prose h3 {
  font-size: 1.12rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.prose > h3:first-child,
.prose > h2 + h3 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.prose h4 {
  font-size: 0.98rem;
  color: var(--color-ink);
  letter-spacing: 0;
  margin: 22px 0 8px;
}
.prose ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose li {
  padding-left: 22px;
  position: relative;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--color-sand);
}
.prose img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
}
.prose p:has(> img:only-child),
.prose p:has(> a:only-child > img) {
  margin-bottom: 24px;
}
.prose a[href$=".pdf"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.prose a[href$=".pdf"]::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose li:has(> a[href$=".pdf"]) {
  padding-left: 0;
}
.prose li:has(> a[href$=".pdf"])::before {
  display: none;
}

/* Abwesenheiten */
.absence-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.absence-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.absence-list li:first-child {
  border-top: 1px solid var(--color-border);
}
.absence-dates {
  font-weight: 600;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.absence-reason {
  color: var(--color-muted);
}
.absence-now {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-warm-ink);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Startseite: Hinweis bei laufender Abwesenheit */
.notice-absence {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 16px 20px;
  background: var(--color-warm-bg);
  border: 1px solid #efd9b8;
  border-radius: var(--radius-md);
  color: #6f4a17;
}
.notice-absence svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-warm-ink);
}
.notice-absence p {
  margin: 0;
  font-size: 0.95rem;
}
.notice-absence strong {
  color: #5a3a0f;
}

/* Fehlerseite bei fehlerhaften Inhaltsdateien */
.content-error {
  max-width: 640px;
  margin: 80px auto;
  padding: 0 24px;
}
.content-error h1 {
  font-size: 1.8rem;
}
.content-error-detail {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--color-warm-bg);
  border: 1px solid #efd9b8;
  border-radius: var(--radius-md);
  color: #5a3a0f;
  font-size: 0.95rem;
}
.content-error-detail p {
  margin: 0 0 8px;
}
.content-error-detail p:last-child {
  margin-bottom: 0;
}

/* Plain inline links inside prose (not buttons/nav/cards) */
.panel p a,
.legal-sub a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.panel p a:hover,
.legal-sub a:hover {
  color: var(--color-primary-dark);
  text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------------- */
/* Scroll-to-top */
/* ---------------------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
  z-index: 150;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--color-primary-dark);
  transform: scale(1.08);
}

/* ---------------------------------------------------------------------- */
/* Footer */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--color-night-deep);
  color: #a9c2d1;
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.footer-title {
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer p {
  margin: 0 0 4px;
}
.site-footer a {
  color: #d6e6ef;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  margin-top: 16px !important;
  font-size: 0.82rem;
  color: #7d9aab;
}

/* ---------------------------------------------------------------------- */
/* Responsive */
/* ---------------------------------------------------------------------- */
@media (max-width: 960px) {
  .notice-band .container {
    grid-template-columns: 1fr;
  }
  .notice {
    padding: 20px 0;
  }
  .notice + .notice {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
  .week {
    grid-template-columns: 1fr;
  }
  .day + .day {
    border-left: none;
    border-top: 1px solid #edf0f2;
  }
  .day {
    display: grid;
    grid-template-columns: 110px 1fr 1fr;
    gap: 12px;
    padding: 18px 20px;
  }
  .day > div + div {
    margin-top: 0;
  }
  .day-name {
    margin: 0;
    font-size: 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .day.closed .closed-note {
    grid-column: 2 / -1;
    align-self: center;
  }
  .rx, .visit, .emergency-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hours-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .phone-card {
    text-align: left;
  }
  .visit figure::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 8px;
  }
  .nav-list.open {
    display: flex;
  }
  .nav-list a {
    padding: 12px 6px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-inner {
    flex-wrap: wrap;
    padding: 0 20px;
  }
  .header-inner {
    padding: 20px 20px;
  }
  .brand-text .brand-name {
    font-size: 1.25rem;
  }
  .site-header--home::after {
    background-image: url("images/harder-kulm-1200.jpg");
  }
  .site-header--home::before {
    background: linear-gradient(90deg, rgba(7,64,98,0.8) 0%, rgba(7,64,98,0.55) 100%);
  }
  .home-hero {
    padding-top: 24px;
    padding-bottom: 44px;
  }
  .page-hero .container {
    padding-top: 28px;
    padding-bottom: 26px;
  }
  .section {
    padding: 60px 0;
  }
  .page-body {
    padding: 44px 0 64px;
  }
  .panel + .panel {
    margin-top: 40px;
    padding-top: 40px;
  }
  .topbar .container {
    font-size: 0.8rem;
  }
}

@media (max-width: 560px) {
  .day {
    grid-template-columns: 1fr 1fr;
  }
  .day-name {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .day.closed .closed-note {
    grid-column: 1 / -1;
  }
  .fact {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .pub-entry, .study-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .timeline-table td:first-child {
    width: 110px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 44px;
    height: 44px;
  }
}

/* Print */
@media print {
  .site-nav, .topbar, .nav-toggle, .btn, .scroll-top-btn { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Scroll-reveal */
/* ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* Reduced motion */
/* ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
