/* PTB One-Page Blattfalter – site.css
   Ziel: ruhig, klar, blau→grün, wenig bunt, sehr lesbar
*/

:root{
  /* Core palette */
  --bg0: #071018;           /* page background */
  --bg1: #0b1620;           /* card background */
  --bg2: #0f1e2b;           /* elevated */
  --ink: #e8eef6;           /* main text */
  --muted: #a6b4c2;         /* secondary text */
  --muted2: #7f92a3;        /* tertiary */

  /* Accent: blue -> green (subtle) */
  --a1: #3aa0ff;            /* blue */
  --a2: #30d49a;            /* green */
  --a3: #1ec7b7;            /* teal bridge */
  --accent: linear-gradient(90deg, var(--a1), var(--a3), var(--a2));

  /* Borders & shadows */
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.06);
  --shadow: 0 18px 45px rgba(0,0,0,.45);

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Radii */
  --r1: 14px;
  --r2: 18px;
  --r3: 22px;

  /* Layout */
  --max: 1080px;
  --pad: clamp(16px, 3vw, 28px);
  --gap: clamp(12px, 2vw, 18px);
}

/* Base reset */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 15% -10%, rgba(58,160,255,.12), transparent 55%),
    radial-gradient(900px 600px at 95% 10%, rgba(48,212,154,.10), transparent 55%),
    radial-gradient(900px 700px at 40% 110%, rgba(30,199,183,.08), transparent 60%),
    linear-gradient(180deg, var(--bg0), #050b10 70%);
  line-height: 1.55;
  letter-spacing: 0.1px;
}

a{
  color: color-mix(in srgb, var(--a1) 72%, white 28%);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }
em{ color: color-mix(in srgb, var(--ink) 86%, var(--a3) 14%); }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
}

/* Topbar */
.topbar{
  position: sticky;
  top: 10px;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg0) 70%, transparent 30%);
  border: 1px solid var(--line2);
  border-radius: var(--r3);
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.brand{
  display:flex;
  align-items:baseline;
  gap: 10px;
  min-width: 220px;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--a3);
  box-shadow: 0 0 0 4px rgba(30,199,183,.12);
}

.nav{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content:flex-end;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration:none;
  white-space: nowrap;
}

.pill:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.16);
}

kbd{
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
}

/* Hero */
.hero{
  margin-top: 18px;
  border: 1px solid var(--line2);
  border-radius: var(--r3);
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    radial-gradient(900px 500px at 20% 0%, rgba(58,160,255,.12), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(48,212,154,.10), transparent 55%),
    var(--bg1);
  box-shadow: var(--shadow);
}

.kicker{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-size: 13px;
}

h1{
  margin: 0 0 12px 0;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.lead{
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 72ch;
}

/* Buttons */
.ctaRow{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}

.btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
.btn:active{ transform: translateY(1px); }

.btn.primary{
  border-color: rgba(58,160,255,.25);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(58,160,255,.10);
  position: relative;
}
.btn.primary::before{
  content:"";
  position:absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: var(--accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events:none;
  opacity:.55;
}

/* Fold layout: 3 panels */
.fold{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.panel{
  border: 1px solid var(--line2);
  border-radius: var(--r3);
  padding: 18px 18px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
    var(--bg1);
  box-shadow: 0 12px 30px rgba(0,0,0,.30);
  position: relative;
  overflow: hidden;
}

/* subtle edge tint per column (very restrained) */
.foldA::after, .foldB::after, .foldC::after{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 3px;
  opacity: .7;
}
.foldA::after{ background: linear-gradient(90deg, rgba(58,160,255,.9), rgba(58,160,255,.0)); }
.foldB::after{ background: linear-gradient(90deg, rgba(30,199,183,.9), rgba(30,199,183,.0)); }
.foldC::after{ background: linear-gradient(90deg, rgba(48,212,154,.9), rgba(48,212,154,.0)); }

.panel h2{
  margin: 0 0 8px 0;
  font-size: 16px;
  letter-spacing: .2px;
}
.panel p{
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.item{
  display:grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.02);
}

.item b{
  display:block;
  font-size: 14px;
  margin-bottom: 2px;
}
.item span{
  display:block;
  color: var(--muted2);
  font-size: 13px;
}

/* Badges */
.badge{
  align-self: start;
  font-size: 11px;
  font-family: var(--mono);
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.15);
  color: var(--muted);
  min-width: 64px;
  text-align: center;
}

.badge.sci{
  color: color-mix(in srgb, var(--a1) 70%, var(--ink) 30%);
  border-color: rgba(58,160,255,.25);
  background: rgba(58,160,255,.08);
}

.badge.ok{
  color: color-mix(in srgb, var(--a2) 62%, var(--ink) 38%);
  border-color: rgba(48,212,154,.22);
  background: rgba(48,212,154,.08);
}

.badge.soon{
  color: color-mix(in srgb, #ffd27a 55%, var(--ink) 45%);
  border-color: rgba(255,210,122,.20);
  background: rgba(255,210,122,.06);
}

/* Timeline / preview section */
.timeline{
  margin-top: 18px;
  border: 1px solid var(--line2);
  border-radius: var(--r3);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
    var(--bg1);
  box-shadow: 0 12px 30px rgba(0,0,0,.30);
}

.timelineHeader{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.timelineHeader h2{
  margin: 0;
  font-size: 16px;
}
.hint{
  color: var(--muted2);
  font-size: 13px;
}

.steps{
  display:grid;
  gap: 10px;
}

.step{
  display:grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.02);
}

.step h3{
  margin: 0 0 4px 0;
  font-size: 14px;
}
.step p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 90ch;
}

.n{
  width: 48px;
  height: 48px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120px 80px at 20% 20%, rgba(58,160,255,.18), transparent 55%),
    radial-gradient(120px 80px at 80% 80%, rgba(48,212,154,.14), transparent 55%),
    rgba(255,255,255,.02);
  font-family: var(--mono);
  color: var(--ink);
}

/* Long text article (#ocean) */
#ocean{
  padding: clamp(18px, 3vw, 26px);
}
#ocean h1{
  font-size: clamp(22px, 2.3vw, 30px);
  margin: 0 0 12px 0;
}
#ocean p{
  color: color-mix(in srgb, var(--muted) 92%, var(--ink) 8%);
  max-width: 80ch;
  font-size: 15px;
  margin: 0 0 12px 0;
}

/* Footer */
.footer{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r3);
  border: 1px solid var(--line2);
  background: rgba(0,0,0,.20);
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.mini{
  color: var(--muted2);
  font-size: 12.5px;
}

/* Accessibility & motion */
:focus-visible{
  outline: 2px solid rgba(58,160,255,.55);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; }
}

/* Responsive: collapse fold columns */
@media (max-width: 980px){
  .fold{ grid-template-columns: 1fr; }
  .brand{ min-width: unset; }
  .topbar{ top: 0; border-radius: var(--r2); }
}

/* Optional: nicer selection */
::selection{
  background: rgba(30,199,183,.25);
  color: var(--ink);
}

