/* Distances Windows Landing Page - Final (stable + complete)
   - Primary buttons identical color everywhere
   - No hero gradient/mask (prevents perceived color differences)
   - Mobile: text first (Variante B)
   - Keeps all sections: cards, gallery, download, footer, etc.
*/

/* =========================
   Design Tokens
   ========================= */
:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.04);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.58);
  --border: rgba(255, 255, 255, 0.12);

  --accent: #4aa3ff;

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --shadowSoft: 0 10px 24px rgba(0, 0, 0, 0.22);

  --radius: 18px;
  --radius2: 26px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --panel: rgba(0, 0, 0, 0.04);
    --panel2: rgba(0, 0, 0, 0.03);
    --text: rgba(15, 23, 42, 0.95);
    --muted: rgba(15, 23, 42, 0.70);
    --muted2: rgba(15, 23, 42, 0.55);
    --border: rgba(15, 23, 42, 0.10);
    --shadow: 0 18px 60px rgba(2, 6, 23, 0.12);
    --shadowSoft: 0 10px 24px rgba(2, 6, 23, 0.10);
  }
}

/* =========================
   Base
   ========================= */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.small {
  font-size: 13px;
  color: var(--muted2);
}

.muted {
  color: var(--muted);
}

/* =========================
   Topbar / Header
   ========================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

/* Logo + Wortmarke */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;

  /* verhindert, dass das Logo auf Mobile “riesig” wirken kann */
  max-width: 100%;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.brand-name {
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 20px;
  color: var(--text);
  white-space: nowrap;
}

@media (prefers-color-scheme: light) {
  .brand-name {
    color: rgba(15, 23, 42, 0.95);
  }
}

/* =========================
   Navigation
   ========================= */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Hintergrund-Aufhellung nur für NICHT-Primary (sonst wirkt Primary heller) */
.btn:not(.btn-primary):not(.btn-top-cta-soft):hover {
  background: color-mix(in oklab, var(--panel) 80%, white);
}

/* Primary – EINHEITLICHES Blau, ohne Gradient/Glow */
.btn-primary {
  background: var(--accent);
  border-color: rgba(0, 0, 0, 0.25);
  color: white;
  box-shadow: var(--shadowSoft);
}

/* Primary soll beim Hover NICHT „heller“ werden */
.btn-primary:hover {
  background: var(--accent);
  border-color: rgba(0, 0, 0, 0.30);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--panel);
}

/* Topbar CTA: Web-Version */
.nav .btn-top-cta {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

/* Soft-Variante (wenn du sie behalten willst) */
.nav .btn-top-cta-soft {
  box-shadow: none;
  background: color-mix(in oklab, var(--accent) 12%, white);
  border-color: color-mix(in oklab, var(--accent) 28%, white);
  color: color-mix(in oklab, var(--accent) 65%, #0f172a);
}

.nav .btn-top-cta-soft:hover {
  background: color-mix(in oklab, var(--accent) 16%, white);
  border-color: color-mix(in oklab, var(--accent) 36%, white);
  text-decoration: none;
}

/* =========================
   Hero (FINAL: ruhig, ohne Verlauf/Mask)
   ========================= */
.hero {
  padding: 40px 0 28px 0;
  background: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.hero-title {
  grid-column: 1 / -1;
}

.hero-text {
  min-width: 0;
}

.hero-media {
  min-width: 0;
}

h1 {
  margin: 0 0 16px 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 22px 0;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 18px);
}

/* Erklärung */
.hero-explain {
  margin: 0 0 16px 0;
  max-width: 620px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--panel2) 70%, transparent);
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}

.hero-explain-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--accent) 85%, var(--text));
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero-explain-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-explain-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-note {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pill {
  border: 1px solid var(--border);
  background: var(--panel2);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero Media */
.hero-media {
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
}

.hero-shot {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* =========================
   Sections / Cards
   ========================= */
.section {
  padding: 60px 0;
}

.section-tight-top {
  padding-top: 34px;
}

.section-alt {
  background: color-mix(in oklab, var(--panel2) 40%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  margin: 0 0 8px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  transform: translateY(-2px);
}

.icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* =========================
   Screenshots / Gallery (ruhig & gleichmäßig)
   ========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.shot {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  text-decoration: none;
}

.shot:hover {
  text-decoration: none;
  border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
}

.shot img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: color-mix(in oklab, var(--panel2) 55%, transparent);
}

.shot span {
  display: block;
  padding: 12px 12px 13px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}

/* ✅ NEU: Portrait-Thumbnail (PDF Hochformat) – kein Abschneiden */
.shot-portrait img {
  height: 240px;
  /* etwas mehr Platz fürs Hochformat */
  object-fit: contain;
  /* wichtig: zeigt komplettes PDF */
  background: color-mix(in oklab, var(--panel2) 70%, transparent);
  padding: 10px;
  /* optional: wirkt wie "Rahmen" */
}

.img-missing {
  outline: 2px dashed var(--accent);
  outline-offset: -10px;
}

/* =========================
   Download & Contact
   ========================= */
.download-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.download-box,
.contact-box {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 30px;
}

.btn-download {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* =========================
   Support Callout (Kontakt-Box)
   - NEU: auffälliger, aber im gleichen Stil
   ========================= */
.support-box {
  margin-top: 18px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--accent) 22%, var(--border));
  background: color-mix(in oklab, var(--accent) 12%, var(--panel));
}

.support-box-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.support-box-link:hover {
  text-decoration: none;
}

.support-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadowSoft);
}

.support-main {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.support-main strong {
  font-size: 0.95rem;
  color: var(--text);
}

.support-sub {
  font-size: 0.90rem;
  color: var(--muted);
}

/* Optionaler kleiner Hinweis unterhalb (muted small bleibt global) */
.support-hint {
  line-height: 1.35;
}

/* =========================
   Footer
   ========================= */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Linke Footer-Spalte */
.brand-foot {
  font-weight: 800;
  font-size: 18px;
}

.arrow-box {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
  margin-right: 6px;
  font-size: 0.75rem;
  vertical-align: middle;
}

/* Bestehende Footer-Links (rechts) */
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Variante B: Text zuerst, Bild danach */
  .hero-text {
    order: 1;
  }

  .hero-media {
    order: 2;
    max-width: 650px;
    margin: 0 auto;
  }

  .hero-explain {
    margin: 14px auto 16px auto;
    text-align: left;
  }

  .hero-note {
    justify-content: center;
  }

  .cta {
    justify-content: center;
  }

  .download-row {
    grid-template-columns: 1fr;
  }
}

/* Handy */
@media (max-width: 520px) {

  /* Navigation ausblenden ... */
  .nav a:not(.btn-top-cta) {
    display: none;
  }

  /* Web-Version-Button sichtbar lassen */
  .nav {
    display: flex;
  }

  .topbar-inner {
    padding: 10px 0;
  }

  .brand-lockup {
    padding: 8px 10px;
    gap: 12px;
  }

  .brand-logo {
    height: 40px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.12em;
  }

  .hero {
    padding: 26px 0 18px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hide-sm {
    display: none;
  }
}