/* sections.css — Writer B. Nur Klassen mit Präfix b-. Dunkles Glas-Design, Kaspa-Türkis. */

:root {
  --b-teal: #70C7BA;
  --b-teal-2: #49EACB;
  --b-ink: #E8F4F2;
  --b-mute: #8AA3A0;
  --b-line: rgba(112, 199, 186, 0.18);
  --b-glass: rgba(16, 28, 30, 0.55);
  --b-grey: #4A5656;
  --b-green: #3DDC97;
  --b-yellow: #F5C451;
  --b-orange: #F28C38;
  --b-violet: #A78BFA;
  --b-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.b-sec {
  position: relative;
  padding: 120px 0;
  color: var(--b-ink);
}

.b-wrap {
  width: min(1140px, 100% - 40px);
  margin: 0 auto;
}

.b-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--b-teal-2);
}

/* Abschnittstitel mit leichtem Verlauf */
.b-h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #FFFFFF 0%, var(--b-teal-2) 55%, var(--b-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.b-h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
}

.b-lead {
  max-width: 62ch;
  margin: 0 0 40px;
  color: var(--b-mute);
  font-size: 17px;
  line-height: 1.6;
}

.b-lead,
.b-note {
  color: var(--b-mute);
  font-size: 14px;
  line-height: 1.55;
}

.b-note {
  margin: 16px 0 0;
  font-size: 13px;
}

.b-link {
  color: var(--b-teal-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.b-link:hover,
.b-link:focus-visible {
  border-bottom-color: var(--b-teal-2);
}

/* Mono-Zahlen, gross */
.b-num {
  display: block;
  font-family: var(--b-mono);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--b-ink);
  overflow-wrap: anywhere;
}

/* Glas-Panel mit 1px-Verlaufsrand */
.b-glass {
  position: relative;
  background: var(--b-glass);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  isolation: isolate;
}

.b-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--b-teal), rgba(73, 234, 203, 0.05) 55%, rgba(112, 199, 186, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0.7;
}

.b-card {
  padding: 32px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.b-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(73, 234, 203, 0.10);
}

.b-card:hover::before {
  opacity: 1;
}

.b-card p {
  margin: 0;
  color: var(--b-ink);
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.b-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.b-card--wide {
  grid-column: 1 / -1;
}

/* Inputs, Buttons */
.b-input,
.b-select {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--b-line);
  background: rgba(5, 12, 13, 0.7);
  color: var(--b-ink);
  font: inherit;
  font-size: 15px;
  min-width: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.b-input:focus,
.b-select:focus,
.b-range:focus-visible,
.b-btn:focus-visible {
  outline: none;
  border-color: var(--b-teal-2);
  box-shadow: 0 0 0 3px rgba(73, 234, 203, 0.18);
}

.b-form,
.b-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.b-form .b-input,
.b-row .b-input {
  flex: 1 1 200px;
}

.b-btn {
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(120deg, var(--b-teal), var(--b-teal-2));
  color: #04201C;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.b-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.b-unit {
  color: var(--b-mute);
  font-size: 14px;
}

.b-out {
  color: var(--b-teal-2);
  font-family: var(--b-mono);
  font-variant-numeric: tabular-nums;
}

.b-out-big {
  font-family: var(--b-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--b-teal-2);
  font-variant-numeric: tabular-nums;
}

.b-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Adress-Ergebnis */
.b-kv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
}

.b-kv dt {
  font-size: 12px;
  color: var(--b-mute);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.b-kv dd {
  margin: 0;
  font-family: var(--b-mono);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* Gebühren-Kacheln */
.b-fee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.b-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--b-line);
  background: rgba(5, 12, 13, 0.45);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.b-tile:hover {
  border-color: rgba(73, 234, 203, 0.45);
  transform: translateY(-2px);
}

.b-tile--accent {
  background: linear-gradient(160deg, rgba(73, 234, 203, 0.12), rgba(5, 12, 13, 0.45));
}

.b-tile-label {
  font-size: 13px;
  color: var(--b-mute);
  line-height: 1.4;
}

.b-tile-unit {
  font-size: 12px;
  color: var(--b-mute);
}

.b-tile-time {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--b-mono);
  font-size: 14px;
  color: var(--b-teal-2);
}

.b-tile-time::before {
  content: "⏱ ";
}

/* Charts */
.b-chart {
  position: relative;
  width: 100%;
  height: 300px;
  margin-top: 16px;
}

.b-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.b-tip {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(5, 12, 13, 0.92);
  border: 1px solid var(--b-line);
  font-family: var(--b-mono);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  transform: translate(-50%, -125%);
}

.b-tip[hidden] {
  display: none;
}

/* Range */
.b-ctrl {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.b-label {
  font-size: 14px;
  color: var(--b-mute);
}

.b-range {
  flex: 1 1 200px;
  accent-color: var(--b-teal-2);
  min-height: 44px;
}

/* Explore: Canvas + Steps */
.b-stage-wrap {
  margin-top: 16px;
  padding: 16px;
  overflow: hidden;
}

.b-story-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  border-radius: 12px;
}

.b-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.b-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--b-line);
}

.b-stat-label {
  font-size: 13px;
  color: var(--b-mute);
}

.b-stat-val {
  font-family: var(--b-mono);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.b-steps {
  display: grid;
  gap: 18px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: b-step;
}

.b-step {
  position: relative;
  padding-left: 48px;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  counter-increment: b-step;
}

.b-step::before {
  content: counter(b-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--b-mono);
  font-size: 13px;
  font-weight: 700;
  color: #04201C;
  background: var(--b-teal);
  box-shadow: 0 0 18px rgba(73, 234, 203, 0.35);
}

.b-step.b-in {
  opacity: 1;
  transform: none;
}

/* Learn */
.b-grid--learn .b-card {
  min-height: 0;
}

.b-tips .b-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  line-height: 1.6;
}

/* Roadmap: horizontaler Zeitstrahl (Desktop), vertikal (mobil) */
.b-timeline {
  position: relative;
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.b-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 2px;
  background: linear-gradient(90deg, var(--b-teal-2), rgba(112, 199, 186, 0.15));
}

.b-tl-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 40px;
}

.b-tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--b-teal-2);
  box-shadow: 0 0 0 5px rgba(73, 234, 203, 0.15), 0 0 18px rgba(73, 234, 203, 0.5);
}

.b-tl-item .b-badge {
  align-self: flex-start;
}

.b-tl-item .b-h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.b-tl-date {
  margin: 0 0 10px !important;
  color: var(--b-mute);
  font-size: 13px !important;
  opacity: 1 !important;
}

.b-tl-desc {
  margin: 0;
  color: var(--b-mute);
  font-size: 14px;
  line-height: 1.55;
}

.b-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  color: #04201C;
}

.b-badge--live {
  background: var(--b-green);
  box-shadow: 0 0 14px rgba(61, 220, 151, 0.35);
}

.b-badge--released {
  background: var(--b-teal);
}

.b-badge--draft {
  background: var(--b-yellow);
}

.b-badge--prototype {
  background: var(--b-orange);
}

.b-badge--research {
  background: var(--b-violet);
  color: #120a24;
}

.b-foot {
  margin-top: 48px;
}

/* Ecosystem */
.b-grid--eco {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.b-eco {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.b-eco:hover,
.b-eco:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(73, 234, 203, 0.10);
}

.b-eco-name {
  font-family: var(--b-mono);
  color: var(--b-teal-2);
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.b-eco-desc {
  color: var(--b-mute);
  font-size: 14px;
  line-height: 1.55;
}

/* Reveal-Animation (translate, damit :hover-Transforms nicht kollidieren) */
.b-reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.8s ease, translate 0.8s ease;
}

.b-reveal.b-in {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .b-sec *,
  .b-sec *::before {
    transition: none !important;
    animation: none !important;
  }
  .b-step,
  .b-reveal {
    opacity: 1;
    transform: none;
    translate: none;
  }
}

/* Tablet */
@media (max-width: 1000px) {
  .b-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
  .b-timeline::before {
    display: none;
  }
  .b-fee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobil: 360 px sauber, Roadmap vertikal */
@media (max-width: 900px) {
  .b-grid,
  .b-grid--eco {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-kv {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .b-sec {
    padding: 80px 0;
  }
  .b-wrap {
    width: min(1140px, 100% - 32px);
  }
  .b-card {
    padding: 22px;
  }
  .b-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-left: 30px;
    margin-top: 40px;
  }
  .b-timeline::before {
    display: block;
    left: 9px;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 2px;
    height: auto;
    background: linear-gradient(var(--b-teal-2), rgba(112, 199, 186, 0.15));
  }
  .b-tl-item {
    padding: 0 0 36px;
  }
  .b-tl-item::before {
    left: -30px;
    top: 0;
  }
  .b-tl-item .b-h3 {
    margin-top: 10px;
  }
  .b-fee-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-chart {
    height: 240px;
  }
  .b-tip {
    font-size: 11px;
  }
  .b-steps {
    margin-top: 40px;
  }
}
