:root {
  --ink: #15231f;
  --forest: #1d332b;
  --cream: #f4efe4;
  --paper: #fbf9f4;
  --sand: #d9b36c;
  --sun: #f0a94b;
  --white: #fff;
  --line: rgba(21, 35, 31, 0.15);
  --display: "League Spartan", Impact, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip-link { position: fixed; top: -50px; left: 1rem; z-index: 1000; background: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-size: clamp(.9rem, 1.4vw, 1.15rem); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 32px; }
.brand-mark svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; }
.brand-mark .road { stroke-width: 1.4; stroke-dasharray: 3 3; }
.brand-accent { color: var(--sun); }
.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 3.3rem); font-size: .77rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a { position: relative; padding: .5rem 0; }
.main-nav a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--sun); transition: width .25s; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.menu-button { display: none; padding: .4rem; border: 0; background: transparent; }
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: white; }

.hero { position: relative; min-height: min(900px, 100svh); height: 100svh; display: flex; align-items: center; overflow: hidden; color: white; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,19,.9) 0%, rgba(12,23,21,.58) 42%, rgba(9,16,15,.1) 75%), linear-gradient(0deg, rgba(7,15,13,.72), transparent 43%); }
.hero-grain { position: absolute; inset: 0; opacity: .17; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 2; width: min(720px, 82vw); margin-left: clamp(1.25rem, 9vw, 9.5rem); padding-top: 5rem; }
.eyebrow { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.25rem; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { display: block; width: 34px; height: 2px; background: var(--sun); }
.eyebrow.dark { color: #6f766f; }
h1, h2 { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: -.055em; line-height: .86; }
h1 { font-size: clamp(4.1rem, 8vw, 8.8rem); max-width: 980px; }
h1 em, h2 em { color: var(--sun); font-style: normal; }
.hero-copy { max-width: 540px; margin: 1.8rem 0 2rem; color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 2.1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem 1.25rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.button-primary { background: var(--sun); color: var(--ink); box-shadow: 0 10px 25px rgba(0,0,0,.2); transition: transform .25s, background .25s; }
.button-primary:hover { transform: translateY(-2px); background: #ffb85a; }
.button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.text-link { font-size: .82rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: .3rem; }
.text-link span { color: var(--sun); margin-left: .35rem; }
.journey-card { position: absolute; z-index: 3; right: clamp(1.25rem, 5vw, 5.5rem); bottom: 3.2rem; width: min(330px, calc(100% - 2.5rem)); padding: 1rem 1.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; background: rgba(22,36,31,.82); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(12px); }
.journey-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--sun); font-size: 1.5rem; }
.journey-card span { display: block; margin-bottom: .2rem; color: rgba(255,255,255,.55); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; }
.journey-card strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; }
.journey-card > a { color: var(--sun); font-size: 1.3rem; }
.scroll-cue { position: absolute; left: clamp(1.25rem, 4vw, 4.5rem); bottom: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .8rem; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 1px; height: 42px; background: rgba(255,255,255,.6); }

.places-section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem); background: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 3rem; max-width: 1240px; margin: 0 auto 3.2rem; }
h2 { font-size: clamp(3.2rem, 6vw, 6.8rem); }
.section-heading > p { max-width: 430px; margin: 0 0 .35rem; color: #6e746f; line-height: 1.75; }
.map-shell { position: relative; max-width: 1240px; min-height: 650px; margin: 0 auto; box-shadow: 0 28px 70px rgba(37,47,42,.15); background: #d9d6c9; overflow: hidden; }
#map { position: absolute; inset: 0; z-index: 1; background: #d9d6c9; }

/* Lokaler Leaflet-Fallback: hält Karte, Kacheln und Marker auch dann korrekt
   positioniert, wenn das externe Leaflet-Stylesheet nicht geladen werden kann. */
.leaflet-container { position: relative; overflow: hidden; outline: 0; }
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer { position: absolute; left: 0; top: 0; }
.leaflet-container .leaflet-overlay-pane svg { max-width: none !important; max-height: none !important; }
.leaflet-container img.leaflet-tile {
  display: block;
  width: 256px;
  height: 256px;
  max-width: none !important;
  max-height: none !important;
  padding: 0;
}
.leaflet-tile { visibility: hidden; user-select: none; -webkit-user-drag: none; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-hide { visibility: hidden; }
.leaflet-map-pane canvas { z-index: 100; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-pane > svg path,
.leaflet-interactive { pointer-events: auto; }
.leaflet-top,
.leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; }
.leaflet-top .leaflet-control { margin-top: 12px; }
.leaflet-right .leaflet-control { margin-right: 12px; }
.leaflet-bottom .leaflet-control { margin-bottom: 12px; }
.leaflet-left .leaflet-control { margin-left: 12px; }
.leaflet-control-zoom { overflow: hidden; border: 1px solid rgba(21, 35, 31, .2); background: white; box-shadow: 0 4px 14px rgba(21, 35, 31, .15); }
.leaflet-control-zoom a { display: grid; width: 34px; height: 34px; place-items: center; color: var(--ink); background: white; font-size: 1.25rem; line-height: 1; }
.leaflet-control-zoom a + a { border-top: 1px solid rgba(21, 35, 31, .15); }
.leaflet-control-attribution { padding: 2px 5px; color: #66706a; background: rgba(255, 255, 255, .8); }
.leaflet-control-attribution a { color: #3c6658; }
.leaflet-tooltip { position: absolute; padding: .45rem .65rem; color: var(--ink); background: white; border: 1px solid rgba(21, 35, 31, .15); box-shadow: 0 4px 14px rgba(21, 35, 31, .15); white-space: nowrap; pointer-events: none; }
.place-panel { position: absolute; z-index: 500; right: 1.4rem; bottom: 1.4rem; width: min(355px, calc(100% - 2.8rem)); max-height: calc(100% - 2.8rem); padding: 1.35rem; overflow-y: auto; background: rgba(251,249,244,.96); box-shadow: 0 15px 35px rgba(21,35,31,.22); backdrop-filter: blur(12px); }
.panel-kicker { color: #8a8f8a; font-size: .62rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.place-type { margin: 1rem 0 .35rem; color: var(--sun); font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.place-panel h3 { margin: 0; font-family: var(--display); font-size: 1.85rem; line-height: .95; text-transform: uppercase; }
.place-panel > p:not(.place-type) { margin: .75rem 0; color: #68716c; font-size: .8rem; line-height: 1.5; }
.place-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0; }
.place-meta span { padding: .4rem .65rem; background: #eee9dc; font-size: .68rem; }
.place-meta span:first-child { color: #c37a1f; }
.map-link { display: flex; justify-content: space-between; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 600; }
.map-link span { color: var(--sun); }
.youtube-link { margin-top: 1rem; color: #a9362a; }
.youtube-link span { color: #d94b3d; }
.youtube-link[hidden] { display: none; }
.map-note { position: absolute; z-index: 500; left: 1.2rem; bottom: 1rem; padding: .55rem .7rem; color: #666e69; background: rgba(255,255,255,.88); font-size: .62rem; }
.map-note code { font-size: inherit; }
.leaflet-control-attribution { font-size: 9px !important; }
.leaflet-marker-icon.custom-marker { display: grid !important; place-items: center; width: 34px !important; height: 34px !important; margin: -17px 0 0 -17px !important; border: 3px solid white; border-radius: 50% 50% 50% 0; background: var(--sun); box-shadow: 0 4px 12px rgba(0,0,0,.3); transform: rotate(-45deg); color: var(--ink); font-family: var(--display); font-size: .72rem; font-weight: 800; }
.leaflet-marker-icon.custom-marker span { transform: rotate(45deg); }

.about-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; background: var(--paper); }
.about-photo-wrap { position: relative; min-height: 650px; overflow: hidden; }
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; filter: saturate(.8) contrast(1.05); transform: scale(1.12); }
.about-photo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,28,24,.35), transparent 60%); }
.stamp { position: absolute; z-index: 2; right: -55px; top: 50%; width: 120px; height: 120px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: var(--ink); background: var(--sun); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; transform: translateY(-50%) rotate(-8deg); }
.stamp strong { font-family: var(--display); font-size: 1.65rem; }
.about-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(3rem, 8vw, 8.5rem); }
.about-copy h2 { font-size: clamp(3.2rem, 5vw, 6rem); }
.about-copy > p:not(.eyebrow) { max-width: 520px; margin: 2rem 0; color: #68716c; line-height: 1.85; }
.dark-link { color: var(--ink); border-color: var(--line); }

.member-section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  min-height: 650px;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 9vw, 9.5rem);
  color: white;
  background: var(--forest);
}
.member-copy { max-width: 660px; }
.member-copy h2 { font-size: clamp(3.7rem, 7vw, 7.5rem); }
.member-copy > p:last-child { max-width: 530px; margin: 2rem 0 0; color: rgba(255,255,255,.7); line-height: 1.8; }
.member-card { width: min(100%, 470px); padding: clamp(1.5rem, 4vw, 2.5rem); color: var(--ink); background: var(--paper); box-shadow: 0 25px 60px rgba(0,0,0,.24); }
.member-card h3 { margin: .4rem 0 1.8rem; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); text-transform: uppercase; }
.member-card label { display: block; margin: 1rem 0 .4rem; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.member-card input { width: 100%; min-height: 48px; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: white; font: inherit; }
.member-card input:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.member-login { width: 100%; margin-top: 1.4rem; border: 0; cursor: pointer; }
.member-message { min-height: 1.4em; margin: 1rem 0 0; color: #59635d; font-size: .75rem; line-height: 1.5; }

footer { min-height: 140px; padding: 2rem clamp(1.25rem, 5vw, 5.5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: white; background: var(--ink); }
footer p { color: rgba(255,255,255,.55); font-size: .75rem; }
footer > a:last-child { color: var(--sun); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 820px) {
  .site-header { height: 76px; }
  .menu-button { display: block; z-index: 2; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; padding: 1.5rem; background: var(--ink); }
  .main-nav.open { display: flex; }
  .hero-content { width: calc(100% - 2.5rem); margin: 0 1.25rem; padding-top: 2rem; }
  h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .hero-copy { max-width: 90%; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.4rem; }
  .journey-card, .scroll-cue { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 1.3rem; }
  .map-shell { min-height: 730px; }
  .place-panel {
    right: .75rem;
    bottom: .75rem;
    width: calc(100% - 1.5rem);
    max-height: min(40%, 320px);
    padding: .9rem 1rem;
    border-radius: 2px;
  }
  .place-panel .panel-kicker,
  .place-panel .place-meta { display: none; }
  .place-type { margin: 0 0 .3rem; font-size: .58rem; }
  .place-panel h3 { font-size: 1.45rem; line-height: 1; }
  .place-panel > p:not(.place-type) { margin: .55rem 0; font-size: .74rem; line-height: 1.4; }
  .map-link { padding-top: .6rem; font-size: .68rem; }
  .youtube-link { margin-top: .6rem; }
  .map-note { display: none; }
  .about-section { grid-template-columns: 1fr; }
  .about-photo-wrap { min-height: 500px; }
  .stamp { right: 1.5rem; top: auto; bottom: -50px; transform: rotate(-8deg); }
  .about-copy { padding-top: 6rem; }
  .member-section { grid-template-columns: 1fr; min-height: auto; }
  .member-card { width: 100%; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .brand { font-size: .75rem; }
  .brand-mark { width: 29px; }
  .hero { min-height: 720px; }
  .hero-shade { background: linear-gradient(90deg, rgba(10,22,19,.86), rgba(10,22,19,.28)), linear-gradient(0deg, rgba(7,15,13,.8), transparent 55%); }
  .places-section { padding-left: 1rem; padding-right: 1rem; }
  .map-shell { min-height: 670px; }
  .place-panel { padding: 1.4rem; }
}

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