/* =========================================================================
   Tellis — landing page stylesheet (shared across index / impressum / datenschutz)
   Light theme · self-hosted fonts · zero external requests (GDPR)
   ========================================================================= */

/* ---- Self-hosted fonts (WOFF2 — see fonts/README.md for what to place) ----
   NO Google Fonts / no CDN: loading them would transfer visitor IPs to a
   third party (LG München, DSGVO). Fallbacks keep the page correct until the
   WOFF2 files are added. */
@font-face {
  font-family: "Marcellus";
  src: url("fonts/Marcellus-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---- Design tokens ---- */
:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f5f2;   /* warm light gray — section separation */
  --bg-tint:   #fdefe9;   /* very light orange wash */
  --navy:      #1b2a4a;   /* headings, footer */
  --navy-2:    #26365a;
  --ink:       #16233d;   /* body text on white — ~13:1 on white */
  --ink-muted: #566078;   /* secondary text — ~5.6:1 on white */
  --orange:    #e8572a;   /* signature — buttons/icons/large elements */
  --orange-ink:#c0451c;   /* orange TEXT on white — ~5.1:1, passes WCAG AA */
  --teal:      #1a8a7d;   /* tertiary, used sparingly */
  --line:      #e7e2db;   /* hairline borders */
  --line-soft: #efe9e2;

  --font-head: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1140px;
  --radius: 16px;
  --shadow: 0 18px 48px -24px rgba(27, 42, 74, 0.28);
  --shadow-sm: 0 8px 24px -16px rgba(27, 42, 74, 0.35);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--orange-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; color: var(--navy); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }

/* Visible keyboard focus everywhere (accessibility) */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.eyebrow {
  font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-ink);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Skip link ---- */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .15s ease;
}
.skip:focus { top: 16px; text-decoration: none; }

/* =========================================================================
   Top bar + language toggle
   ========================================================================= */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 3vw, 26px) clamp(20px, 5vw, 48px);
}
.topbar .brandmini { display: flex; align-items: center; gap: 10px; }
.topbar .brandmini .mark { width: 26px; height: 26px; }
.topbar .brandmini b { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); font-weight: 400; }

.lang {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(6px);
}
.lang button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em;
  padding: 7px 13px; color: var(--ink-muted); line-height: 1;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang button:not([aria-pressed="true"]):hover { color: var(--navy); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-block: 120px 64px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% -10%, var(--bg-tint) 0%, rgba(253,239,233,0) 46%),
    radial-gradient(90% 70% at -10% 110%, #f4f1ec 0%, rgba(244,241,236,0) 40%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 88px); align-items: center; width: 100%; }

.wordmark { font-family: var(--font-head); color: var(--navy); font-size: clamp(3.2rem, 9vw, 5.6rem); line-height: 0.95; letter-spacing: 0.01em; margin: 0; }
/* origami bird sits as the dot above the (dotless) i */
.i-stem { position: relative; display: inline-block; }
.i-stem .bird { position: absolute; left: 50%; bottom: 0.6em; transform: translateX(-46%); pointer-events: none; }
.i-stem .bird svg { width: clamp(24px, 5.4vw, 40px); height: auto; }

.slogan {
  margin-top: 26px; font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12; color: var(--navy);
}

.subtitle { margin-top: 22px; max-width: 34ch; font-size: 1.15rem; color: var(--ink-muted); font-weight: 300; }

.status {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.status .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(232,87,42,0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,87,42,0.45); } 70% { box-shadow: 0 0 0 10px rgba(232,87,42,0); } 100% { box-shadow: 0 0 0 0 rgba(232,87,42,0); } }

.store-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badge { display: inline-block; border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.badge svg { height: 54px; width: auto; }
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none; }
.badge.secondary svg { height: 44px; opacity: 0.92; }
/* OS-adaptive badge visibility is toggled via JS (data-os on <html>) */

.hero-visual { display: flex; justify-content: center; }

/* =========================================================================
   Phone mockups (pure CSS/SVG — placeholders for real screenshots)
   ========================================================================= */
.phone {
  position: relative; width: 264px; aspect-ratio: 9 / 19.5; flex: 0 0 auto;
  background: #0f1524; border-radius: 38px; padding: 10px;
  box-shadow: var(--shadow); border: 1px solid #0b1120;
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 22px; background: #0f1524; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone .screen { position: relative; width: 100%; height: 100%; background: #fff; border-radius: 30px; overflow: hidden; }
.phone .screen svg { width: 100%; height: 100%; }

.phone-stack { display: flex; gap: 26px; align-items: center; justify-content: center; }
.phone-stack .phone:nth-child(1) { transform: translateY(18px) rotate(-4deg); }
.phone-stack .phone:nth-child(2) { z-index: 2; }
.phone-stack .phone:nth-child(3) { transform: translateY(18px) rotate(4deg); }

/* =========================================================================
   Section shells
   ========================================================================= */
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 128px); }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 40ch; margin-bottom: clamp(36px, 6vw, 60px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--ink-muted); font-weight: 300; font-size: 1.1rem; }

/* ---- Feature grid ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 14px;
}
.feature.privacy { border-color: rgba(232,87,42,0.35); background: linear-gradient(180deg, var(--bg-tint), var(--bg) 62%); }
.feature .ficon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-tint); color: var(--orange); }
.feature.privacy .ficon { background: var(--orange); color: #fff; }
.feature .ficon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.42rem; }
.feature p { color: var(--ink-muted); font-weight: 300; }
.feature .tagline { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-ink); margin-top: 2px; }

/* ---- Screenshots section ---- */
.shots { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.shot-caption { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); text-align: center; }
.placeholder-note {
  margin-top: 34px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--ink-muted); text-align: center; opacity: 0.75;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--navy); color: #cdd6e6; padding-block: clamp(48px, 7vw, 72px); }
.site-footer a { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .mark { width: 30px; height: 30px; }
.footer-brand b { font-family: var(--font-head); font-size: 1.4rem; color: #fff; font-weight: 400; }
.footer-brand span { display: block; font-size: 0.9rem; color: #9fb0cc; font-weight: 300; margin-top: 2px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav .flabel { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8194b4; margin-bottom: 4px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.86rem; color: #9fb0cc; }

/* =========================================================================
   Legal (impressum / datenschutz) pages
   ========================================================================= */
.legal { padding-block: clamp(110px, 12vw, 150px) clamp(60px, 8vw, 90px); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 46px; }
.legal p, .legal li { color: var(--ink); font-weight: 300; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .lead { color: var(--ink-muted); margin-top: 10px; }
.backlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 44px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-block: 104px 56px; text-align: left; }
  .hero-visual { order: 2; }
  .phone-stack .phone:nth-child(1), .phone-stack .phone:nth-child(3) { display: none; }
  .phone { width: 240px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .topbar .brandmini b { display: none; }
  .store-row { gap: 10px; }
  .badge svg { height: 48px; }
  .footer-grid { flex-direction: column; gap: 28px; }
}

/* OS-adaptive store badges on phones: matching store shown first & full size,
   the other smaller below (data-os set on <html> by i18n.js). */
@media (max-width: 560px) {
  .store-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  html[data-os="ios"] .badge.play { order: 2; }
  html[data-os="android"] .badge.appstore { order: 2; }
  html[data-os="ios"] .badge.play svg,
  html[data-os="android"] .badge.appstore svg { height: 42px; opacity: .82; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
