/* ============================================================
   Paginor – Entwurf Startseite
   Farbtokens aus den App-Screenshots vom 25.10.2026 gemessen:
   Gold #d09038 und Braun #705040 sind in beiden Modi gleich,
   nur die Neutraltöne kippen.
   ============================================================ */

:root {
  /* Akzente – modusunabhängig */
  --gold:        #d09038;
  --gold-licht:  #e3a95a;
  --gold-tief:   #8e6530;
  --braun:       #705040;

  /* Neutraltöne hell (Vorgabe) */
  --bg:          #f8f8f8;
  --bg-soft:     #f0f0e8;
  --surface:     #ffffff;
  --surface-2:   #f0e8e0;
  --line:        rgba(40, 32, 24, .13);
  --line-strong: rgba(40, 32, 24, .22);
  --text:        #1b1610;
  --text-2:      #4a423a;
  --muted:       #6f665b;
  --shadow-sm:   0 4px 14px rgba(40, 32, 24, .07);
  --shadow:      0 18px 48px rgba(40, 32, 24, .12);
  --shadow-lg:   0 30px 80px rgba(40, 32, 24, .17);
  --frame:       #ded6cc;

  --radius-sm: 14px;
  --radius:    22px;
  --radius-lg: 32px;
  --max:       1180px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
  --t-fast:    .18s var(--ease);
  --t-med:     .3s var(--ease);

  color-scheme: light;
}

/* Dunkel: per System, solange nicht ausdrücklich hell gewählt */
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    --bg:          #101008;
    --bg-soft:     #181810;
    --surface:     #201a12;
    --surface-2:   #282018;
    --line:        rgba(255, 246, 232, .10);
    --line-strong: rgba(255, 246, 232, .18);
    --text:        #f6f1e8;
    --text-2:      #cfc6b8;
    --muted:       #9a9183;
    --shadow-sm:   0 6px 16px rgba(0, 0, 0, .35);
    --shadow:      0 18px 52px rgba(0, 0, 0, .45);
    --shadow-lg:   0 30px 80px rgba(0, 0, 0, .55);
    --frame:       #2e2619;
    color-scheme: dark;
  }
}

/* Dunkel: ausdrücklich gewählt */
:root[data-thema="dunkel"] {
  --bg:          #101008;
  --bg-soft:     #181810;
  --surface:     #201a12;
  --surface-2:   #282018;
  --line:        rgba(255, 246, 232, .10);
  --line-strong: rgba(255, 246, 232, .18);
  --text:        #f6f1e8;
  --text-2:      #cfc6b8;
  --muted:       #9a9183;
  --shadow-sm:   0 6px 16px rgba(0, 0, 0, .35);
  --shadow:      0 18px 52px rgba(0, 0, 0, .45);
  --shadow-lg:   0 30px 80px rgba(0, 0, 0, .55);
  --frame:       #2e2619;
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-med), color var(--t-med);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.028em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--gold); color: #1b1610;
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

:where(a, button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--gold-tief);
  margin: 0 0 14px;
}
:root[data-thema="dunkel"] .eyebrow { color: var(--gold); }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) .eyebrow { color: var(--gold); }
}

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 62px; padding-block: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav { display: none; gap: 26px; margin-inline: auto; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: .95rem;
  padding: 6px 0; position: relative; transition: color var(--t-fast);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--t-fast);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .78rem; font-weight: 650;
  cursor: pointer; transition: all var(--t-fast);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1b1610; }
.langs { display: none; gap: 4px; }

/* ---------- Sprachauswahl ---------- */
.sprachwahl { position: relative; }
.sprach-knopf { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; }
.flagge { font-size: 1.05em; line-height: 1; }
.pfeil { width: 9px; height: 6px; opacity: .65; transition: transform var(--t-fast); }
.sprach-knopf[aria-expanded="true"] .pfeil { transform: rotate(180deg); }

.sprach-liste {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 168px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.sprach-liste[hidden] { display: none; }
.sprach-liste button {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--text);
  font: inherit; font-size: .94rem; text-align: left;
  cursor: pointer;
  transition: background var(--t-fast);
}
.sprach-liste button:hover { background: var(--surface-2); }
.sprach-liste button[aria-selected="true"] { background: var(--surface-2); font-weight: 650; }
.sprach-liste button[aria-selected="true"]::after {
  content: ""; margin-left: auto;
  width: 11px; height: 6px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg) translateY(-2px);
}

/* ---------- Burger und Schublade ---------- */
.burger {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 11px;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.burger:hover { border-color: var(--line-strong); }
.burger span {
  display: block; width: 17px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobil-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  max-height: calc(100dvh - var(--kopf-h, 62px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobil-nav[hidden] { display: none; }
.mobil-nav .wrap { display: flex; flex-direction: column; gap: 4px; padding-block: 14px 20px; }
.mobil-nav a {
  padding: 14px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 550;
  transition: background var(--t-fast);
}
.mobil-nav a:hover, .mobil-nav a:focus-visible { background: var(--surface-2); }
.mobil-langs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.mobil-langs .chip { padding: 9px 14px; font-size: .86rem; }

/* ---------- Hero ---------- */
.hero { padding: 54px 0 20px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); margin-bottom: 18px; }
.hero .lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--text-2); max-width: 56ch; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.appstore { display: inline-block; border-radius: 10px; transition: transform var(--t-fast); }
.appstore:hover { transform: translateY(-2px); }
.appstore svg { display: block; width: 150px; height: 50px; }
.text-link {
  text-decoration: none; color: var(--gold-tief); font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding-bottom: 2px; transition: border-color var(--t-fast);
}
.text-link:hover { border-bottom-color: var(--gold); }
:root[data-thema="dunkel"] .text-link { color: var(--gold-licht); }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) .text-link { color: var(--gold-licht); }
}

/* ---------- Gerät ----------
   3D-Renders aus Panorama Studio (über die Werkstatt linknor-geraete):
   Rahmen mit transparentem Bildschirm, Glasreflexe bleiben halbtransparent.
   iPhone 17/18 Pro Max – Rahmen 1000 × 2058, Bildschirm 1320 × 2868.
   Hell Glacier, dunkel Deep Blue, passend zum Thema der Seite. */
.device {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 2058;
  filter: drop-shadow(0 22px 34px rgba(40, 32, 24, .24));
}
.device::after {
  content: "";
  position: absolute; inset: 0;
  background: center / 100% 100% no-repeat url(geraete/iphone-glacier.webp);
  pointer-events: none;
}
.device .screen {
  position: absolute;
  inset: 1.014% 3.575%;
  overflow: hidden;
  border-radius: 12% / 5.6%;
  background: var(--surface-2);
}
.device .screen picture { display: block; position: absolute; inset: 0; }
.device .screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}

.hero-stage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 440px;
}
.hero-stage .device:nth-child(2) { margin-top: 34px; }

/* iPhone Duo aufgeklappt: in Panorama Studio als Gerät gerendert, der
   Screenshot ist mit eingebacken (duoOpen legt ihn vor einen unscharfen
   Hintergrund aus sich selbst). Gehäuse hell Star White, dunkel Night Sky.
   Freigestellt, daher nur ein Schlagschatten, kein Rahmen im CSS. */
.duo-stage { margin-top: 30px; display: grid; gap: 22px; justify-items: center; }
.duo-stage img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 46px rgba(40, 32, 24, .22));
}
.duo-zu { max-width: 220px; }

/* ---------- Merkmalsleiste ---------- */
.facts { display: grid; gap: 12px; padding: 30px 0 10px; }
.fact {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.fact strong { display: block; font-size: 1.02rem; margin-bottom: 3px; }
.fact span { color: var(--muted); font-size: .92rem; }

/* ---------- Abschnitte ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--text-2); }

.row { display: grid; gap: 34px; align-items: center; }
.row .shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: 100%; }
.row .shots.single { grid-template-columns: minmax(0, 250px); justify-content: center; }
.row .copy h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-bottom: 12px; }
.row .copy p { color: var(--text-2); }
.row ul { margin: 14px 0 0; padding-left: 20px; color: var(--text-2); }
.row ul li { margin-bottom: 7px; }

.band { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* ---------- Webexport im MacBook ---------- */
.mac-stage { margin: 46px 0 0; text-align: center; }
.mac-stage img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 46px rgba(40, 32, 24, .2));
}
.mac-stage figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: .92rem;
}

/* ---------- Geschenk-Karte ---------- */
.gift {
  display: grid; gap: 28px; align-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--braun) 16%, var(--surface)), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.gift .device { width: 100%; max-width: 230px; }

/* ---------- Duo ---------- */
/* ---------- Neues (NewsKit) ---------- */
.neues-wrap { padding: 44px 0 70px; }
.neues-hinweis { color: var(--muted); }

.neues-liste { display: grid; gap: 18px; }

.neues-karte {
  display: grid;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.neues-karte:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.karte-bild-rahmen {
  background: var(--surface-2);
  border-radius: 14px;
  overflow: hidden;
  /* Hochformat: ein 16:10-Ausschnitt aus einem Telefon-Screenshot zeigt
     nur die Statusleiste. So ist der Kopf des Bildschirms erkennbar. */
  aspect-ratio: 4 / 5;
  max-height: 210px;
}
.karte-bild-rahmen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.karte-text h3 { font-size: 1.18rem; margin: 6px 0 8px; }
.karte-text p { color: var(--text-2); font-size: .97rem; }

.neues-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; font-size: .78rem; color: var(--muted);
}
.rubrik {
  border-radius: 999px; padding: 3px 10px;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-2); color: var(--text-2);
}
.rubrik-release { background: var(--gold); color: #1b1610; }
.version {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 9px; font-variant-numeric: tabular-nums;
}
.neues-mehr { margin-top: 26px; }

/* Detailansicht */
.neues-detail { max-width: 70ch; margin-inline: auto; }
.neues-detail h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); margin: 12px 0 14px; }
.neues-detail .lead { font-size: 1.08rem; color: var(--text-2); margin-bottom: 26px; }
.neues-text { color: var(--text-2); }
.neues-text h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 32px 0 12px; color: var(--text); }
.neues-text h3 { font-size: 1.12rem; margin: 24px 0 10px; color: var(--text); }
.neues-text ul, .neues-text ol { padding-left: 22px; margin: 0 0 14px; }
.neues-text li { margin-bottom: 7px; }
.neues-text blockquote {
  margin: 22px 0; padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
  color: var(--text);
}
.neues-text blockquote p { margin: 0; }
.neues-text a { color: var(--gold-tief); }

.neues-bilder { display: grid; gap: 16px; margin: 26px 0 30px; }
.neues-bilder.hoch { grid-template-columns: repeat(auto-fit, minmax(0, 190px)); justify-content: center; }
.device-klein { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.device-klein img { display: block; width: 100%; height: auto; }
.neues-bilder.quer img {
  display: block; width: 100%; height: auto;
  border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.neues-zurueck { margin-top: 36px; }

/* ---------- Plus ---------- */
.plus-grid { display: grid; gap: 18px; margin-top: 30px; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.plan.is-plus { border-color: color-mix(in srgb, var(--gold) 55%, transparent); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price { font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 4px; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; color: var(--text-2); }
.plan li { padding-left: 26px; position: relative; margin-bottom: 9px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 13px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.plan.is-free li::before {
  border: 0; width: 11px; height: 2px; background: var(--muted); transform: none; top: .72em;
}
.badge {
  display: inline-block; align-self: flex-start;
  background: var(--gold); color: #1b1610;
  border-radius: 999px; padding: 4px 11px; font-size: .72rem; font-weight: 750;
  letter-spacing: .05em; text-transform: uppercase;
}
.plan .note { margin-top: 16px; font-size: .86rem; color: var(--muted); }

/* ---------- Fußzeile ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 30px; background: var(--bg-soft); }
.footer-inner { display: grid; gap: 26px; }
.footer-links ul { list-style: none; margin: 10px 0 0; padding: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a, .footer a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer a:hover { color: var(--text); }
.footer strong { font-size: .95rem; }
.footer address { font-style: normal; color: var(--muted); font-size: .94rem; line-height: 1.7; }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

/* ---------- Einblenden ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Haltepunkte ---------- */
@media (min-width: 680px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .gift { grid-template-columns: 260px 1fr; }
  .plus-grid { grid-template-columns: repeat(2, 1fr); }
  .neues-karte { grid-template-columns: 168px 1fr; align-items: center; }
}

@media (min-width: 900px) {
  body { font-size: 17.5px; }
  .nav { display: inline-flex; }
  .langs { display: inline-flex; }
  .burger { display: none; }
  .mobil-nav { display: none !important; }
  .hero { padding: 76px 0 30px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-stage { max-width: 440px; justify-self: end; width: 100%; }
  .section { padding: 86px 0; }
  .row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .row.reverse .copy { order: 2; }
  .row.reverse .shots { order: 1; }

  /* Beide Geräte sind gleich hoch; Spaltenbreiten im Verhältnis der Renders
     (2600/1856 zu 1510/2100), damit sie auf einer Standlinie liegen. */
  .duo-stage { grid-template-columns: 1fr 0.513fr; align-items: end; gap: 28px; justify-items: stretch; }
  .duo-zu { max-width: none; }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Dunkles Gehäuse */
:root[data-thema="dunkel"] .device::after { background-image: url(geraete/iphone-deepblue.webp); }
:root[data-thema="dunkel"] .device { filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .5)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) .device::after { background-image: url(geraete/iphone-deepblue.webp); }
  :root:not([data-thema="hell"]) .device { filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .5)); }
  :root:not([data-thema="hell"]) .duo-stage img,
  :root:not([data-thema="hell"]) .mac-stage img { filter: drop-shadow(0 26px 46px rgba(0, 0, 0, .55)); }
}
:root[data-thema="dunkel"] .duo-stage img,
:root[data-thema="dunkel"] .mac-stage img { filter: drop-shadow(0 26px 46px rgba(0, 0, 0, .55)); }
