/* ==========================================================================
   Castel Travel Inform – „Heraldische Chronik“
   Design system: illuminated manuscript meets national-park signage.
   One stylesheet for every page. Sections:
   01 Tokens · 02 Reset & base · 03 Typography · 04 Layout & utilities
   05 Ornaments · 06 Buttons & links · 07 Header & navigation
   08 Hero & arch frame · 09 Breadcrumb · 10 Section heads
   11 Region tiles · 12 Castle cards & Steckbrief · 13 Timeline
   14 Split teaser, compare, heritage register, checklist
   15 Article layout, drop cap, glosses, TOC · 16 Figures & gallery
   17 Callouts, route box, pull quote · 18 Tables, FAQ, related links
   19 Glossary & letter index · 20 Legal pages · 21 Contact form
   22 Footer · 23 Consent banner & dialog · 24 404
   25 Motion, print
   ========================================================================== */

/* 01 Tokens ---------------------------------------------------------------- */
:root {
  --parchment: #F3EAD8;
  --parchment-2: #E8DABF;
  --parchment-3: #D9C6A0;
  --vellum: #FBF6EB;
  --ink: #2B2118;
  --ink-soft: #5A4D3F;
  --forest: #2E4A3B;
  --forest-deep: #22382C;
  --burgundy: #6F1D2A;
  --burgundy-deep: #551522;
  --gold: #A88544;
  --gold-ink: #7D6129;
  --gold-pale: #D9BE80;
  --stone: #8C8577;
  --rule: rgba(168, 133, 68, .6);
  --rule-soft: rgba(140, 133, 119, .35);

  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --font-initial: 'UnifrakturMaguntia', 'EB Garamond', serif;

  --step--1: clamp(.9rem, .87rem + .15vw, 1rem);
  --step-0: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(1.65rem, 1.3rem + 1.7vw, 2.5rem);
  --step-4: clamp(2rem, 1.35rem + 3vw, 3.5rem);

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3rem, 2rem + 4vw, 5.5rem);

  --wrap: 76rem;
  --wrap-narrow: 46rem;
  --measure: 70ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  --shadow-card: 0 1px 0 rgba(43, 33, 24, .05), 0 14px 28px -18px rgba(43, 33, 24, .45);
  --shadow-lift: 0 2px 0 rgba(43, 33, 24, .05), 0 22px 36px -20px rgba(43, 33, 24, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --fleuron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cg fill='%23A88544'%3E%3Cpath d='M20 2l6 6-6 6-6-6z'/%3E%3Cpath d='M12.5 8C9.5 3.6 4.5 3.4 1 8c3.5 4.6 8.5 4.4 11.5 0z'/%3E%3Cpath d='M27.5 8c3-4.4 8-4.6 11.5 0-3.5 4.6-8.5 4.4-11.5 0z'/%3E%3C/g%3E%3C/svg%3E");
  --lozenge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cg fill='%23A88544'%3E%3Ccircle cx='3' cy='4' r='1.3'/%3E%3Cpath d='M12 .5l3.5 3.5-3.5 3.5L8.5 4z'/%3E%3Ccircle cx='21' cy='4' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
  --battlement: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 10.5h6v-8h12v8h6' fill='none' stroke='%23A88544' stroke-width='1.5'/%3E%3C/svg%3E");
  --shield-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0H40V22C40 36 30 44 20 48C10 44 0 36 0 22Z'/%3E%3C/svg%3E");
}

/* 02 Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  background: var(--parchment);
}
html.text-large { font-size: 112.5%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    var(--grain),
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(255, 252, 244, .7), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(217, 198, 160, .45), transparent 70%);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  overflow-x: hidden;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
body.has-dialog { overflow: hidden; }

main { flex: 1 0 auto; display: block; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
hr { border: 0; height: 1px; background: var(--rule); margin: var(--space-7) 0; }
::selection { background: var(--burgundy); color: var(--parchment); }

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 100;
  transform: translate(-50%, -120%);
  padding: .6rem 1.2rem;
  background: var(--burgundy);
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .12em;
  text-decoration: none;
  box-shadow: inset 0 0 0 3px var(--burgundy), inset 0 0 0 4px var(--gold-pale);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, .5rem); }

/* 03 Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: .04em;
  color: var(--ink);
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: .05em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: .05em; }
h4 { font-family: var(--font-body); font-style: italic; font-size: var(--step-1); letter-spacing: 0; font-weight: 500; }

p, ul, ol, dl, blockquote, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: .3em; }
strong, b { font-weight: 600; }
em, i { font-style: italic; }
small { font-size: var(--step--1); }
abbr[title] { text-decoration: underline dotted var(--stone); cursor: help; }

a {
  color: var(--burgundy);
  text-decoration-line: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--forest); text-decoration-color: currentColor; }

.kicker {
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
}
.muted { color: var(--ink-soft); }
.smallcaps {
  font-family: var(--font-display);
  font-size: .85em;
  letter-spacing: .12em;
}

/* Prose defaults inside articles. Only unclassed elements are touched, so
   components (related links, letter index, glossary, cards) keep their own look. */
.prose > * + h2 { margin-top: 2.2em; }
.prose > * + h3 { margin-top: 1.8em; }
.prose h2:not([class]) {
  clear: both;
  font-size: var(--step-2);
  padding-bottom: .35em;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.prose h2:not([class])::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 3.5rem;
  height: 7px;
  background: var(--parchment);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.prose ul:not([class]) { list-style: none; padding-left: 1.5em; }
.prose ul:not([class]) > li { position: relative; }
.prose ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: -1.15em;
  top: .62em;
  width: .42em;
  height: .42em;
  background: var(--gold);
  transform: rotate(45deg);
}
.prose ol:not([class]) { padding-left: 1.6em; }
.prose ol:not([class]) > li::marker {
  font-family: var(--font-display);
  font-size: .85em;
  color: var(--gold-ink);
}
/* unclassed lists that belong to components */
.prose .letter-index ul, .prose .toc ol { padding: 0; }
.prose .letter-index li::before,
.prose .letter-index ul > li::before { content: none; }
/* big components never sit beside a floated Steckbrief */
.prose .pullquote, .prose .figure, .prose .gallery, .prose .table-wrap, .prose .route,
.prose .faq, .prose .timeline, .prose .related, .prose .callout, .prose .split, .prose .grid { clear: both; }

/* 04 Layout & utilities ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--space-8); }
.section--tinted {
  background:
    linear-gradient(var(--parchment-2), var(--parchment-2)) padding-box;
  border-block: 1px solid var(--rule-soft);
  box-shadow: inset 0 6px 0 -5px var(--rule), inset 0 -6px 0 -5px var(--rule);
}
.section:not(.section--tinted) + .section:not(.section--tinted) { padding-top: 0; }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.stack > * + * { margin-top: var(--space-4); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-6 { margin-top: var(--space-6) !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 05 Ornaments ------------------------------------------------------------- */
/* Fleuron divider: <div class="ornament" aria-hidden="true"></div> */
.ornament {
  position: relative;
  height: 16px;
  max-width: 22rem;
  margin: var(--space-5) auto;
  background: var(--fleuron) center / 40px 16px no-repeat;
}
.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 3px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-50%);
}
.ornament::before { left: 0; -webkit-mask: linear-gradient(90deg, transparent, #000 60%); mask: linear-gradient(90deg, transparent, #000 60%); }
.ornament::after { right: 0; -webkit-mask: linear-gradient(270deg, transparent, #000 60%); mask: linear-gradient(270deg, transparent, #000 60%); }
.ornament--left { margin-left: 0; }

/* Battlement line: <div class="battlement" aria-hidden="true"></div> */
.battlement {
  height: 12px;
  max-width: 30rem;
  margin: var(--space-6) auto;
  background: var(--battlement) center / 24px 12px repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.battlement--wide { max-width: none; }

/* Heraldic shield badge holding a Roman numeral */
.shield {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 3.1rem;
  padding-bottom: .5rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--parchment);
  background: var(--gold);
  -webkit-mask: var(--shield-mask) center / 100% 100% no-repeat;
  mask: var(--shield-mask) center / 100% 100% no-repeat;
  isolation: isolate;
}
.shield::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  background: var(--burgundy);
  -webkit-mask: var(--shield-mask) center / 100% 100% no-repeat;
  mask: var(--shield-mask) center / 100% 100% no-repeat;
}
.shield--forest::before { background: var(--forest); }

/* 06 Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 2.9rem;
  padding: .75em 1.5em;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { color: var(--burgundy); border-color: var(--burgundy); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--parchment);
  box-shadow: inset 0 0 0 3px var(--burgundy), inset 0 0 0 4px var(--gold-pale);
}
.btn--primary:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  color: var(--vellum);
  box-shadow: inset 0 0 0 3px var(--burgundy-deep), inset 0 0 0 4px var(--gold-pale), 0 8px 18px -10px rgba(85, 21, 34, .8);
}
.btn--secondary {
  background: var(--vellum);
  box-shadow: inset 0 0 0 3px var(--vellum), inset 0 0 0 4px var(--rule);
}
.btn--forest {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--parchment);
  box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 4px var(--gold-pale);
}
.btn--forest:hover { background: var(--forest-deep); color: var(--vellum); }
.btn--link {
  min-height: 0;
  padding: .4em .2em;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: .3em;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* "Weiterlesen" link with drawn chevron */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--burgundy);
}
.more-link::after {
  content: "";
  width: .5em;
  height: .5em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.more-link:hover::after { transform: translateX(3px) rotate(45deg); }

/* 07 Header & navigation --------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 0 var(--space-4);
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__shield {
  width: clamp(2.8rem, 2.2rem + 2vw, 3.8rem);
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(43, 33, 24, .25));
  transition: transform .4s var(--ease);
}
.brand:hover .brand__shield { transform: translateY(-2px) rotate(-2deg); }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, .95rem + 1.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.1;
  text-transform: uppercase;
}
.brand__tagline {
  font-family: var(--font-display);
  font-size: clamp(.62rem, .58rem + .2vw, .74rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  width: 100%;
  margin-top: var(--space-4);
  padding: .8rem 1rem;
  border: 0;
  border-block: 3px double var(--gold);
  background: transparent;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Main navigation (desktop first, mobile overrides below) */
.site-nav {
  margin-top: var(--space-5);
  border-block: 3px double var(--gold);
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0 2.6rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  list-style: none;
}
.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}
.site-nav__item + .site-nav__item::before {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: 50%;
  width: 1.5rem;
  height: .5rem;
  transform: translate(-50%, -50%);
  background: var(--lozenge) center / contain no-repeat;
  pointer-events: none;
}
.site-nav__link {
  display: block;
  padding: .95rem 0 .85rem;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--burgundy), var(--burgundy)) center bottom .55rem / 0 1px no-repeat;
  transition: color .2s var(--ease), background-size .3s var(--ease);
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"],
.site-nav__item:has(.site-nav__sub [aria-current="page"]) > .site-nav__link {
  color: var(--burgundy);
  background-size: 100% 1px;
}
.site-nav__link[aria-current="page"] { font-weight: 700; }

.site-nav__sub-toggle {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: .25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-ink);
}
.site-nav__sub-toggle::before {
  content: "";
  width: .42rem;
  height: .42rem;
  margin-top: -.2rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.site-nav__sub-toggle[aria-expanded="true"]::before { transform: translateY(.2rem) rotate(-135deg); }

.site-nav__sub {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  z-index: 30;
  display: none;
  min-width: 19rem;
  margin: 0;
  padding: .7rem 0;
  list-style: none;
  text-align: left;
  background: var(--vellum);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 4px var(--vellum), inset 0 0 0 5px var(--rule), var(--shadow-lift);
  transform: translateX(-50%);
}
.site-nav__sub::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--vellum);
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
/* invisible bridge so the hover menu survives the gap below the nav rule */
.site-nav__sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.site-nav__sub li { margin: 0; }
.site-nav__sub a {
  display: block;
  padding: .42rem 1.5rem;
  font-size: 1.06rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .15s var(--ease), color .15s var(--ease), padding .2s var(--ease);
}
.site-nav__sub a:hover { background: var(--parchment-2); color: var(--burgundy); padding-left: 1.8rem; }
.site-nav__sub a[aria-current="page"] {
  color: var(--burgundy);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(168, 133, 68, .22), transparent);
}

.site-nav__item--has-sub.is-open > .site-nav__sub,
.no-js .site-nav__item--has-sub:focus-within > .site-nav__sub { display: block; }
@media (hover: hover) and (min-width: 60.0625em) {
  .site-nav__item--has-sub:hover > .site-nav__sub { display: block; }
}

@media (max-width: 75em) {
  .site-nav__list { gap: 0 1.7rem; }
  .site-nav__link { font-size: .8rem; letter-spacing: .1em; }
  .site-nav__item + .site-nav__item::before { left: -.85rem; width: 1.1rem; }
}

/* Mobile navigation (≤ 960px). Without JS the list simply stays open. */
@media (max-width: 60em) {
  .js .nav-toggle { display: flex; }
  .site-nav { margin-top: 0; border-top: 0; }
  .no-js .site-nav { margin-top: var(--space-4); border-top: 3px double var(--gold); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; animation: navIn .25s var(--ease); }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-4);
    text-align: left;
  }
  .site-nav__item { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--rule-soft); }
  .site-nav__item + .site-nav__item::before { display: none; }
  .site-nav__link { flex: 1; padding: .9rem 0; background: none; }
  .site-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .35em; }
  .site-nav__sub-toggle { width: 2.75rem; height: 2.75rem; border-left: 1px solid var(--rule-soft); }
  .site-nav__sub {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0 .6rem;
    border: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
  }
  .site-nav__sub::before { display: none; }
  .no-js .site-nav__sub { display: block; }
  .site-nav__sub a { padding: .55rem 0 .55rem 1.1rem; border-left: 2px solid var(--rule); }
  .site-nav__sub a:hover { padding-left: 1.3rem; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 08 Hero & arch frame ----------------------------------------------------- */
.hero {
  padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--space-8);
}
.hero__inner {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.hero__text {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.hero__text { hyphens: manual; -webkit-hyphens: manual; }
.hero__title { margin-bottom: .2em; }
.hero__title em {
  display: block;
  margin-top: .3em;
  font-family: var(--font-body);
  font-size: .5em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--burgundy);
}
.hero__lede { font-size: var(--step-1); line-height: 1.55; }
.hero__lede + p { color: var(--ink-soft); }
.hero__meta {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero .btn-row { justify-content: center; margin-top: var(--space-5); }
.hero .breadcrumb { justify-content: center; margin-bottom: var(--space-5); }

@media (min-width: 60.0625em) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero--home .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero--plain .hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero--plain { padding-bottom: var(--space-6); }
.hero--home .hero__title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.3rem); }

/* Romanesque arch frame: semicircular head, gold double border, keystone, imposts */
.arch {
  --arch-ratio: 5 / 4;
  --focus: 50% 50%;
  position: relative;
  container-type: inline-size;
  margin: 0 auto;
  width: 100%;
  max-width: 38rem;
}
/* Crop focus modifiers (x position of the subject) */
.arch--focus-0 { --focus: 0% 50%; }
.arch--focus-40 { --focus: 40% 50%; }
.arch--focus-45 { --focus: 45% 50%; }
.arch--focus-58 { --focus: 58% 50%; }
.arch--focus-60 { --focus: 60% 50%; }
.arch__frame {
  position: relative;
  aspect-ratio: var(--arch-ratio);
  border-radius: 50cqw 50cqw 0 0;
  padding: 7px;
  background: var(--parchment);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 7px var(--parchment), 0 0 0 8px var(--gold), var(--shadow-lift);
}
.arch__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus);
  border-radius: calc(50cqw - 7px) calc(50cqw - 7px) 0 0;
  background: var(--parchment-2);
}
.arch__frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -15px;
  z-index: 2;
  width: 22px;
  height: 22px;
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--parchment), inset 0 0 0 4px var(--gold-ink);
  transform: translateX(-50%) rotate(45deg);
}
.arch__frame::after {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  top: calc(50cqw - 4px);
  height: 9px;
  border-block: 1px solid var(--gold);
  background:
    linear-gradient(var(--gold), var(--gold)) left / 12px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) right / 12px 100% no-repeat;
  pointer-events: none;
  -webkit-mask: linear-gradient(90deg, #000 0 16px, transparent 16px calc(100% - 16px), #000 calc(100% - 16px));
  mask: linear-gradient(90deg, #000 0 16px, transparent 16px calc(100% - 16px), #000 calc(100% - 16px));
}
.arch figcaption,
.arch__caption {
  margin-top: 1.4rem;
  font-size: var(--step--1);
  font-style: italic;
  line-height: 1.45;
  text-align: center;
  color: var(--ink-soft);
}
.arch--tall { --arch-ratio: 4 / 5; max-width: 30rem; }
.arch--wide { --arch-ratio: 4 / 3; }
.arch--card { --arch-ratio: 4 / 3; max-width: none; }
.arch--card .arch__frame { padding: 4px; box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--vellum), 0 0 0 5px var(--rule); }
.arch--card .arch__frame img { border-radius: calc(50cqw - 4px) calc(50cqw - 4px) 0 0; }
.arch--card .arch__frame::before { width: 14px; height: 14px; top: -10px; box-shadow: inset 0 0 0 2px var(--vellum); }
.arch--card .arch__frame::after { display: none; }

/* 09 Breadcrumb ------------------------------------------------------------ */
.breadcrumb-bar { display: flex; justify-content: center; padding-top: var(--space-6); }
.breadcrumb-bar + .hero { padding-top: var(--space-5); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: inherit;
  align-items: center;
  gap: .2rem .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.breadcrumb { display: flex; justify-content: center; text-align: center; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.breadcrumb li + li::before {
  content: "";
  width: 1.1rem;
  height: .4rem;
  background: var(--lozenge) center / contain no-repeat;
}
.breadcrumb a { color: var(--ink-soft); text-decoration-color: transparent; }
.breadcrumb a:hover { color: var(--burgundy); text-decoration-color: currentColor; }
.breadcrumb [aria-current="page"] { color: var(--burgundy); }

/* 10 Section heads --------------------------------------------------------- */
.section-head {
  max-width: 44rem;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-head .shield { margin-bottom: var(--space-3); }
.section-head__title { margin-bottom: .3em; }
.section-head__lede { margin: var(--space-4) auto 0; color: var(--ink-soft); font-size: var(--step-0); }
.section-head .ornament { margin-block: var(--space-4); }
.section-foot { margin-top: var(--space-6); text-align: center; }

/* 11 Region tiles (national-park signboards) ------------------------------ */
.region-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.region-tiles > li { margin: 0; display: flex; }
.region-tile {
  --pin: radial-gradient(circle, var(--gold-pale) 0 2px, var(--gold-ink) 2.5px 3px, transparent 3.5px);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 11.5rem;
  padding: 1.5rem 1.4rem 1.25rem;
  color: var(--parchment);
  text-decoration: none;
  background:
    var(--pin) 8px 8px / 10px 10px no-repeat,
    var(--pin) calc(100% - 8px) 8px / 10px 10px no-repeat,
    var(--pin) 8px calc(100% - 8px) / 10px 10px no-repeat,
    var(--pin) calc(100% - 8px) calc(100% - 8px) / 10px 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  outline: 1px solid rgba(217, 190, 128, .55);
  outline-offset: -7px;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), outline-color .3s var(--ease);
}
.region-tile:hover {
  color: var(--vellum);
  transform: translateY(-3px);
  outline-color: var(--gold-pale);
  box-shadow: var(--shadow-lift);
}
.region-tile:focus-visible {
  color: var(--vellum);
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
.region-tile__numeral {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .24em;
  color: var(--gold-pale);
}
.region-tile__name {
  margin: .35rem 0 .3rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.2;
}
.region-tile__area {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.region-tile__places {
  margin: .7rem 0 1rem;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(243, 234, 216, .88);
}
.region-tile__arrow {
  position: relative;
  align-self: flex-end;
  margin-top: auto;
  width: 2.6rem;
  height: 1.1rem;
  background: var(--gold-pale);
  clip-path: polygon(0 30%, 65% 30%, 65% 0, 100% 50%, 65% 100%, 65% 70%, 0 70%);
  transition: transform .3s var(--ease);
}
.region-tile:hover .region-tile__arrow { transform: translateX(4px); }
/* Featured tile: spans two columns and shows a photo under the green varnish.
   <li class="region-tiles__wide"><a class="region-tile region-tile--featured" …><img class="region-tile__photo" … alt=""> … */
@media (min-width: 37em) {
  .region-tiles > .region-tiles__wide { grid-column: span 2; }
}
.region-tile--featured { isolation: isolate; overflow: hidden; }
.region-tile__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.region-tile--featured:hover .region-tile__photo { transform: scale(1.04); }
.region-tile--featured::before,
.region-tile--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.region-tile--featured::before {
  z-index: -1;
  background: linear-gradient(100deg, rgba(34, 56, 44, .97) 0%, rgba(34, 56, 44, .9) 48%, rgba(46, 74, 59, .35) 100%);
}
.region-tile--featured::after {
  background:
    var(--pin) 8px 8px / 10px 10px no-repeat,
    var(--pin) calc(100% - 8px) 8px / 10px 10px no-repeat,
    var(--pin) 8px calc(100% - 8px) / 10px 10px no-repeat,
    var(--pin) calc(100% - 8px) calc(100% - 8px) / 10px 10px no-repeat;
}
.region-tile--featured .region-tile__name { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); }
.region-tile--featured .region-tile__places { max-width: 25rem; }

/* 12 Castle cards & Steckbrief -------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-7) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card-grid > li { margin: 0; display: flex; }
.castle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.25rem 1.25rem 1.4rem;
  background: rgba(251, 246, 235, .7);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.castle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.castle-card:focus-within { box-shadow: 0 0 0 3px var(--forest), var(--shadow-lift); }
.castle-card .arch { margin-bottom: 1.1rem; }
.castle-card__region {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.castle-card__title { margin: 0 0 .5rem; font-size: 1.28rem; }
.castle-card__title a { color: var(--ink); text-decoration: none; }
.castle-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.castle-card__title a:hover { color: var(--burgundy); }
.castle-card__title a:focus-visible { outline: none; }
.castle-card__text { font-size: 1.02rem; line-height: 1.5; }
.castle-card .steckbrief__list { margin-top: auto; }

/* Steckbrief = museum label. Full version:
   <aside class="steckbrief"><p class="steckbrief__title">Steckbrief</p><dl class="steckbrief__list">…</dl></aside> */
.steckbrief {
  position: relative;
  margin: var(--space-6) 0;
  padding: 1.6rem 1.5rem 1.2rem;
  background: var(--vellum);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--parchment-3), var(--shadow-card);
}
.steckbrief::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-pale), var(--gold) 55%, var(--gold-ink));
  box-shadow: 0 1px 2px rgba(43, 33, 24, .4);
  transform: translateX(-50%);
}
.steckbrief__title {
  margin: 0 0 .9rem;
  padding-bottom: .55rem;
  border-bottom: 3px double var(--ink);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-align: center;
}
.steckbrief__list { margin: 0; }
.steckbrief__list > div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: .1rem 1rem;
  padding: .45rem 0;
  border-bottom: 1px dotted var(--stone);
}
.steckbrief__list > div:last-child { border-bottom: 0; }
.steckbrief__list dt {
  padding-top: .2rem;
  hyphens: manual;
  -webkit-hyphens: manual;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.steckbrief__list dd { margin: 0; line-height: 1.4; }
.steckbrief__list--mini {
  position: relative;
  z-index: 2;
  padding: .55rem .8rem;
  background: var(--vellum);
  border: 1px solid var(--rule-soft);
  border-top: 2px solid var(--ink);
  font-size: .95rem;
}
.steckbrief__list--mini > div { grid-template-columns: 6.6rem minmax(0, 1fr); gap: .1rem .6rem; padding: .3rem 0; }
.steckbrief__list--mini dt { font-size: .62rem; letter-spacing: .12em; white-space: nowrap; }
@media (min-width: 60.0625em) {
  .steckbrief--float { float: right; width: 20rem; margin: .3rem 0 1.5rem 2rem; }
}

/* 13 Timeline (Roman numerals) -------------------------------------------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: 1.3rem;
  width: 5px;
  border-inline: 1px solid var(--gold);
  transform: translateX(-50%);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0 1.25rem;
  margin: 0;
  padding-bottom: var(--space-6);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item .shield { position: relative; z-index: 1; }
.timeline__period {
  margin: .2rem 0 .1rem;
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.timeline__title { margin: 0 0 .4rem; font-size: var(--step-1); }
.timeline__content p:last-child { margin-bottom: 0; }
.timeline__examples { font-style: italic; color: var(--ink-soft); font-size: .98rem; }

@media (min-width: 60.0625em) {
  .timeline::before { left: 50%; }
  .timeline__item { grid-template-columns: minmax(0, 1fr) 2.6rem minmax(0, 1fr); gap: 0 2rem; }
  .timeline__item .shield { grid-column: 2; grid-row: 1; }
  .timeline__item:nth-child(odd) .timeline__content { grid-column: 1; grid-row: 1; text-align: right; }
  .timeline__item:nth-child(even) .timeline__content { grid-column: 3; grid-row: 1; }
}

/* inside the narrow article column the timeline stays single-sided */
.article .timeline::before { left: 1.3rem; }
.article .timeline .timeline__item { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 1.25rem; }
.article .timeline .timeline__item .shield { grid-column: 1; }
.article .timeline .timeline__item .timeline__content { grid-column: 2; text-align: left; }

/* 14 Split teaser, compare, heritage register, checklist ------------------ */
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}
@media (min-width: 60.0625em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse > :first-child { order: 2; }
}
.split__text > h2 { margin-bottom: .4em; }
.split__text .ornament { margin-inline: 0; max-width: 14rem; }

/* Burg / Schloss / Festung */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.compare > li { margin: 0; }
.compare__item {
  height: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  background: var(--vellum);
  border-top: 4px solid var(--burgundy);
  box-shadow: inset 0 0 0 1px var(--rule-soft), var(--shadow-card);
}
.compare__icon {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1rem;
  color: var(--forest);
}
.compare__term { margin-bottom: .2rem; font-size: var(--step-2); }
.compare__gloss {
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--burgundy);
}
.compare__item p:last-child { margin-bottom: 0; text-align: left; }

/* UNESCO register */
.heritage-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.heritage-card {
  position: relative;
  padding: 1.9rem 1.6rem 1.6rem;
  background: var(--forest);
  color: var(--parchment);
  box-shadow: inset 0 0 0 6px var(--forest), inset 0 0 0 7px var(--gold-pale), var(--shadow-card);
}
.heritage-card__year {
  display: inline-block;
  margin-bottom: .7rem;
  padding: .2rem .7rem;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--forest-deep);
  background: var(--gold-pale);
}
.heritage-card__title { color: var(--vellum); font-size: var(--step-1); }
.heritage-card p { margin-bottom: .6em; }
.heritage-card p:last-child { margin-bottom: 0; }
.heritage-card a { color: var(--gold-pale); text-decoration-color: rgba(217, 190, 128, .6); }
.heritage-card a:hover { color: var(--vellum); }

.register {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px double var(--gold);
}
.register li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: .2rem 1.25rem;
  margin: 0;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.register__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--burgundy);
  font-variant-numeric: lining-nums;
}
.register__name { font-weight: 600; }
.register__note { grid-column: 2; font-size: .98rem; color: var(--ink-soft); }

/* Checklist */
.checklist { margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.checklist li {
  position: relative;
  margin: 0;
  padding: .7rem 0 .7rem 2.3rem;
  border-bottom: 1px dotted var(--stone);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.05rem;
  width: 1.1rem;
  height: .6rem;
  border-left: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--forest); }

/* Simple info-card for teasers and lists */
.info-card {
  height: 100%;
  padding: 1.5rem;
  background: rgba(251, 246, 235, .75);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-card);
}
.info-card h3 { font-size: 1.15rem; }
.info-card p:last-child { margin-bottom: 0; }

/* 15 Article layout, drop cap, glosses, TOC ------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 0 var(--gutter) var(--space-8);
}
.article { min-width: 0; }
.article > :first-child { margin-top: 0; }
.article__meta {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}

/* Fraktur drop cap: <p class="dropcap">Der erste Absatz …</p> (start with a letter) */
.dropcap::first-letter {
  float: left;
  margin: .06em .14em 0 0;
  padding: .08em .12em .02em;
  font-family: var(--font-initial);
  font-size: 4.4em;
  font-weight: 400;
  line-height: .82;
  color: var(--burgundy);
  background: var(--vellum);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--vellum), inset 0 0 0 4px var(--rule);
}
.dropcap::after { content: ""; display: block; clear: both; }

/* Marginal gloss: inline note on small screens, side note on wide screens */
.gloss {
  margin: var(--space-5) 0;
  padding: .9rem 1rem .9rem 1.1rem;
  font-size: .98rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
  border-left: 3px double var(--gold);
  background: rgba(232, 218, 191, .45);
}
.gloss__label {
  display: block;
  margin-bottom: .25rem;
  font-family: var(--font-display);
  font-size: .66rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.gloss p { margin: 0; }

/* Table of contents */
.toc {
  margin: 0 0 var(--space-6);
  padding: 1.2rem 1.4rem;
  background: rgba(251, 246, 235, .7);
  border: 1px solid var(--rule-soft);
  border-top: 3px double var(--gold);
}
.toc__title {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li { counter-increment: toc; margin: 0; }
.toc a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  padding: .3rem 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}
.toc a::before {
  content: counter(toc, upper-roman) ".";
  font-family: var(--font-display);
  font-size: .78rem;
  padding-top: .15rem;
  color: var(--gold-ink);
}
.toc a:hover,
.toc a.is-active { color: var(--burgundy); }
.toc a.is-active { font-weight: 600; }

@media (min-width: 80em) {
  .article-layout {
    grid-template-columns: 13rem minmax(0, var(--measure)) 13rem;
    column-gap: 3rem;
    justify-content: center;
    max-width: none;
  }
  .article-layout > .article { grid-column: 2; grid-row: 1; }
  .article-layout > .toc {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 1.5rem;
    align-self: start;
    margin: .4rem 0 0;
    padding: 1rem 0 0;
    background: none;
    border: 0;
    border-top: 3px double var(--gold);
  }
  .article-layout > .toc a { font-size: .95rem; }
  .gloss {
    float: right;
    clear: right;
    width: 13rem;
    margin: .3rem -16rem 1rem 0;
    padding: .2rem 0 0 .9rem;
    background: none;
    font-size: .93rem;
  }
}

/* 16 Figures & gallery ----------------------------------------------------- */
.figure { margin: var(--space-6) 0; }
.figure img {
  width: 100%;
  background: var(--parchment-2);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px var(--parchment), 0 0 0 6px var(--rule), var(--shadow-card);
}
.figure figcaption,
.figure__caption {
  margin-top: 1rem;
  padding-left: .9rem;
  font-size: var(--step--1);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
  border-left: 2px solid var(--gold);
}
.figure--arch { margin-block: var(--space-7) var(--space-6); }

.gallery { position: relative; margin: var(--space-6) 0; }
.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16rem, 70%);
  gap: var(--space-5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: .5rem .5rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.gallery__item { scroll-snap-align: start; margin: 0; }
.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--parchment), 0 0 0 5px var(--rule);
}
.gallery__item figcaption {
  margin-top: .8rem;
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-soft);
}
.gallery__controls {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .25rem;
}
.gallery__btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--vellum);
  color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.gallery__btn::before {
  content: "";
  width: .6rem;
  height: .6rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.gallery__btn--prev::before { transform: translateX(2px) rotate(-135deg); }
.gallery__btn:hover:not(:disabled) { background: var(--burgundy); color: var(--parchment); border-color: var(--burgundy); }
.gallery__btn:disabled { opacity: .35; cursor: default; }
@media (min-width: 48em) { .gallery__track { grid-auto-columns: minmax(16rem, 46%); } }

/* 17 Callouts, route box, pull quote -------------------------------------- */
.callout {
  position: relative;
  margin: var(--space-6) 0;
  padding: 1.2rem 1.4rem 1.2rem 1.5rem;
  background: var(--vellum);
  border: 1px solid var(--rule-soft);
  border-left: 5px solid var(--gold);
}
.callout__label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .4rem;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.callout__label::before {
  content: "";
  width: .55rem;
  height: .55rem;
  background: currentColor;
  transform: rotate(45deg);
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--tip { border-left-color: var(--forest); }
.callout--tip .callout__label { color: var(--forest); }
.callout--caution { border-left-color: var(--burgundy); background: rgba(111, 29, 42, .05); }
.callout--caution .callout__label { color: var(--burgundy); }

/* "So kommen Sie hin" – national-park sign */
.route {
  position: relative;
  margin: var(--space-7) 0;
  padding: 1.75rem 1.6rem 1.5rem;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 8px),
    linear-gradient(170deg, var(--forest), var(--forest-deep));
  color: var(--parchment);
  outline: 1px solid rgba(217, 190, 128, .6);
  outline-offset: -7px;
  box-shadow: var(--shadow-card);
}
.route__title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.1rem;
  font-size: var(--step-1);
  color: var(--vellum);
}
.route__title::before {
  content: "";
  flex: none;
  width: 2.2rem;
  height: 1rem;
  background: var(--gold-pale);
  clip-path: polygon(0 30%, 62% 30%, 62% 0, 100% 50%, 62% 100%, 62% 70%, 0 70%);
}
.route__list { margin: 0; }
.route__list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .15rem;
  padding: .7rem 0;
  border-top: 1px solid rgba(217, 190, 128, .3);
}
.route__list dt {
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.route__list dd { margin: 0; }
.route a { color: var(--gold-pale); }
.route a:hover { color: var(--vellum); }
.route :focus-visible { outline-color: var(--gold-pale); }
.route__note {
  margin: 1rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid rgba(217, 190, 128, .3);
  font-size: .95rem;
  font-style: italic;
  color: rgba(243, 234, 216, .88);
}
@media (min-width: 40em) {
  .route__list > div { grid-template-columns: 10rem minmax(0, 1fr); gap: 1.25rem; }
  .route__list dt { padding-top: .25rem; }
}

/* Pull quote */
.pullquote {
  margin: var(--space-7) auto;
  padding: 1.6rem 0 1.4rem;
  max-width: 36rem;
  text-align: center;
  border-block: 3px double var(--gold);
}
.pullquote p {
  margin: 0;
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.35;
  color: var(--burgundy);
  text-wrap: balance;
}
.pullquote footer,
.pullquote cite {
  display: block;
  margin-top: .9rem;
  font-family: var(--font-display);
  font-size: .74rem;
  font-style: normal;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* 18 Tables, FAQ, related links ------------------------------------------- */
.table-wrap {
  margin: var(--space-6) 0;
  overflow-x: auto;
  border: 1px solid var(--rule-soft);
  border-top: 3px double var(--gold);
  background: rgba(251, 246, 235, .7);
  scrollbar-color: var(--gold) transparent;
}
.table {
  width: 100%;
  min-width: 34rem;
  margin: 0;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.4;
}
.table caption {
  padding: .9rem 1rem .4rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.table th,
.table td {
  padding: .7rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-soft);
}
.table thead th {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--parchment-2);
  border-bottom: 1px solid var(--gold);
}
.table tbody th { font-weight: 600; }
.table tbody tr:nth-child(even) { background: rgba(232, 218, 191, .3); }
.table tbody tr:last-child > * { border-bottom: 0; }

.faq { margin: var(--space-6) 0; border-top: 3px double var(--gold); }
.faq__item { border-bottom: 1px solid var(--rule-soft); }
.faq__item > summary {
  position: relative;
  display: block;
  padding: 1rem 3rem 1rem 0;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: "";
  position: absolute;
  right: .6rem;
  top: 50%;
  width: .85rem;
  height: .85rem;
  margin-top: -.42rem;
  background:
    linear-gradient(var(--burgundy), var(--burgundy)) center / 100% 2px no-repeat,
    linear-gradient(var(--burgundy), var(--burgundy)) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq__item[open] > summary::after { transform: rotate(135deg); }
.faq__item > summary:hover { color: var(--burgundy); }
.faq__answer { padding: 0 0 1.1rem; }
.faq__answer > :last-child { margin-bottom: 0; }

.related {
  margin: var(--space-7) 0 0;
  padding-top: var(--space-6);
  border-top: 3px double var(--gold);
}
.related__title {
  margin-bottom: var(--space-5);
  font-size: var(--step-2);
  text-align: center;
}
.related__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rel;
}
.related__list li { margin: 0; counter-increment: rel; display: flex; }
.related__link {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  width: 100%;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--vellum);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--burgundy);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.related__link::before {
  content: counter(rel, upper-roman);
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--gold-ink);
}
.related__link:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-card); border-left-color: var(--forest); }
.related__name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .05em; color: var(--burgundy); }
.related__desc { font-size: .98rem; line-height: 1.4; color: var(--ink-soft); }

/* 19 Glossary & letter index ---------------------------------------------- */
.letter-index {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 var(--space-6);
  padding: .6rem 0;
  background: var(--parchment);
  border-block: 3px double var(--gold);
}
.letter-index ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.letter-index li { margin: 0; }
.letter-index a,
.letter-index span {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}
.letter-index a { color: var(--burgundy); border: 1px solid var(--rule); background: var(--vellum); }
.letter-index a:hover,
.letter-index a.is-active { background: var(--burgundy); color: var(--parchment); border-color: var(--burgundy); }
.letter-index span { color: var(--stone); opacity: .6; }

.glossary { margin-bottom: var(--space-7); scroll-margin-top: 5rem; }
.glossary__letter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-4);
  font-family: var(--font-initial);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  color: var(--burgundy);
}
.glossary__letter::after { content: ""; flex: 1; height: 3px; border-block: 1px solid var(--gold); }
.glossary__list { margin: 0; }
.glossary__entry {
  padding: .9rem 0;
  border-bottom: 1px dotted var(--stone);
  scroll-margin-top: 5rem;
}
.glossary__entry dt {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
}
.glossary__entry dd { margin: .2rem 0 0; }
.glossary__entry dd p:last-child { margin-bottom: 0; }
.glossary__see { font-size: .95rem; font-style: italic; color: var(--ink-soft); }

/* 20 Legal pages ----------------------------------------------------------- */
.legal { font-size: 1.06rem; }
.legal__updated {
  display: inline-block;
  margin: 0 0 var(--space-6);
  padding: .3rem .9rem;
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  background: var(--vellum);
}
.legal h2 {
  margin-top: 2em;
  font-size: var(--step-1);
  padding-bottom: .3em;
  border-bottom: 1px solid var(--rule);
}
.legal h3 { margin-top: 1.5em; font-size: 1.05rem; letter-spacing: .08em; }
.legal--numbered { counter-reset: legal; }
.legal--numbered h2 { counter-increment: legal; }
.legal--numbered h2::before { content: "§ " counter(legal) "  "; color: var(--gold-ink); white-space: pre; }
.legal address { font-style: normal; }

/* 21 Contact form ---------------------------------------------------------- */
.form {
  margin: var(--space-6) 0;
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  background: var(--vellum);
  border: 1px solid var(--rule-soft);
  border-top: 3px double var(--gold);
  box-shadow: var(--shadow-card);
}
.form__field { margin-bottom: var(--space-5); }
.form__label {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.form__hint { display: block; margin-top: .3rem; font-size: .95rem; font-style: italic; color: var(--ink-soft); }
.form__input,
.form__textarea {
  display: block;
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--stone);
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: #FFFDF8;
  font-size: 1.08rem;
  line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form__textarea { min-height: 11rem; resize: vertical; }
.form__input:focus-visible,
.form__textarea:focus-visible {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(46, 74, 59, .35);
}
.form__input:user-invalid,
.form__textarea:user-invalid { border-color: var(--burgundy); }
.form__status {
  margin: var(--space-4) 0 0;
  min-height: 1.6em;
  font-style: italic;
  color: var(--forest);
}
.form__status.is-error { color: var(--burgundy); }
.form__note { margin-top: var(--space-4); font-size: .95rem; color: var(--ink-soft); }

/* Plain email display card */
.mail-card {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1rem;
  padding: 1rem 1.3rem;
  background: var(--vellum);
  border: 1px solid var(--rule);
}
.mail-card__label { font-family: var(--font-display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.mail-card a { font-size: var(--step-1); }

/* 22 Footer ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: calc(var(--space-8) + 18px);
  padding: var(--space-7) 0 var(--space-5);
  background:
    var(--grain),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: rgba(243, 234, 216, .9);
  font-size: 1.02rem;
}
/* crenellated top edge */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 19px;
  background: linear-gradient(90deg, var(--forest) 0 26px, transparent 26px 44px) center top / 44px 100% repeat-x;
}
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 3px;
  border-block: 1px solid rgba(217, 190, 128, .45);
}
.site-footer a { color: var(--parchment); text-decoration-color: rgba(217, 190, 128, .45); }
.site-footer a:hover { color: var(--gold-pale); text-decoration-color: currentColor; }
.site-footer :focus-visible { outline-color: var(--gold-pale); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--space-6) var(--space-5);
}
.footer__brand { grid-column: 1 / -1; display: grid; align-content: start; gap: var(--space-4); max-width: 34rem; }
@media (min-width: 60.0625em) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vellum);
}
.footer__logo svg { width: 2.4rem; height: auto; flex: none; }
.footer__brand p { margin: 0; font-size: 1rem; line-height: 1.5; }
.footer__title {
  margin: 0 0 .8rem;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin: 0; }
.footer__list a,
.footer__list button {
  display: inline-block;
  padding: .22rem 0;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
}
.footer__list a:hover { text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(217, 190, 128, .3);
  font-size: .95rem;
}
.footer__bottom p { margin: 0; }
.footer__disclaimer { max-width: 44rem; font-style: italic; color: rgba(243, 234, 216, .8); }
.textsize {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  max-width: 22rem;
}
.no-js .textsize { display: none; }
.textsize__label { margin-right: .4rem; font-family: var(--font-display); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-pale); }
.textsize button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 .6rem;
  border: 1px solid rgba(217, 190, 128, .6);
  background: transparent;
  color: var(--parchment);
  font-family: var(--font-display);
  font-weight: 700;
}
.textsize button[data-textsize="large"] { font-size: 1.15rem; }
.textsize button[aria-pressed="true"] { background: var(--gold-pale); color: var(--forest-deep); border-color: var(--gold-pale); }
.textsize__hint { flex-basis: 100%; margin: .3rem 0 0; font-size: .85rem; font-style: italic; color: rgba(243, 234, 216, .75); }
.footer__tools { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-5); }
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer__top::before {
  content: "";
  width: .45rem;
  height: .45rem;
  margin-top: .2rem;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

/* 23 Consent banner & dialog ---------------------------------------------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: clamp(.5rem, 2vw, 1.25rem);
  z-index: 60;
  width: min(100% - 1rem, 58rem);
  padding: 1.25rem 1.4rem;
  background: var(--vellum);
  color: var(--ink);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 4px var(--vellum), inset 0 0 0 5px var(--rule), 0 24px 48px -18px rgba(43, 33, 24, .55);
  transform: translateX(-50%);
  animation: consentIn .45s var(--ease) both;
}
@keyframes consentIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.consent__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem 1.1rem;
  align-items: start;
}
.consent__seal { width: 2.6rem; height: auto; margin-top: .2rem; }
.consent__title {
  margin: 0 0 .25rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.consent__text p { margin: 0; font-size: 1rem; line-height: 1.45; }
.consent__text p + p { margin-top: .35rem; }
.consent__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .6rem;
  justify-content: flex-end;
}
.consent__actions .btn { min-height: 2.75rem; padding: .6em 1.1em; font-size: .74rem; }
@media (max-width: 35em) {
  .consent__inner { grid-template-columns: minmax(0, 1fr); }
  .consent__seal { display: none; }
  .consent__actions .btn { flex: 1 1 100%; }
}

.consent-dialog {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.consent-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 27, 20, .62);
  animation: fadeIn .25s var(--ease) both;
}
.consent-dialog__panel {
  position: relative;
  width: min(100%, 36rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  background: var(--parchment);
  background-image: var(--grain);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 5px var(--parchment), inset 0 0 0 6px var(--rule), 0 30px 60px -20px rgba(0, 0, 0, .6);
  animation: dialogIn .3s var(--ease) both;
}
.consent-dialog__panel:focus { outline: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.consent-dialog__title { margin-right: 2.5rem; font-size: var(--step-2); }
.consent-dialog__close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--vellum);
}
.consent-dialog__close::before,
.consent-dialog__close::after {
  content: "";
  grid-area: 1 / 1;
  width: 1rem;
  height: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.consent-dialog__close::after { transform: rotate(-45deg); }
.consent-dialog__close:hover { border-color: var(--burgundy); }
.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--rule-soft);
}
.consent-option__title {
  margin: 0 0 .2rem;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.consent-option p { margin: 0; font-size: 1rem; line-height: 1.45; }
.consent-option__state { font-size: .9rem; font-style: italic; color: var(--ink-soft); }
.consent-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-end;
  padding-top: 1.1rem;
  border-top: 3px double var(--gold);
}

/* Toggle switch – square, heraldic, no pills */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.switch__track {
  position: relative;
  display: block;
  width: 3.4rem;
  height: 1.8rem;
  border: 1px solid var(--ink);
  background: var(--parchment-2);
  transition: background-color .2s var(--ease);
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(1.8rem - 8px);
  height: calc(1.8rem - 8px);
  background: var(--ink);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--forest); border-color: var(--forest); }
.switch input:checked + .switch__track::after { transform: translateX(1.6rem); background: var(--gold-pale); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--forest); outline-offset: 3px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch__track { opacity: .65; }

/* 24 404 ------------------------------------------------------------------- */
.notfound {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-8) var(--gutter);
  text-align: center;
}
.notfound__numeral {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2rem + 8vw, 7rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  text-shadow: 3px 3px 0 rgba(168, 133, 68, .18);
}
.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.4rem;
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.notfound__links li { margin: 0; }

/* 25 Motion & print -------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise .7s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3) { animation-delay: .16s; }
  .hero__text > :nth-child(4) { animation-delay: .24s; }
  .hero__text > :nth-child(5) { animation-delay: .32s; }
  .hero__text > :nth-child(n+6) { animation-delay: .4s; }
  .hero .arch { animation: rise .9s .2s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .region-tile, .route, .heritage-card, .btn { border: 1px solid CanvasText; }
  .shield { forced-color-adjust: none; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-nav, .nav-toggle, .consent, .consent-dialog, .skip-link, .gallery__controls, .footer__tools, .site-footer::before, .site-footer::after { display: none !important; }
  .site-footer { margin-top: 2rem; background: none; color: #000; padding: 1rem 0 0; border-top: 1px solid #000; }
  .site-footer a { color: #000; }
  .footer__grid { display: none; }
  .region-tile, .route, .heritage-card { background: none; color: #000; box-shadow: none; border: 1px solid #000; }
  .region-tile__places, .route__note, .route__list dt, .heritage-card__title { color: #000; }
  .arch__frame { box-shadow: none; }
  .castle-card, .steckbrief, .callout, .figure img { box-shadow: none; break-inside: avoid; }
  .article a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .gloss { float: none; width: auto; margin: 1rem 0; }
  .article-layout > .toc { display: none; }
}
