/* Landingpage klingl.app – mobile-first, Desktop ab 1024 px */
@font-face {
  font-family: 'Bricolage';
  src: url('/static/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
body.landing {
  --ink: #1a1a1a; --grey: #6f685a; --bg2: #efeadf; --line: rgba(26, 26, 26, .12); --paper: #fbf9f3;
  --fg: var(--ink); --muted: var(--grey);
  font-family: 'Bricolage', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; line-height: 1.55;
  font-optical-sizing: auto;
}
body.landing .wrap { max-width: none; padding: 0; }
body.landing .top { border-bottom: 0; padding: 1rem 0; }
body.landing .top, body.landing .foot { max-width: none; }
body.landing .top .brand { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
body.landing .top nav a { color: var(--ink); font-weight: 500; }
body.landing .top { display: flex; width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.landing h1, .landing h2, .landing h3 { letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.landing h1 { font-size: 2.125rem; line-height: 1.08; margin: 0 0 1rem; }
.landing h2 { font-size: 1.75rem; line-height: 1.12; margin: 0 0 1.5rem; }
.landing h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 .4rem; }
.landing p { max-width: 34rem; text-wrap: pretty; }
.landing .btn { margin: 0; padding: .85rem 1.4rem; border-radius: 10px; font-size: 1.02rem; font-weight: 600; }
.landing .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.landing .btn.ghost:hover { border-color: var(--ink); }
.landing .btn.big { font-size: 1.12rem; padding: 1rem 1.9rem; }
.landing a:focus-visible, .landing button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero { padding: 1.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2.5rem; }
.lead { font-size: 1.15rem; color: var(--grey); margin: 0 0 1.75rem; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.hero-actions .btn { flex: 1 1 auto; text-align: center; }
.hero-sign { margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero-sign figcaption { color: var(--grey); font-size: .95rem; margin-top: 1.75rem; text-align: center; }
.sign-wrap { container-type: inline-size; width: 100%; max-width: 230px; transform: rotate(-2deg); animation: signin .8s ease-out both; }
@keyframes signin { from { opacity: 0; transform: rotate(-2deg) translateY(14px); } }
.sign {
  aspect-ratio: 2 / 3; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; position: relative;
  box-shadow: 0 1px 2px rgba(26, 26, 26, .06), 0 28px 56px -24px rgba(26, 26, 26, .42), inset 0 0 0 1px rgba(255, 255, 255, .7);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  padding: 8cqw 8cqw 7cqw; color: var(--ink);
}
.sign-top { font-size: 11cqw; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.sign-mid svg { width: 46cqw; height: 46cqw; display: block; margin: 0 auto; }
.sign-mid span, .sign-bottom span { display: block; font-size: 4.4cqw; color: var(--grey); margin-top: 3cqw; line-height: 1.2; }
.sign-qr svg { width: 26cqw; height: 26cqw; display: block; margin: 0 auto; }
.sign-brand { position: absolute; right: 5cqw; bottom: 3cqw; font-size: 3.6cqw; color: var(--grey); letter-spacing: .02em; font-weight: 500; }

/* Live-Demo */
.demo-section { background: var(--bg2); padding: 3.5rem 0 4rem; }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--grey); }
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; align-items: start; justify-items: center; }
.demo-center { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; order: -1; }
.landing .ringbtn { width: 200px; height: 200px; margin: 0 0 1rem; font-size: 1.4rem; font-family: inherit; box-shadow: 0 10px 28px -8px rgba(31, 94, 90, .55); }
.landing .ringbtn:hover { background: #17504c; }
.demo-hint { color: var(--grey); font-size: .95rem; margin: 0; min-height: 1.5em; max-width: 22rem; }
.demo[data-state="ringing"] .ringbtn { animation: ring 1.1s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: scale(1); } 50% { transform: scale(.94); box-shadow: 0 6px 40px -4px rgba(31, 94, 90, .6); } }

.phone { width: 160px; flex: none; aspect-ratio: 9 / 18.5; border: 2px solid var(--ink); border-radius: 26px; padding: 6px; background: var(--ink); }
.screen { background: var(--bg); border-radius: 19px; height: 100%; padding: 1rem .8rem; display: flex; flex-direction: column; font-size: .7rem; line-height: 1.35; overflow: hidden; position: relative; }
.scr-head { font-size: .62rem; color: var(--grey); text-align: center; }
.scr-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .3rem; }
.scr-body > div { display: none; flex-direction: column; align-items: center; gap: .35rem; }
.demo[data-state="idle"] .v-idle, .demo[data-state="limited"] .v-idle, .demo[data-state="ringing"] .v-ringing, .demo[data-state="coming"] .v-coming { display: flex; }
.scr-body small { color: var(--grey); font-size: .6rem; }
.scr-body strong { font-size: .95rem; font-weight: 600; letter-spacing: -.02em; }
.scr-body .reply { color: var(--accent); font-size: 1.05rem; }
.mini-ring { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .7rem; }
.mini-pulse { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.lock-time { font-size: 1.9rem; font-weight: 300; letter-spacing: -.03em; text-align: center; margin-top: .6rem; }
.lock-note { text-align: center; color: var(--grey); font-size: .6rem; margin-top: auto; transition: opacity .3s; }
.demo[data-state="ringing"] .lock-note, .demo[data-state="coming"] .lock-note { opacity: 0; }
.notif { position: absolute; left: .4rem; right: .4rem; top: 4.4rem; background: #fff; border-radius: 12px; padding: .55rem .6rem; box-shadow: 0 6px 20px -8px rgba(26, 26, 26, .35); opacity: 0; transform: translateY(-10px); transition: opacity .35s ease, transform .35s ease; }
.demo[data-state="ringing"] .notif, .demo[data-state="coming"] .notif { opacity: 1; transform: none; transition-delay: .45s; }
.demo[data-state="coming"] .notif { transition-delay: 0s; }
.notif-head { display: flex; align-items: center; gap: .3rem; font-size: .58rem; color: var(--grey); margin-bottom: .2rem; }
.notif-head .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.notif-head .when { margin-left: auto; }
.notif-title { font-weight: 600; font-size: .72rem; letter-spacing: -.01em; }
.notif-body { color: var(--grey); font-size: .62rem; margin-bottom: .45rem; }
.notif-actions { display: flex; gap: .3rem; }
.na { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 7px; padding: .3rem .2rem; font-size: .6rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.demo[data-state="coming"] .na-coming { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Sektionen */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg2); }
.cols-3 { display: grid; gap: 2rem; }
.pict { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .9rem; display: block; }
.step p, .scene p { margin: 0; }
.scene p { font-size: 1.05rem; }
.scene .benefit { color: var(--accent); font-weight: 500; margin-top: .35rem; }
.strike-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 3rem; }
.strike-list li { padding: 1rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .15rem; }
.strike-list s { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: var(--grey); text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.strike-list span { color: var(--ink); }
.cta-block { text-align: center; padding: 5rem 0 5.5rem; }
.cta-block p { margin: 0 auto 1.75rem; color: var(--grey); font-size: 1.1rem; }
.cta-block .fine { font-size: .9rem; margin: 1rem 0 0; }
body.landing .l-foot { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .9rem; display: block; }
.l-foot .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; }
.l-foot nav { display: flex; gap: 1.5rem; }
.l-foot a { color: var(--grey); text-decoration: none; }
.l-foot a:hover { color: var(--accent); }

/* Tablet */
@media (min-width: 721px) {
  .hero-actions .btn { flex: 0 0 auto; }
  .landing h1 { font-size: 3rem; }
  .landing h2 { font-size: 2.25rem; }
  .sign-wrap { max-width: 280px; }
  .demo { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .demo-center { grid-column: auto; order: 0; }
  .phone { width: 190px; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .strike-list { grid-template-columns: 1fr 1fr; }
  .strike-list li:nth-child(2) { border-top: 1px solid var(--line); }
}
/* Desktop */
@media (min-width: 1024px) {
  body.landing { font-size: 18px; }
  .hero { padding: 3rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; }
  .landing h1 { font-size: 4rem; }
  .lead { font-size: 1.3rem; }
  .sign-wrap { max-width: 340px; transform: rotate(-4deg); }
  @keyframes signin { from { opacity: 0; transform: rotate(-4deg) translateY(16px); } }
  .demo-section { padding: 5rem 0; }
  .section-head { text-align: center; margin-bottom: 3rem; }
  .section-head p { margin-left: auto; margin-right: auto; }
  .demo { gap: 3rem; max-width: 960px; margin: 0 auto; }
  .landing .ringbtn { width: 240px; height: 240px; font-size: 1.6rem; }
  .phone { width: 236px; }
  .screen { font-size: .8rem; padding: 1.2rem .9rem; }
  .scr-body strong { font-size: 1.1rem; } .scr-body .reply { font-size: 1.2rem; } .scr-body small { font-size: .68rem; }
  .mini-ring { width: 84px; height: 84px; font-size: .8rem; }
  .lock-time { font-size: 2.3rem; }
  .notif { top: 5.4rem; padding: .7rem .75rem; }
  .notif-title { font-size: .82rem; } .notif-body { font-size: .7rem; } .na { font-size: .66rem; padding: .38rem .15rem; } .notif-head { font-size: .64rem; }
  .section { padding: 6rem 0; }
  .cols-3 { gap: 3rem; }
  .pict { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .sign-wrap { animation: none; }
  .demo[data-state="ringing"] .ringbtn, .mini-pulse { animation: none; }
  .notif, .na { transition: none; }
}
