/* The Trichome Society – eine Datei für alle Seiten.
   Dunkel, ruhig, viel Luft. Daten sind die Deko: 3D-Chart, Zonen, Zahlen.
   Schrift: Quicksand (OFL), selbst gehostet. Farbakzente nur für die drei Zonen. */

@font-face { font-family: "Quicksand"; src: url("/fonts/quicksand-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("/fonts/quicksand-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("/fonts/quicksand-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0e0e0f;
  --bg-2: #161618;
  --bg-3: #1d1d20;
  --line: #29292d;
  --fg: #f3f3f1;
  --fg-2: #b7b7b4;
  --fg-3: #7c7c79;
  /* Zonen – gedämpft, angelehnt an das Trippy-Shirt */
  --clone: #8f8cff;
  --veg: #5fe0a0;
  --flower: #ff6fae;
  --gutter: clamp(18px, 4.5vw, 56px);
  --max: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.65 "Quicksand", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; font-weight: 500; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(42px, 7.4vw, 92px); }
h2 { font-size: clamp(30px, 4.6vw, 54px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.kicker { font-weight: 500; font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 1.4em; }

/* --- Kopfzeile --- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(14, 14, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand img { width: 168px; }
.nav { display: flex; gap: clamp(14px, 2.6vw, 34px); font-size: 14px; font-weight: 500; letter-spacing: .05em; }
.nav a { text-decoration: none; color: var(--fg-2); }
.nav a:hover { color: var(--fg); }
@media (max-width: 680px) { .brand img { width: 138px; } .nav a:not(:nth-child(2)) { display: none; } }

/* --- Buttons --- */
.button { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.7em; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 500; border: 1px solid var(--fg); transition: background .2s, color .2s; }
.button:hover { background: #d6d6d3; color: var(--bg); }
.button.ghost { background: transparent; color: var(--fg); border-color: #4a4a4e; }
.button.ghost:hover { border-color: var(--fg); color: var(--fg); }

/* --- Hero --- */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(20px, 4vw, 60px);
  min-height: min(90vh, 880px); padding: clamp(40px, 7vw, 90px) var(--gutter);
}
.hero-glow { position: absolute; inset: 10% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 224, 160, .10), rgba(143, 140, 255, .05) 55%, transparent); pointer-events: none; }
.hero-text { position: relative; }
.hero-sub { color: var(--fg-2); font-size: clamp(17px, 1.6vw, 20px); max-width: 30em; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.4em; }
.pill { display: inline-flex; align-items: center; gap: .7em; border: 1px solid #3a3a3e; border-radius: 999px; padding: .45em 1.2em; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--fg-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--veg); box-shadow: 0 0 0 0 rgba(95, 224, 160, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 224, 160, .55); } 70% { box-shadow: 0 0 0 10px rgba(95, 224, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 224, 160, 0); } }
.hero-visual { position: relative; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .hero-visual { order: -1; max-width: 520px; margin: 0 auto -10px; }
}

/* 3D-Chart: Linien zeichnen sich nacheinander (pathLength="1" im Markup) */
.hero-chart { width: 100%; height: auto; overflow: visible; }
.hero-chart path { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.hero-chart .walls path { stroke: #4a4a4f; stroke-width: 1; }
.hero-chart .axes path { stroke: #d9d9d6; stroke-width: 1.6; }
.hero-chart .grid path { stroke: #cfcfcc; stroke-width: 1.1; stroke-opacity: .8; }
.hero-chart .contours path { stroke-width: 2; }
.hero-chart .contours .c-bold { stroke-width: 3.4; }
.hero-chart .labels text { fill: var(--fg-3); font-size: 15px; font-weight: 500; }
.hero-chart .labels .ax-title { letter-spacing: .2em; }
.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6, .1, .2, 1) forwards; }
.draw-1 path { animation-delay: .1s; }
.draw-2 path { animation-delay: .5s; }
.draw-3 path { animation-delay: .9s; animation-duration: 2.2s; }
.draw-4 path { animation-delay: 2.2s; }
.hero-chart .labels { opacity: 0; animation: fade 1s ease 2.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* --- Laufband --- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 32px; width: max-content; animation: ticker 38s linear infinite; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; white-space: nowrap; }
.ticker .dot { color: #3d3d41; font-size: 8px; align-self: center; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Abschnitte --- */
.band { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--gutter); }
.band + .band { border-top: 1px solid var(--line); }
.band-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.band-lead { color: var(--fg-2); font-size: clamp(17px, 1.5vw, 19px); }
.band-note { color: var(--fg-3); font-size: 15px; margin-top: 2.6em; }

/* Produkte */
.products { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: clamp(14px, 2.2vw, 26px); align-items: end; }
.product { margin: 0; }
.product-img { background: radial-gradient(120% 90% at 50% 15%, #26262a, var(--bg-2) 70%); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 34px); transition: transform .35s ease, border-color .35s ease; }
.product:hover .product-img { transform: translateY(-6px); border-color: #3c3c40; }
.product figcaption { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 6px 0; }
.product figcaption span { color: var(--fg-3); font-size: 14px; }
.product.feature .product-img { background: radial-gradient(120% 90% at 50% 20%, #2b2533, var(--bg-2) 72%); }
.specs { list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.specs li { border-top: 1px solid var(--line); padding-top: 16px; color: var(--fg-2); font-size: 15px; }
.specs b { display: block; color: var(--fg); font-weight: 500; font-size: 17px; margin-bottom: 2px; }
@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; max-width: 460px; }
  .specs { grid-template-columns: 1fr; }
}

/* --- Interaktiver Zonen-Chart --- */
.zone-widget { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(20px, 3.5vw, 44px); align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(16px, 3vw, 36px); }
.zone-chart { width: 100%; height: auto; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.zone { stroke: none; }
.z-wet { fill: #141418; }
.z-clone { fill: rgba(143, 140, 255, .16); }
.z-veg { fill: rgba(95, 224, 160, .16); }
.z-flower { fill: rgba(255, 111, 174, .16); }
.z-dry { fill: #1a1416; }
.zone-line { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; stroke-dasharray: 4 5; }
.zone-line.bold { stroke: rgba(255, 255, 255, .85); stroke-width: 2; stroke-dasharray: none; }
.zone-label { fill: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 500; letter-spacing: .26em; }
.axes line { stroke: #555; stroke-width: 1; }
.axes text { fill: var(--fg-3); font-size: 13px; font-weight: 500; }
.axes .ax-title { font-size: 11px; letter-spacing: .24em; }
.dot { fill: #fff; stroke: var(--bg); stroke-width: 2.5; }
.dot-glow { fill: #fff; opacity: .55; }
.zone-side { display: flex; flex-direction: column; gap: 18px; }
.ctl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-weight: 500; font-size: 15px; color: var(--fg-2); }
.ctl output { color: var(--fg); font-variant-numeric: tabular-nums; }
.ctl input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #3a3a3e, #6a6a6e); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #3a3a3e, #6a6a6e); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; margin-top: -9px; border: 3px solid var(--bg-2); box-shadow: 0 0 0 1px #fff; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--bg-2); }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 4px; }
.readout > div { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; }
.readout span { color: var(--fg-3); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.readout b { font-size: 30px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.readout small { color: var(--fg-3); font-size: 13px; }
.readout-zone { grid-column: 1 / -1; transition: border-color .3s; }
.readout > div:only-child, .readout > div:first-child:nth-last-child(2) { grid-column: 1 / -1; }
[data-zone=z-clone] .readout-zone { border-color: var(--clone); } [data-zone=z-clone] .readout-zone b { color: var(--clone); }
[data-zone=z-veg] .readout-zone { border-color: var(--veg); } [data-zone=z-veg] .readout-zone b { color: var(--veg); }
[data-zone=z-flower] .readout-zone { border-color: var(--flower); } [data-zone=z-flower] .readout-zone b { color: var(--flower); }
.hint { color: var(--fg-3); font-size: 13.5px; margin: 0; }
@media (max-width: 900px) { .zone-widget { grid-template-columns: 1fr; } }

/* --- Video --- */
.band-video { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(30px, 7vw, 100px); align-items: center; }
.video-wrap { border-radius: 28px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; border: 1px solid var(--line); }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-text p { color: var(--fg-2); }
.bignums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 2em; }
.bignums div { border-top: 1px solid var(--line); padding-top: 12px; }
.bignums b { display: block; font-size: clamp(28px, 3.6vw, 42px); font-weight: 400; line-height: 1; }
.bignums div:nth-child(1) b { color: var(--clone); }
.bignums div:nth-child(2) b { color: var(--veg); }
.bignums div:nth-child(3) b { color: var(--flower); }
.bignums span { color: var(--fg-3); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 760px) { .band-video { grid-template-columns: 1fr; } .video-wrap { max-width: 340px; } }

/* --- Wissenskarten --- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 26px 24px; text-decoration: none; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid #2f2f33; box-shadow: 0 0 0 26px rgba(255, 255, 255, .012), 0 0 0 52px rgba(255, 255, 255, .01); }
.card:hover { transform: translateY(-5px); border-color: #45454a; background: var(--bg-3); }
.card .num { font-size: 13px; letter-spacing: .24em; color: var(--fg-3); font-weight: 500; margin-bottom: auto; }
.card h3 { margin-top: 48px; }
.card p { color: var(--fg-2); font-size: 15px; }
.card .arrow { font-size: 13px; color: var(--fg-3); font-weight: 500; letter-spacing: .06em; }
.card .arrow::after { content: " →"; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } .card h3 { margin-top: 28px; } }

.band-mark { text-align: center; max-width: 680px; }
.band-mark img { margin: 0 auto 30px; width: 120px; }
.band-mark p { color: var(--fg-2); }

/* --- Artikel --- */
.article { max-width: 780px; margin: 0 auto; padding: clamp(48px, 8vw, 100px) var(--gutter) 40px; }
.article.center { text-align: center; min-height: 50vh; }
.article h1 { font-size: clamp(40px, 6.4vw, 70px); }
.article h2 { font-size: clamp(24px, 3vw, 32px); }
.article .lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--fg-2); margin-bottom: 2.4em; }
.article section { margin: 0 0 3.2em; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: .5em; }
.figure { margin: 2em auto 0; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); padding: 18px; }
.formula { font-weight: 500; font-size: 19px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: .8em 1.1em; overflow-x: auto; }
.small { font-size: 14px; color: var(--fg-3); }
.targets { width: 100%; border-collapse: collapse; margin: .4em 0 1em; }
.targets th, .targets td { text-align: left; padding: .75em .2em; border-bottom: 1px solid var(--line); }
.targets th { color: var(--fg-3); font-weight: 500; font-size: 14px; letter-spacing: .06em; }
.targets td:last-child { text-align: right; font-weight: 500; }
.calc-wrap { margin: 0 -8vw 3.4em; }
@media (max-width: 900px) { .calc-wrap { margin: 0 0 3em; } }
.calc-note { font-size: 14px; color: var(--fg-3); margin: 1.2em 0 0; }
.more { margin-top: 4em; padding-top: 2em; border-top: 1px solid var(--line); }
.more-links { display: flex; flex-wrap: wrap; gap: 10px; }
.more-links a { border: 1px solid var(--line); border-radius: 999px; padding: .45em 1.1em; text-decoration: none; font-size: 15px; }
.more-links a:hover { border-color: var(--fg-3); }

/* DLI-Rechner (Zahlenfelder) */
.calc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 34px); margin: 0 0 3.4em; }
.calc h2 { font-size: 22px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 1.2em 0; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 15px; }
.calc .unit { color: var(--fg-3); font-weight: 400; font-size: 13px; }
.calc input { font: 500 22px "Quicksand", system-ui, sans-serif; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .5em .7em; width: 100%; }
.calc input:focus { outline: none; border-color: var(--fg-2); }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.calc-out > div { border-radius: 14px; background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; }
.out-label { color: var(--fg-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.out-value { font-size: 28px; font-weight: 500; }

/* --- Rechtliches --- */
.legal h2 { font-size: 20px; margin-top: 2em; }
mark.todo { background: #ffd54a; color: #111; padding: 0 .3em; border-radius: 4px; font-weight: 500; }

/* --- Fußzeile --- */
.foot { border-top: 1px solid var(--line); text-align: center; padding: 72px var(--gutter) 52px; color: var(--fg-3); }
.foot-mark { margin: 0 auto 14px; }
.foot-claim { color: var(--fg); font-weight: 500; font-size: 18px; }
.foot a { color: var(--fg-2); text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot-small { font-size: 13px; margin-top: 2em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw path { animation: none; stroke-dashoffset: 0; }
  .hero-chart .labels { animation: none; opacity: 1; }
  .ticker-track, .pulse { animation: none; }
  .card, .product-img { transition: none; }
}

/* --- Link-Seite (/links/) --- */
.links-page .top .nav { display: none; }
.links { max-width: 520px; margin: 0 auto; padding: clamp(40px, 8vw, 80px) var(--gutter) 40px; text-align: center; }
.links-mark { margin: 0 auto 22px; width: 88px; }
.links h1 { font-size: clamp(26px, 6vw, 34px); margin-bottom: .2em; }
.links-claim { color: var(--fg-3); margin-bottom: 2em; }
.links-list { display: flex; flex-direction: column; gap: 12px; }
.link-btn { display: block; padding: 1em 1.2em; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; font-weight: 500; transition: border-color .2s, transform .2s; }
.link-btn:hover { border-color: var(--fg-3); transform: translateY(-2px); }
.link-btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.link-btn.primary:hover { color: var(--bg); }
.link-btn.quiet { background: transparent; color: var(--fg-2); font-size: 15px; }

/* Zwei Punkte im Zonen-Chart: Luft (hohl) → Blatt (gefüllt) */
.dot-air { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 3 3; opacity: 0; }
.dot-link { stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0; }
.dot-label { fill: #fff; font-size: 11px; font-weight: 500; letter-spacing: .2em; opacity: 0; }
.has-leaf .dot-air, .has-leaf .dot-link, .has-leaf .dot-label { opacity: 1; }

/* Taupunkt-Rechner: Ampel */
.dew-calc .out-risk { transition: border-color .3s; border: 1px solid transparent; }
.dew-calc[data-risk=risk-low] .out-risk { border-color: var(--veg); } .dew-calc[data-risk=risk-low] #out-risk { color: var(--veg); }
.dew-calc[data-risk=risk-mid] .out-risk { border-color: #ffc861; } .dew-calc[data-risk=risk-mid] #out-risk { color: #ffc861; }
.dew-calc[data-risk=risk-high] .out-risk { border-color: var(--flower); } .dew-calc[data-risk=risk-high] #out-risk { color: var(--flower); }
@media (min-width: 981px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Schwarze Shirts: heller Studio-Lichtkegel, damit sie sich vom dunklen Grund lösen */
.product.dark-tee .product-img { background: radial-gradient(70% 60% at 50% 45%, #55555b 0%, #34343a 45%, #1c1c20 100%); }
.product.feature.dark-tee .product-img { background: radial-gradient(70% 60% at 50% 45%, #5e5668 0%, #39333f 45%, #1d1a21 100%); }
.product-img img { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); }
