/* fermentation — style.css */

:root {
  --bg:    #0c0704;
  --bg-2:  #140d06;
  --bg-3:  #1c1208;
  --terra: #d4622a;
  --green: #8bc34a;
  --amber: #f5a623;
  --text:  #9a7060;
  --hi:    #f0ddc8;
  --muted: rgba(240,221,200,0.45);
  --mono:  'JetBrains Mono', 'Courier New', monospace;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --tint:  rgba(212,98,42,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.85;
}

/* ─── ANIMATIONS ───────────────────────────── */

@keyframes float-up {
  0%   { transform: translateY(0) scale(1);   opacity: 0.7; }
  50%  { transform: translateY(-60px) scale(1.08); opacity: 0.5; }
  100% { transform: translateY(-130px) scale(0.6); opacity: 0; }
}

@keyframes pulse-blob {
  0%,100% { transform: scale(1);   opacity: 0.55; }
  50%     { transform: scale(1.08); opacity: 0.8; }
}

@keyframes shimmer {
  0%   { opacity: 0.3; }
  50%  { opacity: 0.7; }
  100% { opacity: 0.3; }
}

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(8px, -12px) rotate(3deg); }
  66%  { transform: translate(-5px, -8px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes myzel-grow {
  0%   { stroke-dashoffset: 400; opacity: 0; }
  30%  { opacity: 0.6; }
  100% { stroke-dashoffset: 0;   opacity: 0.35; }
}

@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 20px rgba(212,98,42,0.15); }
  50%     { box-shadow: 0 0 45px rgba(212,98,42,0.35), 0 0 80px rgba(212,98,42,0.1); }
}

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

/* ─── HERO ─────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(212,98,42,0.08) 0%, transparent 70%);
}

.hero-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terra);
  opacity: 0.65;
  margin-bottom: 2.5rem;
  animation: fadein 0.8s ease forwards;
}

/* Petrischale — Hero-Visual */
.petri-dish {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1.5px solid rgba(212,98,42,0.25);
  background: radial-gradient(ellipse at 40% 35%, rgba(212,98,42,0.12) 0%, rgba(139,195,74,0.04) 50%, transparent 80%);
  position: relative;
  margin: 0 auto 3rem;
  animation: glow-pulse 4s ease-in-out infinite;
}

.petri-inner {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(212,98,42,0.12);
}

.petri-inner-2 {
  position: absolute;
  inset: 55px;
  border-radius: 50%;
  border: 1px solid rgba(139,195,74,0.1);
}

/* Blasen */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(212,98,42,0.6), rgba(212,98,42,0.15));
  animation: float-up linear infinite;
}
.bubble:nth-child(1)  { width:10px; height:10px; left:48%;  bottom:30%; animation-duration:3.2s; animation-delay:0s;    background: radial-gradient(circle at 35% 35%, rgba(212,98,42,0.65), rgba(212,98,42,0.15)); }
.bubble:nth-child(2)  { width:18px; height:18px; left:35%;  bottom:20%; animation-duration:4.1s; animation-delay:0.7s;  background: radial-gradient(circle at 35% 35%, rgba(139,195,74,0.5), rgba(139,195,74,0.1)); }
.bubble:nth-child(3)  { width:8px;  height:8px;  left:62%;  bottom:35%; animation-duration:2.8s; animation-delay:1.3s;  }
.bubble:nth-child(4)  { width:24px; height:24px; left:55%;  bottom:15%; animation-duration:5s;   animation-delay:0.4s;  background: radial-gradient(circle at 35% 35%, rgba(245,166,35,0.4), rgba(245,166,35,0.1)); }
.bubble:nth-child(5)  { width:12px; height:12px; left:28%;  bottom:40%; animation-duration:3.6s; animation-delay:1.9s;  }
.bubble:nth-child(6)  { width:6px;  height:6px;  left:70%;  bottom:28%; animation-duration:2.4s; animation-delay:0.9s;  background: radial-gradient(circle at 35% 35%, rgba(139,195,74,0.6), rgba(139,195,74,0.1)); }
.bubble:nth-child(7)  { width:16px; height:16px; left:42%;  bottom:10%; animation-duration:4.5s; animation-delay:2.2s;  }
.bubble:nth-child(8)  { width:9px;  height:9px;  left:75%;  bottom:45%; animation-duration:3s;   animation-delay:0.2s;  background: radial-gradient(circle at 35% 35%, rgba(245,166,35,0.5), rgba(245,166,35,0.1)); }

/* Kolonie-Blob in der Mitte */
.petri-colony {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 70px;
  border-radius: 50% 40% 60% 45% / 45% 55% 45% 60%;
  background: rgba(212,98,42,0.18);
  animation: drift 8s ease-in-out infinite;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--hi);
  text-align: center;
  margin-bottom: 1.6rem;
  animation: fadein 1s ease 0.3s both;
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--terra);
  text-align: center;
  margin-bottom: 1.2rem;
  animation: fadein 1s ease 0.5s both;
}

.hero-def {
  font-size: 0.82rem;
  color: var(--text);
  max-width: 520px;
  text-align: center;
  line-height: 1.75;
  margin: 0 auto;
  animation: fadein 1s ease 0.7s both;
}

/* ─── SHARED ───────────────────────────────── */

.s {
  padding: 5.5rem 2rem;
  position: relative;
}
.s-2 { background: var(--bg-2); }
.s-3 { background: var(--bg-3); }
.s-warm { background: var(--tint); }

/* Organische Trenn-Wellen zwischen Sektionen */
.s::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,98,42,0.1), rgba(139,195,74,0.08), transparent);
}

.s-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.s-full { max-width: 980px; margin: 0 auto; }

.sec-label {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terra);
  opacity: 0.6;
  margin-bottom: 1.2rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--hi);
  margin-bottom: 1.2rem;
}

h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--hi);
  margin-bottom: 0.8rem;
}

p { margin-bottom: 1rem; font-size: 0.9rem; }

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terra);
  border-left: 2px solid rgba(212,98,42,0.25);
  padding-left: 1.2rem;
  margin-top: 1.5rem;
  line-height: 1.55;
}

/* ─── BLOB CARDS ───────────────────────────── */

/* Organische Blob-Shapes für Cards */
.blob-card {
  background: var(--tint);
  border: 1px solid rgba(212,98,42,0.12);
  border-radius: 50% 30% 70% 40% / 40% 60% 40% 60%;
  padding: 2rem;
  margin-bottom: 1.5rem;
  animation: drift 12s ease-in-out infinite;
  transition: border-color 0.3s;
}
.blob-card:hover { border-color: rgba(212,98,42,0.3); }
.blob-card:nth-child(2) { animation-duration: 9s; animation-delay: -3s; border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; }
.blob-card:nth-child(3) { animation-duration: 14s; animation-delay: -6s; border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%; }

.blob-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

/* ─── INTERFACE-SEKTION ────────────────────── */

.api-params {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: rgba(12,7,4,0.6);
  border: 1px solid rgba(212,98,42,0.12);
  border-radius: 8px 20px 8px 20px;
  padding: 1.5rem;
  line-height: 2.2;
}

.api-param-key   { color: var(--terra); }
.api-param-val   { color: var(--amber); }
.api-param-desc  { color: rgba(240,221,200,0.35); font-size: 0.68rem; margin-left: 0.5rem; }
.api-param-range { color: var(--green); font-size: 0.68rem; }

/* ─── TIMELINE ─────────────────────────────── */

.timeline {
  position: relative;
  max-width: 780px;
  margin: 2.5rem auto 0;
}

.timeline-line {
  position: absolute;
  left: 0; right: 0;
  top: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(212,98,42,0.08), rgba(212,98,42,0.4), rgba(139,195,74,0.3), rgba(245,166,35,0.25));
}

.timeline-items {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 13%;
  text-align: center;
}

.tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50% 40% 60% 45% / 50% 55% 45% 55%;
  background: var(--bg-2);
  border: 2px solid var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
  animation: pulse-blob 3s ease-in-out infinite;
}
.tl-item:nth-child(2) .tl-dot { animation-delay: -0.8s; border-color: var(--amber); }
.tl-item:nth-child(3) .tl-dot { animation-delay: -1.6s; }
.tl-item:nth-child(4) .tl-dot { animation-delay: -2.4s; border-color: var(--green); }
.tl-item:nth-child(5) .tl-dot { animation-delay: -0.3s; }
.tl-item:nth-child(6) .tl-dot { animation-delay: -1.1s; border-color: var(--amber); }
.tl-item:nth-child(7) .tl-dot { animation-delay: -2s;   border-color: var(--green); }

.tl-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
}
.tl-item:nth-child(2) .tl-dot-inner { background: var(--amber); }
.tl-item:nth-child(4) .tl-dot-inner { background: var(--green); }
.tl-item:nth-child(6) .tl-dot-inner { background: var(--amber); }
.tl-item:nth-child(7) .tl-dot-inner { background: var(--green); }

.tl-year {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--terra);
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.tl-label {
  font-size: 0.62rem;
  line-height: 1.3;
  color: var(--muted);
}

/* ─── MIKROBIOM-ZAHLEN ─────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--tint);
  border: 1px solid rgba(212,98,42,0.1);
  border-radius: 40% 20% 40% 20% / 20% 40% 20% 40%;
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: border-color 0.3s;
}
.stat-card:hover { border-color: rgba(212,98,42,0.3); }

.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--terra);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ─── KOJI SEKTION ─────────────────────────── */

.koji-enzyme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.koji-enzyme {
  background: rgba(212,98,42,0.05);
  border: 1px solid rgba(212,98,42,0.1);
  border-radius: 8px 20px 8px 20px;
  padding: 1rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.koji-enzyme-name {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--amber);
  margin-bottom: 0.3rem;
}

/* ─── INLINE SVG FERMENTATIONS-VIZ ─────────── */

.inline-svg-wrap {
  background: var(--bg);
  border: 1px solid rgba(212,98,42,0.1);
  border-radius: 50% 20% 40% 30% / 30% 40% 20% 50%;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── INDUSTRIELLE FERMENTATION TABELLE ─────── */

.ferm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 1.5rem;
}

.ferm-table th {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  opacity: 0.7;
  font-family: var(--mono);
  font-weight: 400;
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(212,98,42,0.15);
}

.ferm-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(212,98,42,0.06);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.5;
}

.ferm-table tr:hover td { background: var(--tint); }

.ferm-table td:first-child { color: var(--hi); font-size: 0.85rem; }
.ferm-table td:last-child  { color: var(--terra); font-family: var(--mono); font-size: 0.75rem; }

/* ─── PRECISION FERMENTATION ───────────────── */

.pf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pf-card {
  padding: 1.5rem;
  background: var(--tint);
  border: 1px solid rgba(212,98,42,0.1);
  border-radius: 30% 10% 30% 10% / 10% 30% 10% 30%;
  font-size: 0.85rem;
  line-height: 1.7;
  animation: drift 10s ease-in-out infinite;
}
.pf-card:nth-child(2) { animation-delay: -4s; border-radius: 10% 30% 10% 30% / 30% 10% 30% 10%; }

.pf-card-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--hi);
  margin-bottom: 0.4rem;
}

.pf-card-tag {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* ─── LAB-SEKTION ──────────────────────────── */

.lab-param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(212,98,42,0.07);
  font-size: 0.82rem;
}
.lab-param-row:last-child { border: none; }
.lab-param-name  { color: var(--hi); font-family: var(--mono); font-size: 0.75rem; }
.lab-param-unit  { color: var(--terra); font-family: var(--mono); font-size: 0.68rem; }
.lab-param-desc  { color: var(--muted); font-size: 0.78rem; max-width: 55%; text-align: right; }

/* ─── CLOSE ────────────────────────────────── */

.s-close {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  background: radial-gradient(ellipse at 50% 40%, rgba(212,98,42,0.06) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}
.close-inner { max-width: 600px; position: relative; z-index: 1; }

.close-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--hi);
  margin-bottom: 1.5rem;
}

.close-sub  { font-size: 0.88rem; color: var(--text); line-height: 1.75; margin-bottom: 2rem; }
.close-meta { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--terra); opacity: 0.3; }

/* Organische Deko-Blobs im Close */
.close-blob {
  position: absolute;
  border-radius: 50% 30% 70% 40% / 40% 60% 40% 60%;
  pointer-events: none;
  animation: drift 15s ease-in-out infinite;
}
.close-blob-1 {
  width: 300px; height: 300px;
  background: rgba(212,98,42,0.04);
  top: -80px; right: -80px;
}
.close-blob-2 {
  width: 200px; height: 200px;
  background: rgba(139,195,74,0.03);
  bottom: -60px; left: -60px;
  animation-delay: -7s;
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
}

/* ─── FOOTER ───────────────────────────────── */

.site-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.68rem;
  border-top: 1px solid rgba(212,98,42,0.07);
}
.site-footer a { color: var(--terra); text-decoration: none; opacity: 0.3; }
.site-footer a:hover { opacity: 0.8; }

/* ─── RESPONSIVE ───────────────────────────── */

@media (max-width: 780px) {
  .s-inner      { grid-template-columns: 1fr; gap: 2.5rem; }
  .pf-split     { grid-template-columns: 1fr; }
  .stat-grid    { grid-template-columns: 1fr 1fr; }
  .koji-enzyme-grid { grid-template-columns: 1fr; }
  .petri-dish   { width: 260px; height: 260px; }
  .timeline-items { flex-direction: column; gap: 1rem; }
  .timeline-line { display: none; }
  .tl-item      { width: 100%; flex-direction: row; text-align: left; align-items: center; gap: 1rem; }
  .ferm-table   { font-size: 0.74rem; }
  .ferm-table th, .ferm-table td { padding: 0.6rem 0.5rem; }
}
