/* Geo3App – Website. Farben und Abstände zentral in :root. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #007AFF;          /* App-Akzent (Flächen, Grafik) */
  --blue-ink: #0066D6;      /* Text/Buttons: Kontrast ≥ 4,5:1 auf Weiß */
  --blue-dark: #0052AD;
  --sky: #EDF5FF;
  --yellow: #FFED00;        /* Band des Geodreiecks */
  --ink: #14202B;
  --ink-2: #4A5866;
  --line: rgba(0, 0, 0, .07);
  --card: #FFFFFF;
  --radius: 28px;
  --shadow: 0 8px 36px rgba(16, 32, 64, .08), 0 1px 2px rgba(16, 32, 64, .04);
  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, 4vw);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 68px;
  --warn: #FF9500;          /* Warnung wie in der App (systemOrange) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0, 122, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 255, .06) 1px, transparent 1px),
    linear-gradient(var(--sky), #fff 1100px);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); letter-spacing: -.02em; }
h4 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
mark.missing { background: var(--yellow); color: var(--ink); padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* Skip-Link */
.skip-link { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 1.5px solid transparent; transition: background-color .25s, color .25s, border-color .25s; }
.btn-primary { background: var(--blue-ink); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { color: var(--blue-ink); border-color: rgba(0, 102, 214, .35); background: rgba(255, 255, 255, .7); }
.btn-ghost:hover { border-color: var(--blue-ink); background: #fff; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-pending { color: var(--ink-2); border: 1.5px dashed rgba(74, 88, 102, .45); background: rgba(255, 255, 255, .6); cursor: default; font-weight: 500; }
.store-badge { display: inline-block; border-radius: 10px; }
.store-badge img { height: 54px; width: auto; }
.store-pending { margin: 0; max-width: 30ch; padding: 12px 16px; border: 1.5px dashed rgba(74, 88, 102, .45); border-radius: 16px; background: rgba(255, 255, 255, .75); font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.store-pending strong { color: var(--ink); }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(237, 245, 255, .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .88); }
.nav { display: flex; align-items: center; min-height: var(--header-h); gap: 12px; }
.nav-menu { margin-inline-start: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { flex: none; border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.brand .brand-word { width: auto; height: 30px; border-radius: 0; box-shadow: none; }
.brand-name { font: 500 1.35rem/1 var(--font-head); letter-spacing: -.03em; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-links a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover { background: rgba(0, 102, 214, .08); color: var(--ink); }
.nav-menu { display: flex; align-items: center; gap: 12px; }
.btn-nav { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; margin: auto; position: relative; transition: transform .3s, background-color .3s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
/* Sprachauswahl */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink); border: 1px solid var(--line); background: rgba(255, 255, 255, .7); user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: #fff; }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.lang a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.lang a:hover { background: rgba(0, 102, 214, .08); color: var(--ink); }
.lang a[aria-current] { color: var(--blue-ink); font-weight: 600; }
.lang a[aria-current]::after { content: ""; margin-inline-start: auto; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 879px) {
  .lang { margin-inline-start: auto; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(16, 32, 64, .08); }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { min-height: 52px; font-size: 1.1rem; padding: 0 8px; border-radius: 12px; }
  .btn-nav { min-height: 52px; }
}

/* Abschnitte */
.section { padding-block: var(--section); }
#funktionen { padding-top: clamp(24px, 3vw, 40px); }
.section-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 48px); }
.section-lead, .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.eyebrow { display: inline-block; margin: 0 0 18px; font-weight: 600; font-size: .9rem; letter-spacing: .02em; color: var(--ink); padding: 4px 12px; border-radius: 999px; background: linear-gradient(transparent 55%, rgba(255, 237, 0, .85) 55%); background-color: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); }
.accent { color: var(--blue-ink); }

/* Karten (wie die Illustrationen der Einführung: weiß, 28 px Radius, feine Kontur, weicher Schatten) */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* Hero */
.hero { padding-block: clamp(16px, 3vw, 40px) clamp(8px, 2vw, 24px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero-text { max-width: 620px; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { display: block; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero-logo { justify-self: center; width: min(100%, 460px); border-radius: 42px; }
.hero-logo img { width: 100%; height: auto; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

/* Funktionen: eine Zeile pro Folie der Einführung */
.row { display: grid; gap: 24px; align-items: center; padding-block: clamp(28px, 4vw, 48px); }
.row-text { max-width: 480px; }
.row-text p { color: var(--ink-2); font-size: 1.08rem; }
.row-text p:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .row:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .row:nth-child(even) .row-text { order: 2; }
}

/* Medienplatz: Video, Bild oder Platzhalter */
.media { width: 100%; }
.media video, .media img { width: 100%; height: 100%; object-fit: contain; }
.r-3-2 { aspect-ratio: 3 / 2; }
.r-4-3 { aspect-ratio: 4 / 3; }
.r-16-10 { aspect-ratio: 16 / 10; }
.r-16-9 { aspect-ratio: 16 / 9; }
.r-1-1 { aspect-ratio: 1 / 1; }
.media-missing { display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--ink-2); background-color: #fff; background-image: linear-gradient(rgba(0, 122, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 122, 255, .09) 1px, transparent 1px); background-size: 22px 22px; border: 2px dashed rgba(0, 102, 214, .3); box-shadow: none; }
.media-missing span { font-weight: 600; }
.media-missing code { font-size: .85rem; background: rgba(255, 237, 0, .6); padding: 2px 8px; border-radius: 6px; color: var(--ink); }
.media-toggle { position: absolute; inset-inline-end: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); padding: 0; }
.media-toggle:hover { color: var(--ink); }
.media-toggle:not(:focus-visible) { opacity: 0; pointer-events: none; }  /* ausgeblendet; per Tab-Taste weiter erreichbar */
.media-toggle::before { content: ""; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.media-toggle[aria-pressed="true"]::before { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

/* Papier (Nachbildung der Papierfolie der Einführung) */
.papers-card { display: grid; place-items: center; padding: clamp(16px, 4vw, 40px); background-image: linear-gradient(rgba(0, 122, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 122, 255, .09) 1px, transparent 1px); background-size: 22px 22px; }
.papers { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2.5vw, 18px); }
.papers li { display: grid; justify-items: center; gap: 8px; font-size: .8rem; font-weight: 500; color: var(--ink-2); text-align: center; }
.paper { width: 100%; aspect-ratio: .72; border-radius: 8px; background-color: #fff; border: 1px solid rgba(0, 0, 0, .12); box-shadow: 0 3px 8px rgba(0, 0, 0, .08); }
.paper-grid { background-image: linear-gradient(rgba(41, 107, 217, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(41, 107, 217, .35) 1px, transparent 1px); background-size: 10px 10px; }
.paper-dots { background-image: radial-gradient(circle, rgba(41, 107, 217, .6) 1px, transparent 1.5px); background-size: 10px 10px; background-position: 5px 5px; }
.paper-mm { background-image:
  linear-gradient(rgba(217, 115, 51, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 115, 51, .6) 1px, transparent 1px),
  linear-gradient(rgba(217, 115, 51, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 115, 51, .3) 1px, transparent 1px);
  background-size: 25px 25px, 25px 25px, 5px 5px, 5px 5px; }
.paper-iso { background-image:
  repeating-linear-gradient(0deg, rgba(41, 107, 217, .3) 0 1px, transparent 1px 8.66px),
  repeating-linear-gradient(60deg, rgba(41, 107, 217, .3) 0 1px, transparent 1px 8.66px),
  repeating-linear-gradient(120deg, rgba(41, 107, 217, .3) 0 1px, transparent 1px 8.66px); }

/* Stift oder Finger: Auswahl wie auf der letzten Folie der Einführung (Onboarding.swift, modeChooser) */
.modes { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.mode-cards { display: grid; gap: 14px; }
@media (min-width: 480px) { .mode-cards { grid-template-columns: 1fr 1fr; } }
.mode { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 18px; background: #fff; border-radius: 18px; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 4px 10px rgba(0, 0, 0, .05); transition: box-shadow .2s ease-in-out; -webkit-tap-highlight-color: transparent; }
.mode:has(input:checked) { box-shadow: 0 0 0 2px var(--blue), 0 4px 10px rgba(0, 0, 0, .1); }
.mode:has(input:focus-visible) { outline: 3px solid var(--blue-ink); outline-offset: 3px; }
.mode input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mode-top { display: flex; align-items: center; gap: 8px; }
.mode-icon { flex: none; width: 34px; height: 34px; padding: 3px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.mode-icon-hand { fill: var(--blue); stroke: none; }
.mode-tag { font-size: .75rem; font-weight: 600; color: var(--blue-ink); background: rgba(0, 122, 255, .12); padding: 3px 8px; border-radius: 999px; }
.mode-check { margin-inline-start: auto; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(128, 128, 128, .4); display: grid; place-items: center; transition: background-color .2s ease-in-out, box-shadow .2s ease-in-out; }
.mode-check svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s ease-in-out; }
.mode:has(input:checked) .mode-check { background: var(--blue); box-shadow: none; }
.mode:has(input:checked) .mode-check svg { opacity: 1; }
.mode-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.mode-text { font-size: .94rem; line-height: 1.45; color: var(--ink-2); }
/* Hinweis: Platz bleibt reserviert, damit beim Umschalten nichts springt */
.mode-warn { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 149, 0, .1); box-shadow: inset 0 0 0 1px rgba(255, 149, 0, .35);
  opacity: 0; visibility: hidden; transition: opacity .2s ease-in-out, visibility 0s linear .2s; }
.modes:has(input[value="finger"]:checked) .mode-warn { opacity: 1; visibility: visible; transition: opacity .2s ease-in-out, visibility 0s; }
.mode-warn svg { flex: none; width: 24px; height: 24px; }
.mode-warn .tri { fill: var(--warn); }
.mode-warn .mark { stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.mode-warn .dot { fill: #fff; }
.mode-warn strong { display: block; font-size: .94rem; font-weight: 600; line-height: 1.35; margin-bottom: 4px; color: var(--ink); }
.mode-warn span { display: block; font-size: .82rem; line-height: 1.45; color: var(--ink-2); }
.small { font-size: .95rem; margin: 0; color: var(--ink-2); }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; } .faq-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); margin: 0; letter-spacing: -.015em; line-height: 1.3; }
.faq-list summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background:
  linear-gradient(var(--blue-ink), var(--blue-ink)) center / 12px 2px no-repeat,
  linear-gradient(var(--blue-ink), var(--blue-ink)) center / 2px 12px no-repeat, rgba(0, 102, 214, .08); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover h3 { color: var(--blue-ink); }
.answer { padding: 0 0 20px; padding-inline-end: 48px; color: var(--ink-2); }
.answer p:last-child { margin-bottom: 0; }

/* Download */
.download { padding-top: 0; }
.download-card { display: grid; gap: 32px; align-items: center; background: var(--blue-ink); color: #fff; border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 6vw, 72px); background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 28px 28px; }
.download-card h2 { color: #fff; max-width: 16ch; }
.download-card p { color: rgba(255, 255, 255, .88); font-size: 1.15rem; max-width: 46ch; }
.download-card a:focus-visible { outline-color: #fff; }
.download-icon { width: 80px; height: 80px; border-radius: 19px; margin-bottom: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.download-card .store-pending { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; }
.download-card .store-pending strong { color: #fff; }
.download-card .btn-primary { background: #fff; color: var(--blue-ink); }
.qr { display: none; background: #fff; border-radius: 20px; padding: 16px; text-align: center; width: 200px; }
.qr svg { width: 168px; height: 168px; }
.qr p { margin: 8px 0 0; font-size: .85rem; color: var(--ink-2); }
@media (min-width: 960px) { .download-card { grid-template-columns: 1fr auto; } .qr { display: block; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .85); padding-block: 48px 32px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand p { color: var(--ink-2); max-width: 46ch; margin-top: 12px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); font-weight: 500; text-decoration: none; border-radius: 10px; }
.footer-links a:hover { background: rgba(0, 102, 214, .08); }
.footer-legal p { margin: 24px 0 0; font-size: .85rem; color: var(--ink-2); }

/* Rechtstexte, 404 */
.legal { padding-top: clamp(40px, 6vw, 80px); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2em; letter-spacing: -.02em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: .4em; }
.legal-note { background: rgba(255, 237, 0, .35); border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.notfound-inner { max-width: 640px; text-align: center; display: grid; justify-items: center; }
.notfound-art { width: min(320px, 100%); height: auto; margin-bottom: 28px; }
.notfound-art text { font-family: var(--font-head); }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Arabisch, Chinesisch, Japanisch: keine negative Laufweite */
:lang(ar) :is(h1, h2, h3, h4, .eyebrow, .faq-list summary h3), :lang(zh) :is(h1, h2, h3, h4, .eyebrow), :lang(ja) :is(h1, h2, h3, h4, .eyebrow) { letter-spacing: 0; }
:lang(ar) body { line-height: 1.75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  .site-header, .media-toggle, .download { display: none; }
  body { background: #fff; }
}

/* Soziale Netzwerke im Footer (nur sichtbar, wenn in config.json eine URL steht) */
.social { margin-top: 18px; }
.social p { margin: 0 0 6px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.social ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); background: rgba(0, 102, 214, .06); }
.social a:hover { background: rgba(0, 102, 214, .12); color: var(--blue-ink); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social svg .dot { fill: currentColor; stroke: none; }

/* Arabisch und Farsi: verbundene Schrift ohne engere Laufweite */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.3; }

/* Beta-Hinweis: volle Zeile, Link deutlich (verschwindet mit APP_STORE_URL) */
.hero-actions .store-pending, .download-actions .store-pending { flex: 1 1 100%; width: 100%; max-width: 560px; }
.store-pending a { display: inline-block; padding-block: 10px 6px; font-weight: 600; color: var(--blue-ink); }
.download-card .store-pending a { color: #fff; }
a.btn-pending { cursor: pointer; text-decoration: none; }

/* Angehaltenes Video (Browser-Sperre, reduzierte Bewegung): Startknopf sichtbar */
.media-toggle[aria-pressed="true"] { opacity: 1; pointer-events: auto; }

/* Sprachmenü bleibt auch im Querformat vollständig erreichbar */
.lang ul { max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 479px) {
  /* Kennzeichnung darf umbrechen, ohne dass der Marker zerfällt */
  .eyebrow { font-size: .82rem; letter-spacing: 0; padding: 5px 12px; border-radius: 14px; background: rgba(255, 237, 0, .55); }
  /* Papierarten zweispaltig, lange Namen bleiben lesbar */
  .papers-card { aspect-ratio: auto; height: auto; }
  .papers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .papers li { min-width: 0; font-size: .85rem; }
  .paper { aspect-ratio: 1.35; }
}
