/* Divertikel website — shared styles
   Brand: calming teal-green (from the app icon), soft off-white surfaces,
   generous whitespace, rounded corners. Light + dark mode. */

:root {
  --teal-900: #0f5c4d;
  --teal-700: #167f6a;
  --teal-600: #17a08a;
  --teal-500: #1fb89c;
  --teal-050: #e6f6f1;
  --ink: #14201d;
  --ink-soft: #3f5551;
  --ink-faint: #6b807b;
  --bg: #f6faf8;
  --surface: #ffffff;
  --surface-2: #eef5f2;
  --border: #dde8e3;
  --success: #2f9e57;
  --caution: #e0a020;
  --danger: #d95a54;
  --shadow: 0 1px 2px rgba(15, 92, 77, .05), 0 8px 24px rgba(15, 92, 77, .08);
  --shadow-lg: 0 12px 40px rgba(15, 92, 77, .16);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal-050: #10312a;
    --ink: #eaf4f0;
    --ink-soft: #b6cbc4;
    --ink-faint: #86a29a;
    --bg: #0c1614;
    --surface: #14211e;
    --surface-2: #182b27;
    --border: #22352f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  a { color: var(--teal-500); }
}

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

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); color: var(--ink);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- language toggle visibility ---------- */
/* German is the default. We only ever *hide* the inactive language and never
   force a display value on the shown one, so each element keeps its own layout
   (inline-block pills, inline-flex buttons, block headings, etc.).
   - No class on <html> (JS off): English hidden, German shown.
   - html.lang-en: German hidden, English shown. */
html:not(.lang-en) [data-lang="en"] { display: none; }
html.lang-en [data-lang="de"] { display: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800;
  font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--ink-soft); padding: 8px 12px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; }
.nav-links a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden; background: var(--surface);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .82rem;
  color: var(--ink-faint); padding: 6px 12px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--teal-600); color: #fff; }

@media (max-width: 620px) {
  .nav-links a.nav-hide-sm { display: none; }
}

/* ---------- buttons / badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700;
  background: var(--teal-600); color: #fff; box-shadow: var(--shadow);
}
.btn:hover { background: var(--teal-700); text-decoration: none; transform: translateY(-1px); }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--surface-2); }

.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 14px; font-weight: 700;
  background: var(--ink); color: #fff;
}
.badge-soon .apple { font-size: 1.3rem; line-height: 1; }
.badge-soon small { display: block; font-size: .68rem; font-weight: 600;
  opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
@media (prefers-color-scheme: dark) {
  .badge-soon { background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); }
}

.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--teal-050); color: var(--teal-700);
  font-weight: 700; font-size: .8rem; letter-spacing: .02em;
}
@media (prefers-color-scheme: dark) { .pill { color: var(--teal-500); } }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(1200px 500px at 75% -10%, color-mix(in srgb, var(--teal-500) 22%, transparent), transparent 60%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.25rem; color: var(--ink-soft); margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--ink-faint); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------- device / phone frame ---------- */
.phone {
  position: relative; margin: 0 auto;
  width: 260px; aspect-ratio: 9 / 19.5;
  border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, #2b3a37, #0f1512);
  box-shadow: var(--shadow-lg);
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 22px; background: #0f1512; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 31px; overflow: hidden;
  background: linear-gradient(165deg, var(--teal-500), var(--teal-900));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.92); position: relative;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- two modes ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.mode-card .tag { font-weight: 800; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; }
.mode-flare .tag { color: var(--caution); }
.mode-prev .tag { color: var(--success); }
.mode-card ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--ink-soft); }
.mode-card li { margin: 6px 0; }
@media (max-width: 680px) { .modes { grid-template-columns: 1fr; } }

/* ---------- features grid ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--teal-050);
}
.feature h3 { margin-bottom: 6px; font-size: 1.06rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- screenshot gallery ---------- */
.shots { display: flex; gap: 24px; overflow-x: auto; padding: 8px 4px 20px;
  scroll-snap-type: x mandatory; }
.shot { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.shot .cap { margin-top: 14px; font-weight: 600; color: var(--ink-soft); font-size: .92rem; }

/* ---------- privacy band ---------- */
.privacy-band {
  background: linear-gradient(150deg, var(--teal-700), var(--teal-900));
  color: #eaf7f2; border-radius: 26px; padding: 48px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.privacy-band h2 { color: #fff; }
.privacy-band p { color: rgba(255,255,255,.86); max-width: 620px; margin: 0 auto 26px; }
.privacy-band .facts { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.privacy-band .fact {
  background: rgba(255,255,255,.12); border-radius: 999px;
  padding: 10px 20px; font-weight: 700; font-size: .95rem;
}

/* ---------- disclaimer ---------- */
.disclaimer {
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 4px solid var(--caution);
  border-radius: var(--radius-sm); padding: 22px 24px;
  color: var(--ink-soft); font-size: .95rem;
}
.disclaimer strong { color: var(--ink); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--surface); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer .brand { font-size: 1rem; }
.footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.footer .copy { width: 100%; color: var(--ink-faint); font-size: .85rem; margin-top: 8px; }

/* ---------- content pages (support / privacy) ---------- */
.page-hero { padding: 56px 0 20px; }
.page-hero .pill { margin-bottom: 16px; }
.prose { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { color: var(--ink-soft); }
.prose .meta { color: var(--ink-faint); font-size: .9rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 3em 0; }

/* FAQ accordion */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.05rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-600); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq .body { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .body p:last-child { margin-bottom: 0; }

.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  max-width: 760px; margin: 0 auto 40px; text-align: center;
}
.contact-card a.btn { margin-top: 6px; }
