/* =================================================================
   ViaLuna – ein Stylesheet für alle Seiten (Stand Nov. 2026)
   Schrift: Schibsted Grotesk (selbst gehostet, assets/v2/fonts)
   ================================================================= */

@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #17122E;      /* Fusszeile */
  --violet: #7262F2;     /* aus dem ViaLuna-Logo */
  --violet-ink: #5243D6; /* Violett für Text auf Weiss */
  --haze: #F5F4FB;       /* Flächen */
  --ink: #1C1930;
  --muted: #5F5B78;
  --line: #E4E1F2;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 4.5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.125rem/1.6 var(--font); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem); line-height: 1.03; letter-spacing: -0.04em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
:lang(ja), :lang(ko) { letter-spacing: 0; }
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2 { letter-spacing: -0.01em; line-height: 1.25; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Kopf ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.menu { display: flex; gap: 6px; margin-left: auto; }
.menu a { padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--muted); }
.menu a:hover { color: var(--ink); background: var(--haze); }
.menu a[aria-current] { color: var(--ink); background: var(--haze); font-weight: 600; }

.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -2px; }
.langs[open] summary::after { rotate: 225deg; translate: 0 2px; }
.langs-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; max-height: 70vh; overflow: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px -18px rgba(28, 25, 48, .35); display: grid; }
.langs-menu a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: .98rem; }
.langs-menu a:hover { background: var(--haze); }
.langs-menu a[aria-current] { font-weight: 600; color: var(--violet-ink); }

/* ---------- Einstieg (oberer Bereich jeder Seite) ---------- */
.intro { background: var(--haze); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.intro h1 { max-width: 16ch; }
.intro .lead { max-width: 40rem; margin-top: 18px; font-size: 1.25rem; line-height: 1.55; color: var(--muted); }
.intro--page { padding-bottom: clamp(40px, 6vw, 72px); }

.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #B4AECB; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.app-intro { display: grid; gap: 28px; align-items: start; }
.app-intro h1 { max-width: none; }
.tagline { margin-top: 12px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; max-width: 34rem; }
.app-intro .lead { margin-top: 12px; }
.app-intro .badges { margin-top: 28px; }
.note { margin-top: 12px; font-size: .95rem; color: var(--muted); }
@media (min-width: 760px) { .app-intro { grid-template-columns: auto 1fr; gap: 40px; } }

/* ---------- App-Symbole und Store-Knöpfe ---------- */
.app-icon { width: 112px; height: 112px; border-radius: 22.5%; background: #fff; box-shadow: 0 0 0 1px rgba(28, 25, 48, .08), 0 18px 36px -16px rgba(28, 25, 48, .35); }
.app-icon--xl { width: 144px; height: 144px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge img { height: 44px; width: auto; }
.badge:focus-visible { border-radius: 10px; }

/* ---------- App-Übersicht ---------- */
.app-grid { display: grid; gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
.app { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 4vw, 52px); display: grid; gap: 32px; align-content: start; }
.app h2 { margin-top: 26px; font-size: clamp(1.5rem, 1.25rem + .8vw, 1.95rem); line-height: 1.15; }
.app h2 a { text-decoration: none; }
.app h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.app-lead { margin-top: 10px; font-size: 1.2rem; line-height: 1.45; max-width: 30rem; }
.app-body { display: grid; gap: 28px; align-content: space-between; }
.app-links { display: grid; gap: 14px; justify-items: start; }
.more { font-weight: 600; font-size: 1rem; color: var(--violet-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.more:hover { color: var(--ink); }
@media (min-width: 960px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
  .app--wide { grid-column: 1 / -1; grid-template-columns: 1fr 1.1fr; column-gap: 72px; }
  .app--wide .app-icon { width: 132px; height: 132px; }
  .app--half .app-body { height: 100%; }
}

/* Listen */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); }
.ticks li { position: relative; padding-left: 22px; max-width: 40rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.items { margin: 0; border-top: 1px solid var(--ink); }
.items > div { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.items dt { font-weight: 700; }
.items dd { margin: 0; color: var(--muted); max-width: 40rem; }
.items dd a { color: var(--violet-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (min-width: 960px) { .items > div { grid-template-columns: 15rem 1fr; gap: 24px; } }

/* ---------- Inhaltszeilen (Titel links, Text rechts) ---------- */
.rows { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 112px); }
.row { display: grid; gap: 20px; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row h2 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.25rem); line-height: 1.1; max-width: 16ch; }
.row-body { display: grid; gap: 20px; }
.row-body > p { max-width: 42rem; color: var(--ink); }
.row-body > p + p { color: var(--muted); }
.row-body > .items, .row-body > .ticks { margin-top: 8px; }
.mail { font-weight: 600; color: var(--violet-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (min-width: 960px) { .row { grid-template-columns: 1fr 2fr; gap: 56px; } }

/* ---------- Rechtliche Seiten ---------- */
.docwrap { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 112px); }
.docwrap .wrap > * { max-width: 48rem; }
.doc { padding-bottom: 40px; }
.doc + .doc { border-top: 1px solid var(--line); padding-top: 48px; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 12px; }
.doc h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 36px 0 10px; }
.doc h3 { font-size: 1.1rem; letter-spacing: -0.01em; margin: 24px 0 8px; }
.doc p, .doc li { color: #3A3653; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.2rem; display: grid; gap: 6px; margin: 10px 0; }
.doc a { color: var(--violet-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc .updated { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.doc .policy-summary { background: var(--haze); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
.lang-tabs, .privacy-lang-picker .menu { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; }
.lang-tabs a, .privacy-lang-picker .menu a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .95rem; }
.lang-tabs a:hover, .privacy-lang-picker .menu a:hover { background: var(--haze); }
.privacy-lang-picker summary { list-style: none; font-weight: 600; margin-bottom: 12px; color: var(--muted); }
.privacy-lang-picker summary::-webkit-details-marker { display: none; }
html.js [data-policy-lang] { display: none; }
html.js [data-policy-lang].is-active { display: block; }

/* ---------- Fuss ---------- */
.foot { background: var(--night); color: rgba(255, 255, 255, .78); padding: 36px 0; font-size: 1rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot .brand { color: #fff; margin-right: 8px; font-size: 1.05rem; }
.foot .brand img { width: 26px; height: 26px; }
.foot a:not(.brand) { text-underline-offset: 4px; }
.foot a:hover { color: #fff; }
.foot-copy { margin-left: auto; color: rgba(255, 255, 255, .55); }

@media (max-width: 760px) {
  .top-row { gap: 12px; }
  .brand span { display: none; }
  .menu { margin-left: auto; }
  .menu a { padding: 7px 10px; }
  .app-icon, .app--wide .app-icon { width: 88px; height: 88px; }
  .app-icon--xl { width: 104px; height: 104px; }
  .foot-copy { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
