/* Sesam Remote – Website. Farben und Schriften wie in der App (src/styles.css). */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #fbfbf9;
  --bg-alt: #f2f3f0;
  --surface: #ffffff;
  --text: #17191a;
  --text-2: #55595c;      /* 7.0:1 auf --bg */
  --line: #e2e4e0;
  --accent: #157a5a;      /* 5.4:1 auf Weiss */
  --accent-ink: #ffffff;
  --accent-soft: #e3f1ea;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 40px -12px rgb(0 0 0 / .22);
  --radius: 14px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121413;
    --bg-alt: #191c1a;
    --surface: #1e2220;
    --text: #f2f4f2;
    --text-2: #a9afab;    /* 8.4:1 auf --bg */
    --line: #2c312e;
    --accent: #4cd08f;    /* 10:1 auf --bg */
    --accent-ink: #062b1c;
    --accent-soft: #17352a;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 18px 50px -14px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, .mono { font-family: var(--mono); font-size: .88em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
@media (prefers-reduced-transparency: reduce) { .top { background: var(--bg); backdrop-filter: none; } }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--text-2); text-decoration: none; }
.top nav a:hover { color: var(--text); }
@media (max-width: 820px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.small { min-height: 36px; padding: 6px 16px; font-size: 15px; }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.hero .mark { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 22px; box-shadow: var(--shadow); }
h1, h2, h3 { letter-spacing: -.022em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 84px); font-weight: 750; }
h1 .quiet { color: var(--text-2); font-weight: 650; }
.lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--text-2); max-width: 720px; margin: 22px auto 0; line-height: 1.45; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.meta { margin-top: 18px; font-size: 14px; color: var(--text-2); }
.shot { margin: 56px auto 0; max-width: 1180px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.shot img { width: 100%; }

/* Abschnitte */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { font-size: 15px; font-weight: 650; color: var(--accent); margin: 0 0 12px; }
h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 720; }
.intro { max-width: 760px; }
.intro p { color: var(--text-2); font-size: 19px; margin: 18px 0 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Drei Türen: Segmentsteuerung wie in der App */
.doors { margin-top: 44px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--text) 7%, transparent); gap: 2px; }
.seg button { font: 550 15px/1 var(--sans); color: var(--text); background: none; border: 0; border-radius: 8px; padding: 10px 18px; min-height: 40px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.seg button .icon { width: 20px; height: 20px; }
.seg button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.door-panel { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: center; margin-top: 28px; text-align: left; }
.door-panel[hidden] { display: none; }
.door-panel .shot { margin: 0; }
.door-panel h3 { font-size: 26px; }
.door-panel p { color: var(--text-2); margin: 12px 0 0; }
.door-panel ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.door-panel li { display: flex; gap: 10px; }
.door-panel li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; flex: none; }
@media (max-width: 900px) { .door-panel { grid-template-columns: 1fr; } .seg { flex-wrap: wrap; justify-content: center; } }

/* Merkmale */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile .icon { color: var(--accent); width: 28px; height: 28px; }
.tile h3 { font-size: 19px; margin-top: 14px; letter-spacing: -.01em; }
.tile p { color: var(--text-2); font-size: 16px; margin: 8px 0 0; }

/* Zwei Spalten mit Bild */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1.25fr 1fr; }
.split.rev .text { order: 2; }
.split .shot { margin: 0; }
.split .text p { color: var(--text-2); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--accent); margin-top: 1px; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; gap: 32px; } .split.rev .text { order: 0; } }

/* iPad */
.ipad { max-width: 860px; margin: 48px auto 0; padding: 14px; border-radius: 34px; background: #1b1d1c; box-shadow: var(--shadow); }
.ipad img { border-radius: 20px; }

/* Plattformen */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }
.platform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.platform h3 { font-size: 24px; }
.platform p { color: var(--text-2); margin: 0; font-size: 16px; }
.platform .btn { margin-top: auto; align-self: flex-start; }
.platform .how { font-size: 14px; color: var(--text-2); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); align-self: flex-start; }

table { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 16px; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
caption { text-align: left; font-weight: 650; padding: 0 0 12px; font-size: 18px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 14px; color: var(--text-2); font-weight: 600; background: var(--bg-alt); }
tbody th { font-weight: 550; }
tr:last-child > * { border-bottom: 0; }
.yes { color: var(--accent); font-weight: 600; }
.part { color: var(--text-2); }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--text-2); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--text-2); }

/* Abschluss */
.closing { text-align: center; }
.closing .mark { width: 72px; height: 72px; margin: 0 auto 24px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--text-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { color: var(--text-2); }

/* Unterseiten */
.page { padding-top: 64px; padding-bottom: 96px; max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page h2 { font-size: 24px; margin-top: 40px; }
.page p, .page li { color: var(--text-2); }

/* Support und Datenschutz */
.top nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.lead-sm { font-size: 20px; color: var(--text) !important; margin-top: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.toc a { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.toc a:hover { border-color: var(--accent); }
.contact { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start; margin-top: 32px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact h2 { margin-top: 0; }
.contact ul { padding-left: 20px; margin-bottom: 0; }
@media (max-width: 700px) { .contact { grid-template-columns: 1fr; padding: 20px; } }
.page details { border-bottom: 1px solid var(--line); }
.page summary { cursor: pointer; font-weight: 600; padding: 14px 28px 14px 0; position: relative; list-style: none; color: var(--text); }
.page summary::-webkit-details-marker { display: none; }
.page summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; font-weight: 400; color: var(--text-2); }
.page details[open] summary::after { content: "–"; }
.page details > :not(summary) { margin-top: 0; }
.page ol, .page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page li b, .page th { color: var(--text); }
.page table { margin-top: 16px; font-size: 15px; }
.page code { word-break: break-word; }
.fine { font-size: 14px; margin-top: 40px; }
