/* WebLens – Manga-Design */
:root {
  --ink: #111111;
  --paper: #FAF7F2;
  --red: #C8161D;
  --red-hot: #E62B2B;
  --red-light: #FF5A5A;
  --grey: #4A4A4A;
  --text: #2A2A2A;
  --display: 'Dela Gothic One', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: var(--red); }
a:hover { color: #8E0E13; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack-8, .stack-10, .stack-14, .stack-36 { display: flex; flex-direction: column; }
.stack-8 { gap: 8px; } .stack-10 { gap: 10px; } .stack-14 { gap: 14px; } .stack-36 { gap: 36px; }
.small { font-size: 14px; }
.center { text-align: center; }
.muted { color: var(--grey); }
.muted-strong { font-weight: 700; font-size: 14px; color: var(--grey); }
.muted-light { color: #BDBDBD; }
.red { color: var(--red); }
.red-light { color: var(--red-light); }

/* Raster & Muster */
.tone { background-image: radial-gradient(circle, #111 26%, transparent 28%); background-size: 7px 7px; }
.tone-red { background-image: radial-gradient(circle, #E62B2B 30%, transparent 32%); background-size: 9px 9px; }
.tone-white { background-image: radial-gradient(circle, #fff 22%, transparent 24%); background-size: 8px 8px; }
.hatch { background-image: repeating-linear-gradient(-45deg, #111 0 2px, transparent 2px 9px); }
.speed {
  position: absolute; inset: 0; opacity: .15;
  background: repeating-conic-gradient(from 0deg at 74% 50%, #111 0deg 1.2deg, transparent 1.2deg 7deg);
  -webkit-mask-image: radial-gradient(circle at 74% 50%, transparent 0 24%, #000 62%);
  mask-image: radial-gradient(circle at 74% 50%, transparent 0 24%, #000 62%);
}
.deco { position: absolute; border-radius: 50%; pointer-events: none; }
.hatch.deco { border-radius: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-weight: 900; border: 3px solid var(--ink);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { color: #fff; }
.btn-sm { padding: 10px 18px; box-shadow: 4px 4px 0 var(--ink); }
.btn-lg { font-size: 18px; padding: 16px 26px; border-width: 4px; box-shadow: 6px 6px 0 var(--ink); }
.btn-block { display: flex; font-size: 18px; padding: 16px; }
.btn-white-shadow { border-color: #fff; box-shadow: 5px 5px 0 #fff; }
.btn-white-shadow:hover { box-shadow: 7px 7px 0 #fff; }
.btn-black { background: var(--ink); color: #fff; font-size: 17px; padding: 14px; box-shadow: 5px 5px 0 var(--red); }
.btn-black:hover { color: #fff; box-shadow: 7px 7px 0 var(--red); }
.btn-white { background: #fff; color: var(--ink); font-size: 15px; padding: 12px 18px; box-shadow: 4px 4px 0 var(--ink); flex: 1 1 auto; }
.btn-white:hover { color: var(--ink); }
.chip { background: var(--ink); color: #fff; font-weight: 900; font-size: 13px; letter-spacing: 2px; padding: 6px 12px; }

/* Kopfzeile */
.site-header { border-bottom: 4px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.header-row { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--display); font-size: 26px; letter-spacing: .5px; }
.brand-28 { font-size: 28px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 16px; }
.navlink { color: var(--ink); text-decoration: none; font-weight: 700; }
.navlink:hover { color: var(--red); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Hero */
.hero { position: relative; border-bottom: 4px solid var(--ink); overflow: hidden; }
.hero-row { padding-top: 72px; padding-bottom: 92px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; position: relative; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.tagline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 74px); line-height: 1.03; letter-spacing: -1px; }
.outline-red { color: var(--red-hot); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.lead { font-size: 20px; line-height: 1.6; max-width: 540px; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.textlink { font-weight: 700; color: var(--ink); font-size: 17px; }

/* Browser-Mockup – Farben kommen aus CSS-Variablen, die script.js setzt */
.mock-col { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; position: relative; scroll-margin-top: 100px; }
.mock {
  position: relative; border: 5px solid var(--ink); box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-1.2deg); overflow: hidden; background: var(--d-chrome);
}
.mock * { transition: background-color .25s ease, color .25s ease, border-color .25s ease, fill .25s ease, stroke .25s ease; }
.m-tabs { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px 0; background: var(--d-chrome); overflow: hidden; }
.m-folder { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px 6px 0 0; font-size: 12px; font-weight: 900; color: var(--d-chrome); background: var(--d-accent); white-space: nowrap; }
.m-tab { padding: 6px 14px; border-radius: 8px 8px 0 0; font-size: 12px; font-weight: 700; color: var(--d-fgDim); white-space: nowrap; }
.m-tab-on { color: var(--d-fg); background: var(--d-toolbar); border-top: 3px solid var(--d-accent); }
.m-win { margin-left: auto; padding-bottom: 8px; color: var(--d-fgDim); font-size: 12px; white-space: nowrap; }
.m-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--d-toolbar); }
.m-logo-bg { fill: var(--d-logoBg); }
.m-logo-fg-s { stroke: var(--d-logoFg); }
.m-accent-f { fill: var(--d-accent); }
.m-url { flex: 1; min-width: 0; height: 28px; border-radius: 14px; background: var(--d-field); color: var(--d-fgDim); font-size: 12px; display: flex; align-items: center; padding: 0 14px; white-space: nowrap; overflow: hidden; }
.m-sq { width: 26px; height: 26px; border-radius: 7px; display: inline-block; flex: none; }
.m-field { background: var(--d-field); }
.m-acc { background: var(--d-accent); }
.m-body { display: flex; min-height: 300px; background: var(--d-page); }
.m-side { width: 46px; background: var(--d-chrome); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; flex: none; }
.m-ico { width: 26px; height: 26px; border-radius: 8px; display: block; }
.m-content { flex: 1; min-width: 0; padding: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-content: flex-start; background: var(--d-bg); transition: background .25s ease; }
.m-panel { flex: 1 1 200px; border-radius: 12px; padding: 14px; background: var(--d-panel); color: var(--d-fg); display: flex; flex-direction: column; gap: 10px; }
.m-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 900; }
.m-toggle { width: 34px; height: 18px; border-radius: 9px; display: inline-block; }
.m-dim { font-size: 11px; color: var(--d-fgDim); }
.m-meter { height: 8px; border-radius: 4px; overflow: hidden; }
.m-meter > div { height: 100%; }
.m-covers { display: flex; gap: 8px; }
.m-covers span { flex: 1; aspect-ratio: 2 / 3; border-radius: 6px; display: block; }
.m-cover-on { border-bottom: 3px solid var(--d-accent); }
.zack {
  position: absolute; left: -18px; bottom: 60px; z-index: 3; background: var(--ink); color: #fff;
  font-family: var(--display); font-size: 32px; padding: 4px 14px; transform: rotate(-9deg);
  border: 3px solid #fff; outline: 3px solid var(--ink);
}
.design-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 8px; }
.design-picker .chip { letter-spacing: 1px; padding: 6px 10px; margin-right: 4px; }

/* Umschalt-Knöpfe (Design & Filter) */
.toggle {
  display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 900;
  font-size: 14px; padding: 8px 14px; min-height: 44px; cursor: pointer;
  border: 3px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s ease;
}
.toggle:hover { transform: translate(-1px, -1px); }
.toggle[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--red); }
.toggle .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.toggle[aria-pressed="true"] .dot { border-color: #fff; }
.filters .toggle { font-size: 15px; padding: 10px 18px; box-shadow: 4px 4px 0 var(--ink); }
.filters .toggle[aria-pressed="true"] { box-shadow: 4px 4px 0 var(--red); }

/* Abschnittsköpfe */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.kicker { font-weight: 900; color: var(--red); letter-spacing: 3px; font-size: 14px; }
.kicker-light { color: var(--red-light); }
section h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; }
.head-note { max-width: 400px; font-size: 16px; line-height: 1.6; color: #D6D6D6; }

/* Funktionen */
.features { border-bottom: 4px solid var(--ink); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.features .wrap { padding-top: 80px; padding-bottom: 80px; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.f-card {
  background: var(--paper); color: var(--ink); border: 4px solid #fff; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; min-height: 220px; position: relative; overflow: hidden;
}
.f-card > *:not(.deco) { position: relative; }
.f-card h3 { font-size: 24px; font-weight: 900; }
.f-card p { font-size: 16px; line-height: 1.6; max-width: 520px; }
.f-wide { grid-column: span 2; min-height: 240px; padding: 28px; }
.f-wide h3 { font-size: 28px; }
.f-red { background: var(--red); color: #fff; }
.num { font-family: var(--display); font-size: 44px; color: var(--red); line-height: 1; }
.num-dark { color: var(--ink); }

/* Downloads */
.section-light { border-bottom: 4px solid var(--ink); position: relative; }
.section-light > .wrap { padding-top: 80px; padding-bottom: 80px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 28px; }
.panel { transition: transform .15s ease, box-shadow .15s ease; position: relative; overflow: hidden; border: 4px solid var(--ink); }
.panel:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink) !important; }
.dl-win { flex: 2 1 520px; min-width: 0; background: var(--ink); color: #fff; box-shadow: 8px 8px 0 var(--red); display: flex; flex-wrap: wrap; }
.dl-win:hover { box-shadow: 11px 11px 0 var(--red) !important; }
.dl-win-info { flex: 1 1 280px; padding: 30px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.dl-win-cta { flex: 1 1 240px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; position: relative; }
.dl-icons { display: flex; align-items: center; gap: 12px; }
.badge-new { background: var(--red-hot); color: var(--ink); font-weight: 900; font-size: 13px; padding: 4px 10px; border: 2px solid #fff; transform: rotate(3deg); }
.badge-ver { background: var(--ink); color: #fff; font-weight: 900; font-size: 13px; padding: 4px 10px; transform: rotate(-3deg); }
.display-38 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.05; }
.display-32 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.05; }
.dl-list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: #E6E6E6; }
.dl-ios { flex: 1 1 300px; min-width: 0; background: #fff; box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; }
.dl-ios-inner { padding: 30px; display: flex; flex-direction: column; gap: 16px; flex: 1; position: relative; }
.dl-ios-cta { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.body-15 { font-size: 15px; line-height: 1.55; color: var(--text); }
.body-14 { font-size: 14px; line-height: 1.5; color: var(--text); }
.h3-20 { font-size: 20px; font-weight: 900; }
.ext-box { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 18px 22px; }
.ext-text { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ext-title { font-weight: 900; font-size: 17px; }
.ext-ver { font-weight: 700; font-size: 13px; color: var(--grey); }
.guide { background: var(--paper); border: 3px dashed var(--ink); padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 100px; }
.guide ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }

/* Updates */
.u-list { display: flex; flex-direction: column; gap: 18px; }
.u-item { display: flex; flex-wrap: wrap; background: #fff; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.u-side { flex: 1 1 170px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; justify-content: center; border-right: 4px solid var(--ink); }
.u-side-win { background: var(--ink); color: #fff; }
.u-side-ios { background: var(--paper); color: var(--ink); background-image: radial-gradient(circle, rgba(17,17,17,.18) 24%, transparent 26%); background-size: 7px 7px; }
.u-side-ext { background: var(--paper); color: var(--ink); }
.u-product { font-weight: 900; font-size: 12px; letter-spacing: 2px; }
.u-version { font-family: var(--display); font-size: 30px; line-height: 1; }
.u-date { font-size: 13px; font-weight: 700; opacity: .8; }
.u-main { flex: 4 1 320px; padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.u-title { font-size: 20px; font-weight: 900; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.u-new { background: var(--red); color: #fff; font-size: 12px; letter-spacing: 1px; padding: 3px 8px; border: 2px solid var(--ink); }
.u-main ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; color: var(--text); }

/* Fußzeile */
.site-footer { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.footer-row { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; position: relative; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 700; }
.footer-nav a { color: #fff; }
.footer-nav a:hover { color: var(--red-light); }

section[id] { scroll-margin-top: 90px; }

/* Handy */
@media (max-width: 700px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .main-nav { gap: 16px; font-size: 15px; }
  .hero-row { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .hero-text, .mock-col { flex-basis: 100%; }
  .f-wide { grid-column: auto; }
  .f-grid { grid-template-columns: 1fr; }
  .dl-win, .dl-ios { flex-basis: 100%; }
  .zack { left: -6px; font-size: 24px; }
  .u-side { border-right: none; border-bottom: 4px solid var(--ink); }
  .site-header { position: static; }
  .lead { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
