/* 7zip.de – Stylesheet (2026)
   Systemschriften, keine externen Ressourcen. */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --brand: #111111;
  --accent: #15803d;
  --accent-hover: #166534;
  --accent-soft: #dcfce7;
  --link: #1d4ed8;
  --warn-bg: #fffbeb;
  --warn-line: #fcd34d;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 20px 48px rgba(15, 23, 42, .12);
  --wrap: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
}

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

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 77px; height: 44px; }
.logo span { font-size: .8rem; line-height: 1.25; color: var(--muted); font-weight: 600; }
.logo span strong { display: block; color: var(--ink); font-size: 1rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.logo span { white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .nav-cta {
  background: var(--accent); color: #fff; margin-left: 6px;
}
.nav .nav-cta:hover { background: var(--accent-hover); color: #fff; }

.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 8px 12px; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer;
  }
  .menu-toggle svg { width: 18px; height: 18px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 16px; gap: 2px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .875rem; color: var(--muted); padding-top: 18px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #94a3b8; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, #e0f2fe 0%, transparent 60%),
    radial-gradient(900px 400px at -10% 110%, #dcfce7 0%, transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-top: 48px; padding-bottom: 48px; }
.breadcrumb + main .hero .wrap { padding-top: 18px; }
.hero-intro { margin-bottom: 32px; }
.hero-intro h1 { margin-bottom: .45em; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 32px; align-items: stretch; }
.hero-row > *, .split > *, .grid > * { min-width: 0; }
.hero-visual { display: flex; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.lead { font-size: 1.2rem; color: var(--ink-2); margin: 0; }
.lead code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

.download-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  text-decoration: none; font-weight: 700; border-radius: 10px; cursor: pointer; border: 0;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-download {
  width: 100%; background: var(--accent); color: #fff; padding: 16px 22px; font-size: 1.15rem;
}
.btn-download:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-download svg { width: 28px; height: 28px; flex: none; }
.btn-download small { display: block; font-weight: 500; font-size: .88rem; opacity: .9; }

/* Haupt-Download-Button: eine linke Kante, Icon-Feld + zweizeiliger Text */
.btn-main { width: auto; align-self: flex-start; max-width: 100%; justify-content: flex-start; gap: 16px; padding: 14px 24px 14px 14px; }
.btn-main .btn-icon {
  flex: none; width: 48px; height: 48px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
}
.btn-main .btn-icon svg { width: 26px; height: 26px; }
.btn-main .btn-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.btn-main .btn-title { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.btn-main .btn-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-size: .9rem; line-height: 1.3; }
.btn-main .btn-os { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }
.btn-main .btn-os svg { width: 14px; height: 14px; }
.btn-download .btn-text { text-align: left; line-height: 1.25; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 0; font-size: .97rem; }
.facts div { display: flex; flex-direction: column; }
.facts dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }

.os-switch { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; align-items: center; }
.os-switch > span { color: var(--muted); margin-right: 4px; flex-basis: 100%; font-weight: 600; }
.os-switch a {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600;
}
.os-switch a svg { width: 16px; height: 16px; flex: none; }
.os-switch a:hover { border-color: #94a3b8; color: var(--ink); }
.os-switch a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.os-switch a.os-more { flex-basis: 100%; margin-top: 14px; padding: 7px 0; border: 0; border-radius: 0; color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.os-switch a.os-more:hover { color: var(--ink); }

.fine { font-size: .87rem; color: var(--muted); margin: 0; }
.section .fine, .page .fine { margin-top: 16px; }
.download-card .fine { margin: 0; }

figure { margin: 0; }
.shot { display: flex; width: 100%; }
.shot picture { display: flex; width: 100%; }
.shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: left top;
  border-radius: 0; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff;
}
.terminal {
  width: 100%; background: #0b1220; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #1e293b; font-size: .8rem; color: #94a3b8; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #475569; display: inline-block; }
.terminal-bar span { margin-left: 8px; }
.terminal pre { margin: 0; padding: 20px; color: #e2e8f0; font-family: var(--mono); font-size: .86rem; line-height: 1.6; overflow-x: auto; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt + .site-footer, main > .section:last-child.section-alt { border-bottom: 0; }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head h2:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.section-alt .card { box-shadow: none; background: var(--bg); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: #fff; margin-bottom: 14px;
}
.icon svg { width: 22px; height: 22px; }

.formats { padding: 0 24px; }
.format-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px 0; }
.format-row + .format-row { border-top: 1px solid var(--line); }
.format-row h3 { margin-bottom: .2em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-family: var(--mono); font-size: .9rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); padding: 5px 11px; border-radius: 6px;
}
.chips-strong li { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: var(--surface-2); color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfc; }
td.ver { font-weight: 700; color: var(--ink); white-space: nowrap; }
td .dl { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; margin: 2px 4px 2px 0; white-space: nowrap; }
td .dl:hover { border-color: var(--accent); color: var(--accent); }
td .dl svg { width: 15px; height: 15px; flex: none; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.na { color: #94a3b8; }

/* ---------- Changelog ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline > li { position: relative; padding-left: 34px; margin-bottom: 18px; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: 24px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid #94a3b8;
}
.timeline > li:first-child::before { border-color: var(--accent); }
.timeline .card h2 { font-size: 1.25rem; margin-bottom: .2em; }
.timeline time { color: var(--muted); font-size: .9rem; font-weight: 600; }
.timeline ul { margin: 10px 0 0; padding-left: 1.2em; }
.timeline ul li { margin: 2px 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-alt .faq details { background: var(--bg); box-shadow: none; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--muted); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- Prose (Rechtstexte etc.) ---------- */
.page { padding-top: 48px; padding-bottom: 64px; }
.breadcrumb + main .page { padding-top: 18px; }
.page-head { margin: 0 0 28px; }
.page-head h1 { margin-bottom: .3em; }
.page-head h1:last-child { margin-bottom: 0; }
.page-head p { color: var(--muted); font-size: 1.1rem; }
.prose {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 44px); overflow-wrap: break-word;
}
.prose p, .prose li { overflow-wrap: anywhere; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h3, .prose h4 { font-size: 1.08rem; margin: 1.4em 0 .5em; color: var(--ink); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose address { font-style: normal; }
.prose iframe { max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose code, .prose kbd { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.prose pre { background: var(--ink); color: #e2e8f0; border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose .caps { text-transform: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.aside { position: sticky; top: 92px; }
.aside .card + .card { margin-top: 14px; }
.aside h3 { font-size: 1rem; }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.aside li:last-child { border-bottom: 0; }
.aside a { text-decoration: none; font-weight: 600; }
.aside a:hover { text-decoration: underline; }

.cta-band {
  background: var(--ink); color: #cbd5e1; border-radius: var(--radius); padding: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 .25em; font-size: 1.5rem; }
.cta-band p { margin: 0; }
.cta-band .btn-download { width: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #94a3b8; padding: 52px 0 28px; font-size: .93rem; margin-top: 0; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.footer-note { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hero-row { grid-template-columns: 1fr; }
  .shot, .shot picture { width: auto; max-width: 100%; }
  .shot img { width: 500px; max-width: 100%; height: auto; }
}
@media (max-width: 980px) {
  .format-row { grid-template-columns: 1fr; gap: 12px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 44px 0; }
  .hero .wrap { padding-top: 32px; padding-bottom: 32px; }
  .logo span { display: none; }
  .cta-band { padding: 24px; }
  th, td { padding: 11px 12px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .btn-download { font-size: 1.05rem; padding: 14px 16px; }
  .btn-main { padding: 12px 16px 12px 12px; gap: 14px; }
  .btn-main .btn-icon { width: 44px; height: 44px; }
  .btn-main .btn-title { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  .site-header, .site-footer, .download-card, .cta-band { display: none; }
  body { background: #fff; }
}

@media (max-width: 560px) {
  .hide-sm, .dl-text { display: none; }
  td .dl { padding: 8px 12px; }
  td .dl svg { width: 18px; height: 18px; }
}
