/* ============================================
   EasyFreeQR – Theme System (Dark Default + Light Mode)
   ============================================ */

/* DARK THEME (Default) */
:root {
  --bg: #0a0e1a;
  --surface: #141826;
  --surface-2: #1a1f30;
  --border: #252b3d;
  --border-hover: #3a4258;
  --text: #e8eaf0;
  --text-muted: #9aa3b8;
  --text-dim: #6b7392;
  --accent: #10b981;
  --accent-hover: #0fa472;
  --accent-glow: rgba(16, 185, 129, 0.2);
  --accent-soft: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 0 1px var(--accent-glow), 0 8px 32px rgba(16, 185, 129, 0.15);
  /* Theme-spezifisch */
  --header-bg: rgba(10, 14, 26, 0.85);
  --bg-gradient-1: rgba(16, 185, 129, 0.12);
  --bg-gradient-2: rgba(16, 185, 129, 0.06);
  --footer-bg: rgba(20, 24, 38, 0.5);
  --color-scheme: dark;
  --qr-preview-shadow: none;
  --code-bg: rgba(255,255,255,0.06);
}

/* LIGHT THEME */
:root[data-theme="light"] {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-glow: rgba(5, 150, 105, 0.15);
  --accent-soft: rgba(5, 150, 105, 0.08);
  --danger: #dc2626;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 0 1px var(--accent-glow), 0 8px 24px rgba(5, 150, 105, 0.12);
  --header-bg: rgba(255, 255, 255, 0.88);
  --bg-gradient-1: rgba(5, 150, 105, 0.06);
  --bg-gradient-2: rgba(5, 150, 105, 0.03);
  --footer-bg: rgba(248, 250, 252, 0.85);
  --color-scheme: light;
  --qr-preview-shadow: 0 0 0 1px var(--border);
  --code-bg: rgba(15, 23, 42, 0.06);
}

/* Sanfter Übergang beim Theme-Wechsel */
html {
  transition: color-scheme 0.2s ease;
}
body, .header, .card, .feat, .insp-tile, .pop-link, .tools-card,
.footer, .cookie-banner, .filter-chip, .preset-btn, .social-tile,
.type-tab, .btn, .footer-tool, .nav-toggle, .theme-toggle,
input, textarea, select, .file-label, .logo-section, .quality-indicator,
.faq-item, .trust-bar, .hero-privacy, .download-privacy, .toc,
.usecase, .ad-leaderboard {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: var(--color-scheme);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;          /* Fallback für ältere Browser */
  min-height: 100dvh;         /* iOS Safari, Chrome Android: respektiert dynamische Toolbar */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--bg-gradient-1), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, var(--bg-gradient-2), transparent);
  background-attachment: fixed;
}

/* Skip-to-content Link (WCAG 2.4.1 Bypass Blocks, Level A) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus {
  top: 0;
  color: white;
}

/* Accessibility: prefers-reduced-motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); /* Safari ≤ 17.4 */
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  min-height: 44px;            /* Touch-Target (Apple HIG / WCAG 2.5.5) */
}
.logo-icon { color: var(--accent); }
.logo-accent { color: var(--accent); }

.nav {
  display: flex;
  gap: 0.4rem;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 0.95rem;     /* Touch-Target ≥ 44px */
  border-radius: 8px;
  transition: all 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Theme-Toggle (Sonne/Mond) — auf Desktop & Mobile sichtbar */
.theme-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Burger-Button (Hamburger): Desktop versteckt, Mobile aktiv */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile: Burger zeigen, Nav als Drawer */
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateY(0);
  }
  .nav a {
    padding: 0.95rem 1rem;
    width: 100%;
    border-radius: 8px;
    font-size: 1rem;
  }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent), #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Hero CTA — primärer & sekundärer Button direkt unter Subtitle */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

/* Trust Bar — 5 prominent Trust-Signale */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto 1.25rem;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px); /* Safari */
  backdrop-filter: blur(8px);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  min-width: 0;
}
.trust-icon {
  flex-shrink: 0;
  color: var(--accent);
  width: 26px;
  height: 26px;
  padding: 5px;
  background: rgba(16,185,129,0.1);
  border-radius: 8px;
  box-sizing: content-box;
}
.trust-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.trust-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.trust-text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.3;
  margin-top: 1px;
}
@media (max-width: 980px) {
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding: 1rem;
  }
  .trust-item:last-child {
    grid-column: span 2;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .trust-bar {
    grid-template-columns: 1fr;
  }
  .trust-item:last-child {
    grid-column: span 1;
    justify-content: flex-start;
  }
  .trust-item {
    padding: 0.4rem 0.5rem;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
  }
}

/* Privacy-Reassurance unter Trust-Bar */
.hero-privacy {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  line-height: 1.5;
}
.hero-privacy svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.hero-privacy strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   Use-Case Tiles
   ============================================ */
.use-cases {
  padding: 0 0 1rem;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.usecase {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  color: var(--text);
}
.usecase:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}
.usecase-icon {
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}
.usecase strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.usecase span:last-child {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   Ads
   ============================================ */
.ad-leaderboard {
  text-align: center;
  margin: 1.5rem auto;
  min-height: 90px;
}
.ad-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

/* ============================================
   Sidebar-Ads (Desktop ≥1500px nur)
   ============================================ */
.ad-sidebar {
  display: none;
  position: fixed;
  top: 90px;
  width: 160px;
  z-index: 50;
  text-align: center;
}
.ad-sidebar .ad-label {
  font-size: 0.62rem;
  margin-bottom: 0.4rem;
}
.ad-sidebar ins.adsbygoogle {
  background: var(--surface-2);
  border-radius: 6px;
  min-height: 600px;
}
@media (min-width: 1500px) {
  .ad-sidebar { display: block; }
  .ad-sidebar-left  { left: 1rem; }
  .ad-sidebar-right { right: 1rem; }
}
@media (min-width: 1700px) {
  .ad-sidebar {
    width: 200px;
  }
  .ad-sidebar ins.adsbygoogle {
    min-height: 600px;
  }
}

/* ============================================
   Mobile-Sticky-Banner (≤768px nur)
   ============================================ */
.ad-mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  bottom: max(0px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1rem 0.5rem;
  text-align: center;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.ad-mobile-sticky .ad-label {
  font-size: 0.62rem;
  margin-bottom: 0.25rem;
}
.ad-mobile-sticky ins.adsbygoogle {
  min-height: 50px;
}
.ad-close {
  position: absolute;
  top: -1rem;
  right: 0.7rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.ad-close:hover { color: var(--text); }
@media (max-width: 768px) {
  .ad-mobile-sticky { display: block; }
  /* Padding-bottom auf body damit Sticky-Ad nicht Content überdeckt */
  body { padding-bottom: 76px; }
}

/* ============================================
   Generator
   ============================================ */
.generator {
  padding: 2rem 0 4rem;
}

.gen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .gen-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ============================================
   Type Tabs
   ============================================ */
.type-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .type-tabs { grid-template-columns: repeat(4, 1fr); }
}

.type-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem 0.3rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.78rem;
  font-weight: 500;
}
.type-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.type-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.type-tab svg { flex-shrink: 0; }

/* ============================================
   Form
   ============================================ */
.input-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.optional {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 0.78rem;
}
.info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0.7rem;
  background: var(--surface-2);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: help;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.15s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.color-input {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.color-input input[type="color"] {
  width: 50px;
  height: 42px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.color-input input[type="text"] {
  flex: 1;
  text-transform: uppercase;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.9rem;
}

.file-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.file-input input[type="file"] {
  display: none;
}
.file-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1px dashed var(--border-hover);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.9rem;
}
.file-label:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-2);
  color: var(--danger);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-remove:hover { background: rgba(239, 68, 68, 0.15); }

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ============================================
   Logo Section + Toggle Switch
   ============================================ */
.logo-section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-top: 0.5rem;
}

.logo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  background: var(--border);
  border-radius: 14px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-label input:checked + .toggle-track {
  background: var(--accent);
}

.toggle-label input:checked + .toggle-track .toggle-thumb {
  transform: translateX(18px);
}

.toggle-label input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.logo-controls {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.logo-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.logo-hint svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   Range Slider (Logo-Größe)
   ============================================ */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  outline: none;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  padding: 0;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ============================================
   Quality Indicator
   ============================================ */
.quality-indicator {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.quality-bar {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.quality-fill {
  height: 100%;
  width: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}

.quality-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}
.quality-label {
  color: var(--text-muted);
}
#quality-status {
  font-weight: 600;
}

.quality-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Quality level colors */
.quality-excellent .quality-fill { background: #10b981; width: 100%; }
.quality-excellent #quality-status { color: #10b981; }

.quality-good .quality-fill { background: #84cc16; width: 80%; }
.quality-good #quality-status { color: #84cc16; }

.quality-okay .quality-fill { background: #eab308; width: 60%; }
.quality-okay #quality-status { color: #eab308; }

.quality-risky .quality-fill { background: #f97316; width: 40%; }
.quality-risky #quality-status { color: #f97316; }

.quality-critical .quality-fill { background: #ef4444; width: 20%; }
.quality-critical #quality-status { color: #ef4444; }

/* ============================================
   Social Media Platform Grid
   ============================================ */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.social-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.social-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand, var(--accent));
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 0;
}

.social-tile > * {
  position: relative;
  z-index: 1;
}

.social-tile:hover {
  border-color: var(--brand, var(--border-hover));
  color: var(--text);
  transform: translateY(-1px);
}
.social-tile:hover::before {
  opacity: 0.08;
}

.social-tile.active {
  border-color: var(--brand, var(--accent));
  color: var(--brand, var(--accent));
  box-shadow: 0 0 0 1px var(--brand, var(--accent)), 0 4px 16px rgba(0, 0, 0, 0.3);
}
.social-tile.active::before {
  opacity: 0.12;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: inherit;
}
.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-name {
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }
  .social-tile {
    padding: 0.7rem 0.3rem;
  }
}

/* ============================================
   Preview & Download
   ============================================ */
.preview-card {
  position: sticky;
  top: 90px;
}

.qr-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 320px;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 1px var(--border);
}
[data-theme="light"] .qr-preview {
  box-shadow: 0 0 0 1px var(--border), 0 2px 8px rgba(0,0,0,0.04);
}
.qr-preview canvas,
.qr-preview svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.download-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.9rem;
  color: var(--text);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 0.55rem;
}

/* Privacy-Hinweis direkt unter Download-Buttons */
.download-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-dim);
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 8px;
}
.download-privacy svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.download-privacy strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover {
  border-color: var(--border-hover);
  background: var(--surface);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-download {
  flex-direction: column;
  padding: 1rem 0.6rem;
  text-align: center;
  line-height: 1.2;
}
.btn-download:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn-download strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-download span {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 400;
}
.btn-download:hover span { color: var(--accent); }

/* ============================================
   Share Button (unter Download-Grid)
   ============================================ */
.btn-share {
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  text-align: left;
  line-height: 1.25;
}
.btn-share:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-share svg { flex-shrink: 0; }
.btn-share span { display: inline-flex; flex-direction: column; align-items: flex-start; }
.btn-share span strong { font-weight: 700; font-size: 0.98rem; }
.btn-share span em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.76rem;
  opacity: 0.85;
}

/* ============================================
   Share Modal
   ============================================ */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: shareFadeIn 0.18s ease-out;
}
.share-modal[hidden] { display: none; }

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
:root[data-theme="light"] .share-modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.share-modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--accent-glow);
  padding: 1.6rem 1.6rem 1.2rem;
  animation: shareSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme="light"] .share-modal-card {
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2), 0 0 0 1px var(--accent-glow);
}

.share-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 2;
}
.share-modal-close:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-hover);
}

.share-modal-head {
  margin-bottom: 1.2rem;
  padding-right: 3rem;
}
.share-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.share-modal-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Body grid: links Preview, rechts Form+Platforms */
.share-modal-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.4rem;
  align-items: start;
}

.share-preview-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.share-qr-wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 0.6rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.share-qr-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-qr-preview svg,
.share-qr-preview canvas,
.share-qr-preview img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.share-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
}
.share-qr-meta-label {
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.share-qr-meta-value {
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
  overflow-wrap: break-word;
  max-height: 3em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.share-form-col { min-width: 0; }
.share-form-col .form-group { margin-bottom: 0.85rem; }
.share-form-col label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.share-form-col label .optional {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.78rem;
}
.share-form-col input,
.share-form-col textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.share-form-col input:focus,
.share-form-col textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.share-form-col textarea { min-height: 70px; max-height: 160px; }

.share-char-count {
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.share-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin: 1rem 0 0.55rem;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.5rem;
}
.share-grid-alt {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.share-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  position: relative;
}
.share-tile:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.share-tile-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.share-tile:hover .share-tile-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}
.share-tile-label {
  display: block;
  line-height: 1.2;
  font-size: 0.74rem;
}

/* Plattform-spezifische Farben beim Hover */
.share-tile-whatsapp:hover .share-tile-icon { background: #25D366; color: #fff; }
.share-tile-whatsapp:hover { border-color: #25D366; }
.share-tile-telegram:hover .share-tile-icon { background: #229ED9; color: #fff; }
.share-tile-telegram:hover { border-color: #229ED9; }
.share-tile-email:hover .share-tile-icon { background: var(--accent); color: #fff; }
.share-tile-sms:hover .share-tile-icon { background: #34d399; color: #fff; }
.share-tile-facebook:hover .share-tile-icon { background: #1877F2; color: #fff; }
.share-tile-facebook:hover { border-color: #1877F2; }
.share-tile-x:hover .share-tile-icon { background: #000; color: #fff; }
.share-tile-x:hover { border-color: #000; }
:root[data-theme="light"] .share-tile-x:hover .share-tile-icon { background: #0f172a; }
.share-tile-linkedin:hover .share-tile-icon { background: #0A66C2; color: #fff; }
.share-tile-linkedin:hover { border-color: #0A66C2; }
.share-tile-native {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-color: var(--accent);
  color: var(--accent);
}
.share-tile-native .share-tile-icon {
  background: var(--accent);
  color: #fff;
}
.share-tile-native:hover { background: var(--accent); color: #fff; }
.share-tile-native:hover .share-tile-icon { background: rgba(255,255,255,0.2); }

.share-tile-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.share-tile-alt:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
}
.share-tile-alt .share-tile-icon {
  width: auto; height: auto;
  background: transparent;
  border-radius: 0;
}
.share-tile-alt:hover .share-tile-icon {
  background: transparent;
  transform: none;
}

.share-modal-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}
.share-modal-foot svg { color: var(--accent); flex-shrink: 0; }
.share-modal-foot strong { color: var(--text); font-weight: 600; }

/* Toast */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 1100;
  padding: 0.7rem 1.1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: shareToastIn 0.25s ease-out;
  max-width: 90vw;
}
.share-toast[hidden] { display: none; }
.share-toast.is-error {
  background: var(--danger);
  color: #fff;
}

@keyframes shareFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shareSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shareToastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Mobile: Stack columns + smaller tiles */
@media (max-width: 640px) {
  .share-modal { padding: 0; align-items: flex-end; }
  .share-modal-card {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    padding: 1.2rem 1.1rem 0.9rem;
    animation: shareSheetIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .share-modal-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .share-preview-col {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
  }
  .share-qr-wrap {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }
  .share-qr-meta { flex: 1; }
  .share-modal-title { font-size: 1.2rem; }
  .share-modal-sub { font-size: 0.82rem; }
  .share-grid { grid-template-columns: repeat(4, 1fr); }
  .share-grid-alt { grid-template-columns: 1fr; }
}

@keyframes shareSheetIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Post-Download Nudge (Reciprocity-Trigger)
   Erscheint nach erstem Download dezent unter den Buttons
   ============================================ */
.post-download-nudge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
  animation: nudgeFadeIn 0.45s ease-out;
}
.post-download-nudge[hidden] { display: none; }
.pdn-emoji {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
}
.pdn-text { flex: 1; }
.pdn-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.pdn-link:hover { border-bottom-color: var(--accent); }
.pdn-close {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  width: 26px; height: 26px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pdn-close:hover { background: var(--surface-2); color: var(--text); }

@keyframes nudgeFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Support / Spenden-Sektion (vor Footer)
   ============================================ */
.support-section {
  padding: 4rem 0 3rem;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(16, 185, 129, 0.06), transparent);
  scroll-margin-top: 80px; /* für #support-Anker beim Sticky-Header */
}
.support-section.is-hidden { display: none; }

/* Scoping unter .support-section, damit's nicht mit dem alten Affiliate-Block kollidiert */
.support-section .support-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  /* Reset gegen alte horizontale Flexbox-Definition */
  display: block;
  gap: 0;
  align-items: initial;
}
/* Subtiler Akzentbalken oben */
.support-section .support-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}

.support-head {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
  align-items: flex-start;
}
.support-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(16,185,129,0.3));
}
.support-title {
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.support-sub {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}
.support-sub strong { color: var(--text); font-weight: 600; }

/* Betrags-Tiles */
.support-amounts {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
}
.support-amount {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.85rem 0.4rem 0.75rem;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  min-height: 70px;
}
.support-amount:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16,185,129,0.12);
}
.support-amount input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.support-amount:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.support-amount:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.support-amount-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.support-amount:has(input:checked) .support-amount-val { color: var(--accent); }
.support-amount-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.2;
  font-weight: 500;
}
.support-amount-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(16,185,129,0.4);
}
.support-amount-custom .support-amount-val { font-size: 0.9rem; }

/* Custom-Betrag-Eingabe */
.support-custom-input {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: nudgeFadeIn 0.25s ease-out;
}
.support-custom-input[hidden] { display: none; }
.support-custom-input label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.support-custom-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  max-width: 200px;
}
.support-custom-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.support-custom-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  width: 100%;
  font-family: inherit;
  /* Spinner-Buttons entfernen */
  -moz-appearance: textfield;
}
.support-custom-wrap input::-webkit-outer-spin-button,
.support-custom-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.support-custom-unit {
  color: var(--text-muted);
  font-weight: 600;
}

/* Haupt-CTA */
.support-cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(16,185,129,0.3);
  position: relative;
}
.support-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16,185,129,0.45);
}
.support-cta:active { transform: translateY(0); }
.support-cta-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}
.support-cta-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}
.support-cta-label strong { font-weight: 700; }
.support-cta-sub {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

/* Methoden-Icons */
.support-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1rem 0 0.9rem;
  flex-wrap: wrap;
}
.support-methods-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.support-methods-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.support-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 38px;
  padding: 0 0.45rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
}

/* Alt-Optionen (PayPal-Link + Dismiss) */
.support-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0.4rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.support-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.support-alt-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.support-alt-sep {
  color: var(--text-dim);
  opacity: 0.5;
}
.support-alt-icon { color: #0070ba; display: inline-flex; }

/* Trust-Hinweis */
.support-trust {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
}
.support-trust svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.support-trust strong { color: var(--text); font-weight: 600; }

/* Meta-Hinweis unter Card */
.support-meta {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 1.2rem auto 0;
  max-width: 720px;
  line-height: 1.5;
}
.support-meta strong { color: var(--text-muted); font-weight: 600; }
.support-meta-sep { opacity: 0.4; margin: 0 0.35rem; }

/* Thank-You-Toast (nach Stripe/PayPal-Rückkehr) */
.thanks-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.4rem 1rem 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16,185,129,0.45), 0 0 0 1px rgba(255,255,255,0.1);
  animation: thanksIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 92vw;
}
.thanks-toast[hidden] { display: none; }
.thanks-emoji { font-size: 1.8rem; line-height: 1; }
.thanks-text { display: flex; flex-direction: column; gap: 0.15rem; }
.thanks-text strong { font-size: 1rem; font-weight: 700; }
.thanks-text span { font-size: 0.85rem; opacity: 0.95; }
.thanks-close {
  background: rgba(255,255,255,0.18);
  border: 0;
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  transition: background 0.15s ease;
}
.thanks-close:hover { background: rgba(255,255,255,0.3); }

@keyframes thanksIn {
  0%   { opacity: 0; transform: translate(-50%, 40px); }
  60%  { opacity: 1; transform: translate(-50%, -4px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

/* Visually hidden utility (für <legend>) */
.support-amounts .visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Mobile-Anpassungen */
@media (max-width: 640px) {
  .support-section { padding: 2.5rem 0 2rem; }
  .support-section .support-card { padding: 1.4rem 1.2rem 1.2rem; border-radius: 14px; }
  .support-head { gap: 0.7rem; margin-bottom: 1.2rem; }
  .support-emoji { font-size: 1.6rem; }
  .support-amounts {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
  }
  .support-amount-custom { grid-column: span 3; }
  .support-amount { min-height: 64px; padding: 0.7rem 0.3rem 0.6rem; }
  .support-amount-val { font-size: 0.98rem; }
  .support-amount-hint { font-size: 0.66rem; }
  .support-cta { padding: 0.95rem 1rem; }
  .support-cta-icon { display: none; }
  .support-methods { gap: 0.5rem; }
  .support-methods-label { font-size: 0.68rem; width: 100%; text-align: center; }
  .thanks-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    transform: none;
    max-width: calc(100vw - 2rem);
  }
  @keyframes thanksIn {
    0%   { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================
   Inspiration Block (Homepage, nach Generator)
   ============================================ */
.inspiration-block {
  padding: 4rem 0 3rem;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(16, 185, 129, 0.06), transparent);
}

.inspiration-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.inspiration-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.inspiration-head p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.insp-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.insp-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-tint, var(--accent));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.insp-tile:hover {
  border-color: var(--accent-tint, var(--accent));
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.insp-tile:hover::after { opacity: 1; }

.insp-mockup {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  position: relative;
}
.insp-mockup img.insp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.insp-tile:hover .insp-mockup img.insp-img {
  transform: scale(1.04);
}
.insp-mockup svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.insp-tile-text {
  padding: 1.2rem 1.4rem 1.4rem;
}
.insp-tile-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.insp-tile-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.inspiration-cta {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ============================================
   Design Presets
   ============================================ */
.preset-section {
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}
.preset-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: block;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.5rem;
}
.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
  position: relative;
}
.preset-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.preset-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.preset-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.preset-swatch::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: repeating-conic-gradient(currentColor 0% 25%, transparent 0% 50%) 50% / 6px 6px;
  border-radius: 4px;
  color: var(--swatch-fg, #000);
}

/* ============================================
   Features
   ============================================ */
.features {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.15s ease;
}
.feat:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.feat-icon {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}
.feat h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.feat p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   Popular Uses (Long-tail Cross-Linking)
   ============================================ */
.popular-uses {
  padding: 3rem 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(16, 185, 129, 0.04), transparent);
}
.pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}
.pop-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
}
.pop-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,.1);
}
.pop-icon {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.pop-title {
  font-size: 0.95rem;
  font-weight: 600;
}
.pop-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 3rem 0 5rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.3rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover { color: var(--accent); }

.faq-item p {
  padding: 0 1.3rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item strong { color: var(--text); }

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  background: var(--footer-bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 360px;
}

.footer-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-nav a,
.footer-nav .footer-link-btn {
  color: var(--text-muted);
  font-size: 0.9rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

/* Country-Picker entfernt — falls noch DOM-Reste, ausgeblendet */
.country-picker-wrap { display: none !important; }

/* Sprach-Picker — im Header oben rechts, immer sichtbar */
.lang-picker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.35rem 0.6rem 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.15s ease;
  order: 3; /* nach Logo + Nav, vor Burger */
}
.header .lang-picker-wrap { margin-right: 0.5rem; }
.lang-picker-wrap:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.10);
}
.lang-picker-label {
  font-size: 1rem;
  color: var(--text-muted);
  user-select: none;
  cursor: pointer;
  line-height: 1;
}
.lang-picker {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.2rem 1.2rem 0.2rem 0.25rem;
  border-radius: 6px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2310b981' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  max-width: 180px;
  min-width: 110px;
}
.lang-picker:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lang-picker:hover { color: var(--accent); }

@media (max-width: 640px) {
  .lang-picker-wrap {
    padding: 0.3rem 0.5rem 0.3rem 0.6rem;
    gap: 0.3rem;
  }
  .lang-picker {
    max-width: 130px;
    min-width: 80px;
    font-size: 0.82rem;
  }
}

/* RTL-Anpassungen für Persisch */
html[dir="rtl"] {
  text-align: right;
}
html[dir="rtl"] .hero,
html[dir="rtl"] .trust-bar,
html[dir="rtl"] .hero-cta {
  text-align: center;
}
.footer-nav a:hover,
.footer-nav .footer-link-btn:hover { color: var(--accent); }
.footer-nav .footer-link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-copy {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Footer Tools – Backlinks zu Schwester-Projekten */
.footer-tools {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-tools-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.footer-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.footer-tool {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s ease;
}
.footer-tool:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}
.footer-tool strong {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}
.footer-tool span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Homepage Support-Box (Affiliate-CTA) */
.support-block {
  padding: 3rem 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(16, 185, 129, 0.05), transparent);
}
.support-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem;
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--surface), rgba(16, 185, 129, 0.04));
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.08);
}
.support-card-icon {
  font-size: 4rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.30));
}
.support-card-content { flex: 1; }
.support-card-content h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
}
.support-card-content p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.support-card-content strong { color: var(--text); }
.support-steps {
  color: var(--text-muted);
  line-height: 1.8;
  padding-left: 1.5rem;
  margin: 1rem 0 1.2rem;
}
.support-steps li {
  margin-bottom: 0.3rem;
}
.support-card-meta {
  font-size: 0.92rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.7rem 1rem;
  border-radius: 4px;
  margin: 0 0 1.2rem;
}
.support-card-cta {
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
}
@media (max-width: 680px) {
  .support-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.8rem 1.4rem;
  }
  .support-card-icon {
    font-size: 3.2rem;
    align-self: flex-start;
  }
}

/* Homepage Tools-Block – stärkere Sichtbarkeit für SEO-Backlinks */
.tools-block {
  padding: 3rem 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(16, 185, 129, 0.04), transparent);
}
.tools-block .section-title {
  margin-bottom: 0.8rem;
}
.tools-block-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 920px;
  margin: 0 auto;
}
.tools-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.tools-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tools-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.15);
}
.tools-card:hover::after { opacity: 1; }
.tools-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}
.tools-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.tools-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.tools-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================
   Einbetten-Page & Share-Block
   ============================================ */
.embed-section {
  margin: 2.5rem 0;
  padding: 1.8rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.embed-section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.embed-section-desc {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.embed-preview-wrap {
  margin: 1rem 0 1.5rem;
  background: var(--surface-2);
  padding: 0.6rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.embed-preview-wrap iframe {
  display: block;
}

.snippet-block {
  margin-bottom: 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.snippet-head strong {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}
.btn-copy {
  padding: 0.4rem 0.8rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.btn-copy:hover { background: var(--accent-hover); }
.btn-copy.copied { background: #16a34a; }

.snippet-code {
  margin: 0;
  padding: 0.95rem 1rem;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.snippet-preview {
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.snippet-preview a {
  color: var(--accent);
  font-weight: 600;
}

.snippet-options {
  margin-top: 0.6rem;
  padding: 0.8rem 1rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.snippet-options summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}
.snippet-options ul {
  margin: 0.6rem 0 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.snippet-options code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.82rem;
}

.badge-preview-wrap {
  text-align: center;
  padding: 1.2rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.efqr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #0a0e1a;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font: 600 13px -apple-system, system-ui, sans-serif;
  border: 1px solid var(--accent);
}
.efqr-badge svg { color: var(--accent); }
.efqr-badge strong { color: var(--accent); }

/* Share-Buttons */
.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--text);
}
.share-btn svg { flex-shrink: 0; }
.share-x:hover { color: #000; background: rgba(0,0,0,0.05); border-color: #000; }
[data-theme="light"] .share-x:hover { color: #000; background: #f5f5f5; }
.share-fb:hover { color: #1877F2; border-color: #1877F2; }
.share-wa:hover { color: #25D366; border-color: #25D366; }
.share-li:hover { color: #0A66C2; border-color: #0A66C2; }
.share-mail:hover { color: #ea4335; border-color: #ea4335; }
.share-copy:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================
   Homepage: Teilen-&-Einbetten Sektion
   ============================================ */
.share-block {
  padding: 3rem 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(16, 185, 129, 0.04), transparent);
}
.share-block .section-title {
  margin-bottom: 0.8rem;
}
.share-block-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
}
.share-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 920px;
  margin: 0 auto 1.5rem;
}
.share-block-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all 0.18s ease;
}
.share-block-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  color: var(--text);
}
.share-block-card .icon {
  font-size: 1.8rem;
}
.share-block-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}
.share-block-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.share-block-cta {
  display: block;
  text-align: center;
  margin-top: 1rem;
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  /* iOS: berücksichtige Home-Indicator unten (safe-area-inset) */
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  animation: slideUp 0.3s ease;
}
.cookie-banner.hidden { display: none; }

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text { flex: 1; min-width: 260px; }
.cookie-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.cookie-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ============================================
   Animations
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Mobile Polish
   ============================================ */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .card { padding: 1.2rem; }
  .hero { padding: 2rem 0 1.5rem; }
  .download-grid { grid-template-columns: 1fr 1fr; }
}
