:root {
  --pale: #f5f8fb; --light: #fff; --ink: #172a38; --navy: #101f31; --blue: #244a64;
  --accent: #165fb7; --electric: #74beff; --line: #819cb1; --gutter: clamp(1rem, 4vw, 5rem);
  --nav-offset: 5.3rem; font-family: system-ui, sans-serif; color: var(--ink); background: var(--pale);
  scroll-padding-top: var(--nav-offset);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid #0a62c2; outline-offset: 4px; }
.skip { position: fixed; top: .7rem; left: 1rem; z-index: 4; padding: 1rem; transform: translateY(-165%); background: white; }
.skip:focus { transform: none; }
.site-header {
  position: sticky; inset-block-start: 0; z-index: 3; min-height: 4.1rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: .1rem 1rem; padding: .3rem var(--gutter); background: #f5f8fbf2;
  backdrop-filter: blur(13px); border-bottom: 1px solid #536e88;
}
.wordmark { font-weight: 850; font-size: clamp(1.15rem, 2.8vw, 1.65rem); letter-spacing: -.06em; text-decoration: none; }
.wordmark span { color: #155392; }
nav { display: flex; flex-wrap: wrap; column-gap: clamp(.52rem,2.4vw,2.4rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 690; text-underline-offset: .26em; }
#inhalt:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.055em; }
p { line-height: 1.55; }
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center; gap: clamp(1rem,4vw,4.5rem); padding: clamp(2rem,7vw,7.3rem) var(--gutter);
  color: var(--pale); background: repeating-linear-gradient(90deg, transparent 0 9.95%, #214164 10% 10.1%), #101f31;
}
.hero :focus-visible { outline-color: var(--electric); }
.eyebrow { color: #a7d6ff; font-size: .78rem; font-weight: 770; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin-block: .18em .28em; font-size: clamp(3rem, 6vw, 7rem); line-height: .96; }
.hero-lead { max-width: 30rem; margin-block-end: 1.2rem; }
.hero-visual { position: relative; min-width: 0; padding-block-end: clamp(1.5rem,5vw,4.4rem); }
.hero-frame { margin: 0; overflow: hidden; overflow: clip; background: var(--navy); border: 1px solid #5b86b1; }
.hero-frame img { display: block; width: 100%; aspect-ratio: 1.25; height: auto; object-fit: cover; object-position: center; }
.hero-sequence {
  position: absolute; left: 7%; right: 0; bottom: 0; display: flex; flex-wrap: wrap;
  gap: .3rem 1rem; padding: .6rem .8rem; color: #ddecff; background: #132d4af0; border: 1px solid #5789b2;
  border-inline-start: .22rem solid var(--electric); font-variant-numeric: tabular-nums; font-size: .78rem;
}
.hero-sequence strong { font-weight: 750; color: white; margin-inline-start: .2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: .72rem;
  padding: .7rem 1rem; color: white; background: var(--accent); border: 1px solid var(--accent); border-radius: .3rem;
  font: inherit; font-weight: 730; text-align: center; text-decoration: none; cursor: pointer;
}
.hero .button { color: var(--navy); background: #a7d6ff; border-color: #a7d6ff; }
.button:hover { filter: brightness(.93); }
.section { padding: clamp(2.6rem, 7vw, 8rem) var(--gutter); }
.section-lead { max-width: 57rem; }
.section h2 { font-size: clamp(2.75rem, 5.7vw, 6.35rem); line-height: .95; margin-block-end: .36em; }
.section-lead p { max-inline-size: 41rem; }
.planner { margin-top: 1.8rem; background: white; border: 1px solid #829bb0; border-top: 4px solid var(--accent); }
.planning-choices, .plan-guide, .timeline, .plan-message, .status-jump { padding: clamp(.85rem, 2.6vw, 2rem); }
.planning-choices { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: end; border-bottom: 1px solid #98afc4; }
.planning-choices label { display: grid; gap: .32rem; flex: 1 1 9rem; min-width: 0; font-weight: 690; }
select { min-width: 0; max-width: 100%; width: 100%; min-height: 44px; padding: .45rem .6rem; color: var(--ink); background: var(--pale); border: 1px solid var(--line); font: inherit; border-radius: .25rem; }
.planning-choices .secondary { color: #15395b; background: #dcecff; border-color: #789fc8; }
.plan-guide { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; background: #edf5fd; }
.plan-guide p { min-width: 0; }
.timeline { list-style: none; margin: 0; display: grid; gap: .66rem; }
.timeline-row { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; gap: .55rem 1rem; padding: .6rem .7rem; border: 1px solid #a6bacf; border-left: .26rem solid #a6bacf; }
.timeline-row.is-focus { border-left-color: #0a63bd; background: #eef6ff; }
.timeline-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.timeline-item time { font-weight: 790; color: #145399; font-variant-numeric: tabular-nums; }
.timeline-item h3 { font-size: 1.12rem; }
.duration { color: #37576f; }
.item-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .4rem; }
.item-actions button {
  min-height: 44px; padding: .44rem .6rem; color: var(--ink); background: var(--pale);
  border: 1px solid #829bb0; border-radius: .25rem; font: inherit; font-weight: 675;
  cursor: pointer;
}
.item-actions button:disabled { color: #405669; border-style: dashed; cursor: default; }
.item-actions button[aria-pressed=true] { color: white; background: #1b6348; border-color: #1b6348; }
.plan-message { padding-block: 0; }
.status-jump { display: inline-flex; min-height: 44px; align-items: center; font-weight: 750; text-underline-offset: .25em; }
.tour { background: #dcebfa; }
.tour-map { margin-top: 1.8rem; max-width: 48rem; }
.tour-map svg { display: block; width: 100%; height: auto; }
.tour-map ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem; padding: 0; margin: .4rem 0 0; list-style: none; }
.tour-map strong { display: block; margin-bottom: .28rem; }
.tour-map li { border-top: 1px solid #7899b8; padding-top: .55rem; }
.tour-trace { stroke-dasharray: 1; }
.status { color: var(--pale); background: #162d46; }
.status :focus-visible { outline-color: var(--electric); }
.status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin-block: 1.6rem 1.15rem; }
.status-grid > div { background: #203d59; padding: .95rem; border-bottom: 1px solid #9ab5cc; }
.status-grid strong { display: block; margin-block-start: .45rem; font-size: clamp(1.25rem,3vw,2.2rem); }
.status-grid progress { width: 100%; max-width: 9rem; accent-color: #9bd6ff; }
.status .button { margin-top: .55rem; border-color: #9ab5cc; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1.2rem; padding: 1rem var(--gutter); border-top: 1px solid var(--line); }
@media (max-width: 50rem) {
  .hero { grid-template-columns: minmax(0,1fr); }
  .hero-frame img { aspect-ratio: 1.72; }
  .status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 39rem) {
  .hero { gap: .85rem; }
  .hero-frame img { aspect-ratio: 1.48; }
  .hero-sequence { left: 0; }
  .timeline-row { grid-template-columns: minmax(0,1fr); }
  .item-actions { justify-content: start; }
  .tour-map ol { grid-template-columns: minmax(0,1fr); }
}
@media (orientation: landscape) and (max-height: 29rem) and (min-width: 33rem) {
  .site-header { min-height: 3.5rem; }
  .hero { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); padding-block: .85rem 1.35rem; gap: .9rem; }
  .hero-copy { display: grid; justify-items: start; }
  .hero-copy h1 { font-size: clamp(1.95rem,4.45vw,3rem); }
  .hero-lead { grid-row: 4; margin-block: .55rem 0; line-height: 1.3; }
  .hero-visual { padding-bottom: .75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-frame { animation: control-opening .75s cubic-bezier(.15,.55,.3,1) both; }
  @keyframes control-opening { from { clip-path: inset(0 16% 12% 0); } to { clip-path: inset(0); } }
  .item-actions button:not(:disabled) { transition: outline-offset .18s ease, transform .18s ease; }
  .item-actions button[aria-pressed=true] { transform: translateY(-2px); }
  @supports (animation-timeline: view()) {
    .hero-frame img { animation: control-depth linear both; animation-timeline: view(block); animation-range: entry 0% exit 84%; }
    .tour-trace { animation: diagram-draw linear both; animation-timeline: view(block); animation-range: entry 0% cover 68%; }
    @keyframes control-depth { from { transform: scale(1.025); } to { transform: scale(1.16) translateY(3%); } }
    @keyframes diagram-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  }
}

.templates { background: #e6eef7; }
.template-scenes, .tour-chapters, .handover-strip, .tour-details-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 3vw, 2.45rem);
}
.template-scenes { margin-block-start: 1.65rem; }
.template-scenes article { background: white; }
.template-scenes article > div { padding: clamp(1rem, 2.7vw, 2rem); }
.template-scenes h3 { font-size: clamp(1.45rem, 2.5vw, 2.6rem); margin-block-end: .3rem; }
.template-scenes a { display: inline-flex; min-height: 44px; margin-block-start: .55rem; align-items: center; font-weight: 720; text-underline-offset: .25em; }
.template-scenes figure, .tour-chapters figure, .handover-strip figure, .tour-details figure, .diagram-scene figure, .closing-view {
  min-width: 0; margin: 0; overflow: hidden; overflow: clip;
}
.template-scenes img, .tour-chapters img, .handover-strip img, .tour-details img, .diagram-scene img, .closing-view img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto;
}
.diagram-scene { position: relative; overflow: hidden; overflow: clip; background: #10243b; margin-block: 2rem; }
.diagram-scene img { aspect-ratio: 16 / 8; object-position: center 45%; }
.diagram-scene svg { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tour-chapters, .handover-strip { align-items: start; margin-block: 1.6rem; }
.tour-chapters figure:nth-child(2) { margin-top: clamp(.4rem, 5vw, 4.5rem); }
.tour-chapters figure:nth-child(3) { margin-top: clamp(.4rem, 9vw, 8rem); }
.tour figure figcaption { margin-top: .5rem; padding: 0 .025rem .25rem; }
.handover-strip { border-top: 1px solid #6d8ead; padding-top: 1rem; margin-block-start: 1.8rem; }
.handover-strip img { aspect-ratio: 16 / 8; }
.tour-details { border-top: 1px solid #6d8ead; margin-top: 1.65rem; }
.tour-details summary { padding: .8rem 0; cursor: pointer; font-weight: 720; }
.tour-details-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.closing { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); align-items: center; gap: clamp(1.1rem, 4vw, 4.5rem); background: #101f31; color: var(--pale); }
.closing :focus-visible { outline-color: var(--electric); }
.closing .button { margin-top: 1rem; }
.closing-view img { aspect-ratio: 16 / 10; }
@media (max-width: 58rem) {
  .tour-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .template-scenes, .tour-chapters, .handover-strip, .closing { grid-template-columns: minmax(0, 1fr); }
  .tour-chapters figure:nth-child(2), .tour-chapters figure:nth-child(3) { margin: 0; }
}
@media (max-width: 26rem) {
  .tour-details-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .timeline-row.has-moved { animation: plan-moved 300ms cubic-bezier(.15,.55,.3,1); }
  @keyframes plan-moved { from { transform: translateX(7px); } to { transform: none; } }
  @supports (animation-timeline: view()) {
    .diagram-scene svg { display: block; animation: from-diagram linear both; animation-timeline: view(block); animation-range: entry 0% cover 55%; }
    .diagram-scene figure { animation: to-photo linear both; animation-timeline: view(block); animation-range: entry 0% cover 55%; }
    .tour-chapters figure { animation: unslot linear both; animation-timeline: view(block); animation-range: entry 0% entry 90%; }
    .tour-chapters figure:nth-child(2) { animation-range: entry 0% entry 55%; }
    .tour-chapters figure:nth-child(3) { animation-range: entry 4% entry 70%; }
    .closing-view img { animation: closing-depth linear both; animation-timeline: view(block); animation-range: entry 0% cover 82%; }
    @keyframes from-diagram { from { opacity: 1; } to { opacity: 0; } }
    @keyframes to-photo { from { clip-path: inset(14% 12% 9% 12%); } to { clip-path: inset(0); } }
    @keyframes unslot { from { transform: translateY(9%); clip-path: inset(10% 12% 0 8%); } to { transform: none; clip-path: inset(0); } }
    @keyframes closing-depth { from { transform: scale(1.095) translateY(-2%); } to { transform: scale(1.015); } }
  }
}
