/* Design based on kinderkliniken.de: Open Sans body, serif headings,
   red accent, teal secondary, light teal sections, grey footer. */
:root {
  --red: #d1063e;
  --red-dark: #b30434;
  --teal: #4a9599;
  --teal-dark: #3b7a7d;
  --teal-light: #e7f1f3;
  --teal-mid: #a7c5c3;
  --text: #464650;
  --text-strong: #222222;
  --muted: #6f7282;
  --nav: #767d87;
  --line: #c8cad1;
  --line-soft: #e4e5e9;
  --bg: #ffffff;
  --bg-soft: #f7f8f9;
  --footer: #55555e;
  --yellow: #fac300;
  --radius: 4px;
  --shadow: 0 6px 24px rgba(70, 70, 80, 0.08);
  --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-head: 'Alverata W01 PE Bd', Georgia, 'Times New Roman', serif;
  --container: 1340px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-underline-offset: 0.2em; }
a:hover, a:focus { color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.035em; line-height: 1.2; color: var(--teal); }
h2 { font-size: clamp(24px, 2.6vw, 29px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 30px; }
@media (max-width: 420px) { .container { padding: 0 20px; } }
.container.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--text-strong); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
[hidden] { display: none !important; }

.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex-shrink: 0; }
.icon-xl { width: 56px; height: 56px; }

/* --- Header -------------------------------------------------------------------
   Like kinderkliniken.de: 140px tall with the large logo, a small utility row
   top right and the main navigation below it. The header is sticky with a
   negative offset, so on scroll only its lower 74px (compact bar) stay visible
   – no layout shift. JS adds .is-stuck to shrink the logo. */
.site-header {
  --header-h: 140px; --stuck-h: 74px;
  position: sticky; top: calc(var(--stuck-h) - var(--header-h)); z-index: 50;
  background: #fff;
  border-bottom: 2px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-stuck { border-bottom-color: transparent; box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .2); }
.header-inner {
  max-width: 1340px; margin: 0 auto; padding: 0 30px; height: var(--header-h);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.brand { height: var(--header-h); display: flex; align-items: center; flex-shrink: 0; transition: height .2s ease; }
.brand img { height: 110px; width: auto; max-width: none; transition: height .2s ease, opacity .2s ease, transform .2s ease; }
.brand:hover img, .brand:focus img { opacity: .7; transform: scale(1.03); }
.is-stuck .brand { height: var(--stuck-h); }
.is-stuck .brand img { height: 60px; }

.header-nav { height: var(--header-h); display: flex; flex-direction: column; align-items: flex-end; }
.nav-utility { height: calc(var(--header-h) - var(--stuck-h)); padding-top: 14px; display: flex; align-items: flex-start; gap: 30px; }
.main-nav { height: var(--stuck-h); display: flex; align-items: center; }
.main-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.main-nav a, .nav-access, .link-button, .lang-switch a {
  color: var(--nav); font-weight: 700; font-size: 19px; letter-spacing: .8px; line-height: 1.5; text-decoration: none;
}
.main-nav a span, .nav-access span, .link-button span, .lang-switch a {
  text-decoration: underline 1px transparent; text-underline-offset: .5em; transition: text-decoration-color .2s;
}
.main-nav a:hover span, .main-nav a:focus span, .nav-access:hover span, .nav-access:focus span,
.link-button:hover span, .link-button:focus span, .lang-switch a:hover, .lang-switch a:focus { text-decoration-color: var(--red); }
.nav-access, .link-button { display: inline-flex; gap: 8px; align-items: center; }
.nav-access .icon, .link-button .icon { width: 18px; height: 18px; }
.lang-switch { display: flex; gap: 18px; }
.lang-switch a.active { color: var(--red); }
.inline-form { display: flex; margin: 0; }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }

.nav-toggle { display: none; background: none; border: 0; padding: 12px 0 12px 12px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 32px; height: 2px; background: var(--nav); border-radius: 1px; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; margin: 9px 0; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -9px; }
.nav-toggle-bars::after { top: 9px; }
.nav-toggle[aria-expanded=true] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded=true] .nav-toggle-bars::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded=true] .nav-toggle-bars::after { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 970px) {
  .site-header { --header-h: 130px; --stuck-h: 70px; }
  .header-inner { padding: 0 30px; }
  .brand img { height: 96px; }
  .is-stuck .brand img { height: 54px; }
  .nav-toggle { display: block; align-self: flex-end; margin-bottom: 13px; transform: translateY(-30px); transition: transform .2s ease; }
  .is-stuck .nav-toggle { transform: none; }
  .header-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; height: auto;
    background: #fff; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
    box-shadow: 0 12px 24px rgba(70, 70, 80, .12);
    flex-direction: column-reverse; align-items: stretch; padding: 6px 30px 22px;
    max-height: calc(100vh - var(--stuck-h)); overflow-y: auto;
  }
  .header-nav.open { display: flex; }
  .main-nav { height: auto; display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-utility { height: auto; padding-top: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
}
@media (max-width: 420px) {
  .header-inner, .header-nav { padding-left: 20px; padding-right: 20px; }
  .brand img { height: 84px; }
}

/* --- Hero ------------------------------------------------------------------- */
.hero { background: var(--teal-light); position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--teal-dark); margin-bottom: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; background: #fff; color: var(--muted); }
.status-live { background: var(--red); color: #fff; }
.status-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.subtitle { font-size: 21px; color: var(--text); max-width: 46em; }
.meta { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; color: var(--text-strong); }
.meta li { display: inline-flex; align-items: center; gap: 8px; }
.meta .icon { color: var(--red); }
/* Triangle motif as used throughout kinderkliniken.de */
.hero-deco { position: relative; height: 220px; }
.hero-deco::before, .hero-deco::after { content: ''; position: absolute; width: 0; height: 0; border-style: solid; }
.hero-deco::before { right: 30px; top: 10px; border-width: 0 110px 190px 110px; border-color: transparent transparent var(--teal-mid) transparent; opacity: .7; }
.hero-deco::after { right: 0; top: 90px; border-width: 0 60px 104px 60px; border-color: transparent transparent var(--red) transparent; opacity: .9; }
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
  .hero-deco { display: none; }
  .subtitle { font-size: 18px; }
}

.page-header { background: var(--teal-light); padding: 44px 0 28px; }

/* --- Sections ------------------------------------------------------------ */
.section { padding: 64px 0; }
.section + .section:not(.section-tinted) { border-top: 1px solid var(--line-soft); }
.section-tinted { background: var(--bg-soft); }
.section-title { position: relative; padding-bottom: 14px; margin-bottom: 28px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--red); }
@media (max-width: 700px) { .section { padding: 44px 0; } }

.prose { max-width: 46em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { margin: 0 0 1.5em; padding: 14px 20px; background: #fff8dc; border-left: 4px solid var(--yellow); }
.prose blockquote p:last-child { margin: 0; }

/* --- Buttons & forms -------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius); border: 2px solid transparent;
  font: 600 16px/1.3 var(--font); letter-spacing: .02em; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover, .button-primary:focus { background: var(--red-dark); color: #fff; }
.button-primary:disabled { background: var(--line); color: #fff; cursor: not-allowed; }
.button-ghost { background: #fff; color: var(--teal-dark); border-color: var(--teal-mid); padding: 8px 14px; }
.button-ghost:hover, .button-ghost:focus { border-color: var(--teal); background: var(--teal-light); color: var(--text-strong); }
.button-block { width: 100%; }

input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; font: 16px/1.5 var(--font); color: var(--text-strong);
  padding: 10px 12px; border: 1px solid #b9bcc6; border-radius: var(--radius); background: #fafafa;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); background: #fff; outline: 2px solid var(--teal-light); }
textarea { resize: vertical; min-height: 84px; }
.stack { display: grid; gap: 14px; }
.stack label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.code-input { font-family: Consolas, Menlo, monospace !important; letter-spacing: .25em; text-transform: uppercase; font-size: 20px !important; }
.checkbox { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.checkbox input { margin-top: .3em; accent-color: var(--teal); width: 16px; height: 16px; }

.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 15px; }
.alert-error { background: #fdecef; color: var(--red-dark); border: 1px solid #f6c3cf; }
.notice { margin: 16px 0 0; padding: 12px 16px; background: var(--teal-light); border-left: 4px solid var(--teal); }

/* --- Stream ------------------------------------------------------------------ */
.stream-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.stream-layout.no-questions { grid-template-columns: 1fr; }
.stream-locked { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: stretch; }
@media (max-width: 1000px) {
  .stream-layout, .stream-locked { grid-template-columns: 1fr; }
}
.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #2c2c33 linear-gradient(135deg, #3a3a44 0%, #23232a 100%);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px; padding: 24px; color: #e9e9ee;
}
.player-placeholder .icon-xl { color: var(--teal-mid); }
.player-placeholder p { max-width: 36em; margin: 0; }
.player-consent .consent-title { font-size: 20px; font-weight: 700; color: #fff; }
.player-consent .consent-text { font-size: 14px; color: #c9c9d3; }
.player-consent a { color: #fff; }
.player-consent .button { margin-top: 8px; }
@media (max-width: 560px) {
  .player { aspect-ratio: auto; min-height: 56.25vw; }
  .player-consent { position: relative; }
  .player-consent .consent-text { font-size: 13px; }
}

/* --- Live stream player (HLS) ------------------------------------------------------- */
.hls { position: absolute; inset: 0; background: #000; }
.hls video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.hls-status {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  color: #fff; font-size: 17px; background: rgba(0, 0, 0, .55); pointer-events: none;
}
.hls-start {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: 700 18px var(--font); cursor: pointer;
}
.hls-start:hover, .hls-start:focus-visible { background: var(--red-dark); }
.hls-start .icon { width: 26px; height: 26px; }
.hls-live, .player-viewers {
  position: absolute; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font: 700 13px/1.4 var(--font); color: #fff; background: rgba(0, 0, 0, .6); pointer-events: none;
}
.hls-live { left: 12px; letter-spacing: .08em; }
.hls-live::first-letter { color: var(--red); }
.player-viewers { right: 12px; }
.player-viewers .icon { width: 16px; height: 16px; }
.hls-controls {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 30px 14px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent); color: #fff; opacity: 0; transition: opacity .2s;
}
.hls.show-controls .hls-controls, .hls-controls:focus-within { opacity: 1; }
.hls-spacer { flex: 1; }
.hls-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: #fff; cursor: pointer; }
.hls-btn:hover { background: rgba(255, 255, 255, .18); }
.hls-btn .icon { width: 24px; height: 24px; }
.hls-volume { -webkit-appearance: none; appearance: none; width: 110px; height: 24px; background: transparent; cursor: pointer; }
.hls-volume::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.hls-volume::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.hls-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; }
.hls-volume::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.hls-volume:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.player:fullscreen { aspect-ratio: auto; border-radius: 0; background: #000; }
.player:-webkit-full-screen { aspect-ratio: auto; border-radius: 0; background: #000; }
@media (hover: none) { .hls.show-controls .hls-controls { opacity: 1; } }

/* --- Feedback wizard ---------------------------------------------------------- */
#feedback-slot:not(:empty) { margin-top: 18px; }
.feedback-card { background: #fff; border: 1px solid var(--line-soft); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 22px 24px; }
.feedback-card h3 { font-size: 22px; margin-bottom: .3em; }
.player.player-feedback { aspect-ratio: auto; min-height: 0; background: var(--bg-soft); overflow: visible; box-shadow: none; }
.player-feedback .feedback-card { box-shadow: var(--shadow); }
.fb-progress { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--teal-dark); }
.fb-dots { display: flex; gap: 6px; }
.fb-dot { width: 28px; height: 6px; border-radius: 3px; background: var(--line-soft); }
.fb-dot.is-done { background: var(--teal-mid); }
.fb-dot.is-current { background: var(--teal); }
.fb-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.fb-step legend { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--teal); padding: 0; margin-bottom: 14px; }
.fb-step legend:focus { outline: none; }
.rating { margin-bottom: 22px; }
.rating-q { margin: 0 0 8px; font-weight: 600; color: var(--text-strong); display: block; }
.rating-scale { display: flex; gap: 8px; }
.rating-scale label { flex: 1 1 0; max-width: 84px; position: relative; cursor: pointer; }
.rating-scale input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rating-scale span {
  display: grid; place-items: center; height: 48px; border: 2px solid var(--line); border-radius: var(--radius);
  font-size: 18px; font-weight: 700; color: var(--text); background: #fff; transition: background .15s, border-color .15s, color .15s;
}
.rating-scale label:hover span { border-color: var(--teal); background: var(--teal-light); }
.rating-scale input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.rating-scale input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.rating-ends { display: flex; justify-content: space-between; max-width: 460px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.fb-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.fb-nav [hidden] { display: none; }
.feedback-done { text-align: center; padding: 24px 8px; }
.feedback-done .icon-xl { color: var(--teal); }
@media (max-width: 560px) {
  .feedback-card { padding: 18px 16px; }
  .rating-scale { gap: 6px; }
  .rating-scale span { height: 44px; }
  .fb-dot { width: 18px; }
}

.questions {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  position: sticky; top: 94px; max-height: calc(100vh - 114px); overflow: auto;
}
@media (max-width: 1000px) { .questions { position: static; max-height: none; } }
.questions h3 { display: flex; gap: 8px; align-items: center; font-size: 19px; }
.questions h3 .icon { color: var(--teal); }
.questions h4 { margin: 22px 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.question-form { display: grid; gap: 10px; }
.form-status { min-height: 1.2em; margin: 0; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: var(--red-dark); }
.my-questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.my-questions .q { padding: 10px 12px; border-radius: var(--radius); background: var(--bg-soft); border-left: 3px solid var(--line); font-size: 15px; }
.my-questions .q-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-strong); }
.my-questions .q-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.my-questions .q-answered { border-left-color: var(--teal); }
.my-questions .q-answered .q-status { color: var(--teal-dark); font-weight: 700; }
.my-questions .q-open .q-status { color: #9a7400; font-weight: 700; }
.my-questions .q-note { margin-top: 6px; font-size: 14px; padding-top: 6px; border-top: 1px dashed var(--line); }

.access-card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.access-card h3 { font-family: var(--font-head); font-size: 21px; }

/* --- Speakers ------------------------------------------------------------- */
.speaker-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.speaker { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.speaker-photo { width: 152px; height: 152px; border-radius: 50%; overflow: hidden; margin-bottom: 18px; background: var(--teal-light); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--teal-mid); display: flex; align-items: center; justify-content: center; }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker-initials { font-family: var(--font-head); font-size: 44px; color: var(--teal); }
.speaker h3 { font-family: var(--font-head); font-size: 19px; margin-bottom: 6px; }
.speaker-degree { font-family: var(--font); font-weight: 600; color: var(--muted); font-size: 15px; display: block; }
.speaker-role { color: var(--teal-dark); font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.speaker-org { font-size: 15px; color: var(--muted); margin: 0; }
.speaker-bio { margin-top: 14px; text-align: left; width: 100%; }
.speaker-bio summary { cursor: pointer; list-style: none; text-align: center; color: var(--red); font-weight: 600; font-size: 15px; }
.speaker-bio summary::-webkit-details-marker { display: none; }
.speaker-bio summary::after { content: ' +'; }
.speaker-bio[open] summary::after { content: ' –'; }
.speaker-bio .less, .speaker-bio[open] .more { display: none; }
.speaker-bio[open] .less { display: inline; }
.speaker-bio .prose { margin-top: 12px; }

/* --- Downloads ----------------------------------------------------------------- */
.download-toolbar { padding: 8px 0 12px; border-bottom: 2px solid var(--line); font-size: 15px; font-weight: 600; }
.file-list { list-style: none; margin: 0 0 22px; padding: 0; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.file-select { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; cursor: pointer; }
.file-select input { accent-color: var(--teal); width: 18px; height: 18px; flex-shrink: 0; }
.file-icon { position: relative; color: var(--teal); flex-shrink: 0; }
.file-icon .icon { width: 40px; height: 40px; }
.file-ext { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-size: 8px; font-weight: 700; color: var(--red); }
.file-meta { display: grid; min-width: 0; }
.file-title { font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
.file-info { font-size: 13px; color: var(--muted); }
.file-list-locked .file { opacity: .75; }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* --- Footer (red, centred – as on kinderkliniken.de) ----------------------------- */
.site-footer { background: var(--red); color: #fff; }
.footer-inner { max-width: 1340px; margin: 0 auto; padding: 70px 30px 44px; text-align: center; }
.footer-claim {
  max-width: 622px; margin: 0 auto 43px;
  font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1.425; letter-spacing: .015em; color: #fff;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 27px; }
.footer-nav a {
  color: #fff; font-size: 20px; letter-spacing: 1.4px; line-height: 1.5;
  text-decoration: underline 1px transparent; text-underline-offset: .4em; transition: text-decoration-color .2s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #fff; text-decoration-color: #fff; }
.footer-copy { margin: 36px 0 0; font-size: 14px; letter-spacing: .8px; color: rgba(255, 255, 255, .85); }
@media (max-width: 1024px) { .footer-claim { font-size: 32px; } }
@media (max-width: 768px) {
  .footer-inner { padding: 50px 24px 76px; }
  .footer-claim { font-size: 28px; margin-bottom: 32px; }
  .footer-nav a { font-size: 18px; }
}

.back-to-top {
  position: fixed; left: 30px; bottom: 30px; z-index: 40; width: 40px; height: 40px; border-radius: 3px;
  display: grid; place-items: center; background: var(--teal); color: #fff; opacity: .9; transition: opacity .3s, color .2s;
}
.back-to-top:hover, .back-to-top:focus { color: var(--teal-mid); opacity: 1; }
.back-to-top .icon { width: 22px; height: 22px; }
@media (max-width: 700px) { .back-to-top { left: 16px; bottom: 16px; } }

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