/* =========================================================
   SimpleGuides.io — Concept 1: Scrolling Chapters
   Editorial panels over cinematic background layers
   ========================================================= */

:root{
  --bg: #0c0f14;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.56);

  /* warm editorial accent (NOT neon) */
  --accent: #f2b36f;  /* warm sand */
  --accent2:#8fd3c9;  /* soft mint (sparingly) */

  --panel: rgba(255,255,255,.78);
  --panelText: #16181c;
  --panelMuted: rgba(22,24,28,.68);

  --stroke: rgba(255,255,255,.14);
  --stroke2: rgba(22,24,28,.12);

  --r: 18px;
  --r2: 26px;
  --shadow: 0 20px 70px rgba(0,0,0,.45);
  --shadowSoft: 0 14px 40px rgba(0,0,0,.25);

  --max: 1080px;
}

*{ box-sizing:border-box; }
html, body { height: 100%; }
body{
background:
  radial-gradient(1400px 800px at 12% 18%, rgba(242,179,111,.20), transparent 62%),
  radial-gradient(1200px 760px at 86% 28%, rgba(143,211,201,.18), transparent 64%),
  radial-gradient(1000px 680px at 42% 92%, rgba(110,130,255,.12), transparent 62%),
  linear-gradient(180deg, #111723, #0f141e 40%, #0c1119);
background-color: #0f141e;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

strong{ font-weight: 800; }

.kbd{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(22,24,28,.18);
  background: rgba(255,255,255,.82);
  color: rgba(22,24,28,.90);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

/* ---------------------------
   Topbar (changes on scroll)
--------------------------- */
.topbar{
  position: fixed;
  left:0; right:0; top:0;
  z-index: 50;
  padding: 14px 16px;
  transition: all .28s ease;
  pointer-events: none; /* allow content to scroll without issues */
}
.topbar-inner{
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 18px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,12,16,.40);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);

  pointer-events: auto;
}

/* minimal = still visible, just subtle */
.topbar[data-mode="minimal"] .chapters{
  opacity: .72;
}
.topbar[data-mode="minimal"] .topbar-cta{
  opacity: .9;
}
.topbar[data-mode="minimal"] .chapters a{
  color: rgba(255,255,255,.78); /* <- final value */
}

.chapters, .topbar-cta{
  transition: all .28s ease;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: .01em;
}
.mark{
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(135deg, rgba(242,179,111,.95), rgba(143,211,201,.75));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 30px rgba(0,0,0,.30);
}
.brand-text{ font-size: 14px; }

.chapters{
  display:flex;
  gap: 4px;
  align-items:center;
  transition: all .28s ease;
}
.chapters a{
  font-size: 14px;      /* vorher 13px */
  font-weight: 650;     /* neu */
  letter-spacing: .01em;/* neu */

  color: rgba(255,255,255,.76);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.chapters a:hover{
  text-decoration:none;
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.chapters a.is-active{
  color: rgba(255,255,255,.96);
  font-weight: 750;
  position: relative;
}

.chapters a.is-active::after{
  content:"";
  position:absolute;
  left: 18%;
  right: 18%;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(242,179,111,.0),
    rgba(242,179,111,.9),
    rgba(242,179,111,.0)
  );
}


.topbar-cta{
  transition: all .28s ease;
}

@media (max-width: 760px){
  .chapters{ display:none; }
  .topbar[data-mode="minimal"] .topbar-cta{ display:none; }
}

/* ---------------------------
   Chapters
--------------------------- */
.chapter{
  min-height: 100vh;
  position: relative;
  display:flex;
  align-items: center;
  padding: 96px 0 70px;
}

/* Section tint layer (softly changes mood without hard cuts) */
.chapter .bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity: .92;
  background: transparent;
  mix-blend-mode: screen; /* gives a premium glow. if you dislike it, remove this line */
}


/* Smooth transitions between chapter backgrounds */
.chapter{
  position: relative;
  overflow: hidden;
}

.chapter::before{
  content:"";
  position:absolute;
  left:0; right:0; top:-1px;
  height: 120px;
  pointer-events:none;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(12,15,20,0),
    rgba(12,15,20,.75)
  );
}


.chapter::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 170px; /* adjust 120–240 */
  pointer-events:none;
  z-index: 2;

  /* fade to dark so the next section doesn't feel like a hard cut */
  background: linear-gradient(
    to bottom,
    rgba(12,15,20,0),
    rgba(12,15,20,.65),
    rgba(12,15,20,1)
  );
}

/* Stronger fade specifically for the How -> Topics transition */
#how::after{
  height: 240px; /* stronger blend */
  background: linear-gradient(
    to bottom,
    rgba(12,15,20,0),
    rgba(12,15,20,.78),
    rgba(12,15,20,1)
  );
}


.chapter-inner{
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* “Image backgrounds” (v1: gradients).
   Later replace with real images:
   .bg-hero { background: url(/assets/hero.jpg) center/cover no-repeat; }
*/
.bg-hero{
  background:
    radial-gradient(900px 520px at 22% 26%, rgba(242,179,111,.22), transparent 62%),
    radial-gradient(900px 520px at 82% 34%, rgba(143,211,201,.18), transparent 64%),
    radial-gradient(1200px 760px at 50% 90%, rgba(110,130,255,.08), transparent 62%);
}
.bg-why{
  background:
    radial-gradient(1000px 640px at 30% 30%, rgba(143,211,201,.18), transparent 62%),
    radial-gradient(900px 520px at 78% 66%, rgba(255,255,255,.06), transparent 60%);
}
.bg-how{
  background:
    radial-gradient(1000px 640px at 70% 22%, rgba(242,179,111,.18), transparent 62%),
    radial-gradient(900px 520px at 26% 70%, rgba(110,130,255,.06), transparent 64%);
}
.bg-topics{
  background:
    radial-gradient(1000px 640px at 20% 74%, rgba(242,179,111,.14), transparent 64%),
    radial-gradient(1000px 640px at 88% 30%, rgba(143,211,201,.14), transparent 66%),
    radial-gradient(900px 520px at 52% 48%, rgba(255,255,255,.05), transparent 62%);
}
.bg-popular{
  background:
    radial-gradient(1000px 640px at 26% 34%, rgba(143,211,201,.16), transparent 66%),
    radial-gradient(900px 520px at 78% 40%, rgba(242,179,111,.10), transparent 64%);
}
.bg-suggest{
  background:
    radial-gradient(1000px 640px at 72% 62%, rgba(242,179,111,.14), transparent 66%),
    radial-gradient(900px 520px at 22% 40%, rgba(110,130,255,.06), transparent 64%),
    radial-gradient(900px 520px at 86% 22%, rgba(143,211,201,.10), transparent 66%);
}

/* soften all section gradients slightly */
.bg{
  filter: brightness(1.08) saturate(1.05);
}


/* scrim to ensure readability (like photo overlay) */
.scrim{
  position:absolute;
  inset:0;
  z-index: 1;
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(0,0,0,.10), rgba(0,0,0,.38)),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.48));
}

/* Editorial panel */
.panel{
  background: var(--panel);
  color: var(--panelText);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r2);
  box-shadow:
    0 20px 70px rgba(0,0,0,.32),
    0 1px 0 rgba(255,255,255,.16) inset;
  padding: 26px 26px;
  max-width: 900px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#top .panel{
  background: rgba(255,255,255,.68);
}

.panel-hero{
  max-width: 760px;
}

.eyebrow{
  margin: 0 0 10px;
  color: rgba(22,24,28,.62);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

h1{
  margin: 0 0 10px;
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}
h2{
  margin: 0 0 12px;
  font-size: clamp(22px, 2.1vw, 28px);
  letter-spacing: -0.02em;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}
h3{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.lede{
  margin: 0 0 18px;
  color: var(--panelMuted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 70ch;
}

.muted{
  margin: 0 0 16px;
  color: rgba(22,24,28,.62);
}

.micro{
  margin: 12px 0 0;
  font-size: 12.5px;
  color: rgba(22,24,28,.58);
  line-height: 1.5;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22,24,28,.14);
  background: rgba(255,255,255,.60);
  color: rgba(22,24,28,.92);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover{
  text-decoration:none;
  background: rgba(255,255,255,.78);
  border-color: rgba(22,24,28,.20);
}

.btn-primary{
  border-color: rgba(242,179,111,.55);
  background: linear-gradient(135deg, rgba(242,179,111,.92), rgba(143,211,201,.70));
  color: rgba(10,12,16,.92);
}
.btn-primary:hover{
  filter: brightness(1.03);
}

.btn-ghost{
  background: rgba(255,255,255,.52);
}

/* Scroll hint */
.hint{
  margin-top: 18px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}
.hint-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(242,179,111,.85);
  box-shadow: 0 0 0 6px rgba(242,179,111,.14);
}

/* Chapter content blocks */
.callouts{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.callout{
  grid-column: span 4;
  padding: 14px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(22,24,28,.12);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadowSoft);
}
.callout p{
  margin: 0;
  color: rgba(22,24,28,.64);
  font-size: 13.5px;
  line-height: 1.5;
}
@media (max-width: 900px){
  .callout{ grid-column: span 12; }
}

/* Steps */
.steps{
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.steps li{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: var(--r);
  border: 1px solid rgba(22,24,28,.12);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadowSoft);
}
.step-num{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: rgba(10,12,16,.92);
  background: rgba(242,179,111,.85);
  border: 1px solid rgba(242,179,111,.55);
}

/* Topic tiles */
.tiles{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.tile{
  grid-column: span 6;
  padding: 16px 16px;
  border-radius: var(--r);
  border: 1px solid rgba(22,24,28,.12);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadowSoft);
  text-decoration:none;
}
.tile:hover{
  text-decoration:none;
  border-color: rgba(242,179,111,.55);
}
.tile-kicker{
  display:block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(22,24,28,.55);
  margin-bottom: 8px;
}
.tile-title{
  display:block;
  font-weight: 850;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.tile-meta{
  display:block;
  color: rgba(22,24,28,.62);
  font-size: 13px;
}
@media (max-width: 900px){
  .tile{ grid-column: span 12; }
}

/* Popular cards */
.searchrow{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin: 12px 0 6px;
}
.input{
  flex: 1 1 260px;
  min-width: 240px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(22,24,28,.14);
  background: rgba(255,255,255,.80);
  color: rgba(22,24,28,.90);
  outline:none;
}
.input::placeholder{ color: rgba(22,24,28,.45); }
.input:focus{
  border-color: rgba(242,179,111,.60);
  box-shadow: 0 0 0 4px rgba(242,179,111,.18);
}

.cards{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.cardlink{
  grid-column: span 4;
  padding: 16px 16px;
  border-radius: var(--r);
  border: 1px solid rgba(22,24,28,.12);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadowSoft);
  text-decoration:none;
}
.cardlink:hover{
  text-decoration:none;
  border-color: rgba(143,211,201,.45);
}
.cardlink h3{
  margin: 10px 0 6px;
}
.cardlink p{
  margin: 0;
  color: rgba(22,24,28,.62);
  font-size: 13.5px;
  line-height: 1.5;
}
.cardlink-top{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}
.badge{
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(22,24,28,.12);
  background: rgba(242,179,111,.22);
  color: rgba(22,24,28,.82);
  font-weight: 800;
}
.badge-soft{
  background: rgba(22,24,28,.06);
  color: rgba(22,24,28,.62);
}
@media (max-width: 900px){
  .cardlink{ grid-column: span 12; }
}

/* Suggest */
.suggest{
  margin-top: 10px;
}
.label{
  display:block;
  font-size: 13px;
  font-weight: 800;
  color: rgba(22,24,28,.62);
  margin-bottom: 6px;
}
.row{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.foot{
  margin-top: 18px;
  border-top: 1px solid rgba(22,24,28,.12);
  padding-top: 12px;
}
