/* Ruby – ruby-app.de · minimalistisch, dunkel wie die App */
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('fonts/InterDisplay-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('fonts/InterDisplay-Black.woff') format('woff'); font-weight: 900; font-display: swap; }

:root {
  --bg: #0B0B0D;
  --surface: #141417;
  --surface-2: #1C1C21;
  --line: #26262C;
  --text: #F4F4F6;
  --sub: #9A9AA4;
  --faint: #6E6E78;
  --ruby: #D10F55;
  --ruby-hover: #E01A62;
  --radius: 20px;
  --max: 1080px;
  --top-bg: rgba(11, 11, 13, 0.82);
  --body: #C9C9D0;
  --ph-bg: rgba(209, 15, 85, 0.16);
  --ph-text: #FF8FB1;
  --ok: #5BC48C;
  --err: #F0708F;
  --shadow: none;
  color-scheme: dark;
}

/* Helles Design */
:root[data-theme="light"] {
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --surface-2: #EFEDE8;
  --line: #E3E0DA;
  --text: #141417;
  --sub: #5C5C66;
  --faint: #8A8A94;
  --ruby: #B3123E;
  --ruby-hover: #9C0F35;
  --top-bg: rgba(246, 245, 242, 0.85);
  --body: #3A3A42;
  --ph-bg: rgba(179, 18, 62, 0.10);
  --ph-text: #B3123E;
  --ok: #1E8A55;
  --err: #C0274E;
  --shadow: 0 1px 2px rgba(20, 20, 23, 0.04), 0 8px 24px rgba(20, 20, 23, 0.05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ruby); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ruby); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 10; background: var(--top-bg); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span { font-family: 'Inter Display', 'Inter', sans-serif; font-weight: 900; font-size: 22px; letter-spacing: -0.2px; }
.top nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.top nav a { text-decoration: none; color: var(--sub); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.top nav a:hover { color: var(--text); }
.top nav .btn { color: #fff; }

/* Umschalter hell/dunkel */
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; padding: 0; transition: border-color 0.15s, background 0.15s; }
.theme-toggle:hover { border-color: var(--faint); background: var(--surface); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--ruby); color: #fff; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background 0.15s; }
.btn:hover { background: var(--ruby-hover); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--faint); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--sub); font-size: 14px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 26px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 2px; background: var(--ruby); transform: rotate(45deg); display: inline-block; }
h1 { font-family: 'Inter Display', 'Inter', sans-serif; font-weight: 700; font-size: clamp(42px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -1.6px; margin: 0 0 22px; }
h1 em { font-style: normal; color: var(--sub); }
.lead { color: var(--sub); font-size: clamp(18px, 2vw, 20px); max-width: 520px; margin: 0 0 32px; }

/* Warteliste */
.waitlist { display: flex; gap: 10px; max-width: 480px; }
.waitlist input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.waitlist input::placeholder { color: var(--faint); }
.waitlist input:focus { outline: none; border-color: var(--faint); }
.fine { color: var(--faint); font-size: 13px; margin: 12px 0 0; max-width: 480px; }
.fine a { color: var(--sub); }
.form-msg { margin: 12px 0 0; font-size: 15px; font-weight: 500; min-height: 1px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

.hero-shot { position: relative; display: flex; justify-content: center; }
.hero-shot img { width: min(340px, 82%); height: auto; }

/* Abschnitte */
section { padding: 72px 0; }
.sec-head { max-width: 620px; margin-bottom: 40px; }
h2 { font-family: 'Inter Display', 'Inter', sans-serif; font-weight: 700; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.8px; margin: 0 0 14px; }
.sec-head p { color: var(--sub); margin: 0; font-size: 18px; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.step h3, .feat h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.2px; }
.step p, .feat p { color: var(--sub); margin: 0; font-size: 16px; }

/* Funktionen */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.shot-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px 0; overflow: hidden; display: flex; flex-direction: column; }
.shot-card h3 { font-size: 21px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.3px; }
.shot-card p { color: var(--sub); margin: 0 0 24px; font-size: 16px; }
.shot-card img { width: 72%; max-width: 300px; margin: auto auto 0; height: auto; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feat svg { width: 26px; height: 26px; color: var(--ruby); margin-bottom: 16px; display: block; }

/* Video */
.video-sec { padding-top: 40px; }
.video-grid { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.video-lead { color: var(--sub); font-size: 18px; margin: 0 0 24px; max-width: 480px; }
.video-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.video-points li { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.video-points li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--ruby); transform: rotate(45deg); flex: none; }
.video-frame { position: relative; width: 300px; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #0B0B0D; border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 80px rgba(0, 0, 0, 0.45); }
:root[data-theme="light"] .video-frame { box-shadow: 0 24px 60px rgba(20, 20, 23, 0.16); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.vid-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform 0.15s, background 0.15s, opacity 0.25s; }
.vid-play:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.05); }
.vid-play svg { width: 28px; height: 28px; margin-left: 3px; }
.video-frame.playing .vid-play { opacity: 0; pointer-events: none; }
.vid-sound { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(11, 11, 13, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vid-sound svg { width: 20px; height: 20px; }
.vid-sound .on { display: none; }
.vid-sound.unmuted .on { display: block; }
.vid-sound.unmuted .off { display: none; }

/* Privatsphäre-Band */
.band { border: 1px solid var(--line); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.band img { width: 72px; height: 72px; }
.band h2 { margin-bottom: 10px; }
.band p { color: var(--sub); margin: 0; max-width: 640px; }

/* Abschluss */
.cta { text-align: center; padding: 96px 0 88px; }
.cta img { width: 64px; height: 64px; margin: 0 auto 26px; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--sub); margin: 0 auto 30px; max-width: 520px; }
.cta .waitlist { margin: 0 auto; }
.cta .fine, .cta .form-msg { margin-left: auto; margin-right: auto; }

/* Fußzeile */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--sub); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Textseiten (Impressum, Datenschutz) */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 24px 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.doc .meta { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 24px; letter-spacing: -0.3px; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc address { font-style: normal; color: var(--text); line-height: 1.7; }
.ph { background: var(--ph-bg); color: var(--ph-text); border-radius: 6px; padding: 1px 6px; font-weight: 500; }
.note { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-radius: 14px; padding: 16px 18px; color: var(--sub); font-size: 15px; margin: 0 0 32px; }

/* Ruby-Link-Seite */
.center { min-height: calc(100vh - 68px - 110px); display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.center .box { max-width: 460px; }
.center img.logo { width: 72px; height: 72px; margin: 0 auto 28px; }
.center h1 { font-size: clamp(32px, 6vw, 44px); margin-bottom: 14px; }
.center p { color: var(--sub); margin: 0 0 28px; }
.center .actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* sanftes Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Handy */
@media (max-width: 880px) {
  .video-grid { grid-template-columns: 1fr; gap: 32px; }
  .video-frame { width: min(300px, 78vw); margin: 0 auto; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 36px; text-align: left; }
  .hero-shot img { width: min(300px, 78%); }
  .steps, .feats { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 32px 24px; gap: 20px; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top nav a:not(.btn) { display: none; }
  .waitlist { flex-direction: column; }
  .waitlist .btn { width: 100%; }
  .doc { padding: 44px 16px 64px; }
  footer nav { margin-left: 0; }
}
