/* ═══════════════════════════════════════════════════════════════
   kp.css — gemeinsame Styles der Knotenpunk-Detailseiten
   (knotenpunk.html, knotenpunk-so-gehts.html,
    knotenpunk-prinzipien.html, knotenpunk-alltag.html)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #FAF6EE;
  --bg-card: #FFFFFF;
  --text: #2D332B;
  --text-muted: #6B6259;
  --sky: #8AB6D6;
  --meadow: #9CB87E;
  --sun: #F2C94C;
  --klinker: #C9784F;
  --line: #E5DDD0;
  --max: 1100px;
  --max-text: 720px;
  --radius: 14px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.7em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
p { color: var(--text); }
p + p { margin-top: 0.9em; }
a { color: var(--klinker); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--text); }

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  border: 0;
  letter-spacing: -0.01em;
}
.lang { display: flex; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.lang button { background: transparent; border: 0; color: inherit; cursor: pointer; padding: 0.2rem 0.4rem; font-family: inherit; }
.lang button.is-active { color: var(--text); font-weight: 700; }

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); border-bottom: 1px dotted currentColor; }
.breadcrumb a:hover { color: var(--text); }

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.6rem 3rem;
}
.page-hero h1 { margin: 1rem 0 0.6rem; max-width: 18ch; }
.page-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  max-width: 42ch;
}
.page-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 2rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  background: var(--klinker);
  color: white;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  border: 0;
}
.btn-primary:hover { background: var(--text); color: white; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #3B6B43;
  background: #EAF3E6;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
}
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4E9A51; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.6rem;
}
.section-narrow { max-width: var(--max-text); }
.section-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section p { max-width: 60ch; }

/* TOPIC CARDS (Übersicht) */
.topic-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}
@media (min-width: 760px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.topic-card:hover { border-color: var(--klinker); color: var(--text); transform: translateY(-2px); }
.topic-card h3 { margin: 0; }
.topic-card p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }
.topic-card .go { margin-top: auto; padding-top: 0.6rem; color: var(--klinker); font-weight: 500; }

/* TUTORIAL STEPS (Timeline) */
.steps { list-style: none; padding: 0; counter-reset: step; margin-top: 2rem; }
.step-item { position: relative; padding: 0 0 2rem 4rem; counter-increment: step; }
.step-item::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--klinker); color: white;
  font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step-item::after {
  content: ""; position: absolute; left: 1.3rem; top: 2.6rem; bottom: 0;
  width: 1px; background: var(--line);
}
.step-item:last-child { padding-bottom: 0; }
.step-item:last-child::after { display: none; }
.step-item h3 { margin-bottom: 0.2em; }
.step-item p { color: var(--text-muted); max-width: 52ch; }

/* TWO-COL */
.two-col { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1.1fr 1fr; }
  .two-col.reversed > :first-child { order: 2; }
}
.two-col-image {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line);
}
.two-col-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* STAGES / RULE CARDS */
.stages-grid { display: grid; gap: 1.4rem; margin-top: 2rem; }
@media (min-width: 700px) { .stages-grid { grid-template-columns: 1fr 1fr; } }
.stage { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.stage-num { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 0.9rem; color: var(--klinker); margin-bottom: 0.4rem; }

/* QUOTE */
.quote-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--klinker);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-top: 2rem;
}
.quote-box p {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text);
  max-width: none;
}

/* LISTS */
.neg-list { padding-left: 0; list-style: none; max-width: 60ch; }
.neg-list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}
.neg-list li:first-child { border-top: 0; }
.neg-list li::before { content: "•"; position: absolute; left: 0; color: var(--klinker); }

/* CTA */
.cta-section { background: var(--bg-card); }
.cta-block { max-width: var(--max-text); margin: 0 auto; padding: 4rem 1.6rem; text-align: left; }
.signup-fineprint { margin-top: 0.8rem; font-size: 0.82rem; color: var(--text-muted); }

/* FOOTER */
.footer {
  max-width: var(--max);
  margin: 4rem auto 0;
  padding: 2rem 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.footer a { color: var(--text-muted); border: 0; text-decoration: underline; }
.footer-sep { opacity: 0.6; }
