/* =========================================================
   TronicCAD – Frontend
   Farben & Aufbau nach Design-Vorlage (eigene Umsetzung)
   Schrift: Inter (SIL OFL 1.1) – lokal gehostet
   ========================================================= */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
    --blue: #1A6FE8;
    --blue-dark: #1459BD;
    --blue-light: #6EA8FF;
    --navy: #0B2A55;
    --navy-deep: #0A1F44;
    --yellow: #F7C21A;
    --yellow-dark: #E8B40C;
    --tint: #EEF4FC;
    --white: #FFFFFF;
    --text: #0F1B2D;
    --muted: #5A6475;
    --border: #E1E9F4;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 6px 24px rgba(11, 42, 85, .08);
    --shadow-lg: 0 18px 48px rgba(11, 42, 85, .16);
    --container: 1200px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: var(--navy-deep); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-brand { width: 18px; height: 18px; }
.accent { color: var(--blue); }
.accent-light { color: var(--blue-light); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 999px; border: 0;
    font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--navy-deep); box-shadow: 0 6px 16px rgba(247, 194, 26, .35); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn.is-static { cursor: default; transform: none; }

.btn-play { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; text-decoration: none; }
.btn-play-circle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--white); box-shadow: 0 0 0 6px rgba(26, 111, 232, .15); transition: box-shadow .2s; }
.btn-play:hover .btn-play-circle { box-shadow: 0 0 0 9px rgba(26, 111, 232, .18); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-deep); color: #C9D6E8; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-text { display: inline-flex; align-items: center; gap: 8px; }
.topbar-text .icon { color: var(--yellow); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.lang-switch a { color: #C9D6E8; text-decoration: none; font-weight: 600; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.lang-switch a[aria-current] { background: var(--blue); color: var(--white); }

/* ---------- Social ---------- */
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: inherit; transition: background .2s, color .2s; }
.social-sm a { width: 28px; height: 28px; color: #C9D6E8; }
.social-sm .icon-brand { width: 15px; height: 15px; }
.social-sm a:hover { color: var(--white); background: rgba(255, 255, 255, .12); }
.social-footer a { background: rgba(255, 255, 255, .08); color: var(--white); }
.social-footer a:hover { background: var(--blue); }
.social-cta a { background: rgba(255, 255, 255, .15); color: var(--white); }
.social-cta a:hover { background: var(--white); color: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.logo-name strong { color: var(--blue); font-weight: 800; }
.logo-sub { font-size: .72rem; color: var(--muted); font-weight: 500; }
.logo-light { color: var(--white); }
.logo-light .logo-name strong { color: var(--blue-light); }
.logo-light .logo-sub { color: #AFC4E6; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { position: relative; display: block; padding: 8px 12px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .93rem; border-radius: 8px; }
.main-nav a:not(.btn):hover { color: var(--blue); }
.main-nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; background: var(--yellow); border-radius: 2px; }
.nav-donate { display: none; }
.kofi { flex: none; min-height: 36px; display: flex; align-items: center; }
.kofi .btn-container { margin: 0 !important; }
.kofi-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; background: #72a4f2; color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; box-shadow: 1px 1px 0 rgba(0, 0, 0, .2); transition: filter .2s, transform .2s; white-space: nowrap; }
.kofi-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.kofi-button .icon { color: #fff; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--text); cursor: pointer; border-radius: 8px; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(115deg, #F6F9FE 0%, var(--tint) 55%, #E2ECFA 100%); padding: 72px 0 84px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(26, 111, 232, .14), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-block; margin: 0 0 20px; padding: 6px 16px; border: 1px solid #BFD4F4; border-radius: 999px; background: var(--white); color: var(--blue); font-size: .82rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; }
.hero h1 .accent { display: block; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-bottom: 40px; }
.hero-mini { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 22px; list-style: none; margin: 0; padding: 0; }
.hero-mini li { display: flex; align-items: center; gap: 10px; font-size: .85rem; line-height: 1.25; }
.hero-mini strong { display: block; white-space: nowrap; }
.hero-mini small { white-space: nowrap; }
.hero-mini small { color: var(--muted); }
.mini-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #BFD4F4; color: var(--blue); background: var(--white); flex: none; }

.hero-visual { position: relative; }
.hero-visual > img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.float-card {
    position: absolute; right: -12px; bottom: -28px; display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; border-radius: var(--radius); background: var(--blue); color: var(--white); text-decoration: none;
    box-shadow: var(--shadow-lg); max-width: 300px; transition: transform .2s;
}
.float-card:hover { transform: translateY(-3px); }
.float-card strong { display: block; font-size: 1.02rem; }
.float-card small { color: #D6E4FB; }
.float-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: var(--navy-deep); flex: none; }

/* ---------- Sektionen ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2, .about-text h2, .faq-intro h2, .why h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }
.section-head p:last-child { color: var(--muted); }
.overline { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.overline::before, .overline::after { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .5; }
.overline-left::before { display: none; }
.overline-light { color: var(--blue-light); }

/* Funktionen */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--tint); transition: transform .3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #BFD4F4; }
.feature-card:hover::after { transform: scale(1.3); }
.feature-card h3 { font-size: 1.12rem; position: relative; z-index: 1; }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; position: relative; z-index: 1; }
.icon-circle { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: var(--white); margin-bottom: 18px; box-shadow: 0 8px 18px rgba(26, 111, 232, .3); position: relative; z-index: 1; }

/* Über */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr .75fr; gap: 40px; align-items: center; }
.about-text > p { color: var(--muted); }
.checks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: .93rem; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .icon { color: var(--blue); }
.stat-card { list-style: none; margin: 0; padding: 10px 26px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card li { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.stat-card li + li { border-top: 1px solid var(--border); }
.stat-card strong { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.stat-card small { color: var(--muted); font-size: .85rem; }
.stat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--blue); flex: none; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 28px; right: -26px; width: 20px; height: 2px; background: repeating-linear-gradient(90deg, #BFD4F4 0 4px, transparent 4px 8px); }
.step-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: var(--white); flex: none; box-shadow: 0 0 0 7px var(--tint); }
.step-no { display: block; color: var(--blue); font-weight: 800; font-size: 1.3rem; line-height: 1; margin: 4px 0 6px; }
.step h3 { font-size: 1.02rem; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Warum */
.why { position: relative; background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 100%); color: var(--white); padding: 76px 0; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.why-text { color: #C9D6E8; max-width: 560px; }
.why-items { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.why-items li { display: flex; flex-direction: column; gap: 4px; padding: 0 16px; font-size: .9rem; line-height: 1.3; }
.why-items li + li { border-left: 1px solid rgba(255, 255, 255, .15); }
.why-items li:first-child { padding-left: 0; }
.why-items small { color: #AFC4E6; }
.why-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); color: var(--white); margin-bottom: 8px; }
.why-visual { position: relative; }
.why-visual > img:first-child { opacity: .9; }
.why-logo { position: absolute; left: 50%; top: 50%; width: 120px; transform: translate(-50%, -50%); filter: drop-shadow(0 12px 30px rgba(26, 111, 232, .55)); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; background: var(--tint); border-radius: 22px; overflow: hidden; }
.faq-intro { position: relative; padding: 48px; background: linear-gradient(150deg, var(--white) 0%, var(--tint) 100%); }
.faq-intro > p:not(.overline) { color: var(--muted); }
.faq-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--yellow); color: var(--navy-deep); margin-bottom: 20px; }
.faq-list { padding: 36px 40px; display: grid; gap: 12px; align-content: center; }
.faq-item { background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 2px 10px rgba(11, 42, 85, .05); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--blue); flex: none; transition: transform .25s, background .2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--blue); color: var(--white); }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: .93rem; }

/* CTA */
.cta { position: relative; background: linear-gradient(100deg, var(--blue-dark) 0%, var(--blue) 60%, #3D8BFF 100%); color: var(--white); padding: 56px 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta p { color: #D6E4FB; margin: 0; max-width: 560px; }
.cta-side { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-follow { display: flex; align-items: center; gap: 12px; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .3); }
.cta-follow small { color: #D6E4FB; font-weight: 500; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9D6E8; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand p { margin: 18px 0 20px; max-width: 300px; }
.footer-title { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #C9D6E8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }

/* ---------- Untermenüs ---------- */
.icon-xs { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; }
.main-nav li { position: relative; }
.sub-menu { position: absolute; left: 0; top: 100%; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60; }
.main-nav .sub-menu a { padding: 9px 12px; border-radius: 8px; }
.main-nav .sub-menu a:hover { background: var(--tint); }
.main-nav .sub-menu a[aria-current]::after { display: none; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.sub-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* ---------- Unterseiten ---------- */
.page-hero { background: linear-gradient(115deg, #F6F9FE 0%, var(--tint) 60%, #E2ECFA 100%); padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin: 0; }
.page-hero-text { color: var(--muted); max-width: 720px; margin: 14px 0 0; font-size: 1.08rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 500; }
.section-page { padding: 56px 0 88px; }

.prose { max-width: 780px; font-size: 1.04rem; line-height: 1.75; }
.prose h2 { font-size: 1.6rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.6em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; box-shadow: var(--shadow); }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--yellow); background: var(--tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose pre { background: var(--navy-deep); color: #E2ECFA; padding: 16px 18px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .9rem; line-height: 1.5; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
.prose :not(pre) > code { background: var(--tint); padding: 2px 6px; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

.card-list { display: grid; gap: 16px; max-width: 860px; }
.list-card { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.list-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #BFD4F4; }
.list-card .icon-circle { margin: 0; width: 46px; height: 46px; flex: none; }
.list-card-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.list-card-body strong { font-size: 1.08rem; }
.list-card-body small { color: var(--muted); font-size: .93rem; }
.list-card-arrow { color: var(--blue); flex: none; }
.empty-note { color: var(--muted); }

/* ---------- Blog ---------- */
.container-narrow { max-width: 860px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-media { display: block; aspect-ratio: 1200 / 630; background: var(--tint); overflow: hidden; }
.post-card-media > img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy-deep), var(--blue-dark)) center / cover; }
.post-card-placeholder img { opacity: .9; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-card h3 { font-size: 1.15rem; margin: 0 0 .5em; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-excerpt { color: var(--muted); font-size: .94rem; margin: 0 0 16px; }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.post-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--blue); font-weight: 600; font-size: .78rem; text-decoration: none; }
.page-hero .post-tag { background: var(--white); }
.section-more { text-align: center; margin: 40px 0 0; }
.rss-link { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-pills a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; }
.filter-pills a:hover { border-color: var(--blue); color: var(--blue); }
.filter-pills a[aria-current] { background: var(--blue); border-color: var(--blue); color: var(--white); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 48px; color: var(--muted); }
.pagination a { font-weight: 600; text-decoration: none; }

.post-cover { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 36px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 56px 0 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.post-nav a:hover { border-color: var(--blue); }
.post-nav small { color: var(--blue); font-weight: 600; }
.post-nav-next { text-align: right; grid-column: 2; }

/* ---------- Downloads ---------- */
.notice, .verify-box { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border-radius: var(--radius); background: var(--tint); }
.notice .icon-circle, .verify-box .icon-circle { flex: none; margin: 0; }
.notice h2 { font-size: 1.4rem; }
.release { margin-bottom: 48px; }
.release-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.release-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: .2em; }
.release-head p { margin: 0; }
.release-beta { padding: 28px; border: 2px dashed #BFD4F4; border-radius: var(--radius); }
.beta-note { display: inline-flex; align-items: center; gap: 8px; background: #FEF3C7; color: #92400E; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.os-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; transition: border-color .2s, box-shadow .2s; }
.os-card.is-detected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 111, 232, .15), var(--shadow); }
.os-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.os-head .icon-circle { margin: 0; width: 46px; height: 46px; }
.os-head h3 { margin: 0; font-size: 1.25rem; }
.os-detected { display: none; margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--blue); background: var(--tint); padding: 3px 10px; border-radius: 999px; }
.os-card.is-detected .os-detected { display: inline-block; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.file-meta { margin: 6px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.file-sha { margin-top: 6px; font-size: .8rem; }
.file-sha summary { cursor: pointer; color: var(--blue); font-weight: 600; text-align: center; }
.file-sha code { display: block; margin-top: 6px; padding: 8px; background: var(--tint); border-radius: 6px; word-break: break-all; font-size: .75rem; }
.file-mirrors { margin: 6px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.release-notes { margin-top: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; }
.release-notes summary { cursor: pointer; font-weight: 700; }
.release-notes .prose { margin-top: 14px; }
.verify-box { margin: 8px 0 56px; }
.verify-box h3 { margin-bottom: .3em; }
.verify-box p { color: var(--muted); margin-bottom: 10px; }
.verify-cmd { display: block; font-size: .82rem; background: var(--white); padding: 6px 10px; border-radius: 6px; margin-top: 6px; overflow-x: auto; white-space: nowrap; }
.archive h2 { font-size: 1.5rem; margin-bottom: 16px; }
.archive-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--white); }
.archive-item summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; cursor: pointer; }
.archive-item[open] { padding-bottom: 20px; }
.archive-item .os-grid, .archive-item .prose { margin: 8px 20px 0; }
.small-prose { font-size: .93rem; }

.footer-credit { margin-left: 10px; font-size: .78rem; opacity: .7; }

.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ---------- Kompaktes Menü, wenn die Einträge nicht in eine Zeile passen (per JS: .is-compact) ---------- */
.site-header.is-compact .nav-toggle { display: block; order: 3; margin-left: 0; }
.site-header.is-compact .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: 12px 24px 24px; display: none;
}
.site-header.is-compact.nav-open .main-nav { display: flex; }
.site-header.is-compact .main-nav ul { flex-direction: column; }
.site-header.is-compact .main-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border); border-radius: 0; }
.site-header.is-compact .main-nav a[aria-current]::after { display: none; }
.site-header.is-compact .nav-donate { display: inline-flex; align-self: flex-start; }
.site-header.is-compact .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
.site-header.is-compact .has-sub:hover > .sub-menu, .site-header.is-compact .has-sub:focus-within > .sub-menu { display: none; }
.site-header.is-compact .has-sub.sub-open > .sub-menu { display: block; }
.site-header.is-compact .kofi { order: 2; }
.site-header.is-compact .header-inner { gap: 12px; justify-content: space-between; }
.site-header.is-compact .logo { margin-right: auto; }
.main-nav ul { flex-wrap: nowrap; }
.main-nav a:not(.btn) { white-space: nowrap; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
    .main-nav a:not(.btn) { padding: 8px 8px; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px; }
    .stat-card li + li { border-top: 0; }
}

@media (max-width: 1040px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 12px;
        background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
        padding: 12px 24px 24px; display: none;
    }
    .nav-open .main-nav { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border); border-radius: 0; }
    .main-nav a[aria-current]::after { display: none; }
    .nav-donate { display: inline-flex; align-self: flex-start; }
    .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
    .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
    .has-sub.sub-open > .sub-menu { display: block; }
    .kofi { order: 2; }
    .nav-toggle { order: 3; margin-left: 0; }
    .header-inner { gap: 12px; justify-content: space-between; }
    .logo { margin-right: auto; }

    .hero-grid, .why-grid, .faq-wrap { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 72px; }
    .hero-mini { grid-template-columns: repeat(2, auto); }
    .float-card { right: 12px; }
    .feature-grid, .post-grid, .os-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step:not(:last-child)::after { display: none; }
    .why-items { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
    .why-items li:nth-child(4) { border-left: 0; padding-left: 0; }
    .why-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .container { padding: 0 16px; }
    .topbar-text { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .kofi { display: none; }
    .section { padding: 64px 0; }
    .feature-grid, .steps, .checks, .post-grid, .post-nav, .os-grid { grid-template-columns: 1fr; }
    .notice, .verify-box { flex-direction: column; padding: 20px; }
    .release-beta { padding: 16px; }
    .post-nav-next { grid-column: auto; }
    .hero-mini { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
    .hero-actions { gap: 20px; }
    .about-grid { grid-template-columns: 1fr; }
    .stat-card { grid-template-columns: 1fr 1fr; padding: 10px 18px; }
    .why-items { grid-template-columns: 1fr 1fr; }
    .why-items li, .why-items li + li { border-left: 0; padding: 0; }
    .faq-intro, .faq-list { padding: 28px 20px; }
    .float-card { position: relative; right: auto; bottom: auto; margin: -24px 12px 0; }
    .cta-follow { padding-left: 0; border-left: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
}

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