/* ===== Version 2 – Glas-Design ===== */
:root {
  --bg-1: #0d2420;
  --bg-2: #13362f;
  --bg-3: #1d2b3a;
  --text: #f4f1ea;
  --text-soft: rgba(244, 241, 234, 0.72);
  --gold: #e4c48f;
  --gold-strong: #f0d3a1;

  --glass: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.13);
  --glass-strong: rgba(24, 44, 40, 0.78);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --blur: blur(18px) saturate(140%);

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

html.no-scroll,
html.no-scroll body {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0 0 0.4em;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

h3 {
  font-size: 1.6rem;
}

em {
  font-style: italic;
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== Glas-Grundbaustein ===== */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.glass-strong {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

/* ===== Hintergrund ===== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, var(--bg-2), transparent 60%),
    radial-gradient(ellipse at 100% 100%, var(--bg-3), transparent 55%),
    var(--bg-1);
}

.backdrop-map {
  position: absolute;
  inset: -10%;
  background: url("../assets/img/karte-fern.jpg") center / cover no-repeat;
  opacity: 0.22;
  filter: blur(6px) saturate(80%);
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.05);
  will-change: transform;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -100px;
  background: #2f7d62;
  animation: drift-1 26s ease-in-out infinite alternate;
}

.orb-2 {
  width: 440px;
  height: 440px;
  top: 40%;
  right: -140px;
  background: #b08848;
  opacity: 0.35;
  animation: drift-2 32s ease-in-out infinite alternate;
}

.orb-3 {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: 30%;
  background: #3a5f88;
  opacity: 0.4;
  animation: drift-3 28s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  to { transform: translate(180px, 140px) scale(1.15); }
}

@keyframes drift-2 {
  to { transform: translate(-200px, -120px) scale(0.9); }
}

@keyframes drift-3 {
  to { transform: translate(-160px, -180px) scale(1.2); }
}

/* ===== Kopfleiste ===== */
.header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(var(--max), calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.8rem 0.7rem 1.4rem;
  border-radius: 999px;
  transform: translate(-50%, 0);
  transition: transform 0.5s var(--ease), background 0.3s, top 0.3s;
}

.header.is-hidden {
  transform: translate(-50%, -140%);
}

.header.is-scrolled {
  background: rgba(13, 36, 32, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.brand-crest {
  width: 34px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.nav {
  display: flex;
  gap: 0.2rem;
}

.nav a {
  position: relative;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s, background 0.3s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav a.is-active {
  color: var(--bg-1);
  background: var(--gold);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-solid {
  background: linear-gradient(135deg, var(--gold-strong), #c9a066);
  color: #1b2a22;
  box-shadow: 0 10px 30px rgba(228, 196, 143, 0.25);
}

.btn-solid:hover {
  box-shadow: 0 16px 40px rgba(228, 196, 143, 0.4);
}

/* Lichtreflex beim Überfahren */
.btn-solid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.btn-solid:hover::after {
  transform: translateX(120%);
}

.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ===== Einstieg ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 150px clamp(1rem, 4vw, 2rem) 110px;
}

.hero-title {
  font-size: clamp(2.3rem, 11vw, 7.2rem);
  font-weight: 500;
  line-height: 0.98;
  margin-bottom: 1.6rem;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.2s var(--ease) forwards;
}

.hero-title .line:nth-child(2) > span { animation-delay: 0.15s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.3s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-lead {
  max-width: 38rem;
  margin: 0 0 2.2rem;
  font-size: 1.15rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-stats {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0.5rem 1.6rem;
  min-width: 260px;
}

.hero-stats div {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats div:last-child {
  border-bottom: 0;
}

.hero-stats dt {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--gold-strong);
  font-variant-numeric: tabular-nums;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  transform: translateX(-50%);
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scroll-dot 2s var(--ease) infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* Sponsor-Plakette im Einstieg */
.sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 0.6rem 1.4rem 0.6rem 0.7rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: opacity 1s var(--ease) var(--delay, 0s), filter 1s var(--ease) var(--delay, 0s),
    transform 0.6s var(--ease), background 0.3s, border-color 0.3s;
}

.sponsor-badge:hover {
  background: var(--glass-hover);
  border-color: rgba(228, 196, 143, 0.5);
}

.sponsor-badge img {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.sponsor-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sponsor-badge small {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.sponsor-badge strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-strong);
}

/* ===== Einblend-Animation beim Scrollen ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ===== Abschnitte ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 2rem);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.section-head p:last-child:not(.eyebrow) {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.1rem;
}

/* ===== Projekt ===== */
.project-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.project-cards {
  display: grid;
  gap: 1.5rem;
}

.card {
  position: relative;
  padding: 1.8rem 2rem;
  transition: opacity 1s var(--ease) var(--delay, 0s), filter 1s var(--ease) var(--delay, 0s),
    transform 0.8s var(--ease) var(--delay, 0s), background 0.4s;
  transform-style: preserve-3d;
}

.card:hover {
  background: var(--glass-hover);
}

.card-num {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(228, 196, 143, 0.35);
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

/* Vorher/Nachher */
.compare {
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.compare-stage {
  position: relative;
  flex: 1;
  min-height: 340px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  --pos: 70%;
}

.compare-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}

.compare-after {
  background-color: rgba(228, 196, 143, 0.12);
  background-image: linear-gradient(135deg, rgba(228, 196, 143, 0.18), rgba(47, 125, 98, 0.18));
}

.compare-before {
  background-color: rgba(255, 255, 255, 0.04);
  background-image: linear-gradient(135deg, rgba(120, 120, 120, 0.25), rgba(60, 60, 60, 0.25));
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-layer.has-image .compare-placeholder {
  display: none;
}

.compare-placeholder {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-soft);
}

.compare-placeholder {
  position: absolute;
  top: 50%;
  width: 40%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.compare-before .compare-placeholder {
  left: calc(var(--pos) / 2);
}

.compare-after .compare-placeholder {
  left: calc(var(--pos) + (100% - var(--pos)) / 2);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--gold);
  pointer-events: none;
}

.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-1);
  font-weight: 700;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.compare-tag {
  position: absolute;
  top: 14px;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-left { left: 14px; }
.tag-right { right: 14px; }

.compare input[type="range"] {
  width: 100%;
  margin: 1rem 0 0.25rem;
  accent-color: var(--gold);
}

.compare figcaption {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
}

/* Sponsor-Abschnitt */
.sponsor {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border-color: rgba(228, 196, 143, 0.35);
}

/* Warmer Schimmer in den Wappenfarben */
.sponsor::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -10%;
  width: 55%;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.18), rgba(30, 140, 60, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.sponsor-crest {
  position: relative;
  width: clamp(110px, 16vw, 170px);
  animation: crest-float 6s ease-in-out infinite;
}

.sponsor-crest img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}

/* Lichtreflex, der über das Wappen wandert */
.sponsor-crest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  background-size: 250% 100%;
  -webkit-mask: url("../assets/img/wappen-wachstedt.png") center / contain no-repeat;
  mask: url("../assets/img/wappen-wachstedt.png") center / contain no-repeat;
  animation: crest-shine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes crest-float {
  50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes crest-shine {
  0%, 55% { background-position: 150% 0; }
  100% { background-position: -100% 0; }
}

.sponsor-text {
  position: relative;
}

.sponsor-text h3 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0.6rem;
  color: var(--gold-strong);
}

.sponsor-text p {
  margin: 0;
  max-width: 40rem;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.sponsor-text .eyebrow {
  margin-bottom: 0.6rem;
  color: var(--gold);
}

.sponsor-sign {
  margin-top: 1rem !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem !important;
  color: var(--text) !important;
}

/* ===== Bildstock ===== */
.split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split-text > p {
  color: var(--text-soft);
  font-size: 1.1rem;
}

.split-text strong {
  color: var(--text);
}

.pillar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.pillar-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 196, 143, 0.25), transparent 70%);
  filter: blur(20px);
}

.pillar {
  position: relative;
  width: 100%;
  max-width: 220px;
  overflow: visible;
}

.pillar-draw {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.pillar-wrap.is-visible .pillar-draw {
  animation: draw 2.2s var(--ease) forwards;
}

.pillar-wrap.is-visible .pillar-draw:nth-child(2) { animation-delay: 0.2s; }
.pillar-wrap.is-visible .pillar-draw:nth-child(3) { animation-delay: 0.4s; }
.pillar-wrap.is-visible .pillar-draw:nth-child(4) { animation-delay: 0.55s; }
.pillar-wrap.is-visible .pillar-draw:nth-child(5) { animation-delay: 0.7s; }
.pillar-wrap.is-visible .pillar-draw:nth-child(6) { animation-delay: 0.9s; }
.pillar-wrap.is-visible .pillar-draw:nth-child(7) { animation-delay: 1.1s; }
.pillar-wrap.is-visible .pillar-draw:nth-child(8) { animation-delay: 1.3s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.pillar-height {
  position: absolute;
  right: 0;
  top: 30%;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-strong);
}

.mini-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}

.mini-facts div {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
}

.mini-facts dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.mini-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--gold-strong);
}

/* ===== Sichtachsen ===== */
.axes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.axes-map {
  padding: 1rem;
}

.switcher {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1rem;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.switcher button {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1.3rem;
  border: 0;
  background: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.4s;
}

.switcher button.is-active {
  color: var(--bg-1);
}

.switcher-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--gold);
  transition: transform 0.5s var(--ease);
}

.switcher.is-fern .switcher-pill {
  transform: translateX(100%);
}

.map-stage {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.map-stage img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.5s, transform 1.2s var(--ease), filter 0.5s;
}

.map-stage.is-switching img {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(8px);
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-lines line {
  stroke: var(--gold-strong);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 0.6px rgba(240, 211, 161, 0.9));
  animation: draw 1.4s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
  transition: stroke-width 0.3s, opacity 0.3s;
}

.map-lines.has-focus line {
  opacity: 0.25;
}

.map-lines.has-focus line.is-focus {
  opacity: 1;
  stroke-width: 0.85;
}

.map-points {
  position: absolute;
  inset: 0;
}

.point {
  position: absolute;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 0 0 0 rgba(240, 211, 161, 0.7);
  animation: pop 0.6s var(--ease) forwards, ping 2.6s ease-out infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 0.6s);
}

.point:hover,
.point.is-focus {
  background: #fff;
}

.point.origin {
  width: 18px;
  height: 18px;
  background: #fff;
  border-color: var(--gold);
  cursor: default;
}

@keyframes pop {
  to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(240, 211, 161, 0.7); }
  100% { box-shadow: 0 0 0 18px rgba(240, 211, 161, 0); }
}

.axes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.axes-list li {
  opacity: 0;
  transform: translateX(20px);
  animation: slide-in 0.7s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes slide-in {
  to { opacity: 1; transform: none; }
}

.axes-list button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  text-align: left;
  transition: background 0.3s, transform 0.4s var(--ease);
}

.axes-list button:hover,
.axes-list button:focus-visible {
  background: var(--glass-hover);
  transform: translateX(-4px);
}

.axes-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

.axes-name {
  font-weight: 600;
}

.axes-name small {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.axes-km {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold-strong);
  white-space: nowrap;
}

/* ===== Ziele ===== */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.goal {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  text-align: left;
  overflow: hidden;
  transition: opacity 1s var(--ease) var(--delay, 0s), filter 1s var(--ease) var(--delay, 0s),
    transform 0.8s var(--ease) var(--delay, 0s), background 0.4s, border-color 0.4s;
}

.goal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(228, 196, 143, 0.16), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.goal:hover {
  background: var(--glass-hover);
  border-color: rgba(228, 196, 143, 0.45);
}

.goal:hover::before {
  opacity: 1;
}

.goal-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.6rem;
}

.goal-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: 1;
  color: rgba(228, 196, 143, 0.5);
}

.goal-kat {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.goal-title {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
}

.goal-text {
  display: block;
  margin: 0 0 1.4rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  flex: 1;
}

.goal-data {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.goal-data strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-strong);
}

.goal-more {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

.goal-more::after {
  content: " →";
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.goal:hover .goal-more::after {
  transform: translateX(6px);
}

/* Höhenvergleich */
.heights {
  margin-top: 3rem;
  padding: 2rem;
}

.heights h3 {
  margin: 0;
}

.heights-sub {
  margin: 0 0 2rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.heights-chart {
  position: relative;
  height: 300px;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.4rem, 1.5vw, 1.2rem);
  margin-bottom: 4.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.heights-line {
  position: absolute;
  bottom: var(--line);
  left: 0;
  right: 0;
  border-top: 2px dashed var(--gold);
  pointer-events: none;
  z-index: 1;
}

.heights-line span {
  position: absolute;
  right: 0;
  bottom: 6px;
  font-size: 0.8rem;
  color: var(--gold);
}

.h-bar {
  position: relative;
  flex: 1;
  height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(240, 211, 161, 0.55), rgba(255, 255, 255, 0.06));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: height 1.4s var(--ease), background 0.3s;
  transition-delay: var(--delay, 0s);
}

.h-bar.is-below {
  background: linear-gradient(180deg, rgba(160, 200, 220, 0.45), rgba(255, 255, 255, 0.05));
}

.heights.is-visible .h-bar {
  height: var(--h);
}

.h-bar:hover {
  background: linear-gradient(180deg, rgba(240, 211, 161, 0.85), rgba(255, 255, 255, 0.1));
}

.h-value {
  position: absolute;
  top: -1.7rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold-strong);
  white-space: nowrap;
}

.h-label {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -0.3rem;
  right: -0.3rem;
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: center;
  color: var(--text-soft);
  hyphens: auto;
}

/* ===== Routen ===== */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.route {
  padding: 0.8rem;
  text-align: left;
  transition: opacity 1s var(--ease) var(--delay, 0s), filter 1s var(--ease) var(--delay, 0s),
    transform 0.8s var(--ease) var(--delay, 0s), background 0.4s;
}

.route:hover {
  transform: translateY(-6px);
  background: var(--glass-hover);
}

.route-img {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #fff;
}

.route img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 0.4rem;
  transition: transform 0.8s var(--ease);
}

.route:hover img {
  transform: scale(1.06);
}

.route-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.8rem 0.4rem 0.2rem;
}

.route-cap strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.route-cap span {
  font-size: 0.85rem;
  color: var(--gold);
  white-space: nowrap;
}

/* ===== Footer ===== */
.footer {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  width: calc(100% - 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.6rem 2rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.footer strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
}

.footer p {
  margin: 0.2rem 0 0;
}

.footer-right {
  text-align: right;
}

.footer-sponsor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-sponsor img {
  width: 38px;
  height: auto;
}

.footer-sponsor p {
  margin: 0;
  line-height: 1.25;
}

.footer-sponsor small {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-sponsor strong {
  font-size: 1.15rem;
  color: var(--gold-strong);
}

/* ===== Dialoge ===== */
.modal {
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  padding: 0;
  border-radius: var(--radius);
  color: var(--text);
  overscroll-behavior: contain;
}

.modal[open] {
  animation: modal-in 0.6s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    filter: blur(8px);
  }
}

.modal::backdrop {
  background: rgba(5, 14, 12, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal[open]::backdrop {
  animation: fade 0.5s ease;
}

@keyframes fade {
  from { opacity: 0; }
}

.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 1rem 1rem 0 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s, transform 0.4s var(--ease);
}

.modal-close:hover {
  background: var(--gold);
  color: var(--bg-1);
  transform: rotate(90deg);
}

#detailBody {
  padding: 2.4rem 2.4rem 2.6rem;
}

#detailBody h2 {
  margin-bottom: 0.2rem;
}

.detail-ort {
  margin: 0 0 1.6rem;
  color: var(--text-soft);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0 0 1.6rem;
}

.detail-facts div {
  padding: 0.9rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.detail-facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.detail-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold-strong);
}

.detail-lead {
  font-size: 1.15rem;
}

.detail-list {
  margin: 1.6rem 0;
}

.detail-list div {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(12px);
  animation: slide-in 0.6s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

.detail-list dt {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold);
}

.detail-list dd {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
}

.detail-route {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: zoom-in;
}

.detail-route-cap {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.modal-image {
  width: auto;
  max-width: calc(100% - 2rem);
  padding: 4.2rem 1rem 0.5rem;
}

.modal-image .modal-close {
  position: absolute;
  top: 0;
  right: 0;
}

.modal-image img {
  min-width: min(640px, 86vw);
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  max-height: calc(100dvh - 11rem);
  margin: 0 auto;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: #fff;
  object-fit: contain;
}

#imageCaption {
  margin: 0;
  padding: 0.9rem 0.5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0.5rem 1.2rem;
  }

  .hero-stats div {
    border-bottom: 0;
  }

  .project-grid,
  .axes-layout {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .pillar-wrap {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
    flex-shrink: 0;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .header {
    border-radius: 26px;
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.4rem 0 0.4rem;
  }

  .nav.is-open {
    display: flex;
    animation: slide-in 0.5s var(--ease);
  }

  .nav a {
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  .header {
    padding-left: 1.1rem;
  }

  .brand-text strong {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .brand-text small {
    font-size: 0.7rem;
  }

  .hero {
    padding-top: 170px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-stats div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-stats dd {
    font-size: 2.2rem;
  }

  .mini-facts {
    grid-template-columns: 1fr;
  }

  .compare-stage {
    min-height: 240px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  #detailBody {
    padding: 1.6rem 1.4rem 2rem;
  }

  .heights {
    padding: 1.4rem 1rem;
  }

  .heights-chart {
    height: auto;
    display: grid;
    gap: 0.55rem;
    margin: 0 0 0 6.8rem;
    border-bottom: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .heights-line {
    top: -0.5rem;
    bottom: -0.5rem;
    left: var(--line);
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--gold);
  }

  .heights-line span {
    display: none;
  }

  .h-bar {
    height: 30px;
    width: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(240, 211, 161, 0.55));
    transition: width 1.4s var(--ease), background 0.3s;
    transition-delay: var(--delay, 0s);
  }

  .h-bar.is-below {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(160, 200, 220, 0.45));
  }

  .heights.is-visible .h-bar {
    height: 30px;
    width: var(--h);
  }

  .h-value {
    top: 50%;
    left: auto;
    right: 0.45rem;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text);
  }

  .h-label {
    top: 50%;
    left: auto;
    right: calc(100% + 0.6rem);
    width: 6.2rem;
    transform: translateY(-50%);
    text-align: right;
    font-size: 0.72rem;
  }

  .footer-right {
    text-align: left;
  }

  .brand-crest {
    width: 28px;
  }

  .sponsor {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .sponsor-text p {
    margin-inline: auto;
  }
}

@media (max-width: 380px) {
  .header {
    gap: 0.5rem;
    padding: 0.55rem 0.55rem 0.55rem 0.9rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-crest {
    width: 24px;
  }

  .brand-text strong {
    font-size: 0.85rem;
  }

  .brand-text small {
    font-size: 0.64rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-toggle span:first-child { top: 15px; }
  .nav-toggle span:last-child { top: 23px; }
  .nav-toggle span { left: 11px; right: 11px; }

  .nav-toggle[aria-expanded="true"] span:first-child,
  .nav-toggle[aria-expanded="true"] span:last-child {
    top: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
