/* ============================================
   aeroPDF — Produkt-Webseite
   softwelop Corporate Identity
   ============================================ */

/* --- Schrift: Montserrat (lokal gehostet) ---
   Bewusst KEINE Einbindung von Google Fonts: Ein externer Font-Request würde
   die IP-Adresse jedes Besuchers an einen Drittanbieter übertragen. Die
   Webseite lädt daher ausschließlich Assets von der eigenen Domain — passend
   zum Offline-First-Versprechen der Software.

   Es sind Variable Fonts (Gewichtsachse 100–900), deshalb genügen zwei
   Dateien für alle genutzten Schnitte (300 Light, 500 Medium, 700 Bold).
   Die `unicode-range`-Angaben stammen aus den Google-Fonts-Subsets: Der
   latin-ext-Schnitt wird nur geladen, wenn die Seite auch Zeichen daraus
   enthält. Lizenz: SIL Open Font License 1.1 (siehe assets/fonts/LICENSE.txt).
   -------------------------------------------------------------------- */

/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Custom Properties (CI_PLAN.md) --- */
:root {
  --sw-white: #ffffff;
  --sw-bright-code: #a3c7eb;
  --sw-core-logic: #194093;
  --sw-deep-trust: #21264e;
  --sw-soft-spark: #f7ae67;
  --sw-signal-orange: #f18557;
  --sw-powerline-red: #e36150;

  --sw-text: var(--sw-deep-trust);
  --sw-bg: var(--sw-white);

  --font-headline: 'Montserrat', Arial, sans-serif;
  --font-body: 'Montserrat', Arial, sans-serif;

  --max-width: 1200px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 64px;
  --spacing-xl: 96px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: var(--sw-text);
  background: var(--sw-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sw-core-logic);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--sw-signal-orange);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Accessibility: Skip-Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--spacing-sm);
  padding: 0.5rem 1rem;
  background: var(--sw-core-logic);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --- Accessibility: Visually Hidden (screen-reader-only) --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Accessibility: Focus Styles --- */
:focus-visible {
  outline: 3px solid var(--sw-soft-spark);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sw-soft-spark);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sw-deep-trust);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.25rem; margin-bottom: var(--spacing-sm); }

.subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sw-core-logic);
}

p {
  margin-bottom: var(--spacing-sm);
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section--alt {
  background: #f4f7fb;
}

.section--dark {
  background: var(--sw-deep-trust);
  color: var(--sw-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--sw-white);
}

.section--dark .subtitle {
  color: var(--sw-bright-code);
}

.text-center {
  text-align: center;
}

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(25, 64, 147, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--spacing-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--sw-deep-trust);
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: 40px;
}

.nav-logo span:last-child {
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sw-deep-trust);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--sw-core-logic);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--sw-core-logic);
  color: var(--sw-white) !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background 0.2s ease, transform 0.1s ease;
}

.nav-cta:hover {
  background: var(--sw-deep-trust);
  color: var(--sw-white) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sw-deep-trust);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* --- Hero --- */
.hero {
  position: relative;
  isolation: isolate;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  overflow: hidden;
}

/* Hintergrund: weiche Farbflaechen der CI hinter einem feinen Punktraster.
   Liegt via z-index hinter dem Inhalt; der Verlauf nach unten sorgt fuer einen
   nahtlosen Uebergang in die nachfolgende Sektion. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(25, 64, 147, 0.14) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero-blob--1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -140px;
  background: rgba(163, 199, 235, 0.55);
  animation: heroFloat 18s ease-in-out infinite;
}

.hero-blob--2 {
  width: 420px;
  height: 420px;
  top: 40px;
  right: -120px;
  background: rgba(247, 174, 103, 0.35);
  animation: heroFloat 22s ease-in-out infinite reverse;
}

.hero-blob--3 {
  width: 460px;
  height: 460px;
  bottom: -260px;
  left: 42%;
  background: rgba(25, 64, 147, 0.16);
  animation: heroFloat 26s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -24px, 0) scale(1.08); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

/* Grid-Items haben per Default `min-width: auto` und koennen deshalb nicht
   unter ihre min-content-Breite schrumpfen. Die Tableiste des Demo-Fensters
   enthaelt nicht umbrechende Beschriftungen und erzwaenge damit eine
   Mindestbreite von ~420px — auf schmalen Viewports wuerde die Spalte (und
   mit ihr die Ueberschrift in der Nachbarspalte) ueber den Rand hinauslaufen
   und abgeschnitten. `min-width: 0` gibt die Kontrolle zurueck an das Raster. */
.hero-content,
.hero-visual {
  min-width: 0;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.15;
}

.hero-content h1 span {
  color: var(--sw-core-logic);
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--sw-deep-trust);
  opacity: 0.8;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Hero: Vertrauens-Zeile unter den Buttons --- */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sw-deep-trust);
}

.hero-trust svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--sw-core-logic);
}

/* ============================================
   Hero-Visual: animierte aeroPDF-Oberflaeche
   --------------------------------------------
   Reines HTML/CSS statt Screenshot. Der Aufbau bildet die Desktop-App nach
   (`desktop/src/index.html` + `styles.css`): Werkzeugleiste mit Logo und
   beschrifteten Buttons, darunter eine eigene Tab-Leiste, dann Seitenleiste
   mit Vorschaubildern und der Viewer. Farben und Masse sind aus der App
   uebernommen — siehe die Variablen unten.

   Ein Zyklus dauert `--demo-cycle` (15 s) und zeigt fuenf Phasen zu je 20 %:
     Anzeigen (0–20 %) · Suchen (20–40 %) · Markieren (40–60 %)
     · Schwaerzen (60–80 %) · Signieren (80–100 %)

   Die Phasenverschiebung von Schritt-Chips und Werkzeug-Buttons laeuft ueber
   negative `animation-delay`-Werte auf identischer Dauer statt ueber eigene
   Keyframes je Element. Bei negativem Delay gilt: lokale Zeit = Wanduhr + |d|.
   Damit die aktive Phase N (0-basiert) bei N/5 des Zyklus beginnt, ist
   |d| = Zyklus * (5 - N) / 5 — formuliert als `calc(var(--demo-cycle) / -5 * n)`.
   Aendert sich `--demo-cycle`, bleibt alles synchron.
   ============================================ */
.app-demo {
  --demo-cycle: 15s;

  /* Aus desktop/src/styles.css uebernommen */
  --app-toolbar-bg: #ffffff;
  --app-main-bg: #f5f7fa;
  --app-sidebar-bg: #edf1f7;
  --app-border: #d8dee9;
  --app-text: #21264e;
  --app-text-2: #5a6078;
  --app-text-muted: #8890a4;
  --app-accent: #194093;
  --app-active-bg: rgba(25, 64, 147, 0.12);

  position: relative;
  width: 100%;
  max-width: 560px;
}

.app-frame {
  position: relative;
}

.app-window {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--app-toolbar-bg);
  border: 1px solid rgba(25, 64, 147, 0.1);
  box-shadow: 0 32px 80px rgba(25, 64, 147, 0.18),
    0 8px 24px rgba(25, 64, 147, 0.08);
  /* Leichte 3D-Neigung — gibt dem Fenster Tiefe, ohne den Inhalt zu verzerren */
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transform-origin: center;
  font-size: 10px;
  color: var(--app-text);
}

/* --- Werkzeugleiste (`.toolbar`) --- */
.app-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 0 8px;
  background: var(--app-toolbar-bg);
  border-bottom: 1px solid var(--app-border);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
  flex-shrink: 0;
}

.app-logo svg {
  width: 15px;
  height: 15px;
  border-radius: 3px;
}

.app-logo-text {
  font-size: 11px;
  letter-spacing: -0.3px;
  line-height: 1;
}

.app-logo-aero {
  font-weight: 300;
  color: var(--app-text);
}

.app-logo-pdf {
  font-weight: 700;
  color: var(--app-accent);
}

/* Werkzeug-Button (`.toolbar-btn`) */
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 5px;
  border-radius: 5px;
  color: var(--app-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.app-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.app-btn b {
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
}

/* Der jeweils genutzte Button leuchtet auf — wie `.toolbar-btn-toggle.active` */
.app-btn--search,
.app-btn--mark,
.app-btn--redact,
.app-btn--sign {
  animation: demoToolOn var(--demo-cycle) linear infinite;
}

.app-btn--search { animation-delay: calc(var(--demo-cycle) / -5 * 4); }
.app-btn--mark { animation-delay: calc(var(--demo-cycle) / -5 * 3); }
.app-btn--redact { animation-delay: calc(var(--demo-cycle) / -5 * 2); }
.app-btn--sign { animation-delay: calc(var(--demo-cycle) / -5 * 1); }

@keyframes demoToolOn {
  0%, 1% {
    background: transparent;
    color: var(--app-text);
  }
  3%, 18% {
    background: var(--app-active-bg);
    color: var(--app-accent);
  }
  20%, 100% {
    background: transparent;
    color: var(--app-text);
  }
}

.app-zoom {
  position: relative;
  margin-left: auto;
  min-width: 34px;
  height: 1em;
  font-size: 9px;
  font-weight: 500;
  color: var(--app-text-2);
  flex-shrink: 0;
}

/* Drei gestapelte Werte — der Zoom zieht nur in der ersten Phase an und
   bleibt danach auf 150 % stehen. */
.app-zoom span {
  position: absolute;
  inset: 0;
  text-align: right;
  opacity: 0;
  white-space: nowrap;
}

.app-zoom span:nth-child(1) { animation: demoZoom1 var(--demo-cycle) linear infinite; }
.app-zoom span:nth-child(2) { animation: demoZoom2 var(--demo-cycle) linear infinite; }
.app-zoom span:nth-child(3) { animation: demoZoom3 var(--demo-cycle) linear infinite; }

@keyframes demoZoom1 { 0%, 6% { opacity: 1; } 7%, 100% { opacity: 0; } }
@keyframes demoZoom2 { 0%, 6% { opacity: 0; } 7%, 13% { opacity: 1; } 14%, 100% { opacity: 0; } }
@keyframes demoZoom3 { 0%, 13% { opacity: 0; } 14%, 100% { opacity: 1; } }

/* --- Tab-Leiste (`.tab-bar`) --- */
.app-tabbar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 23px;
  padding: 0 4px;
  background: var(--app-toolbar-bg);
  border-bottom: 1px solid var(--app-border);
  overflow: hidden;
}

.app-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  font-size: 9px;
  color: var(--app-text-2);
  white-space: nowrap;
}

.app-tab i {
  font-style: normal;
  font-size: 8px;
  color: var(--app-text-muted);
  opacity: 0;
}

.app-tab.is-active {
  background: var(--app-main-bg);
  border-color: var(--app-border);
  color: var(--app-text);
  font-weight: 500;
}

.app-tab.is-active i {
  opacity: 1;
}

/* --- Seitenleiste + Viewer (`.main-area`) --- */
.app-main {
  display: flex;
  height: 320px;
  background: var(--app-main-bg);
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  width: 74px;
  flex-shrink: 0;
  background: var(--app-sidebar-bg);
  border-right: 1px solid var(--app-border);
}

.app-sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--app-border);
}

.app-sidebar-tabs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 5px 0;
  color: var(--app-text-muted);
}

.app-sidebar-tabs span svg {
  width: 11px;
  height: 11px;
}

.app-sidebar-tabs .is-active {
  color: var(--app-accent);
  box-shadow: 0 -2px 0 var(--app-accent) inset;
}

.app-thumbs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
}

/* Vorschaubild + Seitenzahl (`.thumbnail-wrapper`) */
.app-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 4px;
  border-radius: 5px;
}

.app-thumb i {
  display: block;
  width: 40px;
  height: 52px;
  background: #fff;
  border: 1px solid var(--app-border);
}

.app-thumb b {
  font-size: 8px;
  font-weight: 400;
  color: var(--app-text-muted);
}

.app-thumb.is-active {
  background: var(--app-active-bg);
  outline: 1.5px solid var(--app-accent);
}

.app-thumb.is-active b {
  color: var(--app-accent);
}

.app-viewer {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 12px 16px 0;
  background: var(--app-main-bg);
}

/* Hoehe so gewaehlt, dass die Seite auch im herangezoomten Zustand
   (scale 1.06, translateY -5 %) vollstaendig im Viewer bleibt — sonst
   wuerde das Signaturfeld am unteren Rand abgeschnitten. */
.app-page {
  position: relative;
  height: 296px;
  padding: 18px 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(33, 38, 78, 0.12);
  transform-origin: 50% 0;
  animation: demoPage var(--demo-cycle) ease-in-out infinite;
}

/* Textzeilen des Dokuments — bewusst abstrahiert, kein echter Inhalt */
.app-line {
  display: block;
  position: relative;
  height: 6px;
  margin-bottom: 9px;
  border-radius: 3px;
  background: rgba(33, 38, 78, 0.13);
}

.app-line--head {
  height: 11px;
  width: 62%;
  margin-bottom: 12px;
  background: rgba(33, 38, 78, 0.42);
}

.app-line--sub {
  width: 40%;
  margin-bottom: 14px;
  background: rgba(25, 64, 147, 0.3);
}

.app-line--short { width: 55%; }

.app-line--secret { width: 78%; }

/* Absatzabstand — leere Zeile ohne sichtbaren Balken */
.app-line--gap {
  height: 0;
  margin-bottom: 14px;
  background: none;
}

/* --- Phase 2: Treffer der Volltextsuche ---
   Farben aus `.search-highlight` bzw. `.search-highlight.active` der App. */
.app-line--hit-a::before,
.app-line--hit-b::before {
  content: '';
  position: absolute;
  top: -3px;
  height: calc(100% + 6px);
  border-radius: 2px;
  opacity: 0;
  animation: demoHit var(--demo-cycle) ease-in-out infinite;
}

.app-line--hit-a::before {
  left: 18%;
  width: 26%;
  background: rgba(255, 220, 0, 0.4);
  border: 1px solid rgba(255, 180, 0, 0.6);
}

.app-line--hit-b::before {
  left: 46%;
  width: 24%;
  background: rgba(255, 140, 0, 0.5);
  border: 1px solid rgba(255, 100, 0, 0.8);
  box-shadow: 0 0 5px rgba(255, 140, 0, 0.4);
}

@keyframes demoHit {
  0%, 21% { opacity: 0; }
  24%, 37% { opacity: 1; }
  40%, 100% { opacity: 0; }
}

/* --- Phase 3: Markierung ---
   Entspricht `.annotate-overlay`: gelbe Flaeche mit gestricheltem Rand. */
.app-line--mark::before {
  content: '';
  position: absolute;
  left: 0;
  top: -4px;
  width: 84%;
  height: calc(100% + 8px);
  border-radius: 2px;
  background: rgba(255, 255, 0, 0.35);
  border: 1.5px dashed var(--sw-soft-spark);
  transform-origin: left center;
  animation: demoMark var(--demo-cycle) ease-in-out infinite;
}

@keyframes demoMark {
  0%, 41% { transform: scaleX(0); opacity: 0; }
  42% { transform: scaleX(0); opacity: 1; }
  54%, 96% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* --- Phase 4: Schwaerzung ---
   Bewusst als ::after der Zeile selbst statt als frei positioniertes
   Element — so sitzt der Balken immer exakt auf der Zeile, auch wenn sich
   Zeilenhoehen oder Abstaende spaeter aendern. */
.app-line--secret::after {
  content: '';
  position: absolute;
  left: 0;
  top: -4px;
  width: 100%;
  height: calc(100% + 8px);
  border-radius: 1px;
  background: #000;
  transform-origin: left center;
  animation: demoRedact var(--demo-cycle) ease-in-out infinite;
}

@keyframes demoRedact {
  0%, 61% { transform: scaleX(0); opacity: 0; }
  62% { transform: scaleX(0); opacity: 1; }
  74%, 96% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* --- Phase 5: Signatur --- */
.app-signfield {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 120px;
  padding-top: 5px;
  border-top: 1.5px solid rgba(33, 38, 78, 0.25);
  color: var(--app-accent);
}

.app-sign {
  display: block;
  width: 100%;
  height: auto;
  /* `pathLength="1"` normiert die Pfadlaenge — der Strich zeichnet sich
     dadurch exakt von 0 auf 100 %, unabhaengig von der realen Laenge. */
  stroke-dasharray: 1;
  animation: demoSign var(--demo-cycle) ease-in-out infinite;
}

@keyframes demoSign {
  0%, 81% { stroke-dashoffset: 1; opacity: 0; }
  82% { stroke-dashoffset: 1; opacity: 1; }
  94%, 97% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes demoPage {
  0%, 4% { transform: translateY(0) scale(1); }
  16%, 96% { transform: translateY(-5%) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}

/* --- Schwebende Suchleiste (`.search-bar`) --- */
.app-searchbar {
  position: absolute;
  top: 64px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  background: var(--app-toolbar-bg);
  border: 1px solid var(--app-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(33, 38, 78, 0.12);
  font-size: 9px;
  opacity: 0;
  animation: demoSearchBar var(--demo-cycle) ease-in-out infinite;
}

.app-searchbar svg {
  width: 10px;
  height: 10px;
  color: var(--app-text-muted);
  flex-shrink: 0;
}

.app-search-term {
  color: var(--app-text);
  white-space: nowrap;
}

.app-search-opt {
  padding: 1px 3px;
  border-radius: 3px;
  background: var(--app-main-bg);
  color: var(--app-text-muted);
  font-size: 8px;
}

.app-search-count {
  color: var(--app-text-muted);
  font-size: 8px;
  white-space: nowrap;
}

@keyframes demoSearchBar {
  0%, 20% { opacity: 0; transform: translateY(-6px); }
  24%, 36% { opacity: 1; transform: translateY(0); }
  40%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* --- Schritt-Anzeige unter dem Fenster --- */
.app-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: var(--spacing-md) 0 0;
}

.app-step {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sw-deep-trust);
  background: rgba(25, 64, 147, 0.07);
  opacity: 0.5;
  animation: demoStep var(--demo-cycle) linear infinite;
}

.app-step:nth-child(2) { animation-delay: calc(var(--demo-cycle) / -5 * 4); }
.app-step:nth-child(3) { animation-delay: calc(var(--demo-cycle) / -5 * 3); }
.app-step:nth-child(4) { animation-delay: calc(var(--demo-cycle) / -5 * 2); }
.app-step:nth-child(5) { animation-delay: calc(var(--demo-cycle) / -5 * 1); }

@keyframes demoStep {
  0%, 1% {
    opacity: 0.5;
    background: rgba(25, 64, 147, 0.07);
    color: var(--sw-deep-trust);
  }
  3%, 18% {
    opacity: 1;
    background: var(--sw-core-logic);
    color: var(--sw-white);
  }
  20%, 100% {
    opacity: 0.5;
    background: rgba(25, 64, 147, 0.07);
    color: var(--sw-deep-trust);
  }
}

/* --- Schwebende Badges am Fenster --- */
.app-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--sw-white);
  box-shadow: 0 8px 24px rgba(33, 38, 78, 0.14);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sw-deep-trust);
  white-space: nowrap;
}

.app-badge svg {
  width: 15px;
  height: 15px;
  color: var(--sw-core-logic);
}

.app-badge strong {
  font-weight: 700;
  color: var(--sw-core-logic);
}

/* Platzierung ist eng: Links liegen die Vorschaubilder (ca. 22–83 % Hoehe),
   rechts oben die Suchleiste (ca. 17–22 %) und rechts unten das Signaturfeld
   (ca. 87–94 %). Die beiden freien Zonen sind daher rechts auf mittlerer Hoehe
   und links ganz unten. */
.app-badge--speed {
  top: 34%;
  right: -30px;
  animation: badgeFloat 7s ease-in-out infinite;
}

.app-badge--local {
  bottom: 7%;
  left: -30px;
  animation: badgeFloat 9s ease-in-out infinite reverse;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* --- Reduzierte Bewegung: Endzustand einfrieren --- */
@media (prefers-reduced-motion: reduce) {
  .hero-blob,
  .app-page,
  .app-line--hit-a::before,
  .app-line--hit-b::before,
  .app-line--mark::before,
  .app-line--secret::after,
  .app-sign,
  .app-step,
  .app-btn,
  .app-zoom span,
  .app-searchbar,
  .app-badge {
    animation: none !important;
  }

  /* Statischer Zustand: markiert, geschwaerzt und signiert */
  .app-line--mark::before,
  .app-line--secret::after {
    transform: scaleX(1);
    opacity: 1;
  }

  .app-sign {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  /* Suche ist abgeschlossen: Leiste zu, Treffer ausgeblendet */
  .app-searchbar {
    opacity: 0;
  }

  .app-zoom span:nth-child(3) { opacity: 1; }

  .app-step {
    opacity: 1;
    background: rgba(25, 64, 147, 0.07);
  }

  .app-btn--mark,
  .app-btn--redact,
  .app-btn--sign {
    background: var(--app-active-bg);
    color: var(--app-accent);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--sw-core-logic);
  color: var(--sw-white);
  box-shadow: 0 4px 16px rgba(25, 64, 147, 0.25);
}

.btn--primary:hover {
  background: var(--sw-deep-trust);
  color: var(--sw-white);
  box-shadow: 0 6px 24px rgba(25, 64, 147, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--sw-core-logic);
  border: 2px solid var(--sw-core-logic);
}

.btn--secondary:hover {
  background: var(--sw-core-logic);
  color: var(--sw-white);
}

.btn--accent {
  background: var(--sw-signal-orange);
  color: var(--sw-white);
  box-shadow: 0 4px 16px rgba(241, 133, 87, 0.3);
}

.btn--accent:hover {
  background: var(--sw-powerline-red);
  color: var(--sw-white);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.125rem;
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.feature-card {
  background: var(--sw-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  border: 1px solid rgba(25, 64, 147, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(25, 64, 147, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  background: #eef3fc;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--sw-core-logic);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon--orange {
  background: #fef0e7;
}

.feature-icon--orange svg {
  stroke: var(--sw-signal-orange);
}

.feature-card h3 {
  font-size: 1.125rem;
}

.feature-card p {
  font-size: 0.9375rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* --- Platform Badges --- */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  background: var(--sw-white);
  border: 1px solid rgba(25, 64, 147, 0.1);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--sw-deep-trust);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.platform-badge:hover {
  border-color: var(--sw-core-logic);
  transform: translateY(-2px);
}

.platform-badge svg {
  width: 20px;
  height: 20px;
}

/* --- Store Badges (Google Play / App Store) --- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-sm);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s ease, opacity 0.2s ease;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.store-badge img[alt*="App Store"] {
  height: 48px;
}

.store-badge img[alt*="Google Play"] {
  height: 64px;
}

/* --- Privacy/Trust Banner --- */
.trust-banner {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: #eef3fc;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--sw-core-logic);
}

.trust-banner-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--sw-core-logic);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-banner-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--sw-white);
  fill: none;
  stroke-width: 2;
}

/* --- Download Section --- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

/* Platform Selector Tabs (Download Page) */
.platform-tabs {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: center;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(25, 64, 147, 0.15);
  background: var(--sw-white);
  color: var(--sw-deep-trust);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.platform-tab svg {
  flex-shrink: 0;
}

.platform-tab:hover {
  border-color: var(--sw-core-logic);
}

.platform-tab.active {
  background: var(--sw-core-logic);
  border-color: var(--sw-core-logic);
  color: var(--sw-white);
}

.platform-panel {
  display: none;
}

.platform-panel.active {
  display: block;
}

.download-formats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.download-format-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--sw-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(25, 64, 147, 0.08);
  flex-wrap: wrap;
}

.download-format-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.download-format-name {
  font-weight: 600;
  font-size: 0.9375rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.download-format-meta {
  font-size: 0.8125rem;
  color: rgba(33, 38, 78, 0.6);
}

.download-format-checksum {
  font-size: 0.75rem;
  font-family: monospace;
  color: rgba(33, 38, 78, 0.5);
  word-break: break-all;
  max-width: 100%;
}

.download-card {
  background: var(--sw-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  border: 1px solid rgba(25, 64, 147, 0.08);
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.download-card:hover {
  box-shadow: 0 8px 32px rgba(25, 64, 147, 0.1);
}

.download-card h3 {
  margin-bottom: var(--spacing-xs);
}

.download-card .meta {
  font-size: 0.8125rem;
  opacity: 0.6;
  margin-bottom: var(--spacing-sm);
}

.download-card .btn {
  width: 100%;
  justify-content: center;
}

/* --- Keyboard Shortcuts Table --- */
.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-md);
}

.shortcuts-table th,
.shortcuts-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(25, 64, 147, 0.08);
  font-size: 0.9375rem;
}

.shortcuts-table th {
  font-weight: 700;
  color: var(--sw-core-logic);
  background: #f4f7fb;
}

.shortcuts-table kbd {
  display: inline-block;
  padding: 3px 8px;
  background: #f4f7fb;
  border: 1px solid rgba(25, 64, 147, 0.15);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --- Changelog --- */
.changelog-entry {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(25, 64, 147, 0.08);
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-version {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.changelog-date {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-bottom: var(--spacing-sm);
}

.changelog-category {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: var(--spacing-sm) 0 var(--spacing-xs);
  color: var(--sw-core-logic);
}

.changelog-list li {
  padding: 4px 0;
  font-size: 0.9375rem;
  padding-left: var(--spacing-sm);
  position: relative;
}

.changelog-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--sw-signal-orange);
  font-weight: 700;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid rgba(25, 64, 147, 0.08);
  padding: var(--spacing-sm) 0;
}

.faq-question {
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) 0;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--sw-core-logic);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--spacing-sm);
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(25, 64, 147, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--sw-text);
  background: var(--sw-white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sw-core-logic);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

/* Honeypot — für Bots unsichtbar versteckt */
.form-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Formular-Status-Meldung */
.form-status {
  margin-bottom: var(--spacing-sm);
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: padding 0.2s ease, opacity 0.2s ease;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  display: block;
  padding: 12px 16px;
  background: rgba(34, 139, 34, 0.08);
  color: #1a6e1a;
  border: 1px solid rgba(34, 139, 34, 0.2);
}

.form-status.error {
  display: block;
  padding: 12px 16px;
  background: rgba(227, 97, 80, 0.08);
  color: var(--sw-fire);
  border: 1px solid rgba(227, 97, 80, 0.2);
}

/* Lade-Zustand für Submit-Button */
button[type="submit"].loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-md) 0;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(25, 64, 147, 0.08);
}

.comparison-table th {
  background: #f4f7fb;
  font-weight: 700;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}

.comparison-table .check {
  color: var(--sw-core-logic);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--sw-powerline-red);
  opacity: 0.5;
}

/* --- Footer --- */
.site-footer {
  background: var(--sw-deep-trust);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sw-white);
  margin-bottom: var(--spacing-sm);
}

.footer-brand img {
  height: 32px;
  width: 32px;
}

.site-footer h4 {
  color: var(--sw-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-sm);
}

.site-footer ul li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--sw-bright-code);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--sw-bright-code);
}

.footer-bottom a {
  font-size: 0.8125rem;
}

/* --- Page Header (Subpages) --- */
.page-header {
  padding: var(--spacing-lg) 0;
  background: #f4f7fb;
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--spacing-xs);
}

.page-header .subtitle {
  margin-bottom: 0;
}

/* --- Performance Stats --- */
.perf-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.perf-stat {
  flex: 1 1 140px;
  max-width: 200px;
  text-align: center;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.perf-stat__value {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--sw-core-logic);
  line-height: 1.1;
  white-space: nowrap;
}

.perf-stat__label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  /* `margin: 0 auto` allein liesse das Grid-Item auf seine Inhaltsbreite
     schrumpfen — mit `width: 100%` fuellt es die Spalte bis max. 480px. */
  .hero-visual {
    order: -1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Ohne zweispaltiges Layout wirkt die Neigung uebertrieben */
  .app-window {
    transform: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .perf-stats {
    gap: var(--spacing-sm);
  }

  .perf-stat {
    flex: 1 1 calc(50% - var(--spacing-sm));
    max-width: none;
    padding: var(--spacing-sm);
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  /* Badges ragen seitlich heraus — auf schmalen Viewports nach innen holen */
  .app-badge--speed {
    right: 0;
  }

  .app-badge--local {
    left: 0;
  }

  /* Seitenhoehe bleibt wie am Desktop — der Textblock samt Signaturfeld
     braucht die Hoehe, sonst ueberlappen Schwaerzung und Signatur. */

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--sw-white);
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    border-bottom: 1px solid rgba(25, 64, 147, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Inline Grid-Overrides für Mobile */
  .features-grid[style*="repeat(2"],
  .features-grid[style*="repeat(3"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .hero {
    padding: var(--spacing-lg) 0 var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  /* Sehr schmal: Seitenleiste, schwebende Badges und die inaktiven Tabs
     kosten mehr Platz als sie an Aussage bringen. Die Werkzeugleiste faellt
     auf reine Symbole zurueck — so wie die App ihre Gruppen ueber
     `data-priority` einklappt. */
  .app-sidebar,
  .app-badge,
  .app-tab:not(.is-active),
  .app-btn b {
    display: none;
  }

  /* Ohne Seitenleiste wird die Seite breiter; die Hoehe muss aber reichen,
     damit das Signaturfeld unter dem Textblock frei bleibt. */
  .app-main {
    height: 312px;
  }

  .app-page {
    height: 280px;
  }

  .app-searchbar {
    top: 58px;
    right: 8px;
  }

  .btn--large {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .perf-stat {
    flex: 1 1 100%;
    max-width: none;
  }

  /* Platform-Tabs kompakter */
  .platform-tab {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  /* Download-Buttons volle Breite */
  .download-format-row {
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }

  .download-format-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
