/* ==========================================================================
   Dr. Just Neiss – Ganzheitliche Zahnmedizin
   Schlichtes, helles Stylesheet ohne externe Abhängigkeiten
   ========================================================================== */

:root {
  --brand: #1f7a6d;          /* Teal für Links und Akzente */
  --brand-strong: #165e53;
  --brand-soft: #5aa898;     /* Teal für Linien und Rahmen */
  --ink: #222b2e;
  --ink-soft: #3c484c;
  --muted: #687478;
  --bg: #ffffff;
  --subtle: #f5f8f7;
  --line: #e1e7e6;

  --radius: 8px;
  --container: 1120px;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;

  color-scheme: light;
}

/* ---------- Basis ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  body { font-size: 1.125rem; }
}

/* Lange deutsche Komposita nur auf schmalen Bildschirmen trennen */
@media (max-width: 600px) {
  .prose, .card, .pub-main, .panel { hyphens: auto; -webkit-hyphens: auto; }
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--brand-strong); }

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  hyphens: manual;
}

p, ul, ol { margin: 0 0 1.15em; }

strong { font-weight: 600; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap { white-space: nowrap; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.05rem; font-weight: 600; }
.brand-sub { font-size: 0.8rem; color: var(--muted); }

.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current] {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.site-nav .nav-long { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 4px var(--gutter) 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .js .site-header.nav-open .site-nav { display: block; }
  .js .site-nav .nav-short { display: none; }
  .js .site-nav .nav-long { display: inline; }

  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  /* Großer Schriftgrad im Handy-Menü */
  .site-nav a {
    padding: 16px 0;
    border-bottom: 0;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
  }
  .site-nav a[aria-current] { font-weight: 650; }

  /* Ohne JavaScript: Navigation unter dem Logo anzeigen */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { width: 100%; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
  html:not(.js) .site-nav li + li { border-top: 0; }
  html:not(.js) .site-nav a { padding: 4px 0; }
}

@media (max-width: 420px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: 0.75rem; }
}

/* ---------- Bildband im Kopfbereich ---------- */

.page-banner {
  height: clamp(120px, 16vw, 220px);
  overflow: hidden;
  background: var(--subtle);
}
.page-banner--home { height: clamp(170px, 26vw, 360px); }
.page-banner picture { display: block; height: 100%; }
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Handy: Ausschnitt mit Brücke und Brückentor im Format 5:2 statt Panorama */
@media (max-width: 640px) {
  .page-banner--home { height: auto; aspect-ratio: 5 / 2; }
  .page-banner--home img { object-position: 50% 13% !important; }
}

/* ---------- Kopfbereiche ---------- */

.hero,
.page-hero {
  background: var(--subtle);
  border-bottom: 1px solid var(--line);
}

.hero-inner { padding-block: clamp(44px, 7vw, 88px); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

.hero-topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-topics li {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.5;
}

.page-hero .container { padding-block: clamp(32px, 5vw, 56px); }
.page-hero h1 {
  max-width: 32ch;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.015em;
}
.page-hero .lead {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--muted);
}

.breadcrumb {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.875rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-hidden] { margin-inline: 6px; }

/* ---------- Inhalt ---------- */

main { display: block; }

.section { padding-block: clamp(40px, 6vw, 72px); }

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.15rem;
}

.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--brand); }

.lead-question {
  margin-bottom: 1em;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.35;
}

.prose .intro { color: var(--ink-soft); }
@media (min-width: 768px) {
  .prose .intro { font-size: 1.06em; }
}

.callout {
  margin: 2em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--subtle);
  color: var(--ink-soft);
}
.callout > :last-child { margin-bottom: 0; }
.callout--strong { color: var(--ink); font-weight: 600; }

.case {
  margin: 1.6em 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.case > :last-child { margin-bottom: 0; }
.case-title {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 600;
}
.case-intro { color: var(--brand); font-weight: 600; }

/* Ausführlicher Patientenbericht – bewusst „in anderer Schrift“ */
.report {
  margin: 2em 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.04em;
  font-style: italic;
}
.report > :last-child { margin-bottom: 0; }

.notice {
  margin-top: 2.5em;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Lesefassungen der Texte ---------- */

.doc-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.doc-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.doc-info .icon { width: 18px; height: 18px; }

/* Listen mit eigener Nummerierung (3.1., 3.5.1., [1]) */
.prose .plain-list {
  padding-left: 0;
  list-style: none;
}
.plain-list > li {
  position: relative;
  padding-left: 3.4em;
}
.plain-list .plain-list { margin-top: 0.4em; }
@media (max-width: 640px) {
  .plain-list .plain-list { margin-left: -2em; }
}
.plain-list--refs > li { padding-left: 2.6em; }
.li-label {
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.doc-copyright {
  margin-top: 2.5em;
  color: var(--muted);
  font-size: 0.9rem;
}
.doc-back {
  margin-top: 2.5em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.doc-back a { text-decoration: none; }
.doc-back a:hover { text-decoration: underline; }

/* ---------- Layout mit Inhaltsverzeichnis ---------- */

.with-toc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1100px) {
  .with-toc {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
  }
}

.toc {
  padding: 16px 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
@media (min-width: 1100px) {
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    max-height: calc(100vh - var(--header-h) - 56px);
    overflow: auto;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
  }
}
.toc-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}
@media (min-width: 1100px) {
  .toc-title { padding-left: 16px; }
}
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--ink-soft);
  line-height: 1.35;
  text-decoration: none;
}
.toc a:hover { color: var(--brand); }
@media (min-width: 1100px) {
  .toc a {
    margin-left: -1px;
    padding: 6px 12px 6px 16px;
    border-left: 2px solid transparent;
  }
  .toc a.is-active {
    border-left-color: var(--brand);
    color: var(--brand);
  }
}

/* ---------- Weiterlesen (Startseite) ---------- */

.more { border-top: 1px solid var(--line); }
.more h2 {
  margin-bottom: 20px;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
a.card:hover { border-color: var(--brand-soft); color: var(--ink); }
a.card:hover h3 { color: var(--brand); }
.card h3 {
  margin: 0;
  font-size: 1.08rem;
  transition: color 0.15s ease;
}
.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.card-arrow {
  margin-top: auto;
  padding-top: 4px;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Publikationen ---------- */

.pub-list {
  --thumb-w: 84px;
  max-width: 900px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.pub-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem var(--thumb-w) minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 22px;
  margin: 0;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.pub-num {
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* Vorschaubild der ersten Seite */
.pub-thumb {
  display: block;
  width: var(--thumb-w);
  aspect-ratio: 1 / 1.414;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}
.pub-thumb img,
.pub-part-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.pub-main { min-width: 0; }

.pub-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
  hyphens: manual;
}
.pub-kicker::first-letter { text-transform: uppercase; }

.pub-title {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.35;
}
.pub-title a {
  color: var(--ink);
  text-decoration: none;
}
/* Die ganze Zeile ist klickbar */
.pub-title a::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}
.pub-title a:focus-visible { outline: none; }
.pub-title a:focus-visible::after {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
.pub-item--link:hover .pub-title a {
  color: var(--brand);
  text-decoration: underline;
}

.pub-source {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.45;
}

.pub-desc {
  max-width: 64ch;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.pub-meta > span + span::before {
  content: "·";
  margin-right: 8px;
}
.doc-type {
  color: var(--ink-soft);
  font-weight: 600;
}

.pub-go {
  display: inline-flex;
  align-self: center;
  color: var(--brand);
}
.pub-go .icon { width: 20px; height: 20px; }

/* Einzeldokumente einer Veröffentlichung */
.pub-parts {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.pub-parts li { margin: 0; }

.pub-part {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.pub-part:hover { border-color: var(--brand-soft); color: var(--ink); }
.pub-part:hover .pub-part-label { color: var(--brand); }
.pub-part-thumb {
  display: block;
  width: 32px;
  aspect-ratio: 1 / 1.414;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}
.pub-part-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pub-part-label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.15s ease;
}
.pub-part .pub-meta { margin: 0; }
.pub-part-go { display: inline-flex; color: var(--brand); }
.pub-part-go .icon { width: 18px; height: 18px; }

/* Lesefassung als Hauptlink, PDF als zweiter Link über der klickbaren Zeile */
.pub-file {
  position: relative;
  z-index: 2;
  font-weight: 600;
}
.pub-part--read { position: relative; }
.pub-part--read .pub-part-label {
  color: var(--ink);
  text-decoration: none;
}
.pub-part--read .pub-part-label::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}
.pub-part--read .pub-part-label:focus-visible { outline: none; }
.pub-part--read .pub-part-label:focus-visible::after {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Handy: Vorschau und Titel nebeneinander, Beschreibung darunter in voller Breite */
@media (max-width: 640px) {
  .pub-list { --thumb-w: 60px; }
  .pub-item {
    grid-template-columns: var(--thumb-w) minmax(0, 1fr);
    gap: 0 16px;
    padding: 22px 0;
  }
  .pub-main { display: contents; }
  .pub-thumb { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
  .pub-kicker { order: 1; grid-column: 2; }
  .pub-title { order: 2; grid-column: 2; }
  .pub-source { order: 3; grid-column: 2; }
  .pub-main > .pub-meta { order: 4; grid-column: 2; align-self: start; margin-top: 8px; }
  .pub-desc { order: 5; grid-column: 1 / -1; max-width: none; margin-top: 14px; hyphens: manual; }
  .pub-parts { order: 7; grid-column: 1 / -1; }
  .pub-num,
  .pub-go,
  .pub-part-go { display: none; }
  .pub-part {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }
  .pub-part-thumb { width: 28px; }
}

/* ---------- Links ---------- */

.link-list {
  max-width: 820px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.link-list li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.link-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  color: var(--ink);
  text-decoration: none;
}
.link-row:hover { color: var(--ink); }

.link-num {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.link-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.link-host {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}
.link-www { color: var(--muted); font-weight: 400; }
.link-path {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  word-break: break-all;
}

.link-go {
  display: inline-flex;
  align-self: center;
  color: var(--brand);
}
.link-go .icon { width: 18px; height: 18px; }

.link-row:hover .link-host { color: var(--brand); }

@media (max-width: 540px) {
  .link-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 0;
  }
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; }
}

.panel {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel > :last-child { margin-bottom: 0; }
.panel h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.contact-name {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

.mail-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  hyphens: none;
}
.mail-button:hover { background: var(--brand-strong); color: #fff; }

.meta-list {
  display: grid;
  gap: 12px;
  margin: 0 0 1.2em;
}
.meta-list dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.meta-list dd { margin: 2px 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  background: var(--subtle);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-main {
  display: grid;
  gap: 28px;
  padding-block: clamp(36px, 5vw, 52px) 28px;
}
@media (min-width: 800px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }
}

.footer-brand .brand,
.footer-brand .brand:hover { color: var(--ink); }

.slogan {
  margin: 16px 0 0;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.4;
}
.slogan-accent { color: inherit; }

.footer-label {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 600;
}
.footer-contact p { margin: 0 0 10px; line-height: 1.6; }
.footer-contact strong { color: var(--ink); font-weight: 500; }

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: var(--brand);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-mail[href]:hover span { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--brand); text-decoration: underline; }
.footer-legal a[aria-current] { color: var(--brand); }

.copyright {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0;
}
@media (max-width: 479px) {
  .copyright { flex-direction: column; }
  .copyright .sep { display: none; }
}

/* ---------- Nach oben ---------- */

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { border-color: var(--brand-soft); color: var(--brand-strong); }

/* ---------- Druck ---------- */

@media print {
  .site-header, .footer-legal, .toc, .to-top, .more, .skip-link { display: none !important; }
  body { font-size: 11pt; }
  .hero, .page-hero, .site-footer { background: none; border: 0; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
