/* ============================================================
   Die stille Regel — Museal statt kindlich.
   Papier, Tusche, ein Grün nur für Zustand. EB Garamond trägt.
   ============================================================ */

@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-400i.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F2EEE3;
  --paper-card: #F7F4EC;
  --ink: #1A1714;
  --green: #1E4632;
  --seal: #182E21;
  --terra: #C2552F;
  --dim: #8B8171;
  --rule: #D9D2C2;
  --blind: #E6E0D2;

  --shadow-plate: 0 2px 3px rgba(14, 10, 6, .22), 0 10px 28px rgba(14, 10, 6, .10);
  --shadow-phone: 0 40px 90px rgba(26, 23, 20, .28), 0 6px 18px rgba(26, 23, 20, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Papierkorn — warm und sehr leise */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--green); color: var(--paper); }

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 100;
}
.skip:focus { left: 12px; }

.inner { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- Typografie ---------- */

h1, h2, h3 { font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }

.label {
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}
.label.ink { color: var(--ink); }
.label.paper { color: rgba(242, 238, 227, .72); }

.section { padding: 108px 0; }
.section.surface { background: var(--paper-card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4vw, 52px); margin: 14px 0 12px; }
.section-head p { color: var(--dim); font-size: 19px; }
.section-head .plate-no { display: flex; align-items: center; gap: 14px; }
.section-head .plate-no::after { content: ''; height: 1px; flex: 1; background: var(--rule); }

/* Diamantlinie: die Trenner der App, als Element wiedergebaut */
.drule { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.drule::before, .drule::after { content: ''; height: 1px; flex: 1; background: currentColor; opacity: .8; }
.drule i {
  width: 9px; height: 9px;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}
.drule.dim { color: var(--rule); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { background: var(--seal); border-color: var(--seal); }
.button:active { transform: translateY(1px); }

.button.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.button.ghost:hover { background: var(--ink); color: var(--paper); }

.button.paper-btn {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.button.paper-btn:hover { background: #fff; border-color: #fff; }

.button:disabled, .button[aria-disabled='true'] { opacity: .55; cursor: default; }

/* Store-Zeilen: Textmarke + Glyph statt Bild-Badge */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 11px 22px 11px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  min-height: 56px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow-plate); }
.store svg { width: 26px; height: 26px; flex: none; }
.store .t { display: flex; flex-direction: column; line-height: 1.25; }
.store .t small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .72; }
.store .t b { font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.store.paper-store { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Kopfzeile ---------- */

.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1140px, calc(100% - 32px));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 12px 10px 20px;
  background: rgba(242, 238, 227, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-plate); }

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand .d { width: 7px; height: 7px; background: var(--green); transform: rotate(45deg); align-self: center; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }

.header .button { min-height: 42px; padding: 9px 18px; font-size: 12.5px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .brand span.ext { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 188px 0 96px; }
.hero .inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 72px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  letter-spacing: -.015em;
  margin: 22px 0 24px;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero .copy { font-size: 20px; color: var(--dim); max-width: 30em; margin-bottom: 34px; }
.hero .store-row { margin-bottom: 20px; }
.hero .hint { font-size: 15px; color: var(--dim); font-style: italic; }

.hero-phone { position: relative; justify-self: center; }
.hero-phone .phone { transform: rotate(2deg); }
.hero-phone .plate-float {
  position: absolute;
  filter: drop-shadow(0 3px 3px rgba(14, 10, 6, .3));
  animation: bob 5.2s ease-in-out infinite;
}
.hero-phone .plate-float.b2 { animation-delay: -2.4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 88px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.hero-facts b { display: block; font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); }
.hero-facts span { color: var(--dim); font-size: 15px; letter-spacing: .06em; }

/* Telefon-Rahmen */
.phone {
  width: min(320px, 78vw);
  border-radius: 38px;
  background: var(--ink);
  padding: 10px;
  box-shadow: var(--shadow-phone);
  position: relative;
}
.phone img {
  border-radius: 30px;
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  object-position: top;
  background: var(--paper-card);
}

/* ---------- Tafel I: Der Loop + Demo ---------- */

.loop-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}
.loop-steps { display: flex; flex-direction: column; gap: 0; }
.loop-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--rule); }
.loop-step:last-child { border-bottom: 1px solid var(--rule); }
.loop-step .no { font-size: 26px; font-weight: 600; color: var(--green); }
.loop-step h3 { font-size: 23px; margin-bottom: 6px; }
.loop-step p { color: var(--dim); font-size: 17px; }

.demo {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  padding: 30px 28px 26px;
  position: relative;
}
.demo::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--blind);
  pointer-events: none;
}

.demo .demo-head { text-align: center; margin-bottom: 8px; }

.demo-stage { position: relative; height: 210px; }
.demo-plate {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  translate: -50% -50%;
  filter: drop-shadow(0 3px 3px rgba(14, 10, 6, .3));
  cursor: pointer;
  transition: opacity .3s ease;
}
.demo-plate img { width: 100%; }
.demo-plate.flying { opacity: 0; transition: none; }

.demo-plate img { -webkit-user-drag: none; user-select: none; }

.demo-annotation {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  max-width: 90%;
}

.demo-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.demo-box {
  border: 1px solid var(--ink);
  background: var(--paper);
  min-height: 148px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
  transition: background .15s ease, transform .15s ease;
}
.demo-box:hover { background: #fff; }
.demo-box:active { transform: scale(.985); }
.demo-box .box-label { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.demo-box.example .box-label { color: var(--green); }
.demo-box .stowed {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 74px;
  gap: 6px;
}
.demo-box .stowed img {
  width: 44px;
  filter: drop-shadow(0 2px 2px rgba(14, 10, 6, .25));
}
.demo-box .stowed img.entered { animation: stow .45s cubic-bezier(.2, .8, .3, 1); }
@keyframes stow {
  from { transform: scale(1.7) translateY(-26px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.demo-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 92px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
}
.demo-box.ja .demo-mark { color: var(--green); }
.demo-box.nein .demo-mark { color: var(--terra); }
.demo-box.show .demo-mark { animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(2.1) rotate(-8deg); }
  60% { opacity: 1; transform: scale(.94) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}

.demo-reveal {
  margin-top: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  text-align: center;
  min-height: 92px;
}
.demo-reveal .rule-card {
  display: inline-block;
  border: 1px solid var(--green);
  background: var(--paper);
  padding: 14px 26px;
}
.demo-reveal .rule-card b { font-size: 24px; font-weight: 600; letter-spacing: .04em; }
.demo-reveal[hidden] { display: none; }

.demo-foot { margin-top: 14px; text-align: center; }
.demo-reset {
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.demo-reset:hover { color: var(--ink); }

/* ---------- Tafel II: Die Regeln (Features) ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.feature-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  position: relative;
  padding: 30px 30px 32px;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--blind);
  pointer-events: none;
}
.feature-card .fplate { height: 74px; display: flex; align-items: flex-end; margin-bottom: 20px; }
.feature-card .fplate img { height: 64px; width: auto; max-width: 100%; filter: drop-shadow(0 3px 2px rgba(14, 10, 6, .25)); }
.feature-card h3 { font-size: 24px; margin-bottom: 10px; }
.feature-card p { color: var(--dim); font-size: 17px; }
.feature-card:nth-child(1) { grid-column: span 5; }
.feature-card:nth-child(2) { grid-column: span 7; }
.feature-card:nth-child(3) { grid-column: span 7; }
.feature-card:nth-child(4) { grid-column: span 5; }
@media (max-width: 860px) {
  .feature-card:nth-child(n) { grid-column: span 12; }
}

/* ---------- Tafel III: Einblicke ---------- */

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.shots figure:nth-child(2) { margin-top: 40px; }
.shots figure:nth-child(4) { margin-top: 40px; }
.shots img {
  border-radius: 18px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-plate);
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  object-position: top;
  background: var(--paper-card);
}
.shots figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (max-width: 980px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots figure:nth-child(n) { margin-top: 0; }
}

/* ---------- Tafel IV: Fragen ---------- */

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 24px 4px;
  font-size: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 28px;
  color: var(--dim);
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 4px 26px; color: var(--dim); max-width: 62em; }

/* ---------- Abschluss-CTA ---------- */

.cta-panel {
  background: var(--seal);
  color: var(--paper);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 62% at 50% 8%, rgba(30, 70, 50, .55), transparent 70%);
}
.cta-panel .inner { position: relative; text-align: center; max-width: 720px; }
.cta-panel .drule { color: rgba(242, 238, 227, .5); max-width: 320px; margin: 0 auto 28px; }
.cta-panel h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 18px; }
.cta-panel h2 em { font-style: italic; }
.cta-panel p { color: rgba(242, 238, 227, .75); font-size: 19px; margin-bottom: 38px; }
.cta-panel .store-row { justify-content: center; }

/* ---------- Fuß ---------- */

.footer { padding: 56px 0 64px; }
.footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}
.footer .brand { font-size: 15px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer nav a {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}
.footer nav a:hover { color: var(--ink); }
.footer .fine { width: 100%; color: var(--dim); font-size: 14px; }

/* ---------- Rechtsseiten ---------- */

.legal-wrap { padding: 168px 0 96px; }
.legal-main { max-width: 780px; margin: 0 auto; }
.legal-main h1 { font-size: clamp(38px, 4.6vw, 56px); margin: 16px 0 8px; }
.legal-main .stand { color: var(--dim); font-size: 16px; font-style: italic; margin-bottom: 44px; }
.legal-section { margin-bottom: 34px; }
.legal-section h2 { font-size: 25px; margin-bottom: 10px; }
.legal-section p, .legal-section li { color: #4A443B; font-size: 17px; }
.legal-section ul { padding-left: 22px; margin-top: 8px; }
.legal-section li { margin-bottom: 6px; }
.legal-section a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-top { display: inline-block; margin-top: 26px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); text-decoration: none; }
.legal-top:hover { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero { padding-top: 150px; }
  .hero .inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-phone { justify-self: start; }
  .loop-grid { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding-top: 128px; }
  .hero-facts { grid-template-columns: 1fr; gap: 18px; }
  .hero-phone .plate-float { display: none; }
  .demo-boxes { gap: 12px; }
  .store-row .store { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-phone .plate-float { animation: none; }
  .demo-plate img, .demo-box .demo-mark, .demo-box .stowed img { animation: none !important; }
  .button, .store { transition: none; }
}
