/* ===== Bundesverband Bitcoin e.V. – Design System ===== */
:root {
  --orange: #F7931A; --orange-dark: #d97a08; --orange-soft: #fff3e3;
  --navy: #0b1220; --navy-2: #131c2e; --ink: #1a1f2b; --ink-2: #4b5563; --muted: #6b7280;
  --line: #e5e7eb; --bg: #ffffff; --bg-2: #f7f8fa; --bg-3: #eef0f4;
  --green: #16a34a; --red: #dc2626; --amber: #d97706; --blue: #2563eb;
  --radius: 14px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px -12px rgba(16,24,40,.18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
.inline { display: inline; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }
.icon { vertical-align: -3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .15s; text-decoration: none !important; line-height: 1.2; font-family: inherit; }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--bg-3); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-secondary { background: var(--bg-3); color: var(--ink); border-color: var(--bg-3); }
.btn-secondary:hover { background: var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none !important; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -.01em; }
.brand-text small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 8px 12px; color: var(--ink); font-weight: 500; border-radius: 8px; font-size: .95rem; }
.site-nav a:hover { background: var(--bg-3); text-decoration: none; }
.site-nav a.active { color: var(--orange-dark); }
.site-nav .nav-cta a { margin-left: 8px; }
.site-nav .nav-user { color: var(--muted); font-size: .875rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 8px; }
.nav-toggle:hover { background: var(--bg-3); }
.burger { display: block; width: 24px; height: 18px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 8px; } .burger span:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 70px 0 0 0; background: #fff; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; padding: 12px 20px 40px; z-index: 99; }
  .site-nav.open { transform: none; box-shadow: var(--shadow); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .nav-cta { margin-top: 12px; } .site-nav .nav-cta a { margin: 0; justify-content: center; padding: 14px; border-bottom: 0; font-size: 1rem; }
  .site-nav .nav-login a { border-bottom: 0; text-align: center; }
  body.nav-open { overflow: hidden; }
}

/* Flash */
.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid; font-size: .95rem; }
.flash-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.flash-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 20%, rgba(247,147,26,.35), transparent 60%), radial-gradient(500px 300px at 10% 90%, rgba(247,147,26,.15), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); font-weight: 700; margin-bottom: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 380px); filter: drop-shadow(0 30px 60px rgba(247,147,26,.35)); }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-2); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 640px; }
.eyebrow { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange-dark); font-weight: 700; margin-bottom: 8px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon .icon { width: 24px; height: 24px; }
.card-link { display: block; color: inherit; transition: .15s; }
.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 32px -12px rgba(16,24,40,.25); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 24px 12px; }
.stat b { display: block; font-size: 2.2rem; color: var(--orange); font-weight: 800; letter-spacing: -.02em; }
.stat span { color: rgba(255,255,255,.75); font-size: .95rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Posts */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.1rem; }
.post-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--orange-soft); color: var(--orange-dark); text-transform: uppercase; letter-spacing: .05em; }
.tag-gray { background: var(--bg-3); color: var(--ink-2); }
.tag-green { background: #ecfdf5; color: #065f46; }
.tag-red { background: #fef2f2; color: #991b1b; }
.tag-blue { background: #eff6ff; color: #1e40af; }
.tag-amber { background: #fffbeb; color: #92400e; }

/* Events */
.event-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.event-date { text-align: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 6px; line-height: 1.1; }
.event-date b { display: block; font-size: 1.6rem; } .event-date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.event-row h3 { margin: 0 0 4px; font-size: 1.05rem; }
.event-row .post-meta { margin: 0; }
@media (max-width: 600px) { .event-row { grid-template-columns: 70px 1fr; } .event-row .event-cta { grid-column: 2; } }

/* Board */
.person { text-align: center; padding: 0; overflow: hidden; }
.person img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.person .person-body { padding: 20px; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--orange-dark); font-weight: 600; font-size: .9rem; }
.person .org { color: var(--muted); font-size: .875rem; }
.person p { font-size: .95rem; margin-top: 12px; text-align: left; }
.person-placeholder { aspect-ratio: 3/4; background: linear-gradient(160deg, var(--bg-3), var(--line)); display: grid; place-items: center; color: var(--muted); }
.person-placeholder .icon { width: 64px; height: 64px; }

/* Page hero */
.page-head { background: var(--navy); color: #fff; padding: clamp(36px, 6vw, 64px) 0; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(247,147,26,.3), transparent 60%); }
.page-head .container { position: relative; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: rgba(255,255,255,.8); margin: 10px 0 0; max-width: 640px; font-size: 1.05rem; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.breadcrumb a { color: rgba(255,255,255,.8); }

/* Prose */
.prose { max-width: 760px; font-size: 1.05rem; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 16px 24px; border-left: 4px solid var(--orange); background: var(--orange-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.2em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-2); }
.prose img { border-radius: var(--radius-sm); }
.prose code { background: var(--bg-3); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--navy); color: #fff; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: 1fr; } }
.sidebar .card { padding: 22px; margin-bottom: 20px; }
.sidebar h3 { font-size: 1rem; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border: 0; }
.doc-list .icon { flex: none; color: var(--orange-dark); margin-top: 3px; }
.doc-list small { display: block; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"], .field input[type="url"], .field input[type="date"], .field input[type="datetime-local"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: var(--radius-sm); font: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,147,26,.2); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: var(--orange); }
.check-inline { display: flex; gap: 18px; flex-wrap: wrap; }
.check-inline label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0; }
legend { font-weight: 700; padding: 0 8px; color: var(--navy); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.radio-card { border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; display: block; transition: .15s; }
.radio-card:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.radio-card input { margin-right: 8px; accent-color: var(--orange); }
.radio-card b { display: block; }
.radio-card small { color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--orange), #ffb457); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; } .cta p { margin: 0; color: rgba(255,255,255,.9); }
.cta .btn-light { color: var(--orange-dark); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; } .footer-links li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.85); } .site-footer a:hover { color: var(--orange); }
.brand-footer { color: #fff; margin-bottom: 12px; } .brand-footer .brand-text small { color: rgba(255,255,255,.6); }
.site-footer address { font-style: normal; line-height: 1.7; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Auth */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 48px 20px; background: var(--bg-2); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { justify-content: center; margin-bottom: 20px; }
.auth-links { display: flex; justify-content: space-between; font-size: .875rem; margin-top: 16px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.filter-tabs a.active, .filter-tabs a:hover { background: var(--navy); color: #fff; border-color: var(--navy); text-decoration: none; }

.share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.notice { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--orange-soft); border: 1px solid #fcd9a8; color: #7a4a05; }
.notice .icon { flex: none; margin-top: 2px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
