:root {
  --ink: #11151a;
  --paper: #f2f0eb;
  --muted: #737a80;
  --line: #cbc8c1;
  --green: #087a5b;
  --red: #cb2431;
  --gold: #d4a83f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
img { max-width: 100%; }
a { color: inherit; }

.site-header {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 4.5rem); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; font-size: 1.05rem; }
.brand-mark { font-weight: 900; font-size: 1.35rem; letter-spacing: -.06em; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { text-decoration: none; text-transform: uppercase; font-size: .76rem; letter-spacing: .14em; padding-block: .4rem; }
nav a.active { border-bottom: 2px solid #fff; }

.hero { min-height: 92svh; position: relative; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background: url('images/photo-043.jpg') center 42% / cover no-repeat; transform: scale(1.015); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,9,12,.86) 0%, rgba(5,9,12,.36) 56%, rgba(5,9,12,.1)), linear-gradient(0deg, rgba(5,9,12,.65), transparent 55%); }
.hero-copy { position: relative; z-index: 2; width: min(760px, 90vw); padding: 8rem clamp(1.25rem, 7vw, 7rem) clamp(3.5rem, 8vw, 7rem); }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; font-weight: 700; }
h1 { margin: .7rem 0 1rem; text-transform: uppercase; font-size: clamp(4rem, 11vw, 9.5rem); line-height: .78; letter-spacing: -.075em; }
h1 span { color: transparent; -webkit-text-stroke: 2px #fff; }
.intro { max-width: 620px; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; }
.start-link { display: inline-flex; gap: 1rem; margin-top: 1.5rem; text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 700; text-decoration: none; }
.flag { position: absolute; z-index: 3; right: clamp(1.25rem, 4vw, 4rem); bottom: 3rem; width: 84px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.flag i { display: block; height: 11px; background: #fff; }
.flag i:nth-child(2) { background: var(--green); }
.flag i:nth-child(3) { background: var(--red); }

.team { padding: 5rem clamp(1.25rem, 6vw, 6rem) 4.5rem; scroll-margin-top: 1rem; }
.team-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.team-heading h2 { margin: 0; text-transform: uppercase; font-size: clamp(3rem, 7vw, 7rem); line-height: .86; letter-spacing: -.06em; }
.team-heading > p { max-width: 34rem; margin: 0; color: var(--muted); line-height: 1.65; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 1.5vw, 1.25rem); }
.team-grid figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #ddd; }
.team-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.team-grid figure:hover img { transform: scale(1.025); filter: brightness(.88); }
.team-grid figcaption { position: absolute; inset: auto 0 0; padding: 2.4rem .9rem .75rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.78)); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.stage-nav { padding: 5rem clamp(1.25rem, 6vw, 6rem) 2.5rem; }
.section-kicker { color: var(--red); margin: 0 0 1.4rem; }
.stage-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stage-links a { padding: 1.4rem .8rem 1.3rem 0; text-decoration: none; border-right: 1px solid var(--line); }
.stage-links a:last-child { border: 0; }
.stage-links b { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .14em; margin-bottom: .45rem; }
.stage-links span { display: block; font-size: .92rem; font-weight: 700; overflow-wrap: anywhere; }

.stage { padding: 4.5rem clamp(1.25rem, 6vw, 6rem); scroll-margin-top: 1rem; }
.stage:nth-child(even) { background: var(--ink); color: #fff; }
.stage-heading { display: grid; grid-template-columns: .65fr 1.35fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.stage-number { color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: .16em; }
.stage h2 { margin: .3rem 0 0; text-transform: uppercase; font-size: clamp(2.6rem, 6vw, 6rem); letter-spacing: -.055em; line-height: .9; }
.stage-copy { max-width: 650px; line-height: 1.65; color: var(--muted); }
.stage:nth-child(even) .stage-copy { color: #b9bec2; }
.back-to-top {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem;
  padding: .65rem .9rem; color: #fff; background: var(--red); border: 2px solid var(--red);
  font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-decoration: none; text-transform: uppercase;
}
.back-to-top:hover, .back-to-top:focus-visible { color: var(--red); background: transparent; }
.stage:nth-child(even) .back-to-top:hover,
.stage:nth-child(even) .back-to-top:focus-visible { color: #fff; }

.pirin-map-toggle { margin: -1rem 0 2.5rem; }
.pirin-map-toggle summary {
  display: inline-flex; align-items: center; gap: .65rem; padding: .55rem 0;
  color: var(--gold); cursor: pointer; list-style: none;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.pirin-map-toggle summary::-webkit-details-marker { display: none; }
.pirin-map-toggle summary:hover, .pirin-map-toggle summary:focus-visible { color: #fff; }
.pirin-map-toggle .map-label-open { display: none; }
.pirin-map-toggle[open] .map-label-closed { display: none; }
.pirin-map-toggle[open] .map-label-open { display: inline; }
.pirin-map-toggle figure { margin: 1rem 0 0; padding: clamp(.8rem, 2vw, 1.4rem); background: #090d11; border: 1px solid #343a40; }
.pirin-map-toggle figure button { all: unset; display: block; width: min(100%, 900px); margin-inline: auto; cursor: zoom-in; }
.pirin-map-toggle figure button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.pirin-map-toggle img { display: block; width: min(100%, 900px); max-height: 78vh; margin-inline: auto; object-fit: contain; }
.pirin-map-toggle figcaption { margin-top: .8rem; color: #aeb4b9; font-size: .76rem; text-align: center; }

.route-story { margin: 0 0 4rem; padding: clamp(1.25rem, 3vw, 2.4rem); color: #fff; border: 1px solid #343a40; border-top: 3px solid var(--gold); }
.route-heading { display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 1.5rem; align-items: end; margin-bottom: 2rem; }
.route-heading h3 { margin: 0; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 3rem); line-height: .95; letter-spacing: -.035em; }
.route-heading p { margin: 0; color: #aeb4b9; line-height: 1.55; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1rem; }
.route-grid article { min-width: 0; }
.route-grid button { all: unset; display: block; width: 100%; background: #080b0e; cursor: zoom-in; overflow: hidden; }
.route-grid button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.route-grid img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.route-grid button:hover img { transform: scale(1.02); filter: brightness(.78); }
.route-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .65rem; color: #aeb4b9; font-size: .76rem; text-transform: uppercase; letter-spacing: .13em; }
.route-meta b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--gold); color: var(--ink); }
.route-grid h4 { margin: .9rem 0 .35rem; font-size: 1.05rem; }
.route-grid p { margin: 0; color: #aeb4b9; line-height: 1.5; }

.map-story { margin: 0 0 4rem; padding: clamp(1.25rem, 3vw, 2.4rem); background: #090d11; color: #fff; border-top: 3px solid var(--green); }
.map-heading { display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 1.5rem; align-items: end; margin-bottom: 1.5rem; }
.map-heading h3 { margin: 0; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 3rem); line-height: .95; letter-spacing: -.035em; }
.map-heading p { margin: 0; color: #aeb4b9; line-height: 1.55; }
.map-story button { all: unset; position: relative; display: block; width: 100%; overflow: hidden; background: #172029; cursor: zoom-in; }
.map-story button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.map-story img { display: block; width: 100%; transition: transform .45s ease, filter .45s ease; }
.map-story button:hover img { transform: scale(1.015); filter: brightness(.78); }
.map-story button span { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 1rem; align-items: end; padding: 2.8rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.86)); }
.map-story button strong, .map-story button small { display: block; }
.map-story button strong { font-size: 1rem; }
.map-story button small { color: #c1c6ca; text-align: right; }
.map-overview { margin-bottom: 1rem; }
.map-overview img { aspect-ratio: 2.25 / 1; object-fit: cover; object-position: center 62%; }
.map-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.map-details img { aspect-ratio: 4 / 3; object-fit: cover; }

.gallery { columns: 4 250px; column-gap: 1rem; }
.photo-card { break-inside: avoid; margin: 0 0 1rem; position: relative; background: #ddd; cursor: zoom-in; overflow: hidden; }
.photo-card button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.photo-card img { display: block; width: 100%; height: auto; transition: transform .5s ease, filter .5s ease; }
.photo-card:hover img { transform: scale(1.025); filter: brightness(.72); }
.photo-card figcaption { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem .9rem; color: white; background: linear-gradient(transparent, rgba(0,0,0,.82)); opacity: 0; transform: translateY(.4rem); transition: .25s ease; }
.photo-card:hover figcaption, .photo-card:focus-within figcaption { opacity: 1; transform: none; }
.photo-card strong, .photo-card span { display: block; }
.photo-card strong { font-size: .9rem; }
.photo-card span { margin-top: .25rem; font-size: .72rem; color: rgba(255,255,255,.74); }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1.25rem, 6vw, 6rem); background: #080b0e; color: #c7cbce; font-size: .8rem; }
footer a { text-decoration: none; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; border: 0; padding: 0; background: rgba(5,7,9,.96); color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox[open] { display: grid; grid-template-columns: 5rem 1fr 5rem; align-items: center; }
.lightbox figure { margin: 0; display: grid; place-items: center; max-height: 100vh; padding: 2rem 0; }
.lightbox img { max-height: calc(100vh - 7rem); max-width: calc(100vw - 12rem); object-fit: contain; }
.lightbox figcaption { width: min(900px, 90%); display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; font-size: .85rem; }
.lightbox figcaption span { color: #aeb4b9; }
.lightbox button { border: 0; background: none; color: #fff; cursor: pointer; font-size: 3rem; }
.lightbox .close { position: fixed; top: 1rem; right: 1.5rem; z-index: 2; }
.lightbox .previous, .lightbox .next { height: 100%; }
.lightbox.map-open .previous, .lightbox.map-open .next { visibility: hidden; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  nav { gap: .8rem; }
  nav a:not(.active) { display: none; }
  .hero { min-height: 85svh; }
  .hero-copy { padding-bottom: 4rem; }
  .flag { bottom: 1.5rem; }
  .team { padding-block: 4rem 3.5rem; }
  .team-heading { grid-template-columns: 1fr; gap: 1rem; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .team-grid figcaption { padding: 1.9rem .65rem .55rem; font-size: .7rem; }
  .stage-links { grid-template-columns: 1fr; }
  .stage-links a { border-right: 0; border-bottom: 1px solid var(--line); }
  .stage-heading { grid-template-columns: 1fr; gap: .8rem; }
  .route-heading { grid-template-columns: 1fr; gap: .6rem; }
  .route-grid { grid-template-columns: 1fr; }
  .map-heading { grid-template-columns: 1fr; gap: .6rem; }
  .map-details { grid-template-columns: 1fr; }
  .map-story button span { position: static; padding: .8rem; background: #172029; }
  .map-story button small { text-align: right; }
  .gallery { columns: 2 145px; gap: .55rem; }
  .photo-card { margin-bottom: .55rem; }
  .photo-card figcaption { display: none; }
  footer { flex-direction: column; }
  .lightbox[open] { grid-template-columns: 2.8rem 1fr 2.8rem; }
  .lightbox img { max-width: calc(100vw - 6rem); }
  .lightbox figcaption { flex-direction: column; }
}

/* Touch-Geräte können eine größere CSS-Breite melden als klassische Smartphones. */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .photo-card figcaption,
  .lightbox figcaption { display: none !important; }
}

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