:root {
  --ink: #111;
  --muted: #8a8a8a;
  --bg: #fff;
  --line: 2.5px solid var(--ink);
  --sans: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 8vw, 120px);
  padding: 48px 24px;
}

/* ---------- links: das KI-Tim-Fenster (Demo-Video), weiß, eckig, ohne Rahmen; Ton-Icon darüber ---------- */
.demo { display: flex; flex-direction: row; align-items: flex-end; gap: 8px; }
.phone {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 440 / 694;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  background: #fff;
}
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sound { flex: 0 0 auto; border: none; background: none; color: var(--ink); padding: 2px; cursor: pointer; line-height: 0; transition: opacity .1s; }
.sound:hover { opacity: 0.55; }
.sound svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound .wave { display: none; }
.sound[aria-pressed="true"] .wave { display: inline; }
.sound[aria-pressed="true"] .x { display: none; }

/* ---------- rechte Seite ---------- */
.side { display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 { font-size: clamp(56px, 9vw, 104px); font-weight: 800; letter-spacing: 0.02em; line-height: 1; margin-bottom: 2px; }
.by { font-size: 15px; color: var(--ink); margin-bottom: clamp(36px, 6vh, 72px); }
.by a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.by a:hover { opacity: .6; }
.downloads { width: 100%; max-width: 560px; display: grid; gap: 16px; }
.dl {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 58px; border: var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 500;
  transition: background .15s, color .15s, transform .1s;
}
.dl .logo { position: absolute; left: 12px; width: 34px; height: 34px; }
.dl:hover { background: #f4f4f4; }
.dl:active { transform: scale(.99); }
.dl.primary { background: var(--ink); color: #fff; }
.dl.primary .logo path[fill="currentColor"] { fill: #fff; }
.dl.primary:hover { background: #2a2a2a; }
.what { display: inline-block; margin-top: 40px; background: none; border: 0; border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; font: 400 17px var(--sans); color: var(--ink); cursor: pointer; text-decoration: none; }
.what:hover { opacity: .6; }

/* ---------- "Was ist das?" ---------- */
dialog { border: none; border-radius: 0; padding: 32px 32px 28px; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; color: var(--ink); background: #fff; }
dialog::backdrop { background: rgba(0,0,0,.4); }
dialog h2 { font-size: clamp(21px, 6vw, 26px); font-weight: 800; margin-bottom: 14px; }
dialog p, dialog li { font-size: 16px; line-height: 1.55; }
dialog p + p { margin-top: 8px; }
dialog ul { margin: 14px 0 0 20px; display: grid; gap: 6px; }
dialog h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
dialog a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
dialog a:hover { opacity: .6; }
dialog .small { font-size: 14px; color: var(--muted); margin-top: 14px; }
.close { position: absolute; top: 16px; right: 18px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.close:hover { opacity: .55; }

/* ---------- Handy: erst Titel, dann Video, dann Downloads ---------- */
.mobile-hint { display: none; }
@media (max-width: 820px) {
  .hero { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 28px 16px 40px; }
  .side { display: contents; }
  h1 { order: 1; margin-bottom: 0; }
  .by { order: 1; margin: -20px 0 0; }
  .demo { order: 2; width: min(340px, 100%); position: relative; }
  .sound { position: absolute; right: -4px; bottom: 100%; margin-bottom: 0; }  /* Handy: über dem Video, ohne Platz zu nehmen */
  .downloads { order: 3; }
  .mobile-hint { order: 4; display: block; margin-top: -6px; font-size: 14px; color: var(--muted); text-align: center; }
  .what { order: 5; margin-top: 0; }
}

/* ---------- Easter Egg: ein iPhone schaut schräg aus der Ecke rechts unten ---------- */
.psst {
  position: fixed; right: -30px; bottom: -30px; width: 200px; z-index: 1;
  transform: rotate(-30deg);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
  user-select: none; -webkit-user-drag: none; cursor: pointer;
}
.psst:hover { transform: rotate(-24deg) translate(-6px, -12px); }
/* Sprechblase am iPhone: Desktop beim Drüberfahren, Handy beim Antippen */
.psst-bubble {
  position: fixed; right: 34px; bottom: 212px; z-index: 2;
  background: var(--ink); color: #fff; font: 600 15px var(--sans); white-space: nowrap;
  padding: 9px 14px; border-radius: 14px; pointer-events: none;
  opacity: 0; transform: translateY(6px) scale(.96); transform-origin: 100% 100%;
  transition: opacity .18s ease, transform .18s ease;
}
.psst-bubble::after { content: ""; position: absolute; right: 48px; bottom: -6px; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
.psst:hover + .psst-bubble, .psst-bubble.show { opacity: 1; transform: none; }
@media (max-width: 820px) {
  /* Handy: nicht über den Buttons kleben, sondern ganz unten am Seitenende */
  html { overflow-x: clip; }
  body { position: relative; height: auto; min-height: 100%; overflow-x: clip; }
  .hero { padding-bottom: 185px; }
  .psst { position: absolute; width: 110px; right: -14px; bottom: -14px; }
  .psst-bubble { position: absolute; right: 8px; bottom: 122px; font-size: 14px; }
  .psst-bubble::after { right: 30px; }
}

/* ---------- Download-Fenster mit Anleitung ---------- */
#install section { display: none; }
#install[data-os="mac"] section[data-for~="mac"], #install[data-os="win"] section[data-for~="win"], #install[data-os="phone"] section[data-for~="phone"] { display: block; }
#install span[data-for] { display: none; }
#install[data-os="mac"] span[data-for="mac"], #install[data-os="win"] span[data-for="win"] { display: inline; }
#install .why { background: #f5f5f5; padding: 14px 16px; margin: 16px 0 4px; }
#install .why p { font-size: 15px; margin-top: 4px; }
#install .steps { margin: 6px 0 0 22px; display: grid; gap: 10px; }
#install .steps li { font-size: 16px; line-height: 1.55; padding-left: 4px; }
#install .ui { display: inline-block; background: #ececec; padding: 0 7px; border-radius: 6px; font-weight: 600; font-size: 15px; white-space: nowrap; }
#install .copy { border: none; background: none; padding: 0; font: 500 16px var(--sans); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Unterseiten (/was-ist-das, /mac, /windows): klassisch, schlicht ---------- */
body.page { min-height: 100vh; }
.page-top { max-width: 640px; margin: 0 auto; padding: 28px 24px 0; }
.page-top .back { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 15px; }
.page-top .back:hover { opacity: .6; }
.page-main { max-width: 640px; margin: 0 auto; padding: 28px 24px 64px; }
.page-main h1 { font-size: clamp(30px, 6vw, 40px); font-weight: 800; line-height: 1.15; margin: 0 0 16px; letter-spacing: 0; }
.page-main h3 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; }
.page-main p, .page-main li { font-size: 17px; line-height: 1.6; }
.page-main p + p { margin-top: 10px; }
.page-main ul { margin: 16px 0 0 22px; display: grid; gap: 8px; }
.page-main a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.page-main .small { font-size: 14px; color: var(--muted); margin-top: 16px; }
.page-main .why { background: #f5f5f5; padding: 16px 18px; margin: 20px 0 4px; }
.page-main .why p { font-size: 16px; margin-top: 4px; }
.page-main .steps { margin: 6px 0 0 24px; display: grid; gap: 12px; }
.page-main .steps li { padding-left: 4px; }
.page-main .ui { display: inline-block; background: #ececec; padding: 0 7px; border-radius: 6px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.page-main .copy { border: none; background: none; padding: 0; font: 500 17px var(--sans); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.on-phone { display: none; }
body.is-phone .on-phone { display: block; }
body.is-phone .on-computer { display: none; }
