/*
 * Avapingu – Stil angelehnt an Apple (clean, viel Weißraum, klare Typografie).
 * Schriften: ausschließlich System-Fonts (keine Google Fonts, keine externen Requests).
 * Datenschutzkonform: keine Drittanbieter-Ressourcen für Fonts oder Tracking.
 */

:root {
  --bg: #ffffff;
  --bg-alt: #fbfbfd;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --link: #0066cc;
  --link-hover: #004499;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --warnbg: #fef9e7;
  --warn: #b45309;

  /* Apple-typische Abstände */
  --section-padding: 5rem 0;
  --content-max: 980px;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-system);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 22px 4rem;
}

/* ========== Header (Apple-Nav ähnlich: schlank, klar) ========== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 1rem 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.brand a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

 .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.topnav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 820px) {
  .topnav {
    display: none;
  }
}

.topnav a:focus-visible,
.btn:focus-visible,
.hero-media:focus-visible,
.figur-thumb:focus-visible,
.explosion-thumb:focus-visible,
details summary:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ========== Hero ========== */
.hero {
  margin-top: 0;
  padding: 2rem 0 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 1.5rem 0 2rem;
  }
}

.hcard {
  border-radius: 18px;
  padding: 2rem 2rem 2.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-alt);
  padding: 0;
  cursor: pointer;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-media-caption {
  margin: -6px 0 0;
}

/* ========== Typography (Apple-Scale) ========== */
h1 {
  margin: 0 0 0.6em;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}

.lead {
  margin: 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
  max-width: 60ch;
}

.lead strong {
  color: var(--text);
}

.ctaRow {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Buttons: Apple-Style (rund, klar) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: scale(1.01);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Sekundärer Button (outline) */
.ctaRow .btn:not(.primary) {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.ctaRow .btn:not(.primary):hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.small {
  font-size: 14px;
  line-height: 1.47;
  color: var(--text-secondary);
}

h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.explosion-wrap {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-alt);
  padding: 1.5rem;
  text-align: center;
}

.explosion-thumb {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  width: min(720px, 100%);
}

.explosion-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.faq {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:first-child {
  border-top: none;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--text-tertiary);
  font-weight: 600;
}

.faq details[open] summary::after {
  content: "–";
}

.faq-body {
  padding: 0 1.25rem 1rem;
}

.legal {
  border: 1px solid rgba(180, 83, 9, 0.25);
  background: var(--warnbg);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 15px;
}

.legal strong {
  color: var(--warn);
}

/* ========== Sections ========== */
.section {
  margin-top: 0;
  padding: var(--section-padding);
}

.section > h2 {
  margin-bottom: 0.75em;
}

.section .lead {
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  grid-column: span 6;
  border-radius: 18px;
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
  .card {
    grid-column: span 12;
  }
}

h2 {
  margin: 0 0 0.5em;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

h3 {
  margin: 0 0 0.4em;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

ul {
  margin: 0.75em 0 0 1.25em;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.47;
}

li {
  margin: 0.35em 0;
}

.checklist,
.component-preview {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6em;
}

.checklist li::before {
  content: \"✓\";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

.component-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.47;
}

@media (max-width: 700px) {
  .component-preview {
    grid-template-columns: 1fr;
  }
}

.price {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.5em 0 0.25em;
  color: var(--text);
}

.tag {
  display: inline-block;
  margin-top: 0.5em;
  padding: 6px 12px;
  border-radius: 980px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

/* ========== Die Figur (Thumbnails + Lightbox) ========== */
.produkt-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .produkt-row {
    grid-template-columns: 1fr;
  }
}

.produkt-figure {
  margin: 0;
}

.figur-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.figur-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--bg-alt);
  cursor: pointer;
  font: inherit;
}

.figur-thumb img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 200px;
  object-fit: contain;
}

.figur-card figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.lightbox-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox #lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
}

/* ========== Tables ========== */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 1rem;
  background: var(--bg);
  font-size: 15px;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-alt);
}

tr:last-child td {
  border-bottom: none;
}

td.num {
  text-align: right;
  white-space: nowrap;
  color: var(--text);
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  color: var(--accent);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 6px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 1.5rem 0;
}

/* ========== Footer ========== */
.footer {
  margin-top: 0;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.footer a {
  color: var(--link);
}

.footer a:hover {
  color: var(--link-hover);
}

.kpi {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.kpi .pill {
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.kpi .pill strong {
  color: var(--text);
}
