/* DiskSnap-Website – Farben aus dem Programm (DiskSnap\src\UI\Controls.cs, Klasse Theme) */
:root {
  --bg: #1F2023;
  --sidebar: #18191B;
  --surface: #27282C;
  --surface-2: #2C2D32;
  --input: #1A1B1E;
  --border: #34363B;
  --border-strong: #484A50;
  --text: #ECECEA;
  --muted: #A3A4A8;
  --faint: #8A8C92;
  --accent: #3B8EEA;
  --accent-dark: #2B598C;
  --accent-text: #6FAEF2;
  --success: #46B35A;
  --warning: #D9A13B;
  --danger: #E5534B;
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1160px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: #9CC7F7; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--input); border: 1px solid var(--border); border-radius: 4px; padding: .1em .35em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 25, 27, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--text); }
.brand img { width: 26px; height: 26px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 600; font-size: 1.12rem; }
.brand-by { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); width: 44px; height: 40px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; border-radius: 1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: var(--sidebar); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: #2F7FDB; color: #fff; }
.btn-primary:hover { background: #3B8EEA; color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); border-color: #5A5C63; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(59, 142, 234, .16), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--accent-text); background: rgba(59, 142, 234, .1); border: 1px solid rgba(59, 142, 234, .3); padding: 5px 12px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero h1 .accent { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .92rem; }
.hero-facts li { display: flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--success); flex: none; }
.hero-shot { position: relative; }
.window {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3);
  background: var(--sidebar);
}
.hero-shot .window { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
@media (max-width: 980px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot .window { transform: none; }
}

/* ---------- Abschnitte ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 88px 0; }
.section-alt { background: var(--sidebar); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent-text); margin-bottom: 10px; }
@media (max-width: 600px) { .section { padding: 60px 0; } }

/* Vorteile-Leiste */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.benefit { background: var(--surface); padding: 22px 22px; }
.benefit strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.benefit span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

/* Feature-Karten */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { display: flex; align-items: center; gap: 12px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card li { margin: .3em 0; }
.card p { color: var(--muted); }
.icon { width: 38px; height: 38px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; background: rgba(59, 142, 234, .14); color: var(--accent-text); }
.icon svg { width: 20px; height: 20px; }
.icon.green { background: rgba(70, 179, 90, .14); color: #6FCB80; }
.icon.amber { background: rgba(217, 161, 59, .14); color: #E7B95E; }
.icon.red { background: rgba(229, 83, 75, .14); color: #EE7C76; }

/* Feature-Detail (Text + Bild) */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; margin-top: 72px; }
.split.reverse > :first-child { order: 2; }
ul.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin: .55em 0; color: var(--muted); }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 4px; background: rgba(70, 179, 90, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.4L12 5.3' fill='none' stroke='%2346B35A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; } .split.reverse > :first-child { order: 0; } }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.yes { color: #6FCB80; white-space: nowrap; }
td.part { color: #E7B95E; white-space: nowrap; }

/* Galerie */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.gallery-tabs button {
  font: inherit; font-size: .95rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
}
.gallery-tabs button:hover { color: var(--text); border-color: var(--border-strong); }
.gallery-tabs button[aria-selected="true"] { color: #fff; background: rgba(59, 142, 234, .2); border-color: var(--accent); }
.gallery-panel[hidden] { display: none; }
.gallery-panel figcaption { color: var(--muted); font-size: .95rem; margin-top: 14px; }
.zoomable { cursor: zoom-in; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 10, 12, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; width: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* Kommandozeile */
.terminal { background: #121315; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.terminal-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--sidebar); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.terminal pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: .88rem/1.75 var(--mono); color: var(--text); }
.terminal .c { color: var(--faint); }
.terminal .p { color: var(--accent-text); }

/* Preise / Lizenz */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(59, 142, 234, .12); }
.plan .badge { position: absolute; top: -12px; left: 30px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan .badge.soon { background: var(--warning); color: #1F2023; }
.plan .price { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan .price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan ul.checks { flex: 1; margin: 18px 0 24px; }
.plan .btn { align-self: flex-start; }
.note { max-width: 920px; margin: 24px auto 0; color: var(--muted); font-size: .92rem; text-align: center; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .downloads { grid-template-columns: 1fr; } }
.dl { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dl-head { display: flex; gap: 16px; align-items: flex-start; }
.dl-head .icon { width: 48px; height: 48px; border-radius: 12px; }
.dl-head .icon svg { width: 24px; height: 24px; }
.dl h3 { margin: 0 0 4px; }
.dl-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .93rem; }
.dl-meta dt { color: var(--muted); }
.dl-meta dd { margin: 0; min-width: 0; }
.hash { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hash code { display: block; overflow-wrap: anywhere; word-break: break-all; font-size: .78rem; line-height: 1.5; padding: 6px 8px; flex: 1; min-width: 0; color: var(--muted); }
.copy { flex: none; font: inherit; font-size: .8rem; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 6px 10px; cursor: pointer; }
.copy:hover { border-color: var(--accent); }
.dl .btn { align-self: flex-start; margin-top: auto; }
.req { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .req { grid-template-columns: 1fr; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 42px; margin: 0 0 16px; color: var(--muted); }
.steps li strong { color: var(--text); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(59, 142, 234, .16); color: var(--accent-text); font-weight: 600; font-size: .9rem; }
.callout { border: 1px solid rgba(217, 161, 59, .4); background: rgba(217, 161, 59, .08); border-radius: var(--radius); padding: 14px 18px; color: var(--text); font-size: .94rem; }
.callout strong { color: #E7B95E; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Über uns */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.maker { display: flex; gap: 16px; align-items: center; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.maker img { width: 44px; height: 44px; }

/* Rechtliches */
.legal { max-width: 868px; padding-top: 64px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.ph { background: rgba(217, 161, 59, .16); color: #F0C674; border: 1px dashed rgba(217, 161, 59, .65); border-radius: 4px; padding: 0 .35em; font-style: normal; }
address { font-style: normal; }

/* Fußzeile */
.site-footer { background: var(--sidebar); border-top: 1px solid var(--border); padding: 48px 0 32px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }
