@font-face { font-family: 'Caveat'; src: url(/fonts/caveat-latin-wght-normal.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url(/fonts/oswald-latin-wght-normal.woff2) format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #fbf8f1;
  --paper-2: #f4efe3;
  --ink: #22252a;
  --muted: #5d636c;
  --line: #e4ddcd;
  --blue: #3f7fd0;
  --green: #6aa84f;
  --yellow: #ffc21a;
  --red: #d7261e;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(60, 45, 20, .06), 0 8px 28px -10px rgba(60, 45, 20, .18);
  --night: #0b0e13;
  --night-2: #151a22;
  --r: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 Inter, system-ui, sans-serif; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.hand { font-family: Caveat, 'Comic Sans MS', cursive; font-weight: 700; letter-spacing: .005em; }
.nowrap { white-space: nowrap; }
mark { background: linear-gradient(transparent 20%, #ffe28a 20%, #ffe28a 88%, transparent 88%); padding: 0 .15em; }

/* ---------- Navigation ---------- */
.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px); pointer-events: none;
}
.brand {
  pointer-events: auto; text-decoration: none; font: 600 14px/1 Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; gap: 10px; align-items: center; padding: 9px 14px; border-radius: 999px;
  background: rgba(251, 248, 241, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
  transition: background .3s, color .3s;
}
.brand-hex { width: 16px; height: 14px; background: var(--yellow); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); box-shadow: 0 0 12px var(--yellow); }
.dots { pointer-events: auto; position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.dots a { position: relative; display: block; width: 12px; height: 11px; background: #cfc6b3; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); transition: background .25s, transform .25s; }
.dots a.on { background: var(--yellow); transform: scale(1.35); }
.dots a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) { .dots { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn.primary:hover { box-shadow: 0 0 0 4px rgba(255, 194, 26, .45), 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.small { padding: 8px 14px; font-size: 14px; background: var(--ink); color: #fff; }
.btn.ghost-dark { background: transparent; color: #aab4c2; box-shadow: inset 0 0 0 1px #3a4250; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg.dark { background: rgba(10, 13, 18, .72); box-shadow: inset 0 0 0 1px #2b323d; backdrop-filter: blur(8px); }
.seg.dark button { color: #9aa4b2; }
.seg.dark button.on { background: #2a313c; color: #fff; box-shadow: none; }

/* ---------- Titel ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center; gap: 2vw; padding: 90px clamp(16px, 5vw, 72px) 60px;
  background:
    radial-gradient(1200px 600px at 80% 30%, #fff 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(900px 500px at 10% 90%, #f1ead8 0%, rgba(241, 234, 216, 0) 70%), var(--paper);
}
.eyebrow, .kicker { font: 500 13px/1 Oswald, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.kicker.light { color: #8d97a6; }
.hero h1 { font-size: clamp(50px, 6.4vw, 96px); line-height: .95; margin-bottom: 26px; color: #3b3f45; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34em; }
.lead em { color: var(--ink); font-style: normal; font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 38px; }
.author { font-size: 14px; color: var(--muted); border-left: 3px solid var(--yellow); padding-left: 14px; }
.author strong { color: var(--ink); }
.hero-stage { position: relative; height: min(76vh, 700px); min-height: 360px; border-radius: 28px; overflow: hidden; background: #0f1319; box-shadow: 0 40px 80px -40px rgba(20, 15, 5, .55); }
.stage-cap { position: absolute; left: 18px; bottom: 14px; margin: 0; font-size: 13px; color: #a9b2bf; pointer-events: none; }
.quick { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 30em; }
.quick li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.quick b { flex: none; width: 30px; height: 26px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 13px Oswald, sans-serif; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.quick strong { color: var(--ink); }
.hero-stage canvas, .room canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-fallback svg { width: 100%; height: 100%; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px #b9af9a; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #b9af9a; animation: hint 1.8s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 84px; }
  .hero-stage { order: -1; height: 40vh; min-height: 260px; margin: 0 0 20px; border-radius: 22px; }
  .stage-cap { font-size: 11.5px; right: 14px; }
  .scroll-hint { display: none; }
}

/* ---------- Kapitel ---------- */
.chapter { padding: clamp(80px, 12vh, 140px) clamp(16px, 5vw, 72px); position: relative; }
.tint-blue { background: linear-gradient(180deg, #f2f6fb, #eef3fa); }
.tint-warm { background: linear-gradient(180deg, #fbf3e3, #f8efdc); }
.tint-green { background: linear-gradient(180deg, #f1f6ec, #edf4e6); }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .wrap.two { grid-template-columns: 1fr; } .wrap.two.reverse > :first-child { order: 2; } }
h2.hand { font-size: clamp(44px, 5.6vw, 76px); margin-bottom: 18px; color: #2b2e33; }
.sub { font-size: 18px; color: var(--muted); max-width: 40em; }
.sub.light { color: #aab4c2; }
.sub b { color: var(--ink); }
.h3big { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 10px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Telefone */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 10px; }
.phone {
  position: relative; border: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 16px 18px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .2s;
}
.phone:hover { transform: translateY(-3px); }
.phone svg { width: min(140px, 80%); overflow: visible; }
.phone .who { font-size: 32px; }
.phone .said { font-size: 14px; color: var(--muted); min-height: 3em; opacity: 0; transform: translateY(-4px); transition: .3s; text-align: center; }
.phone.talked .said { opacity: 1; transform: none; }
.phone.ringing svg { animation: ring .9s cubic-bezier(.36, .07, .19, .97); }
.phone.ringing::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 3px var(--c); opacity: 0; animation: halo .9s; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 10%, 30%, 50%, 70% { transform: rotate(-9deg) translateY(-3px); } 20%, 40%, 60%, 80% { transform: rotate(9deg) translateY(-3px); } }
@keyframes halo { 0% { opacity: .9; } 100% { opacity: 0; transform: scale(1.06); } }
.ring-counter { text-align: center; color: var(--muted); font-size: 15px; margin: 8px 0 44px; }
.ring-counter span { display: inline-block; min-width: 1.6em; font-weight: 700; color: var(--red); font-size: 20px; }
@media (max-width: 640px) { .phones { grid-template-columns: 1fr; } .phone { flex-direction: row; text-align: left; } .phone svg { width: 90px; } .phone .said { text-align: left; min-height: 0; } }

.problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pcard { background: #d7261e; color: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 10px 22px -14px rgba(160, 20, 10, .8); }
.pcard h3 { font: 700 24px/1.1 Caveat, cursive; margin-bottom: 6px; }
.pcard p { font-size: 14px; margin: 0; opacity: .9; }
.consequences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.consequences div { background: #ffc6c3; border-radius: 14px; padding: 18px; text-align: center; font: 700 30px/1 Caveat, cursive; }
.consequences b { color: var(--red); }
@media (max-width: 900px) { .problems { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .problems, .consequences { grid-template-columns: 1fr; } }

/* Zulip-Vorteile + Sägeblatt */
.benefits { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.benefits li { background: #a4c78a; color: #fff; border-radius: 14px; padding: 12px 16px; font: 700 22px/1.15 Caveat, cursive; }
.benefits small { display: block; font: 500 13px/1.3 Inter, sans-serif; opacity: .9; margin-top: 2px; }
.saw { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 24px; }
.saw h3 { font: 700 30px/1 Caveat, cursive; }
.saw-note { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.saw svg { width: 100%; height: auto; }
.axis { stroke: #c9c0ad; stroke-width: 1.5; }
.axl { font: 500 12px Oswald, sans-serif; fill: #9a917e; letter-spacing: .08em; text-transform: uppercase; }
.saw-line { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; transition: stroke .5s; }
.saw-line.good { stroke: var(--green); }
.saw .seg { margin-top: 10px; }

/* Nachrichtenflut */
.flood { background: #1f232a; color: #d8dde4; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); height: 440px; display: flex; flex-direction: column; transition: filter .8s; }
.flood-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #2a2f37; font-weight: 600; }
.flood-head small { color: #8b95a3; font-weight: 400; }
.badge { margin-left: auto; background: var(--red); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.zdot { width: 12px; height: 12px; border-radius: 4px; background: #6492fe; display: inline-block; flex: none; }
.flood-list { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.fl-item { background: #2a2f37; border-radius: 10px; padding: 9px 12px; font-size: 14px; display: flex; gap: 10px; animation: drop .4s ease-out; }
.fl-item b { color: #8fb2ff; font-weight: 600; min-width: 6.5em; }
.flood.overload .fl-item:nth-child(n+3) { opacity: .45; }
.flood.overload { filter: saturate(.6); }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }
.arrowbox { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.arrowbox p { margin: 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; padding: 16px 22px; font: 700 26px/1.2 Caveat, cursive; width: 100%; }
.arrowbox .down { font-size: 34px; color: #999; }
.arrowbox .warn { border: 2px dotted var(--red); color: var(--red); background: transparent; }

/* Legende */
.legend-wall { text-align: center; }
.legend-wall svg { width: 100%; height: auto; max-height: 520px; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.legend-info { min-height: 3.2em; font-size: 15px; margin-top: 6px; }
.hex { fill: #f4f2ec; stroke: #cfc9bb; stroke-width: 1.5; cursor: pointer; transition: fill .35s, filter .35s; }
.hex.dark { fill: #3a3f47; stroke: #23272d; }
.hex.lit { fill: var(--glow); filter: drop-shadow(0 0 10px var(--glow)) drop-shadow(0 0 22px var(--glow)); }
.hex.blink { animation: blink .42s steps(1) infinite; }
.hex.pulse { animation: pulse 2s ease-in-out infinite; }
.hex:focus { outline: none; stroke: var(--blue); stroke-width: 3; }
@keyframes blink { 50% { fill: #3a3f47; filter: none; } }
@keyframes pulse { 50% { opacity: .55; } }
.fx-rainbow .hex { animation: rainbow 3s linear; }
@keyframes rainbow { 0% { fill: #ff4d4d; } 25% { fill: #ffd24a; } 50% { fill: #4ddc84; } 75% { fill: #4d9bff; } 100% { fill: #c46bff; } }

/* ---------- Demo ---------- */
.demo { background: radial-gradient(1200px 700px at 70% 20%, #1a2130, var(--night) 70%); color: #e9edf2; padding: clamp(80px, 11vh, 120px) clamp(16px, 3vw, 40px) 60px; }
.demo-head { max-width: 1180px; margin: 0 auto 30px; }
.demo h2.hand { color: #fff; }
.demo-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; max-width: 1500px; margin: 0 auto; height: min(78vh, 780px); min-height: 560px; }
.zulip { background: var(--night-2); border-radius: 20px; box-shadow: inset 0 0 0 1px #242b36; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.z-top { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #242b36; font-size: 15px; }
.z-stream { color: #8b95a3; }
.z-open { margin-left: auto; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #232a35; color: #8b95a3; transition: .3s; }
.z-open.hot { background: var(--yellow); color: #1b1b1b; font-weight: 700; }
.z-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: #2e3642 transparent; }
.z-empty { color: #7c8694; font-size: 14px; text-align: center; margin: auto 10px; }
.zm { background: #1d232c; border-radius: 12px; padding: 10px 12px 10px 16px; position: relative; font-size: 14px; transition: opacity .4s, background .4s; }
.zm::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--c); }
.zm.new { animation: drop .45s ease-out; }
.zm header { display: flex; justify-content: space-between; color: #8b95a3; font-size: 12px; }
.zm-topic { font-weight: 600; color: #aab4c2; }
.zm-who { font-weight: 700; margin: 2px 0 0; }
.zm-text { margin: 2px 0 8px; color: #cfd4da; }
.zm footer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.zm footer button { border: 0; border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; background: #2a323e; color: #e9edf2; box-shadow: inset 0 0 0 1px #37404d; transition: background .2s; }
.zm footer button:hover { background: #36404e; }
.zm-log { font-size: 12px; color: #9aa4b2; }
.zm.s-open { background: #232a22; box-shadow: inset 0 0 0 1px rgba(255, 194, 26, .35); }
.zm.s-open.urgent { background: #331b1b; box-shadow: inset 0 0 0 1px rgba(255, 60, 60, .6); animation: urgent 1s ease-in-out infinite alternate; }
.zm.s-taken { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.zm.s-done { opacity: .45; }
@keyframes urgent { to { box-shadow: inset 0 0 0 1px rgba(255, 60, 60, 1), 0 0 18px -4px rgba(255, 40, 40, .8); } }
.z-send { border-top: 1px solid #242b36; padding: 12px; }
.z-label { font-size: 12px; color: #8b95a3; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .1em; font-family: Oswald, sans-serif; }
.z-buttons { display: flex; flex-wrap: wrap; gap: 6px; max-height: 128px; overflow-y: auto; }
.chip { border: 0; cursor: pointer; font-size: 12.5px; padding: 6px 10px 6px 8px; border-radius: 999px; background: #222935; color: #dfe4ea; display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 0 0 1px #313a47; transition: background .2s, transform .1s; }
.chip::before { content: ''; width: 9px; height: 8px; background: var(--c); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.chip:hover { background: #2d3542; }
.chip:active { transform: scale(.96); }
.z-auto { display: flex; gap: 8px; margin-top: 10px; }
.z-auto .btn.small { background: var(--yellow); color: #1b1b1b; }
.z-auto .btn.small.on { background: #e9edf2; }
.z-auto .btn.ghost-dark { background: transparent; color: #aab4c2; }

.room { position: relative; border-radius: 20px; overflow: hidden; background: #07090d; box-shadow: inset 0 0 0 1px #242b36; min-height: 0; }
.room-ui { position: absolute; inset: 14px 14px auto 14px; display: flex; justify-content: flex-end; pointer-events: none; }
.room-ui .seg { pointer-events: auto; }
.tip { position: absolute; left: 0; top: 0; max-width: 260px; background: rgba(12, 15, 20, .92); color: #e9edf2; border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px #2b323d; pointer-events: none; }
.room-legend { position: absolute; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 14px; border-radius: 12px; background: rgba(10, 13, 18, .72); backdrop-filter: blur(8px); font-size: 13px; color: #c3cad4; }
.room-legend span { display: inline-flex; align-items: center; gap: 7px; }
.room-legend i { width: 14px; height: 12px; background: var(--c); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); box-shadow: 0 0 8px var(--c); }
.room-legend i.blink { animation: lg-blink .8s steps(1) infinite; }
@keyframes lg-blink { 50% { opacity: .2; } }
@media (max-width: 980px) {
  .demo-grid { grid-template-columns: 1fr; height: auto; }
  .room { height: 62vh; min-height: 380px; order: -1; }
  .zulip { height: 560px; }
}

/* ---------- Lichtsprache ---------- */
.lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.lcard { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.lcard h3 { font: 700 30px/1 Caveat, cursive; margin: 8px 0 8px; }
.lcard p { color: var(--muted); font-size: 15px; margin: 0; }
.mini { width: 100%; height: 130px; background: #22262c; border-radius: 14px; }
.mini use, .mini polygon { fill: #4a4f57; }
.h-white use { fill: #fff6e6; filter: drop-shadow(0 0 10px #fff6e6); }
.h-talk use { fill: #ff6d01; filter: drop-shadow(0 0 10px #ff6d01); animation: tone 4s infinite; }
.h-red use { fill: #ff3300; filter: drop-shadow(0 0 10px #ff3300); }
.h-blink use { fill: #ff5fb0; filter: drop-shadow(0 0 14px #ff5fb0); animation: blink2 .8s steps(1) infinite; }
.h-remind use { animation: remind 4s infinite; }
@keyframes tone { 0%, 45% { fill: #ff6d01; filter: drop-shadow(0 0 10px #ff6d01); } 50%, 95% { fill: #ffc21a; filter: drop-shadow(0 0 10px #ffc21a); } }
@keyframes remind { 0%, 6%, 24%, 30% { fill: #ff6d01; filter: drop-shadow(0 0 12px #ff6d01); } 12%, 18%, 36%, 100% { fill: #4a4f57; filter: none; } }
@keyframes blink2 { 50% { fill: #4a4f57; filter: none; } }
.wave use { animation: wv 2.6s ease-in-out infinite; }
.wave use:nth-child(2), .wave use:nth-child(3) { animation-delay: .25s; }
.wave use:nth-child(4) { animation-delay: .5s; }
.wave use:nth-child(5), .wave use:nth-child(6) { animation-delay: .75s; }
.wave use:nth-child(7) { animation-delay: 1s; }
@keyframes wv { 0%, 100% { fill: #4a4f57; } 30% { fill: #9fd67f; filter: drop-shadow(0 0 8px #9fd67f); } 55% { fill: #4a4f57; } }
@media (max-width: 820px) { .lang { grid-template-columns: 1fr; } }

/* ---------- Workflow ---------- */
.steps { list-style: none; padding: 0; margin: 34px 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px; position: relative; display: flex; flex-direction: column; gap: 6px; border: 2px dotted transparent; transition: border-color .3s, opacity .3s; }
.step::before { counter-increment: st; content: counter(st); position: absolute; top: 14px; left: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font: 600 13px Oswald, sans-serif; }
.step.active { border-color: #7aa860; }
.step.done::before { content: '✓'; background: #7aa860; color: #fff; }
.step:not(.active):not(.done) { opacity: .55; }
.step .art { height: 120px; display: grid; place-items: center; }
.step .art svg { width: 150px; height: 110px; }
.step h3 { font: 700 28px/1 Caveat, cursive; }
.step p { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.step .btn { align-self: flex-start; margin-top: auto; }
.step:not(.active) .btn { pointer-events: none; opacity: .4; }
.step.active .card-move { animation: tap 1.6s ease-in-out infinite; }
.step.active .beam { animation: beam 1.2s ease-in-out infinite; }
@keyframes tap { 50% { transform: translate(-8px, -6px); } }
@keyframes beam { 50% { opacity: .3; } }
.tablet { background: #34383e; border-radius: 16px; padding: 10px; box-shadow: inset 0 0 0 3px #1d2024; height: auto !important; }
.t-screen { background: #5a5e63; border-radius: 8px; padding: 12px 10px; text-align: center; color: #fff; }
.t-name { font: 700 19px/1.1 Caveat, cursive; margin: 0; }
.t-exam { font-size: 12px; margin: 2px 0 8px; opacity: .85; }
.t-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.t-btns button { border: 0; border-radius: 6px; background: #a4c78a; color: #1d2a14; font: 700 16px/1 Caveat, cursive; padding: 6px 4px; cursor: pointer; }
.t-btns button:disabled { opacity: .35; cursor: not-allowed; }
.t-btns button.on { background: #ffc21a; }
.step.active .t-btns button:not(:disabled) { animation: nudge 1.6s infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 3px rgba(255, 194, 26, .6); } }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.flow-result { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); flex-wrap: wrap; }
.fr-msg { display: flex; align-items: center; gap: 10px; font-size: 15px; flex: 1; min-width: 240px; }
.fr-arrow { font-size: 26px; color: #aaa; }
.fr-hex { width: 56px; height: 50px; }
.fr-hex use { fill: #d9d5cc; transition: fill .4s, filter .4s; }
.fr-hex.lit use { fill: var(--lit, #fff6e6); filter: drop-shadow(0 0 10px var(--lit, #fff6e6)) drop-shadow(0 0 3px rgba(0,0,0,.35)); }
.fr-label { font-size: 14px; color: var(--muted); }
.flow-result.pop { animation: pop .5s; }
@keyframes pop { 30% { transform: scale(1.02); box-shadow: 0 0 0 4px rgba(255, 194, 26, .5), var(--shadow); } }

.deeplink { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; margin-top: 70px; }
.ris { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 0 0 12px; font-size: 14px; }
.ris-bar { display: flex; justify-content: space-between; background: #2e3a4a; color: #fff; padding: 9px 14px; border-radius: 16px 16px 0 0; font: 500 13px Oswald, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ris-row { display: grid; grid-template-columns: 1.6fr 1fr .5fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #eee8dc; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
.ris-row.head { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ris-row.target { background: #a8c8ea; cursor: context-menu; font-weight: 600; animation: nudge 2s infinite; }
.ris-hint { padding: 10px 14px 0; margin: 0; font-size: 13px; color: var(--muted); }
.radial { position: absolute; right: 8%; top: 40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(245, 245, 245, .96); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .35), inset 0 0 0 1px #bbb; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.radial.show { animation: radial .3s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes radial { from { transform: scale(.4); opacity: 0; } }
.radial button { border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: #1f2a3c; box-shadow: inset 0 0 0 .5px #999; transition: background .2s; }
.radial button:hover { background: #ffe28a; }
.radial svg { width: 40px; height: 40px; }
@media (max-width: 900px) { .deeplink { grid-template-columns: 1fr; } .radial { right: 10px; } }

/* ---------- Ökosystem ---------- */
.eco { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px 70px; margin-top: 34px; }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.eco-lines path { fill: none; stroke: #d6cdb9; stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1.4s linear infinite; transition: stroke .3s; }
.eco-lines path.hot { stroke: #e0a800; stroke-width: 3; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.eco-col { display: flex; flex-direction: column; gap: 12px; justify-content: center; position: relative; }
.eco-col h4 { font: 500 13px/1 Oswald, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.node { background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 600; font-size: 15px; cursor: default; transition: opacity .25s, transform .25s; position: relative; z-index: 1; }
.node small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.node.core { background: #3f6fd0; color: #fff; padding: 18px; font-size: 18px; }
.node.core small { color: #d7e3fb; }
.node.core#n-ha { background: #41a9d8; }
.node.out { background: #22262c; color: #fff; }
.node.dim { opacity: .35; }
.node:hover, .node:focus { transform: translateY(-2px); }
.eco-info { min-height: 3em; text-align: center; margin-top: 22px; color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .eco { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Lessons ---------- */
.lessons { display: grid; gap: 10px; margin-top: 26px; max-width: 860px; }
.lessons details { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 20px 14px 58px; position: relative; }
.lessons details::before { content: ''; position: absolute; left: 18px; top: 18px; width: 26px; height: 23px; background: #ece8df; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); transition: background .3s, box-shadow .3s; }
.lessons details[open]::before { background: var(--yellow); }
.lessons summary { cursor: pointer; list-style: none; font: 700 26px/1.2 Caveat, cursive; }
.lessons summary::-webkit-details-marker { display: none; }
.lessons details p { margin: 6px 0 2px; color: var(--muted); }
.bridge { margin-top: 70px; text-align: center; }
.planks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.planks div { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; }
.planks b { font: 700 28px/1.1 Caveat, cursive; }
.planks span { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .planks { grid-template-columns: 1fr; } }

/* ---------- Danke ---------- */
.thanks { position: relative; overflow: hidden; padding: 110px clamp(16px, 5vw, 72px) 70px; background: linear-gradient(180deg, #f9e7b5, #f3c877 70%, #eab45c); text-align: center; }
.thanks h2 { font-size: clamp(46px, 6vw, 84px); color: #fff; text-shadow: 0 2px 20px rgba(160, 90, 0, .35); margin-bottom: 26px; }
.thanks p { position: relative; }
.thanks .fine { font-size: 13px; color: #6b5020; margin-top: 30px; }
.thanks-hex { position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48' viewBox='0 0 84 48'%3E%3Cpath d='M14 0h28l14 24-14 24H14L0 24z' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: 84px 48px; }
@media (max-width: 980px) { .room-ui { justify-content: center; } .room-legend { font-size: 12px; gap: 4px 10px; } }

/* Farbcode */
.colors { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.colors li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 15px; }
.colors li span { color: var(--muted); }
.colors li b { color: var(--ink); margin-right: 6px; }
.colors i { flex: none; width: 22px; height: 19px; background: var(--c); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); outline: 1px solid rgba(0,0,0,.12); }
.colors i[style*="#fff6e6"] { background: #fff6e6; box-shadow: inset 0 0 0 1.5px #cfc6b3; }
.colors i.blink { animation: lg-blink .8s steps(1) infinite; }
.colors i.rainbow { background: linear-gradient(90deg, #ff4d4d, #ffd24a, #4ddc84, #4d9bff, #c46bff); }
.legend-wall svg { background: #22262c; border-radius: 20px; }
.legend-wall .hex { fill: #4a4f57; stroke: #2b2f35; }
.legend-wall .hex.lit { fill: var(--glow); }

/* Warum */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.why-col { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 12px; border-top: 6px solid var(--k); }
.why-col.bad { --k: #d7261e; } .why-col.mid { --k: #3f7fd0; } .why-col.good { --k: #ffc21a; }
.why-col h3 { font: 700 32px/1 Caveat, cursive; }
.why-col p { margin: 0; color: var(--muted); font-size: 15px; }
.why-col p b { color: var(--ink); }
.why .phones { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.why .phone { padding: 10px 4px 8px; box-shadow: none; background: var(--paper-2); }
.why .phone svg { width: 70%; }
.why .phone .who { font-size: 20px; }
.why .ring-counter { margin: 0; text-align: left; }
.why .flood { height: 190px; border-radius: 14px; }
.why .flood-list { padding: 8px 10px; gap: 6px; }
.why .fl-item { font-size: 12.5px; padding: 6px 10px; }
.why-wall .mini { height: 150px; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tags.red li { background: #fde3e1; color: #a51d16; }
.tags.green li { background: #e4f0dc; color: #3d6b28; }
.tags.yellow li { background: #fff1c2; color: #7a5a00; }
@media (max-width: 980px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .why .phone { flex-direction: column; text-align: center; min-width: 0; } .why .phone svg { width: 60%; } .why .phone .who { font-size: 16px; } }

/* ---------- Helles Thema: weiße Panels, helle Räume ---------- */
.hero-stage { background: #ece7dd; box-shadow: 0 30px 70px -40px rgba(90, 70, 30, .45), inset 0 0 0 1px #e0d9ca; }
.stage-cap { color: #7a715f; }
.stage-fallback.dark { background: #ece7dd; }

.demo { background: linear-gradient(180deg, #f6f1e6, #efe8da); color: var(--ink); }
.demo h2.hand { color: #2b2e33; }
.kicker.light { color: var(--muted); }
.sub.light { color: var(--muted); }
.zulip { background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px #e7e1d4; }
.z-top { border-bottom: 1px solid #eee8dc; }
.z-stream { color: #7b8390; }
.z-open { background: #f1ede4; color: #7b8390; }
.z-msgs { scrollbar-color: #d9d2c3 transparent; }
.z-empty { color: #8a8f98; }
.zm { background: #f7f5f0; }
.zm header { color: #8a8f98; }
.zm-topic { color: #5d636c; }
.zm-text { color: #3d434b; }
.zm footer button { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #ddd6c7; }
.zm footer button:hover { background: #fff6dc; }
.zm-log { color: #7b8390; }
.zm.s-open { background: #fffaf0; box-shadow: inset 0 0 0 1px #f0d9a0; }
.zm.s-open.urgent { background: #fff0ef; box-shadow: inset 0 0 0 1px #f3a7a2; }
@keyframes urgent { to { box-shadow: inset 0 0 0 1px #e0413a, 0 0 16px -6px rgba(224, 65, 58, .7); } }
.zm.s-taken { box-shadow: inset 0 0 0 1px #ddd6c7; }
.zm.s-done { opacity: .5; }
.z-send { border-top: 1px solid #eee8dc; }
.z-label { color: #8a8f98; }
.chip { background: #f7f5f0; color: var(--ink); box-shadow: inset 0 0 0 1px #e2dbcc; }
.chip:hover { background: #fff6dc; }
.z-auto .btn.small.on { background: var(--ink); color: #fff; }
.btn.ghost-dark, .z-auto .btn.ghost-dark { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px #d9d2c3; }
.room { background: #e9e4da; box-shadow: var(--shadow), inset 0 0 0 1px #e0d9ca; }
.seg.dark { background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px #e0d9ca, var(--shadow); }
.seg.dark button { color: var(--muted); }
.seg.dark button.on { background: var(--ink); color: #fff; }
.tip { background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: var(--shadow), inset 0 0 0 1px #e7e1d4; }
.room-legend { background: rgba(255, 255, 255, .85); color: #4b515a; box-shadow: var(--shadow); }
.room-legend i { box-shadow: none; outline: 1px solid rgba(0, 0, 0, .12); }

.hex.dark { fill: #f7f5f0; stroke: #d8d1c2; }
.legend-wall svg { background: #efeae0; }
.legend-wall .hex { fill: #faf9f5; stroke: #d8d1c2; }
.legend-wall .hex.lit { fill: #fff; filter: drop-shadow(0 0 8px #ffd58a) drop-shadow(0 0 18px #ffd58a); }
.mini { background: #efeae0; }
.mini use, .mini polygon { fill: #faf9f5; stroke: #d8d1c2; stroke-width: 1.5; }
.h-white use { fill: #fff; filter: drop-shadow(0 0 10px #ffd58a) drop-shadow(0 0 4px #ffd58a); }
@keyframes blink2 { 50% { fill: #faf9f5; filter: none; } }
@keyframes remind { 0%, 6%, 24%, 30% { fill: #ff6d01; filter: drop-shadow(0 0 12px #ff6d01); } 12%, 18%, 36%, 100% { fill: #faf9f5; filter: none; } }
@keyframes wv { 0%, 100% { fill: #faf9f5; } 30% { fill: #9fd67f; filter: drop-shadow(0 0 8px #9fd67f); } 55% { fill: #faf9f5; } }
.fr-hex use { fill: #faf9f5; stroke: #d8d1c2; stroke-width: 1.5; }

.flood { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #e7e1d4; }
.flood-head { background: #f3f0e9; }
.flood-head small { color: #8a8f98; }
.fl-item { background: #f7f5f0; }
.fl-item b { color: #3f6fd0; }

.tablet { background: #d9d6d0; box-shadow: inset 0 0 0 3px #bdb8ae; }
.t-screen { background: #fbfaf7; color: var(--ink); }
.ris-bar { background: #e9eef5; color: #2e3a4a; }
.node.out { background: #fff; color: var(--ink); box-shadow: var(--shadow), inset 0 0 0 2px #ffc21a; }
.mini .h-talk use { fill: #ff6d01; filter: drop-shadow(0 0 10px #ff6d01); stroke: none; animation: tone 4s infinite; }
.mini .h-red use { fill: #ff3300; filter: drop-shadow(0 0 10px #ff3300); stroke: none; }
.mini .h-white use { fill: #fff; filter: drop-shadow(0 0 10px #ffd58a) drop-shadow(0 0 4px #ffd58a); }
.mini .h-blink use { fill: #ff5fb0; stroke: none; animation: blink2 .8s steps(1) infinite; }
.mini .h-remind use { animation: remind 4s infinite; }

/* Titel: weiße Wand, nur Panels und Schilder */
.hero { background: #fff; }
.hero-stage { background: #dcdad5; box-shadow: none; border-radius: 28px; overflow: hidden; }
.stage-cap { color: #9a917e; }
.legend-wall .hex.lit { fill: var(--glow); filter: drop-shadow(0 0 8px var(--glow)) drop-shadow(0 0 20px var(--glow)); }
.legend-wall .hex.lit[style*="#fff6e6"] { fill: #fff; filter: drop-shadow(0 0 8px #ffd58a) drop-shadow(0 0 18px #ffd58a); }

/* Emoji-Reaktionen wie in Zulip */
.zm { position: relative; }
.zm-bar { position: absolute; right: 8px; top: -14px; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(40, 30, 10, .18), inset 0 0 0 1px #e2dbcc; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s; z-index: 2; }
.zm:hover .zm-bar, .zm:focus-within .zm-bar, .zm.show .zm-bar { opacity: 1; transform: none; pointer-events: auto; }
.zm-bar button { border: 0; background: transparent; font-size: 17px; line-height: 1; padding: 5px; border-radius: 7px; cursor: pointer; transition: background .15s, transform .1s; }
.zm-bar button:hover { background: #fff3cf; transform: scale(1.15); }
.zm footer { margin-top: 2px; }
.pill { border: 0; border-radius: 999px; padding: 3px 9px; font-size: 13px; cursor: pointer; background: #fff; box-shadow: inset 0 0 0 1px #ddd6c7; }
.pill b { font-weight: 600; color: #5d636c; }
.pill.me { background: #e8f0ff; box-shadow: inset 0 0 0 1px #9dbaf5; }
.z-msgs { padding-top: 22px; }
.hex.blink { animation-duration: .9s; }
.colors i.blink, .room-legend i.blink { animation-duration: 1.8s; }
.hero .lead { font-size: clamp(16px, 1.25vw, 18px); margin-bottom: .8em; }
.hero .lead b { color: var(--ink); }
.hero h1 { margin-bottom: 20px; }
.hero .cta { margin: 22px 0 26px; }

/* Absender-Block links neben dem Chat */
.demo-grid { grid-template-columns: 250px 340px minmax(0, 1fr); }
.senders { background: #fff; border-radius: 20px; box-shadow: var(--shadow), inset 0 0 0 1px #e7e1d4; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.senders .z-label { margin: 0; }
#zButtons { display: flex; flex-direction: column; gap: 10px; }
.sender h4 { font: 600 14px/1 Inter, sans-serif; margin: 0 0 6px; color: var(--ink); }
.sender > div { display: flex; flex-wrap: wrap; gap: 5px; }
.senders .z-auto { margin-top: auto; flex-wrap: wrap; padding-top: 6px; }
@media (max-width: 1180px) { .demo-grid { grid-template-columns: 230px 300px minmax(0, 1fr); } }
@media (max-width: 980px) { .demo-grid { grid-template-columns: 1fr; } .senders { order: 0; } .zulip { order: 1; height: 460px; } }
