/* ropemaker – gemeinsames Stylesheet fuer die statischen Produktseiten (SEO). Farben = App-Theme (index.css). */
/* Inter selbst gehostet (DSGVO) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}
:root {
  --bg: hsl(222 20% 8%);
  --surface: hsl(222 18% 13%);
  --surface2: hsl(222 15% 18%);
  --border: hsl(222 15% 22%);
  --text: hsl(220 15% 93%);
  --muted: hsl(220 10% 60%);
  --accent: hsl(219.3 100% 52.9%);
  --accent-hover: hsl(219.3 100% 62%);
  --accent-soft: hsl(219.3 100% 52.9% / 0.12);
  --ok: #22c55e;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: hsl(222 20% 8% / 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .btn { color: #fff; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 26px; border-radius: 6px; font-weight: 600; transition: background .15s; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-small { padding: 6px 16px; font-size: 0.9rem; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface2); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { border-top: 1px solid var(--border); padding: 64px 0; }
section.tint { background: hsl(219.3 100% 52.9% / 0.05); }
section.soft { background: hsl(222 18% 13% / 0.4); }
.hero { border-top: 0; padding: 72px 0 56px; background: linear-gradient(180deg, hsl(219.3 100% 52.9% / 0.12), transparent 520px); }
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--accent); background: var(--accent-soft); border: 1px solid hsl(219.3 100% 52.9% / 0.25); border-radius: 999px; padding: 4px 12px; margin-bottom: 20px; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.hl { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Grids & Cards */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.card.accent { border-color: hsl(219.3 100% 52.9% / 0.45); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .badge { float: right; font-size: 0.75rem; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 4px; margin-left: 8px; }
.prompt { margin-top: 12px; font-size: 0.88rem; background: var(--surface2); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 0 6px 6px 0; color: var(--text); font-style: italic; }
.emoji { font-size: 1.5rem; display: block; margin-bottom: 8px; }

/* Schritte */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid hsl(219.3 100% 52.9% / 0.35); }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.once { font-size: 0.9rem; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.done { margin-top: 14px; display: flex; gap: 10px; align-items: center; background: hsl(142 70% 45% / 0.1); border: 1px solid hsl(142 70% 45% / 0.35); color: var(--ok); border-radius: 10px; padding: 12px 16px; font-weight: 600; }

/* Listen */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 0.85rem; background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: 5px 12px; border-radius: 999px; }

/* Preis */
.price-big { font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.spec:last-child { border-bottom: 0; }
.spec span:first-child { color: var(--muted); }
.spec span:last-child { text-align: right; }

/* Diagramm */
.flow { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 12px; align-items: center; }
.flow .node { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; font-size: 0.85rem; }
.flow .node.main { border-color: hsl(219.3 100% 52.9% / 0.5); }
.flow .node b { display: block; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; color: var(--text); margin-top: 4px; }
.flow .arrow { color: var(--muted); font-size: 1.2rem; }
@media (max-width: 720px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); text-align: center; } }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; transition: transform .15s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.85rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Sprachumschalter & Sprach-Hinweis */
.langs { display: inline-flex; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; font-size: 0.75rem; }
.langs a { padding: 3px 8px; color: var(--muted); text-transform: uppercase; }
.langs a[aria-current="true"] { background: var(--surface2); color: var(--text); }
.langs a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav .langs { display: inline-flex; } }
.lang-suggest { position: fixed; right: 16px; bottom: 16px; left: 16px; max-width: 440px; margin-left: auto; z-index: 30; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid hsl(219.3 100% 52.9% / 0.45); border-radius: 12px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.45); font-size: 0.9rem; }
.lang-suggest span { flex: 1; }
.lang-suggest a { color: #fff; white-space: nowrap; }
.lang-suggest button { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 0 4px; }
.lang-suggest button:hover { color: var(--text); }

/* Feedback-Knopf (wie in der App, unten links – rechts unten sitzt ggf. der Sprach-Hinweis) */
.fbk { position: fixed; left: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fbk-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.fbk-panel { width: 300px; background: #1a1f2e; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.5); padding: 12px 14px; }
.fbk-panel[hidden] { display: none; }
.fbk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.fbk-x { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.fbk-panel textarea { width: 100%; background: #0d1117; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; color: var(--text); font: inherit; font-size: .88rem; padding: 8px 10px; resize: none; }
.fbk-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.fbk-n { font-size: .75rem; color: var(--muted); }
.fbk-done { text-align: center; color: var(--muted); font-size: .9rem; margin: 6px 0; }
.fbk .btn[disabled] { opacity: .5; }
