:root {
  color-scheme: light;
  --blue: #19385e;
  --red: #a81419;
  --gold: #b58c30;
  --ink: #172b43;
  --muted: #526276;
  --paper: #fff;
  --line: #d6dfe9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #edf1f6;
  color: var(--ink);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif;
}

header {
  background: var(--blue);
  color: white;
  text-align: center;
  border-bottom: 5px solid var(--gold);
}

.banner-wrap {
  width: 100%;
  margin: 0 auto;
}

.banner-link { display: block; }

.banner-link:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: -4px;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

.header-text { padding: 26px 20px 30px; }

h1 {
  margin: 0;
  font: bold clamp(2.1rem, 6vw, 3.5rem)/1.15 Georgia, serif;
}

.header-text p { margin: 12px 0 0; }

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 17px;
  border: 1px solid #ffffff70;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
}

.section-nav a:hover {
  background: white;
  color: var(--blue);
}

main {
  width: 100%;
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px;
}

section[id],
details[id] {
  scroll-margin-top: 20px;
}

.card {
  background: var(--paper);
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 35px #19385e0b;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  line-height: 1.35;
}

h3 {
  margin: 28px 0 14px;
  font-size: 1.25rem;
  line-height: 1.4;
}

p { margin: 0 0 18px; }

.kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tour {
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--gold);
}

.tour h2 {
  max-width: 760px;
  font: bold clamp(1.85rem, 4.8vw, 2.9rem)/1.16 Georgia, serif;
  text-wrap: balance;
}

.tour-subtitle {
  max-width: 720px;
  margin-bottom: 26px;
  color: var(--blue);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 650;
}

.reading-text {
  max-width: 740px;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
}

.route {
  margin: 28px 0;
  padding: 23px;
  border: 1px solid #e8dec6;
  border-radius: 14px;
  background: #faf7ef;
}

.route-heading {
  margin: 0 0 17px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #725716;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: stops;
}

.route-list li {
  counter-increment: stops;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.4;
}

.route-list li::before {
  content: counter(stops);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: .85rem;
}

.tour-ending {
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  font-weight: 650;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
}

.action-link:hover { background: #264d7c; }

.action-link.secondary {
  background: white;
  color: var(--blue);
}

.action-link.secondary:hover { background: #edf3fa; }

.english-panel {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 35px #19385e08;
}

.english-panel > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 58px 22px 25px;
  list-style: none;
  cursor: pointer;
}

.english-panel > summary::-webkit-details-marker {
  display: none;
}

.english-panel > summary::after {
  content: "+";
  position: absolute;
  right: 25px;
  font-size: 1.8rem;
  font-weight: 400;
}

.english-panel[open] > summary::after {
  content: "−";
}

.english-panel > summary:hover {
  background: #f6f8fb;
}

.language-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--blue);
  color: #f1d48e;
  font-size: .85rem;
  font-weight: 800;
}

.summary-title {
  display: block;
  font-weight: 750;
}

.summary-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 400;
}

.english-content {
  padding: 28px clamp(22px, 5vw, 44px) 36px;
  border-top: 1px solid var(--line);
}

.english-content h2 {
  font: bold clamp(1.75rem, 4vw, 2.5rem)/1.2 Georgia, serif;
}

.quiz-section {
  max-width: 760px;
  margin: 44px auto 0;
}

.quiz-heading {
  margin-bottom: 22px;
  text-align: center;
}

.quiz-heading h2 {
  margin-bottom: 8px;
  font: bold clamp(2rem, 5vw, 2.7rem)/1.2 Georgia, serif;
}

.quiz-heading p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

label { cursor: pointer; }

.name-label {
  display: block;
  font-weight: 700;
  margin: 22px 0 7px;
}

input[type="text"] {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  border: 2px solid var(--line);
  border-radius: 10px;
}

button {
  min-height: 48px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover:not(:disabled) { background: #264d7c; }
button:disabled { opacity: .5; cursor: not-allowed; }

button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.english-panel > summary:focus-visible {
  outline-offset: -4px;
}

.primary { margin-top: 20px; }

.note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 10px;
}

.stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 9px;
  margin: 14px 0 28px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #e7edf4;
}

progress::-webkit-progress-bar { background: #e7edf4; }
progress::-webkit-progress-value { background: var(--gold); }
progress::-moz-progress-bar { background: var(--gold); }

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}

legend {
  width: 100%;
  padding: 0;
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.4;
  font-weight: 750;
}

.options { display: grid; gap: 11px; }

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 2px solid var(--line);
  border-radius: 12px;
  line-height: 1.4;
}

.option:has(input:checked) {
  border-color: var(--blue);
  background: #eef4fb;
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.option input {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.feedback {
  margin-top: 22px;
  padding: 17px;
  border-radius: 10px;
  background: #eef3f9;
  border-left: 5px solid var(--blue);
}

.feedback.correct {
  background: #edf7ef;
  border-color: #277447;
}

.feedback.wrong {
  background: #fff1ec;
  border-color: var(--red);
}

.feedback p { margin: 6px 0 0; }

.score {
  margin: 20px auto;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 7px solid var(--gold);
  border-radius: 50%;
  background: #faf7ed;
  font-size: 2.6rem;
  font-weight: 800;
}

.result { text-align: center; }

#review-details {
  text-align: left;
  margin-top: 26px;
}

#review-details > summary {
  font-weight: 750;
  cursor: pointer;
  padding: 10px 0;
}

.review { padding-left: 24px; }

.review li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.review p { margin: 5px 0 0; }
.review small { color: var(--muted); }

.site-footer {
  margin-top: auto;
  padding: 28px 20px calc(88px + env(safe-area-inset-bottom, 0px));
  background: var(--blue);
  color: white;
  text-align: center;
  border-top: 4px solid var(--gold);
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 150px;
  padding: 11px 22px;
  border: 2px solid #ffffff80;
  border-radius: 10px;
  color: white;
  background: transparent;
  text-decoration: none;
  font-weight: 700;
}

.footer-button:hover {
  color: var(--blue);
  background: white;
  border-color: white;
}

.footer-button-home {
  color: var(--blue);
  background: #f1d48e;
  border-color: #f1d48e;
}

.footer-button-home:hover {
  background: #ffe6ac;
  border-color: #ffe6ac;
}

.copyright {
  margin: 24px 0 0;
  color: #e0e7ef;
  font-size: .85rem;
  line-height: 1.6;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 16px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  background: #f1d48e;
  box-shadow: 0 4px 16px #0003;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
}

.back-to-top:hover { background: #ffe6ac; }

.back-to-top svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
}

@media (max-width: 480px) {
  .header-text { padding: 22px 16px 26px; }
  main { margin-top: 20px; }
  button { width: 100%; }
  .footer-buttons { gap: 10px; }
  .footer-button, .action-link { width: 100%; }
  .route { padding: 18px; }
  .english-panel > summary {
    padding-left: 18px;
    gap: 11px;
  }
  .quiz-section { margin-top: 34px; }
}

@media (prefers-reduced-motion: no-preference) {
  button, .option, .footer-button, .back-to-top,
  .action-link, .section-nav a {
    transition: background .15s ease, color .15s ease;
  }
}
/* Gleichberechtigte Sponsoren mit einheitlichen Logo-Flächen. */
.sponsors {
  margin-top: 44px;
  text-align: center;
  border-top: 5px solid var(--gold);
}
.sponsors h2 { margin-bottom: 8px; color: var(--blue); }
.sponsors-intro { margin-bottom: 28px; color: var(--muted); }
.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sponsor-list li { flex: 0 1 calc((100% - 32px) / 3); min-width: 0; }
.sponsor-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.sponsor-link:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px #19385e14;
}
.sponsor-link img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: contain;
}
@media (max-width: 680px) {
  .sponsor-list li { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 420px) {
  .sponsor-list li { flex-basis: 100%; max-width: 300px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sponsor-link { transition: border-color .15s ease, box-shadow .15s ease; }
}

/* Join the translation to its German article; separate the following tour. */
.exhibition-intro:has(+ .english-panel) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.exhibition-intro + .english-panel { margin-top: -1px; margin-bottom: 24px; border-top-left-radius: 0; border-top-right-radius: 0; }

.section-nav button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 17px; border: 1px solid #ffffff70; border-radius: 999px; background: transparent; color: white; font: 650 .9rem system-ui; cursor: pointer; }
.section-nav button:hover { background: white; color: var(--blue); }
.content-modal { width: min(960px, calc(100% - 32px)); padding: 0; scrollbar-width: thin; scrollbar-color: #b58c30 #edf1f6; }
.content-modal > .modal-close { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2; }
.content-modal > section { margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: clamp(22px, 5vw, 44px); }
.content-modal h2 { margin-right: 45px; }
.content-modal .quiz-section { background: #edf1f6; }

.content-modal > .english-content { padding: clamp(22px, 5vw, 44px); }

#english-modal .action-link:not(.secondary), #english-modal .action-link:not(.secondary):hover, #english-modal .action-link:not(.secondary):focus-visible { color: #fff; }

/* The quiz dialog and its grey surface share the same width. */
#quiz-modal { width: min(760px, calc(100% - 32px)); background: #edf1f6; }
#quiz-modal > .quiz-section { width: 100%; max-width: none; margin: 0; padding: 24px; }
#quiz-modal .quiz-heading { margin-bottom: 16px; }
#quiz-modal .quiz-heading h2 { font-size: clamp(1.55rem, 4vw, 2rem); margin-bottom: 6px; }
#quiz-modal .card { padding: 24px; border-radius: 16px; }
#quiz-modal p { margin-bottom: 12px; }
#quiz-modal .quiz-heading p:last-child { margin-bottom: 0; }
#quiz-modal .name-label { margin-top: 14px; }
#quiz-modal .primary { margin-top: 12px; }
#quiz-modal progress { margin: 12px 0 18px; }
#quiz-modal legend { margin-bottom: 12px; font-size: clamp(1.15rem, 3.5vw, 1.4rem); }
#quiz-modal .options { gap: 8px; }
#quiz-modal .option { min-height: 44px; padding: 10px 12px; }
#quiz-modal .feedback { margin-top: 14px; padding: 12px; }
#quiz-modal .feedback p { margin: 6px 0 0; }
#quiz-modal .score { width: 110px; height: 110px; margin: 14px auto; font-size: 2rem; }
@media (max-width: 480px) {
  #quiz-modal > .quiz-section { padding: 18px 14px; }
  #quiz-modal .card { padding: 18px; }
}

#quiz-modal, #quiz-modal > .quiz-section, #quiz-modal .card { background: #fff; }

#stadtfuehrung-modal .tour-booking-jump { display: inline-flex; width: fit-content; margin: 0 0 20px; padding: 14px 24px; font-size: 1.1rem; font-weight: 750; }

.mascot-heading { display: flex; align-items: center; gap: 24px; }
.mascot-heading > div { min-width: 0; flex: 1; }
.fleebutz-mascot { display: block; width: auto; height: 160px; flex: 0 0 auto; object-fit: contain; }
.exhibition-host { margin-bottom: 24px; }
.mascot-welcome { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.tour-host { margin-bottom: 18px; padding-right: 20px; }
.tour-host .fleebutz-mascot { height: 175px; }
.tour-host .tour-subtitle { margin-bottom: 0; }
#quiz-modal .quiz-host { text-align: left; justify-content: center; gap: 16px; }
#quiz-modal .quiz-host .fleebutz-mascot { height: 105px; }
@media (max-width: 540px) {
  .mascot-heading { gap: 14px; }
  .fleebutz-mascot { height: 130px; }
  .tour-host { align-items: flex-start; padding-right: 0; }
  .tour-host .fleebutz-mascot { height: 130px; margin-top: 12px; }
  #quiz-modal .quiz-host .fleebutz-mascot { height: 90px; }
}

.exhibition-host .fleebutz-mascot { height: 280px; }
.tour-host .fleebutz-mascot { height: 240px; }
#quiz-modal .quiz-host .fleebutz-mascot { height: 155px; }
@media (max-width: 540px) {
  .exhibition-host { gap: 18px; }
  .exhibition-host .fleebutz-mascot { height: 220px; }
  .tour-host .fleebutz-mascot { height: 180px; }
  #quiz-modal .quiz-host .fleebutz-mascot { height: 125px; }
}

.exhibition-host .speech-bubble { position: relative; margin-top: 14px; padding: 18px 20px; background: #edf3fa; border-radius: 20px; color: var(--blue); font-weight: 600; line-height: 1.55; }
.exhibition-host .speech-bubble::before { content: ""; position: absolute; left: -9px; top: 25px; width: 20px; height: 20px; background: #edf3fa; transform: rotate(45deg); }
@media (max-width: 540px) { .exhibition-host .speech-bubble { padding: 14px; font-size: .9rem; } }

.exhibition-host .fleebutz-mascot { height: 380px; }
.tour-host .fleebutz-mascot { height: 300px; }
#quiz-modal .quiz-host .fleebutz-mascot { height: 180px; }
@media (max-width: 540px) {
  .exhibition-host { flex-direction: column; gap: 20px; }
  .exhibition-host .fleebutz-mascot { height: 310px; }
  .exhibition-host > div { width: 100%; }
  .exhibition-host .speech-bubble::before { left: 30px; top: -9px; }
  .tour-host .fleebutz-mascot { height: 220px; }
  #quiz-modal .quiz-host .fleebutz-mascot { height: 150px; }
}

.museum-visit { margin: 0 0 28px; padding: 24px; background: #edf3fa; border-left: 5px solid var(--blue); border-radius: 14px; }
.museum-visit h3 { margin: 0 0 18px; font-size: 1.35rem; }
.museum-visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.museum-visit h4 { margin: 0 0 8px; font-size: 1rem; }
.museum-visit address { font-style: normal; }
.museum-visit .museum-opening { margin: 0 0 8px; }
.museum-opening strong { font-size: 1.35rem; }
.museum-visit .museum-closed { margin: 0; font-size: .95rem; }
@media (max-width: 540px) { .museum-visit { padding: 20px; } .museum-visit-grid { grid-template-columns: 1fr; gap: 20px; } }

.mascot-heading .speech-bubble { position: relative; width: fit-content; max-width: 420px; margin: 14px 0 0; padding: 16px 20px; background: #edf3fa; border-radius: 20px; color: var(--blue); font-size: .95rem; font-weight: 600; line-height: 1.5; }
.mascot-heading .speech-bubble::before { content: ""; position: absolute; left: -9px; top: 24px; width: 20px; height: 20px; background: #edf3fa; transform: rotate(45deg); }
#quiz-modal .quiz-host .speech-bubble { margin: 12px 0 0; font-size: .9rem; }
@media (max-width: 540px) {
  .mascot-heading .speech-bubble { padding: 14px; max-width: 100%; font-size: .9rem; }
  .exhibition-host .speech-bubble::before { left: 30px; top: -9px; }
}

.exhibition-opening { width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 18px 30px; border-radius: 16px; background: #f4d58b; color: #19385e; }
.exhibition-opening p { margin: 0 0 6px; font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: 650; }
.exhibition-opening time { display: block; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; font-weight: 800; }
@media (max-width: 540px) { .exhibition-opening { padding: 16px 20px; } }

.exhibition-organizer { flex: 0 0 160px; width: 160px; margin: 0; align-self: center; text-align: center; }
.exhibition-organizer figcaption { margin: 0 0 10px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.exhibition-organizer img { display: block; width: 100%; height: auto; }
@media (max-width: 540px) {
  .exhibition-host { display: grid; grid-template-columns: 1fr 130px; align-items: center; }
  .exhibition-host .fleebutz-mascot { grid-column: 1; grid-row: 1; justify-self: center; }
  .exhibition-host > div { grid-column: 1 / -1; grid-row: 2; }
  .exhibition-host .exhibition-organizer { grid-column: 2; grid-row: 1; width: 130px; }
}

#seitenanfang { background: #fff; color: var(--blue); border-bottom: 1px solid var(--line); }
#seitenanfang .museum-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
#seitenanfang .exhibition-opening { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0 auto 26px; color: var(--blue); }
#seitenanfang .exhibition-opening p { margin: 0 0 6px; }
#seitenanfang .exhibition-page-title { margin: 0; font: 700 clamp(1.35rem, 3vw, 1.8rem)/1.3 Georgia, serif; }
#seitenanfang .section-nav a { border-color: var(--blue); color: var(--blue); }
#seitenanfang .section-nav a:hover { background: var(--blue); color: #fff; }
.exhibition-intro > .museum-visit { margin-top: 30px; margin-bottom: 0; }

#seitenanfang { background: #19385e; color: #fff; border-bottom: 1px solid #19385e; }
#seitenanfang .museum-title, #seitenanfang .exhibition-opening, #seitenanfang .exhibition-page-title { color: #fff; }
#seitenanfang .exhibition-opening { background: transparent; border: 0; }
#seitenanfang .section-nav a { border-color: #ffffff70; color: #fff; }
#seitenanfang .section-nav a:hover { background: #fff; color: #19385e; }
.exhibition-organizer { align-self: flex-start; margin: 0; }
@media (max-width: 540px) { .exhibition-host .exhibition-organizer { align-self: start; justify-self: end; } }

#memo-modal { width: min(1120px, calc(100% - 24px)); background: #fff; }
#memo-modal > section { padding: 22px; }
.memo-host { margin-bottom: 18px; }
.memo-host .fleebutz-mascot { height: 150px; }
#memo-frame { display: block; width: 100%; height: min(68dvh, 780px); min-height: 360px; border: 0; background: #fff; }
@media (max-width: 540px) { #memo-modal > section { padding: 16px 10px; } .memo-host .fleebutz-mascot { height: 130px; } }

#seitenanfang .casting-lineart { margin-bottom: 8px; }
#seitenanfang .museum-title { margin-top: 0; }

#stadtfuehrung-modal, #stadtfuehrung-modal > .tour { background: #fff; }
.site-footer .footer-button { width: auto; min-width: 0; min-height: 44px; padding: 7px 17px; border: 1px solid #ffffff70; border-radius: 999px; background: transparent; color: #fff; font: 650 .9rem system-ui; cursor: pointer; }
.site-footer .footer-button:hover { background: #fff; color: var(--blue); border-color: #fff; }
.back-to-top { width: 48px; height: 48px; min-height: 48px; padding: 0; gap: 0; border-radius: 50%; }

#memo-pair-display { position: sticky; top: 64px; float: right; width: 210px; margin: 0 32px 12px 20px; z-index: 3; background: #fff; border-radius: 8px; }
#memo-pair-display[hidden] { display: none; }
#memo-pair-display img { display: block; width: 100%; max-height: 110px; object-fit: contain; }
@media(max-width:600px) { #memo-pair-display { width: 150px; margin-right: 28px; margin-left: 10px; } }

@media (max-width: 540px) {
  .exhibition-host > div, .tour-host > div { display: flex; flex-direction: column; width: 100%; }
  .exhibition-host > div > .speech-bubble, .tour-host > div > .speech-bubble { order: -1; margin-top: 0; margin-bottom: 22px; }
  .tour-host { flex-direction: column; }
  .tour-host .speech-bubble::before { left: 30px; top: -9px; }
}

#stadtfuehrung-modal > .tour { position: relative; }
.tour-sktc-logo { position: absolute; top: 68px; right: 22px; width: 130px; }
.tour-sktc-logo img { display: block; width: 100%; height: auto; }
#stadtfuehrung-modal .tour-host { padding-right: 150px; }
@media (max-width: 540px) {
  .tour-sktc-logo { top: 68px; right: 18px; width: 100px; }
  #stadtfuehrung-modal .tour-host { padding-right: 0; }
  #stadtfuehrung-modal .tour-host > .fleebutz-mascot { margin-right: 112px; }
}

.exhibition-organizer .organizer-mcv-logo, .tour-sktc-logo .organizer-mcv-logo { display: block; width: 55%; height: auto; margin: 12px auto 0; }

.game-organizer-logos { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 42px 4px 18px; }
.game-organizer-logos a { flex: 0 0 auto; }
.game-organizer-logos .game-sktc-logo { display: block; width: 110px; height: auto; }
.game-organizer-logos .game-mcv-logo { display: block; width: 60px; height: auto; }
@media(max-width:540px) { .game-organizer-logos { gap: 12px; margin-top: 44px; } .game-organizer-logos .game-sktc-logo { width: 90px; } .game-organizer-logos .game-mcv-logo { width: 50px; } }

.museum-visit .museum-website-button { display: inline-flex; width: fit-content; max-width: 100%; margin-top: 18px; padding: 10px 18px; }

@media(max-width:540px) { #quiz-modal .game-organizer-logos, #memo-modal .game-organizer-logos { justify-content: flex-start; } }

#quiz-modal .game-organizer-logos, #memo-modal .game-organizer-logos { height: 86px; margin: 0 56px 18px 0; }
#quiz-modal > .modal-close { top: 45px; margin-top: 45px; margin-bottom: -89px; }
#memo-modal > .modal-close { top: 43px; margin-top: 43px; margin-bottom: -87px; }
@media(max-width:540px) {
  #quiz-modal .game-organizer-logos, #memo-modal .game-organizer-logos { height: 70px; }
  #quiz-modal > .modal-close { top: 31px; margin-top: 31px; margin-bottom: -75px; }
  #memo-modal > .modal-close { top: 29px; margin-top: 29px; margin-bottom: -73px; }
}

/* Memo-Fenster und Spielframe folgen der tatsächlichen Inhaltshöhe. */
#memo-modal{height:fit-content;min-height:0;max-height:min(760px,80dvh);margin:auto;overflow-y:auto}#memo-frame{height:auto;min-height:0}

#memo-modal .game-organizer-logos{height:48px;margin-bottom:10px}#memo-modal .game-organizer-logos img{max-height:48px;width:auto}#memo-modal .memo-host{margin-bottom:8px}#memo-modal .memo-host .fleebutz-mascot{height:80px}#memo-modal .memo-host h2{font-size:1.25rem;margin-bottom:8px}#memo-modal .speech-bubble{font-size:.875rem;line-height:1.4;padding:10px;margin-bottom:0}#memo-modal>section{padding:16px}#memo-modal>.modal-close{top:16px;margin-top:16px;margin-bottom:-60px}

@media(max-width:540px){#memo-modal{max-height:min(760px,calc(100dvh - 32px))}}


/* SKTC: Scrollleisten innerhalb der runden Modal-Ecken. */
:is(dialog,[role="dialog"]:not(.modal),.modal-content){border-radius:16px;clip-path:inset(0 round 16px)}
:is(dialog,[role="dialog"],.modal-content,.modal-body),:is(dialog,[role="dialog"],.modal-content) *{scrollbar-width:thin;scrollbar-color:rgba(90,105,125,.65) transparent}
:is(dialog,[role="dialog"],.modal-content,.modal-body)::-webkit-scrollbar,:is(dialog,[role="dialog"],.modal-content) *::-webkit-scrollbar{width:8px;height:8px}
:is(dialog,[role="dialog"],.modal-content,.modal-body)::-webkit-scrollbar-track,:is(dialog,[role="dialog"],.modal-content) *::-webkit-scrollbar-track{background:transparent;margin-block:14px;border-radius:999px}
:is(dialog,[role="dialog"],.modal-content,.modal-body)::-webkit-scrollbar-thumb,:is(dialog,[role="dialog"],.modal-content) *::-webkit-scrollbar-thumb{background:rgba(90,105,125,.65);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
:is(dialog,[role="dialog"],.modal-content,.modal-body)::-webkit-scrollbar-button,:is(dialog,[role="dialog"],.modal-content) *::-webkit-scrollbar-button{display:none;width:0;height:0}

@supports selector(::-webkit-scrollbar){:is(dialog,[role="dialog"],.modal-content,.modal-body),:is(dialog,[role="dialog"],.modal-content) *{scrollbar-width:auto;scrollbar-color:auto}}

/* SKTC: Links ohne Unterstreichung in allen Zuständen. */
a:any-link,a:any-link:hover,a:any-link:focus,a:any-link:focus-visible,a:any-link:active,a:any-link *{text-decoration:none!important}

/* SKTC: Flache Formularfelder ohne native 3D-Raender. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="file"]):not([type="color"]),textarea,select){
 appearance:none;-webkit-appearance:none;box-shadow:none!important;background-image:none;border:1px solid #8b96a3!important;border-radius:8px;background-color:rgba(255,255,255,.8);color:inherit;font:inherit;box-sizing:border-box;
}
:where(input,textarea,select):focus-visible{outline:2px solid #224579;outline-offset:2px;box-shadow:none!important}
select{padding-right:2rem!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2330343b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right .65rem center!important;background-size:16px!important}
select[multiple],select[size]:not([size="1"]){background-image:none!important;padding-right:.65rem!important}
input[type="file"]::file-selector-button{border:1px solid #8b96a3;border-radius:8px;background:#f2f5f9;color:#30343b;box-shadow:none;font:inherit;padding:.5rem .8rem}

/* SKTC: Aktionsbuttons in Modal-Fenstern linksbuendig. */
:is(dialog,[role="dialog"],.modal-content) :is(button,input[type="submit"],input[type="button"],input[type="reset"],a.button,a.btn):not(.modal-close):not(.story-close):not(.close):not(.btn-close):not([aria-label][data-close]:empty){margin-left:0!important;margin-right:auto!important;align-self:flex-start!important}
:is(dialog,[role="dialog"],.modal-content) :is(.modal-footer,.dialog-actions,.modal-actions,.form-actions,.actions,.button-row){justify-content:flex-start!important;text-align:left!important}
:is(dialog,[role="dialog"],.modal-content) :is(form,.button-group,.buttons){text-align:left}
