/* ============================================
   Alpen Landschaftsschule – styles.css
   Alpine Editorial-Ästhetik
   ============================================ */

/* ——— Reset & Basis ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Farbpalette */
  --steinweiss: #f6f3ec;
  --steinweiss-2: #efebe1;
  --tannengruen: #2d4a2d;
  --tannengruen-2: #4a6b3e;
  --tannengruen-3: #7d9468;
  --grau: #8a8470;
  --grau-hell: #c4bdb0;
  --grau-dunkel: #5a5240;
  --sand: #e8e2cf;
  --sand-2: #d4cdb5;
  --rot: #a6453c;
  --rot-dunkel: #8a3530;
  --schwarz: #1a1a18;
  --weiss: #ffffff;

  /* Typografie */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --header-h: 80px;

  /* Übergänge */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--grau-dunkel);
  background: var(--steinweiss);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ——— Skip-Link ——— */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--tannengruen);
  color: var(--steinweiss);
  padding: 10px 18px;
  z-index: 2000;
  font-size: 14px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ——— Container & Sections ——— */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  margin-bottom: 64px;
  max-width: 720px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: 24px;
  position: relative;
  padding-left: 32px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--rot);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--tannengruen);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.section-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--grau-dunkel);
  max-width: 620px;
  opacity: 0.85;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 16px 32px;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--tannengruen);
  color: var(--steinweiss);
  border-color: var(--tannengruen);
}
.btn-primary:hover {
  background: var(--rot);
  border-color: var(--rot);
  transform: translateY(-2px);
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(246, 243, 236, 0);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 243, 236, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--sand-2);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--steinweiss);
  transition: color 0.4s var(--ease);
}
.site-header.scrolled .logo { color: var(--tannengruen); }

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}
.main-nav a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--steinweiss);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.site-header.scrolled .main-nav a { color: var(--grau-dunkel); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--rot);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover { color: var(--rot); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--steinweiss);
  transition: all 0.3s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--tannengruen); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease-out) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,24,0.35) 0%, rgba(26,26,24,0.25) 40%, rgba(26,26,24,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steinweiss);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}
.hero-eyebrow .line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--steinweiss);
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1.02;
  color: var(--steinweiss);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(246, 243, 236, 0.9);
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}

.hero-content .btn {
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  color: var(--steinweiss);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: var(--steinweiss);
  position: relative;
  overflow: hidden;
}
.hero-scroll-hint .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--rot);
  animation: scrollDown 2s var(--ease) infinite;
}
@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}

.hero-coords {
  position: absolute;
  bottom: 40px;
  right: 32px;
  z-index: 2;
  color: rgba(246, 243, 236, 0.7);
  font-size: 11px;
  letter-spacing: 0.15em;
  font-variant-numeric: tabular-nums;
}

/* ——— Section: Über ——— */
.section-about {
  background: var(--steinweiss);
  padding-top: 140px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text .lead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--tannengruen);
  margin-bottom: 28px;
  font-weight: 500;
}
.about-text p {
  margin-bottom: 24px;
}

.about-list {
  margin-top: 36px;
  border-top: 1px solid var(--sand-2);
}
.about-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sand-2);
  font-size: 15px;
  color: var(--grau-dunkel);
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.about-list li:hover {
  padding-left: 12px;
  color: var(--tannengruen);
}
.about-list .num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--rot);
  min-width: 28px;
}

.about-figure {
  position: relative;
}
.about-figure img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  filter: brightness(0.97);
}
.about-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--grau);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ——— Section: Lernprogramme ——— */
.section-programs {
  background: var(--steinweiss-2);
  border-top: 1px solid var(--sand-2);
  border-bottom: 1px solid var(--sand-2);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--steinweiss);
  padding: 36px 32px;
  border: 1px solid var(--sand-2);
  transition: all 0.4s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  border-color: var(--tannengruen-3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(45, 74, 45, 0.2);
}
.program-card-wide {
  grid-column: span 3;
  background: var(--tannengruen);
  color: var(--steinweiss);
  border-color: var(--tannengruen);
}
.program-card-wide:hover {
  border-color: var(--rot);
  background: var(--rot-dunkel);
  box-shadow: 0 20px 40px -20px rgba(166, 69, 60, 0.4);
}

.program-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.program-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--sand-2);
  line-height: 1;
}
.program-card-wide .program-num { color: rgba(246, 243, 236, 0.4); }
.program-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rot);
  font-weight: 500;
}
.program-card-wide .program-tag { color: var(--sand); }

.program-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--tannengruen);
  margin-bottom: 14px;
  line-height: 1.2;
}
.program-card-wide h3 { color: var(--steinweiss); }

.program-card p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.program-meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--grau);
  letter-spacing: 0.02em;
  padding-top: 20px;
  border-top: 1px solid var(--sand-2);
}
.program-card-wide .program-meta {
  color: var(--sand);
  border-top-color: rgba(246, 243, 236, 0.2);
}

/* ——— Section: Alpenwissen (Akkordeon) ——— */
.section-knowledge {
  background: var(--steinweiss);
}

.accordion {
  max-width: 900px;
  border-top: 1px solid var(--sand-2);
}

.accordion-item {
  border-bottom: 1px solid var(--sand-2);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  transition: padding-left 0.3s var(--ease);
}
.accordion-header:hover { padding-left: 12px; }

.acc-num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--rot);
  min-width: 32px;
}

.acc-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 500;
  color: var(--tannengruen);
  flex-grow: 1;
  transition: color 0.3s var(--ease);
}
.accordion-item.open .acc-title { color: var(--rot); }

.acc-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}
.acc-icon::before,
.acc-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--tannengruen);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.acc-icon::before {
  width: 16px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.acc-icon::after {
  width: 1.5px;
  height: 16px;
  transform: translate(-50%, -50%);
}
.accordion-item.open .acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.accordion-item.open .acc-icon::before { background: var(--rot); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.accordion-item.open .accordion-body {
  max-height: 800px;
}

.accordion-inner {
  padding: 0 0 32px 56px;
  max-width: 760px;
}
.accordion-inner p {
  margin-bottom: 16px;
  line-height: 1.75;
}
.accordion-inner em {
  font-style: italic;
  color: var(--rot);
}
.acc-list {
  margin-top: 16px;
  padding-left: 0;
}
.acc-list li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--sand-2);
  font-size: 15px;
}
.acc-list li strong {
  color: var(--tannengruen);
  font-weight: 600;
}

/* ——— Section: Höhenstufen-Diagramm ——— */
.section-layers {
  background: var(--steinweiss-2);
  border-top: 1px solid var(--sand-2);
  border-bottom: 1px solid var(--sand-2);
}

.layers-diagram {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--steinweiss);
  padding: 48px;
  border: 1px solid var(--sand-2);
}

.layers-stage {
  position: relative;
}

.layers-svg-wrap {
  position: relative;
  width: 100%;
}
.layers-svg {
  width: 100%;
  height: auto;
  display: block;
}

.layers-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: top 0.4s var(--ease);
}
.marker-dot {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rot);
  border: 3px solid var(--steinweiss);
  box-shadow: 0 2px 8px rgba(166, 69, 60, 0.4);
  transition: top 0.4s var(--ease);
}
.marker-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rot);
  opacity: 0.4;
  transition: top 0.4s var(--ease);
}
.marker-label {
  position: absolute;
  right: 4px;
  background: var(--rot);
  color: var(--steinweiss);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  transition: top 0.4s var(--ease);
}

.layers-controls {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.layers-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.slider-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grau);
  font-weight: 500;
}

.altitude-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--sand-2);
  outline: none;
  border-radius: 0;
}
.altitude-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--rot);
  border: 3px solid var(--steinweiss);
  box-shadow: 0 2px 8px rgba(166, 69, 60, 0.3);
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s var(--ease);
}
.altitude-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.altitude-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--rot);
  border: 3px solid var(--steinweiss);
  box-shadow: 0 2px 8px rgba(166, 69, 60, 0.3);
  cursor: pointer;
  border-radius: 50%;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--grau);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.layers-info {
  background: var(--steinweiss-2);
  padding: 28px;
  border-left: 3px solid var(--rot);
}
.info-zone {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--tannengruen);
  margin-bottom: 4px;
  transition: color 0.3s var(--ease);
}
.info-altitude {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--rot);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.info-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--grau-dunkel);
  margin-bottom: 18px;
}
.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.info-tags span {
  font-size: 12px;
  padding: 5px 12px;
  background: var(--steinweiss);
  border: 1px solid var(--sand-2);
  color: var(--grau-dunkel);
  letter-spacing: 0.02em;
}

/* ——— Section: Gesteine ——— */
.section-rocks {
  background: var(--steinweiss);
}

.rocks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.rock-card {
  background: var(--steinweiss-2);
  padding: 32px 28px;
  border: 1px solid var(--sand-2);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.rock-card:hover {
  background: var(--steinweiss);
  border-color: var(--tannengruen-3);
  transform: translateY(-4px);
}

.rock-visual {
  width: 100%;
  aspect-ratio: 1;
  background: var(--steinweiss);
  border: 1px solid var(--sand-2);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rock-visual svg {
  width: 100%;
  height: 100%;
}

.rock-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--tannengruen);
  margin-bottom: 6px;
}
.rock-formula {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rot);
  font-weight: 500;
  margin-bottom: 14px;
  font-family: var(--font-sans);
}
.rock-card p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}
.rock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--sand-2);
}
.rock-tags span {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--sand);
  color: var(--grau-dunkel);
  letter-spacing: 0.03em;
}

/* ——— Section: Pflanzenwelt ——— */
.section-plants {
  background: var(--steinweiss-2);
  border-top: 1px solid var(--sand-2);
  border-bottom: 1px solid var(--sand-2);
}

.plants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.plant-card {
  background: var(--steinweiss);
  border: 1px solid var(--sand-2);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.plant-card:hover {
  border-color: var(--tannengruen-3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(45, 74, 45, 0.25);
}

.plant-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.plant-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.plant-card:hover .plant-image img {
  transform: scale(1.06);
}

.plant-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.plant-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sand-2);
}
.plant-latin {
  font-size: 12px;
  font-style: italic;
  color: var(--grau);
  letter-spacing: 0.02em;
}
.plant-zone {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rot);
  font-weight: 500;
}
.plant-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--tannengruen);
  margin-bottom: 10px;
}
.plant-card p {
  font-size: 14px;
  line-height: 1.65;
  flex-grow: 1;
}

/* ——— Section: Interaktives Höhenprofil ——— */
.section-profile {
  background: var(--steinweiss);
}

.profile-panel {
  background: var(--steinweiss-2);
  border: 1px solid var(--sand-2);
  padding: 40px;
}

.profile-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--sand-2);
  flex-wrap: wrap;
}
.profile-tab {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  color: var(--grau);
  position: relative;
  transition: color 0.3s var(--ease);
  letter-spacing: 0.02em;
}
.profile-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--rot);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.profile-tab:hover { color: var(--tannengruen); }
.profile-tab.active {
  color: var(--tannengruen);
}
.profile-tab.active::after { transform: scaleX(1); }

.profile-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.profile-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--tannengruen);
  line-height: 1.1;
  margin-bottom: 6px;
}
.profile-region {
  font-size: 14px;
  color: var(--grau);
  letter-spacing: 0.02em;
}
.profile-stats {
  display: flex;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat-val {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--rot);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grau);
  margin-top: 6px;
}

.profile-svg-wrap {
  position: relative;
  background: var(--steinweiss);
  border: 1px solid var(--sand-2);
  padding: 24px;
}
.profile-svg {
  width: 100%;
  height: 280px;
  display: block;
}

.profile-slider-wrap {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.profile-slider {
  -webkit-appearance: none;
  appearance: none;
  flex-grow: 1;
  height: 4px;
  background: var(--sand-2);
  outline: none;
}
.profile-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--rot);
  border: 3px solid var(--steinweiss);
  box-shadow: 0 2px 8px rgba(166, 69, 60, 0.3);
  cursor: pointer;
  border-radius: 50%;
}
.profile-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--rot);
  border: 3px solid var(--steinweiss);
  box-shadow: 0 2px 8px rgba(166, 69, 60, 0.3);
  cursor: pointer;
  border-radius: 50%;
}
.profile-readout {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 160px;
}
#readout-altitude {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--tannengruen);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
#readout-zone {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rot);
  font-weight: 500;
  margin-top: 4px;
}

.profile-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--grau-dunkel);
  line-height: 1.7;
  font-style: italic;
  max-width: 700px;
}

/* ——— Section: Feldbeobachtungen ——— */
.section-field {
  background: var(--steinweiss-2);
  border-top: 1px solid var(--sand-2);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.field-card {
  padding: 32px 28px;
  background: var(--steinweiss);
  border: 1px solid var(--sand-2);
  transition: all 0.4s var(--ease);
}
.field-card:hover {
  border-color: var(--tannengruen-3);
  transform: translateY(-4px);
}
.field-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--sand-2);
  line-height: 1;
  margin-bottom: 20px;
}
.field-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--tannengruen);
  margin-bottom: 12px;
  line-height: 1.2;
}
.field-card p {
  font-size: 14px;
  line-height: 1.65;
}

.field-figure {
  position: relative;
  overflow: hidden;
}
.field-figure img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.field-figure:hover img { transform: scale(1.04); }
.field-figure figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(26,26,24,0.8));
  color: var(--steinweiss);
  padding: 40px 32px 24px;
  font-size: 14px;
  font-style: italic;
}

/* ——— Section: Kontakt ——— */
.section-contact {
  background: var(--steinweiss);
  border-top: 1px solid var(--sand-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.contact-block h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rot);
  font-weight: 500;
  margin-bottom: 12px;
}
.contact-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--grau-dunkel);
}
.contact-block a {
  color: var(--tannengruen);
  transition: color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.contact-block a:hover {
  color: var(--rot);
  border-bottom-color: var(--rot);
}

.contact-form {
  background: var(--steinweiss-2);
  padding: 40px;
  border: 1px solid var(--sand-2);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.form-field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grau);
  font-weight: 500;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 16px;
  background: var(--steinweiss);
  border: 1px solid var(--sand-2);
  color: var(--grau-dunkel);
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--tannengruen);
}
.form-field.invalid input,
.form-field.invalid textarea {
  border-color: var(--rot);
}
.form-error {
  font-size: 12px;
  color: var(--rot);
  margin-top: 6px;
  display: none;
}
.form-field.invalid .form-error { display: block; }

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}
.form-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  color: var(--tannengruen);
  font-weight: 500;
}
.form-status.error { color: var(--rot); }

/* ——— Footer ——— */
.site-footer {
  background: var(--tannengruen);
  color: var(--sand);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246, 243, 236, 0.15);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-mark {
  width: 40px;
  height: 40px;
  color: var(--sand);
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--steinweiss);
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--sand-2);
  opacity: 0.8;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  color: var(--sand);
  transition: color 0.3s var(--ease);
  position: relative;
}
.footer-nav a:hover { color: var(--steinweiss); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: var(--sand-2);
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 12px;
}

/* ——— Scroll-Animationen ——— */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ——— Responsive ——— */
@media (max-width: 1080px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card-wide { grid-column: span 2; }
  .rocks-grid { grid-template-columns: repeat(2, 1fr); }
  .plants-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .layers-diagram { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-figure img { height: 400px; }
}

@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .container { padding: 0 24px; }
  .section-head { margin-bottom: 48px; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--steinweiss);
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 999;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li {
    border-bottom: 1px solid var(--sand-2);
  }
  .main-nav a {
    display: block;
    padding: 18px 0;
    color: var(--grau-dunkel) !important;
    font-size: 16px;
  }
  .nav-toggle { display: flex; }

  .hero-title { font-size: clamp(2.2rem, 9vw, 3.6rem); }
  .hero-coords { display: none; }

  .profile-card-top { flex-direction: column; }
  .profile-stats { gap: 20px; }
  .profile-slider-wrap { flex-direction: column; align-items: stretch; }
  .profile-readout { flex-direction: row; align-items: center; gap: 16px; justify-content: space-between; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }

  .programs-grid,
  .rocks-grid,
  .plants-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .program-card-wide { grid-column: span 1; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .layers-diagram { padding: 24px; }
  .profile-panel { padding: 24px; }
  .profile-tabs { gap: 0; }
  .profile-tab { padding: 12px 16px; font-size: 13px; }

  .field-figure img { height: 280px; }

  .footer-top { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .accordion-inner { padding-left: 0; }
  .accordion-header { gap: 16px; }
}

@media (max-width: 400px) {
  .logo-text { font-size: 14px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* ——— Reduzierte Bewegung ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-image { transform: scale(1); }
  .reveal { opacity: 1; transform: none; }
}