/* Gemeinsames Stylesheet der Anleitungsseiten unter /flinkpdf/<thema>/. Farben, Schriften, Navigation, Knoepfe und
   Fusszeile entsprechen der Download-Seite /flinkpdf/index.html; wer dort etwas aendert, zieht es hier nach. */
:root {
    --primary: #3b82f6; --primary-dark: #2563eb; --primary-light: #60a5fa; --accent: #06b6d4;
    --anthracite: #1a1d21; --anthracite-light: #252a30; --anthracite-lighter: #2f363e; --dark-bg: #0f1114;
    --text-white: #ffffff; --text-light: #e2e8f0; --text-muted: #94a3b8; --text-dim: #64748b;
    --border-color: rgba(255,255,255,0.08);
    --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 1.5rem; --space-lg: 2.5rem; --space-xl: 4rem; --space-2xl: 6rem;
    --font-display: 'Space Grotesk', sans-serif; --font-body: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--dark-bg); color: var(--text-light); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; }

/* Navigation */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: var(--space-sm) var(--space-lg); display: flex; justify-content: space-between; align-items: center; background: rgba(15, 17, 20, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.logo { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--text-white); }
.logo-icon { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3); }
.logo-icon img { width: 100%; height: 100%; display: block; }
.logo-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.nav-links { display: flex; gap: var(--space-md); list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-white); }
.nav-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white !important; padding: 0.6rem 1.3rem; border-radius: 8px; font-weight: 600 !important; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text-light); transition: all 0.3s; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Knoepfe */
.btn { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 1rem 2rem; border-radius: 10px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.3s var(--ease-out); border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4); }
.btn-secondary { background: var(--anthracite); color: var(--text-light); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--anthracite-light); border-color: var(--primary); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Kopf der Anleitung */
.guide-hero { padding: calc(var(--space-2xl) + 30px) var(--space-lg) var(--space-xl); position: relative; overflow: hidden; border-bottom: 1px solid var(--border-color); }
.guide-hero::before { content: ''; position: absolute; top: -40%; right: -10%; width: 60%; height: 160%; background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.14) 0%, transparent 60%); pointer-events: none; }
.guide-hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--text-dim); margin-bottom: var(--space-md); }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-white); }
.guide-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.25); color: var(--primary-light); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-md); }
.guide-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; color: var(--text-white); margin-bottom: var(--space-md); }
.guide-lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; margin-bottom: var(--space-lg); }
.guide-lead strong { color: var(--text-light); font-weight: 600; }
.guide-cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.guide-note { font-size: 0.85rem; color: var(--text-dim); }

/* Text der Anleitung */
main { max-width: 860px; margin: 0 auto; padding: var(--space-xl) var(--space-lg) var(--space-2xl); }
main h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; color: var(--text-white); margin: var(--space-xl) 0 var(--space-sm); }
main h2:first-child { margin-top: 0; }
main h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-white); margin: var(--space-lg) 0 var(--space-xs); }
main p { color: var(--text-muted); line-height: 1.8; margin-bottom: var(--space-sm); }
main p strong, main li strong { color: var(--text-light); font-weight: 600; }
main a { color: var(--primary-light); }
main ul { margin: 0 0 var(--space-sm) 1.2rem; color: var(--text-muted); line-height: 1.8; }
main li { margin-bottom: 6px; }
kbd { display: inline-block; font-family: var(--font-body); font-size: 0.8rem; color: var(--text-light); background: var(--anthracite); border: 1px solid var(--border-color); border-radius: 5px; padding: 1px 7px; }
.menu-path { color: var(--text-light); font-weight: 600; white-space: nowrap; }

.steps { list-style: none; counter-reset: schritt; margin: var(--space-md) 0; }
.steps > li { counter-increment: schritt; position: relative; background: var(--anthracite); border: 1px solid var(--border-color); border-radius: 16px; padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 52px); margin-bottom: var(--space-sm); color: var(--text-muted); line-height: 1.8; }
.steps > li::before { content: counter(schritt); position: absolute; left: var(--space-md); top: var(--space-md); width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: 0 0 4px; }
.steps p:last-child { margin-bottom: 0; }

figure { margin: var(--space-md) 0 var(--space-lg); }
figcaption { font-size: 0.85rem; color: var(--text-dim); margin-top: var(--space-xs); text-align: center; }
.window { background: #1a1a1a; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(59, 130, 246, 0.2); }
.window-bar { display: flex; align-items: center; gap: 2px; padding: 0 0 0 12px; height: 32px; background: #24292f; border-bottom: 1px solid rgba(255,255,255,0.06); }
.window-bar span { width: 44px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-muted); font-family: 'Segoe UI Symbol', 'Segoe UI', sans-serif; }
.window-bar span:nth-child(1)::before { content: '—'; }
.window-bar span:nth-child(2)::before { content: '☐'; font-size: 13px; }
.window-bar span:nth-child(3)::before { content: '✕'; font-size: 12px; }
.window-title { order: -1; margin-right: auto; font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.window-title::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; border-radius: 4px; background: url('images/flinkpdf-icon-256.png') center/contain no-repeat; }
.window img { display: block; width: 100%; height: auto; }
.window.small { max-width: 560px; margin: 0 auto; }

.note { background: rgba(59, 130, 246, 0.07); border: 1px solid rgba(59, 130, 246, 0.25); border-radius: 16px; padding: var(--space-md); margin: var(--space-md) 0; }
.note.warn { background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.25); }
.note h3 { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-color); vertical-align: top; color: var(--text-muted); }
th { color: var(--text-white); font-family: var(--font-display); font-weight: 600; }
td:first-child { color: var(--text-light); }
.table-wrap { overflow-x: auto; }

.guide-faq { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-md); }
.guide-faq details { background: var(--anthracite); border: 1px solid var(--border-color); border-radius: 14px; padding: var(--space-sm) var(--space-md); }
.guide-faq summary { cursor: pointer; color: var(--text-white); font-weight: 600; font-size: 1.05rem; }
.guide-faq details p { margin: var(--space-sm) 0 0; }

.more-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-sm); margin-top: var(--space-md); }
.more-guides a { display: block; background: var(--anthracite); border: 1px solid var(--border-color); border-radius: 14px; padding: var(--space-md); text-decoration: none; color: var(--text-muted); transition: all 0.3s var(--ease-out); }
.more-guides a:hover { border-color: rgba(59, 130, 246, 0.4); transform: translateY(-3px); }
.more-guides strong { display: block; color: var(--text-white); font-family: var(--font-display); margin-bottom: 4px; }

/* Abschluss und Fusszeile */
.cta { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%); text-align: center; padding: var(--space-2xl) var(--space-lg); }
.cta-content { max-width: 700px; margin: 0 auto; }
.cta h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: white; margin-bottom: var(--space-sm); }
.cta p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: var(--space-lg); }
.cta .btn-primary { background: white; color: var(--primary-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.cta .btn-primary:hover { background: var(--text-light); }
.cta-note { margin-top: var(--space-md); font-size: 0.9rem; color: rgba(255,255,255,0.7); }

footer { background: var(--dark-bg); border-top: 1px solid var(--border-color); padding: var(--space-xl) var(--space-lg) var(--space-lg); }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-lg); }
.footer-brand .logo { margin-bottom: var(--space-md); }
.footer-description { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; max-width: 380px; }
.footer-title { font-family: var(--font-display); color: var(--text-white); font-size: 1rem; margin-bottom: var(--space-sm); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-white); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: var(--space-md); border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); color: var(--text-dim); font-size: 0.85rem; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-legal { display: flex; gap: var(--space-md); }

@media (max-width: 1024px) { .footer-content { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: rgba(15, 17, 20, 0.98); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; gap: var(--space-md); transform: translateX(100%); transition: transform 0.4s var(--ease-out); z-index: 999; }
    .nav-links.mobile-open { transform: translateX(0); }
    .nav-links a { font-size: 1.2rem; }
    .mobile-menu-btn { display: flex; position: relative; z-index: 1001; }
    .guide-hero { padding: calc(var(--space-xl) + 50px) var(--space-sm) var(--space-lg); }
    main { padding: var(--space-lg) var(--space-sm) var(--space-xl); }
    .steps > li { padding: calc(var(--space-md) + 44px) var(--space-sm) var(--space-sm); }
    .steps > li::before { left: var(--space-sm); top: var(--space-sm); }
    .cta { padding: var(--space-xl) var(--space-sm); }
    .footer-content { grid-template-columns: 1fr; gap: var(--space-lg); }
}
