/* =========================================================
   Quadrocopter-Guide – Design System
   Editorial minimalism for a beginner-focused drone site
   ========================================================= */

/* ---------- Local Fonts (DSGVO-friendly) ----------
   Die Fonts müssen einmalig lokal abgelegt werden.
   Anleitung: /assets/fonts/README.md
*/
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/Fraunces-VariableFont.woff2') format('woff2-variations'),
       url('../assets/fonts/Fraunces-VariableFont.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope-VariableFont.woff2') format('woff2-variations'),
       url('../assets/fonts/Manrope-VariableFont.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --paper:        #FAFAF7;
  --paper-soft:   #F4F2EC;
  --ink:          #16171A;
  --ink-muted:    #6B6963;
  --line:         #E5E3DD;
  --line-strong:  #C8C5BC;
  --accent:       #1B3A5C;
  --accent-hover: #0F2742;
  --cta:          #E8732C;
  --cta-hover:    #C95B18;
  --rating:       #F2A900;
  --ok:           #2D7A3E;
  --warn:         #A83232;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;

  --fs-xs: 0.8125rem; --fs-sm: 0.9375rem; --fs-base: 1.0625rem;
  --fs-md: 1.25rem;   --fs-lg: 1.5rem;    --fs-xl: 2rem;
  --fs-2xl: 2.75rem;  --fs-3xl: 4rem;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 1rem;
  --space-4: 1.5rem;  --space-5: 2.5rem; --space-6: 4rem; --space-7: 6rem;

  --container: 72rem; --container-narrow: 44rem;
  --radius-sm: 6px;   --radius-md: 10px;
  --shadow-card: 0 1px 2px rgba(22,23,26,.04), 0 8px 24px rgba(22,23,26,.06);
}

/* ---------- 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-size: var(--fs-base); line-height: 1.7;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.skip-link { position: absolute; top: -40px; left: 0; background: var(--ink); color: var(--paper); padding: var(--space-2) var(--space-3); z-index: 100; }
.skip-link:focus { top: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 450; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5vw, var(--fs-3xl)); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--fs-2xl)); font-variation-settings: "opsz" 72, "SOFT" 25; margin-top: var(--space-6); margin-bottom: var(--space-3); }
h3 { font-size: var(--fs-xl); font-variation-settings: "opsz" 36; margin-top: var(--space-5); margin-bottom: var(--space-3); }
h4 { font-size: var(--fs-lg); font-variation-settings: "opsz" 24; margin-top: var(--space-4); margin-bottom: var(--space-2); }

.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.18em; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); margin-bottom: var(--space-3); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-4); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(250,250,247,.88); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.1) blur(6px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; gap: var(--space-3); }
.brand { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); font-variation-settings: "opsz" 36, "WONK" 1; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.site-nav { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); padding: var(--space-1) 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (max-width: 720px) { .site-nav { gap: var(--space-3); } .site-nav a { font-size: var(--fs-xs); } .brand svg { width: 22px; height: 22px; } }

/* ---------- Hero ---------- */
.hero { padding: var(--space-7) 0 var(--space-6); border-bottom: 1px solid var(--line); }
.hero__kicker { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-muted); margin-bottom: var(--space-4); }
.hero__kicker::before { content: ""; width: 32px; height: 1px; background: var(--line-strong); }
.hero h1 { max-width: 22ch; }
.hero__lead { max-width: 55ch; font-size: var(--fs-md); color: var(--ink-muted); margin-top: var(--space-4); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: 0.85rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; text-align: center; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; line-height: 1; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); color: var(--paper); transform: translateY(-1px); }
.btn--cta { background: var(--cta); color: #fff; padding: 1rem 1.75rem; font-size: var(--fs-base); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 8px 20px rgba(232,115,44,.25); }
.btn--cta:hover { background: var(--cta-hover); color: #fff; transform: translateY(-1px); }
.btn--cta::after { content: "→"; font-family: var(--font-body); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-soft); color: var(--ink); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { display: block; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); color: inherit; }
.card__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); font-weight: 600; }
.card__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 450; margin: var(--space-2) 0; font-variation-settings: "opsz" 36; }
.card__desc { font-size: var(--fs-sm); color: var(--ink-muted); }

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section--alt { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: var(--space-5); max-width: 48rem; }
.section__head h2 { margin-top: 0; }

/* ---------- Product Box ---------- */
.product { display: grid; grid-template-columns: 200px 1fr auto; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); margin: var(--space-5) 0; align-items: center; box-shadow: var(--shadow-card); }
.product__image { aspect-ratio: 1; background: var(--paper-soft); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.product__image img, .product__image svg { width: 100%; height: 100%; object-fit: cover; }
.product__body h3 { margin: 0 0 var(--space-2); font-size: var(--fs-xl); font-variation-settings: "opsz" 36; }
.product__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: var(--fs-sm); color: var(--ink-muted); margin-bottom: var(--space-2); }
.product__rating { color: var(--rating); letter-spacing: 2px; }
.product__desc { font-size: var(--fs-sm); color: var(--ink); }
.product__pros { margin: var(--space-3) 0; font-size: var(--fs-sm); list-style: none; }
.product__pros li { padding-left: 1.5rem; position: relative; margin: var(--space-1) 0; }
.product__pros li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.product__cta { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-end; min-width: 160px; }
.product__price { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; font-variation-settings: "opsz" 36; }
.product__price-label { font-size: var(--fs-xs); color: var(--ink-muted); }
@media (max-width: 720px) { .product { grid-template-columns: 1fr; text-align: left; } .product__image { max-width: 200px; margin: 0 auto; } .product__cta { align-items: stretch; width: 100%; min-width: 0; } .product__cta .btn--cta { justify-content: center; } }

/* ---------- Article ---------- */
.article-header { padding: var(--space-7) 0 var(--space-5); border-bottom: 1px solid var(--line); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: var(--fs-xs); color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; margin-bottom: var(--space-4); }
.article-meta a { color: var(--accent); text-decoration: none; }
.article-body { padding: var(--space-5) 0 var(--space-7); }
.article-body p { max-width: 65ch; margin: var(--space-3) auto; font-size: var(--fs-base); }
.article-body > .container--narrow > * { margin-left: auto; margin-right: auto; }
.article-body h2, .article-body h3, .article-body h4 { max-width: 40ch; margin-left: auto; margin-right: auto; }
.article-body ul, .article-body ol { max-width: 60ch; margin: var(--space-3) auto; padding-left: 1.2rem; }
.article-body li { margin: var(--space-2) 0; }
.article-body blockquote { max-width: 55ch; margin: var(--space-5) auto; padding: 0 var(--space-4); border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: var(--fs-lg); font-style: italic; font-variation-settings: "opsz" 24; color: var(--ink); }
.lead { font-size: var(--fs-md) !important; color: var(--ink-muted); max-width: 60ch; }

/* TOC */
.toc { max-width: 40rem; margin: var(--space-4) auto; padding: var(--space-4); background: var(--paper-soft); border-radius: var(--radius-md); border: 1px solid var(--line); }
.toc__title { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.15em; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-muted); margin-bottom: var(--space-2); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: var(--space-1) 0; font-size: var(--fs-sm); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* Pros/Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); max-width: 55rem; margin: var(--space-5) auto; }
.pros-cons > div { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.pros-cons h4 { margin: 0 0 var(--space-3); font-size: var(--fs-md); font-variation-settings: "opsz" 24; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.pros-cons li { padding-left: 1.4rem; position: relative; margin: var(--space-2) 0; font-size: var(--fs-sm); }
.pros-cons .pros li::before { content: "+"; color: var(--ok); font-weight: 700; position: absolute; left: 0; }
.pros-cons .cons li::before { content: "−"; color: var(--warn); font-weight: 700; position: absolute; left: 0; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

/* Verdict */
.verdict { max-width: 44rem; margin: var(--space-6) auto; padding: var(--space-5); border: 1px solid var(--ink); border-radius: var(--radius-md); background: var(--paper); position: relative; }
.verdict::before { content: "Fazit"; position: absolute; top: -12px; left: var(--space-4); background: var(--paper); padding: 0 var(--space-2); font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; font-variation-settings: "opsz" 14; }
.verdict__score { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-3); font-family: var(--font-display); font-size: var(--fs-2xl); font-variation-settings: "opsz" 72; }
.verdict__score small { font-size: var(--fs-base); color: var(--ink-muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: var(--space-3) 0; max-width: 50rem; margin: 0 auto; }
.faq summary { list-style: none; cursor: pointer; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 450; font-variation-settings: "opsz" 24; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-xl); color: var(--accent); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--space-3); max-width: none; color: var(--ink-muted); }

/* Disclosure */
.disclosure { font-size: var(--fs-xs); color: var(--ink-muted); padding: var(--space-3); background: var(--paper-soft); border-radius: var(--radius-sm); max-width: 48rem; margin: var(--space-4) auto; border-left: 3px solid var(--cta); }
.disclosure strong { color: var(--ink); }
.affiliate-mark { color: var(--cta); font-weight: 700; margin-left: 2px; text-decoration: none; }

/* Info-Box */
.info-box { max-width: 48rem; margin: var(--space-4) auto; padding: var(--space-4); background: var(--paper-soft); border-radius: var(--radius-md); border-left: 3px solid var(--accent); font-size: var(--fs-sm); }
.info-box strong { color: var(--ink); }

/* Legal content */
.legal-body ul, .legal-body ol { max-width: 65ch; }
.legal-body h2 { font-size: var(--fs-xl); margin-top: var(--space-5); }
.legal-body h3 { font-size: var(--fs-md); margin-top: var(--space-4); }
.legal-body p { font-size: var(--fs-sm); }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: var(--space-6) 0 var(--space-4); margin-top: var(--space-7); }
.site-footer a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(250,250,247,.3); }
.site-footer a:hover { color: #fff; border-bottom-color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-5); margin-bottom: var(--space-5); }
.footer-grid h4 { color: var(--paper); font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; margin: 0 0 var(--space-3); }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin: var(--space-2) 0; font-size: var(--fs-sm); }
.footer-bottom { border-top: 1px solid rgba(250,250,247,.15); padding-top: var(--space-4); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: var(--fs-xs); color: rgba(250,250,247,.7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero > *, .section__head, .product { animation: rise .7s ease-out both; }
  .section__head { animation-delay: .05s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
