:root {
  --bg: #0b0f16;
  --panel: rgba(11, 15, 22, 0.95);
  --text: #ffffff;
  --muted: #a4b3c6;
  --muted-2: #8a9ba8;
  --accent: #e74c3c;
  --accent-2: #f39c12;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

/* HERO SECTION */
.intro-hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(to bottom, #1c252c, #0b0f16);
  padding: 60px 20px;
  text-align: center;
}

.intro-content {
  max-width: 900px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  background: rgba(231, 76, 60, 0.2);
  color: #ff9f93;
  border: 1px solid rgba(231, 76, 60, 0.4);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.intro-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-top: 25px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.intro-hero h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: var(--accent);
  margin: 16px 0 28px;
  font-weight: 400;
}

.context-text {
  max-width: 72ch;
  margin: 0 auto 45px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
}

/* INTERAKTIVE NAVIGATION BUTTONS */
.next-level-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.25s ease-in-out;
  width: 100%;
  justify-content: center;
}

.next-level-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  transform: translateY(-2px);
}

.next-level-btn .btn-arrow {
  transition: transform 0.2s ease;
}

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

.hero-btn {
  width: auto;
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}
.hero-btn:hover { background: #c0392b; border-color: #c0392b; }

/* SCROLLEBENEN & NAHTLOSE ÜBERGÄNGE */
.scroll-section {
  position: relative;
  width: 100%;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

#sec-smoke { background: linear-gradient(to bottom, #0b0f16, #141a24); }
#sec-crater { background: linear-gradient(to bottom, #141a24, #18202c); }
#sec-flank { background: linear-gradient(to bottom, #18202c, #13241b); }
#sec-base { background: linear-gradient(to bottom, #13241b, #2f2018); }
#sec-interior { background: linear-gradient(to bottom, #2f2018, #1b0f0b); }
#sec-plates { background: linear-gradient(to bottom, #1b0f0b, #050302); }
#sec-summary { background: linear-gradient(to bottom, #050302, #0b0f16); }

/* VISUELLE SPUR UND VULKANKÖRPER */
.volcano-lane {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(340px, 45vw, 750px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.volcano-lane.wide-lane { width: clamp(360px, 65vw, 1050px); pointer-events: auto; }
.volcano-component { position: absolute; inset: -2px 0; }

/* Pulsierender Magmaschlot */
.magma-conduit {
  position: absolute;
  width: clamp(20px, 1.4vw, 30px);
  height: 102%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, #e65100, #ff9100, #e65100);
  box-shadow: 0 0 30px rgba(255, 112, 67, 0.8);
  z-index: 4;
}

/* DYNAMISCHER RAUCH / ASCHEWOLKE EFFECT */
.smoke-plume-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 100%;
  z-index: 2;
}
.dynamic-crater-smoke { bottom: -40%; height: 140%; }
.puff {
  position: absolute;
  background: radial-gradient(circle, rgba(132,143,153,0.4) 0%, rgba(90,100,110,0.1) 50%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: floatSmoke 7s infinite linear;
}
.p-1 { width: 90px; height: 90px; animation-delay: 0s; }
.p-2 { width: 130px; height: 130px; animation-delay: 1.8s; }
.p-3 { width: 100px; height: 100px; animation-delay: 3.5s; }
.p-4 { width: 160px; height: 160px; animation-delay: 5.2s; }

@keyframes floatSmoke {
  0% { bottom: 0%; opacity: 0; transform: translateX(-50%) scale(0.4); filter: blur(5px); }
  15% { opacity: 0.7; }
  50% { transform: translateX(-30%) scale(1.2); filter: blur(10px); }
  80% { opacity: 0.3; }
  100% { bottom: 105%; opacity: 0; transform: translateX(-70%) scale(2.2); filter: blur(25px); }
}

/* Ebene 1: Aschewolkenunterlage */
.visual-ash-plume {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 125%;
  background: radial-gradient(circle at 50% 95%, rgba(108,122,137,0.6) 0%, rgba(44,53,64,0.3) 45%, transparent 75%);
  filter: blur(20px);
}
.gas-cloud {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 60%;
  height: 30%;
  background: radial-gradient(circle, rgba(255,235,59,0.12) 0%, transparent 60%);
  filter: blur(30px);
}

/* GEFAHRENZONEN (HAZARD OVERLAYS) */
.hazard-overlay {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
  animation: hazardPulse 2.5s infinite alternate ease-in-out;
}

@keyframes hazardPulse {
  0% { opacity: 0.25; }
  100% { opacity: 0.55; }
}

.zone-red-peak {
  top: 38%;
  left: 35%;
  width: 30%;
  height: 25%;
  background: repeating-linear-gradient(45deg, #c0392b, #c0392b 10px, #e74c3c 10px, #e74c3c 20px);
  border: 2px dashed #ff3d00;
  color: #fff;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.zone-orange-flank {
  top: 0;
  right: 22%;
  width: 120px;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(230,126,34,0.4), rgba(230,126,34,0.4) 10px, rgba(241,196,15,0.4) 10px, rgba(241,196,15,0.4) 20px);
  border-left: 2px dotted #d35400;
  border-right: 2px dotted #d35400;
  color: #ffcc80;
  clip-path: polygon(15% 0%, 35% 20%, 20% 50%, 45% 80%, 25% 100%, 75% 100%, 85% 70%, 65% 40%, 90% 15%, 55% 0%);
}

/* Ebene 2: Kratersegment */
.volcano-component.peak {
  clip-path: polygon(30% 35%, 70% 35%, 88% 100%, 12% 100%);
  background: linear-gradient(to bottom, #34495e, #2c3e50);
}
.lava-glow {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(50px, 6vw, 95px);
  height: 10px;
  background: #fff9c4;
  box-shadow: 0 0 30px #ff3d00, 0 0 12px #ffffff;
  border-radius: 50%;
  z-index: 5;
}

/* Ebene 3: Flankensegment */
.volcano-component.flank {
  clip-path: polygon(12% 0%, 88% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(to bottom, #2c3e50, #162a20);
}
.barranco-path {
  position: absolute;
  top: 0;
  right: 25%;
  width: 45px;
  height: 100%;
  background: linear-gradient(to right, #3a2312, #24140a, #3a2312);
  opacity: 0.7;
  clip-path: polygon(10% 0%, 30% 20%, 15% 50%, 40% 80%, 20% 100%, 70% 100%, 80% 70%, 60% 40%, 85% 15%, 50% 0%);
  z-index: 3;
}

.rock-formation {
  position: absolute;
  background: linear-gradient(135deg, #7f8c8d, #4d5656);
  border-bottom: 3px solid #2c3e50;
  z-index: 5;
}
.rf-1 { bottom: 45%; left: 15%; width: 35px; height: 25px; clip-path: polygon(20% 0%, 80% 10%, 100% 70%, 60% 100%, 0% 80%); }
.rf-2 { bottom: 25%; right: 20%; width: 50px; height: 40px; clip-path: polygon(40% 0%, 90% 20%, 100% 80%, 50% 100%, 10% 70%, 0% 30%); }
.rf-3 { bottom: 60%; right: 35%; width: 25px; height: 20px; background: #566573; clip-path: polygon(50% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%); }

.coffee-plantation { position: absolute; bottom: 40px; left: 8%; width: 35%; height: 45%; z-index: 6; }
.bush { position: absolute; background: radial-gradient(circle at 50% 30%, #1e824c 0%, #145a32 80%); border-radius: 50% 50% 40% 40%; }
.b-1 { width: 30px; height: 25px; bottom: 20px; left: 10px; }
.b-2 { width: 45px; height: 35px; bottom: 10px; left: 35px; }
.b-3 { width: 25px; height: 22px; bottom: 35px; left: 65px; }

.tree-detailed { position: absolute; width: 8px; height: 40px; background: #5c4033; }
.tree-detailed span { position: absolute; top: -25px; left: -16px; width: 40px; height: 40px; background: radial-gradient(circle at 40% 40%, #27ae60, #1e8449); border-radius: 50%; }
.t-1 { bottom: 60px; left: 20px; transform: scale(0.9); }
.t-2 { bottom: 40px; left: 90px; transform: scale(1.1); }

.village-detailed { position: absolute; bottom: 40px; right: 5%; width: 40%; height: 35%; z-index: 6; }
.micro-house { position: absolute; width: 32px; height: 22px; background: #d5dbdb; border: 1px solid #b2babb; box-shadow: 0 4px 8px rgba(0,0,0,0.4); }
.micro-house .roof { position: absolute; top: -10px; left: -2px; width: 34px; height: 10px; background: #c0392b; clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%); }
.micro-house .window { position: absolute; top: 4px; left: 6px; width: 6px; height: 6px; background: #f4d03f; border: 1px solid #7f8c8d; }
.mh-1 { bottom: 15px; right: 20px; }
.mh-2 { bottom: 35px; right: 65px; transform: scale(0.85); background: #f2f4f4; }
.mh-3 { bottom: 10px; right: 100px; transform: scale(0.95); }

.location-label { background: rgba(11, 15, 22, 0.85); padding: 5px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.location-label.danger { border: 1px solid rgba(231, 76, 60, 0.4); color: #ff8a80; }
.location-label.economy { border: 1px solid rgba(46, 204, 113, 0.4); color: #2ecc71; }
.coffee-plantation .location-label { position: absolute; bottom: -25px; left: 10px; }
.village-detailed .location-label { position: absolute; bottom: -25px; right: 20px; }

/* Ebene 4: Basissegment */
.volcano-component.base {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(to bottom, #162a20 0%, #203328 25%, #2f2018 100%);
}
.monitoring-station {
  position: absolute;
  top: 25%;
  left: 10%;
  background: #22313f;
  border: 2px solid #2980b9;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3498db;
  z-index: 5;
}

/* Ebene 5: Innerer Aufbau */
.volcano-component.subsurface { background: linear-gradient(to bottom, #2f2018 0%, #1b0f0b 100%); }
.tephra-layer { position: absolute; width: 130%; left: -15%; height: 40px; background: rgba(0, 0, 0, 0.55); z-index: 2; border-top: 1px dashed rgba(230, 81, 0, 0.3); }
.tephra-layer.layer-1 { top: 20%; transform: rotate(-3deg); }
.tephra-layer.layer-2 { top: 55%; transform: rotate(5deg); }
.tephra-layer.layer-3 { top: 82%; transform: rotate(-1deg); }

/* FORMGETREUE & MOVING PLATTENTEKTONIK (Ebene 6) */
.tectonic-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 6;
  gap: 40px;
  top: 35%;
}
.plate {
  flex: 1;
  background: linear-gradient(180deg, #1a242f 0%, #0f141a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.plate h4 { color: var(--accent-2); font-size: 1.15rem; margin-bottom: 6px; }
.plate p { font-size: 0.85rem; color: var(--muted); }
.vector-arrow { font-size: 0.85rem; font-weight: 700; margin-top: 12px; color: #64b5f6; }

/* Ozeanische Platte subduziert schräg nach unten links weg */
.plate.cocos {
  border-top: 5px solid #2980b9;
}
.animated-subduction {
  animation: subductMovement 4s infinite linear;
}

@keyframes subductMovement {
  0% { transform: translate(0, 30px) rotate(4deg); }
  50% { transform: translate(6px, 36px) rotate(4deg); }
  100% { transform: translate(0, 30px) rotate(4deg); }
}

/* Kontinentale Platte leistet statischen Widerstand */
.plate.caribbean {
  border-top: 5px solid #d35400;
  transform: translateY(-10px);
}
.plate.caribbean .vector-arrow { color: #ffb74d; }

.deep-magma-conduit {
  position: absolute;
  width: clamp(24px, 2.2vw, 36px);
  height: 65%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, #ff3d00, #ffb300);
  box-shadow: 0 0 40px #ff3d00;
  z-index: 2;
}
.magma-source {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 32vw, 360px);
  height: clamp(220px, 32vw, 360px);
  background: radial-gradient(circle, #ff3d00 15%, #a63a06 50%, transparent 72%);
  z-index: 1;
  animation: magmaPulse 2.2s infinite alternate ease-in-out;
}
@keyframes magmaPulse {
  0% { transform: translateX(-50%) scale(0.94); opacity: 0.75; }
  100% { transform: translateX(-50%) scale(1.06); opacity: 1; }
}

/* TEXTCONTAINER (MARKER) */
.marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: min(26vw, 420px);
  min-width: 300px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 18px;
  z-index: 10;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.marker::before { content: ""; position: absolute; inset: 16px auto 16px 0; width: 4px; border-radius: 4px; background: linear-gradient(to bottom, var(--accent), transparent); }
.marker.left { left: clamp(1.5rem, 4vw, 4.5rem); }
.marker.right { right: clamp(1.5rem, 4vw, 4.5rem); }
.marker.right::before { left: auto; right: 0; }
.marker h3 { font-size: 1.25rem; color: #ff8a80; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.marker p { color: #e2e8f0; line-height: 1.7; font-size: 0.96rem; margin-bottom: 12px; }

/* SEKTION 7: ZUSAMMENFASSUNG */
.summary-card { background: linear-gradient(180deg, #131a24, #0b0f16); border: 1px solid var(--border); border-top: 5px solid var(--accent); padding: clamp(30px, 5vw, 50px); border-radius: 26px; width: min(92vw, 960px); text-align: center; z-index: 10; }
.summary-card h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 30px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; text-align: left; }
.grid-item { background: rgba(22, 30, 43, 0.7); padding: 22px; border-radius: 16px; border-left: 4px solid #5c758d; }
.grid-item strong { color: var(--accent-2); display: block; margin-bottom: 6px; }
.grid-item p { font-size: 0.95rem; line-height: 1.6; color: #e2e8f0; }

.back-to-top-btn { background: linear-gradient(180deg, #e74c3c, #c0392b); color: #ffffff; border: none; padding: 16px 36px; font-size: 1rem; font-weight: 700; border-radius: 999px; cursor: pointer; box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3); }

/* SCROLLY-ANIMATIONEN */
.fade-in { opacity: 0; will-change: opacity, transform; transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.marker.left.fade-in { transform: translate3d(-40px, -50%, 0); }
.marker.right.fade-in { transform: translate3d(40px, -50%, 0); }
.summary-card.fade-in { transform: translate3d(0, 40px, 0); }
.fade-in.visible { opacity: 1; transform: translate3d(0, -50%, 0); }
.summary-card.fade-in.visible { transform: translate3d(0, 0, 0); }

/* BREAKPOINTS */
@media (max-width: 1024px) { .volcano-lane { width: 40vw; } .volcano-lane.wide-lane { width: 58vw; } .marker { width: 30vw; } }
@media (max-width: 768px) {
  .scroll-section { height: auto; min-height: 100svh; flex-direction: column; padding: 70px 20px; }
  #sec-plates .volcano-lane.wide-lane { position: relative; width: 100% !important; opacity: 1 !important; margin-bottom: 35px; }
  .tectonic-container { flex-direction: column; }
  .volcano-lane { width: 100% !important; opacity: 0.15; }
  .marker { position: relative; width: 100%; margin: 20px 0; }
  .fade-in { transform: none !important; }
  .summary-grid { grid-template-columns: 1fr; }
}