/* ================================================================
   Fonts — lokal gehostet (DSGVO-konform, kein Google-CDN).
   ----------------------------------------------------------------
   Warum lokal?
   - Bei Google Fonts CDN haette jeder Seitenaufruf die User-IP an
     fonts.googleapis.com / fonts.gstatic.com uebertragen (US-Server).
     Die DSGVO lies das nur via DPF-Berechtigung zu; lokales Hosting
     eliminiert die Drittland-Uebertragung komplett. Dadurch entfaellt
     die Cookie-Banner-Pflicht bzgl. Fonts (siehe datenschutz.html §6).
   - Variable Font: Outfit wird als einziger .woff2 pro Subset
     ausgeliefert. Die Datei enthaelt ALLE Gewichte (100–900); der
     Browser interpoliert zwischen ihnen. Deshalb ein @font-face-
     Block mit `font-weight: 100 900`, nicht vier Einzelbloecke.
   - `unicode-range`: Browser laedt `latin-ext` nur dann nach, wenn
     die Seite entsprechende Zeichen enthaelt. Unsere Seite ist reine
     Latin-1 (deutsche Umlaute zaehlen dazu) → latin-ext wird im
     Regelfall NICHT angefragt. Datenminimierung durch Technik.
   - font-display: swap vermeidet FOIT (Flash of Invisible Text);
     System-Sans bleibt sichtbar bis Outfit fertig geladen ist.
   - `local(...)` versucht zuerst einen bereits installierten Outfit-
     Font aus dem System zu laden (spart Traffic).
   - Quelle: Google Fonts Outfit v15 (SIL OFL 1.1, eigenstaendiges
     Hosting ausdruecklich erlaubt). Dateien in /public/fonts/
     werden vom Express-Static mit Cache-Control: max-age=1h
     ausgeliefert. Deploy-Details in fonts/README.md.
   ================================================================ */

/* latin-ext — nur noetig fuer erweiterte Latin-Zeichen (ł, ø, etc.) */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local("Outfit"),
    url("/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* latin — deckt Standard-Latin inkl. deutscher Umlaute (ä ö ü ß) */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local("Outfit"),
    url("/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Community Custom Styling --- */
:root {
  --bg-pure: #ffffff;
  --bg-grey: #f9fafb;
  /* Lighter grey matching original tailwind gray-50 */
  --community-yellow: #ccff00;
  --text-dark: #111827;
  /* Tailwind gray-900 */
  --text-muted: #6b7280;
  /* Tailwind gray-500 */
  --radius: 16px;
  /* Original rounded-2xl was 1rem (16px) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* Tailwind shadow-sm */
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* Tailwind shadow-md for hover */
  --card-border: #f3f4f6;
  --card-black-bg: var(--text-dark);
  --card-black-text: var(--bg-pure);
  --card-black-desc: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-pure: #0f1115;
    --bg-grey: #1f2937;
    --text-dark: #f9fafb;
    --text-muted: #9ca3af;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --card-border: #374151;
    --card-black-bg: #1f2937;
    --card-black-text: #f9fafb;
    --card-black-desc: #9ca3af;
  }
}

:root[data-theme="dark"] {
  --bg-pure: #0f1115;
  --bg-grey: #1f2937;
  --text-dark: #f9fafb;
  --text-muted: #9ca3af;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --card-border: #374151;
  --card-black-bg: #1f2937;
  --card-black-text: #f9fafb;
  --card-black-desc: #9ca3af;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-pure);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-content {
  position: relative;
  z-index: 10;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.container--white {
  background: var(--bg-pure);
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-pure);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar__brand {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

a.navbar__brand {
  color: inherit;
  text-decoration: none;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar__links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
}

.navbar__cta {
  background: var(--community-yellow);
  color: #111827; /* Always dark text on neon yellow background */
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.navbar__cta:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* --- Header / Hero --- */
.header {
  position: relative;
  text-align: center;
  padding: 5rem 2rem 3rem 2rem;
  background: var(--bg-pure);
  max-width: 1200px;
  margin: 0 auto;
}

.community-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--community-yellow);
  color: #111827; /* Always dark text on neon yellow badge */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--bg-pure);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: rotate(10deg);
  box-shadow: var(--shadow-sm);
  z-index: 20;
  animation: floatBadge 4s ease-in-out infinite;
}

.community-badge__small {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
}

.community-badge__large {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  margin: 0.1rem 0;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0) rotate(10deg);
  }

  50% {
    transform: translateY(-10px) rotate(12deg);
  }
}

/* Mobile optimizations for badge */
@media (max-width: 768px) {
  .header {
    padding: 4rem 1rem 2rem 1rem;
  }

  .community-badge {
    width: 90px;
    height: 90px;
    top: -15px;
    right: -10px;
  }

  .community-badge__small {
    font-size: 0.6rem;
  }

  .community-badge__large {
    font-size: 1.4rem;
  }
}

.title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  font-size: 1.15rem;
  color: #4b5563;
  /* slightly lighter than main text */
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.community-highlight {
  display: inline;
  box-shadow: inset 0 -0.42em 0 var(--community-yellow);
  padding: 0 0.05em;
}

/* --- Yellow Wrapper Sektion --- */
.yellow-wrapper {
  background: var(--bg-pure);
  width: 100%;
}

.hero-callout {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.hero-callout__title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-callout p {
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Cards --- */
.card {
  position: relative;
  background: var(--bg-pure);
  border: 1px solid var(--card-border);
  /* Tailwind gray-100 */
  border-radius: var(--radius);
  padding: 1.5rem;
  /* Original was p-6 */
  text-align: left;
  text-decoration: none;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  outline: 3px solid var(--community-yellow);
  outline-offset: 2px;
}

.card:active {
  transform: scale(0.98);
}

.card--yellow {
  background: var(--community-yellow);
  color: #111827; /* Always dark text on neon yellow background */
  border: none;
}

.card--yellow .card__icon-wrapper {
  background: var(--bg-pure);
}

.card--black {
  background: var(--card-black-bg);
  color: var(--card-black-text);
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, outline 0.2s;
}

.card--black:hover .card__icon-wrapper,
.card--black:hover .card__title,
.card--black:hover .card__desc {
  transform: scale(1.05);
  transition: transform 0.2s;
}

.card--black .card__title {
  color: var(--card-black-text);
}

.card--black .card__desc {
  color: var(--card-black-desc);
}

.card--black .card__icon-wrapper {
  background: transparent;
  color: var(--community-yellow);
  padding: 0;
}

.card__icon-wrapper {
  background: var(--community-yellow);
  padding: 0.75rem;
  border-radius: 12px;
  /* rounded-xl */
  margin-bottom: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 1.25rem;
  /* text-xl */
  font-weight: 700;
  /* font-bold */
  margin-bottom: 0.25rem;
}

.card__desc {
  font-size: 0.875rem;
  /* text-sm */
  color: var(--text-muted);
}

/* --- Icons --- */
.card__icon {
  margin-bottom: 1rem;
  display: inline-block;
}

.card--primary .card__icon svg {
  color: var(--community-yellow);
}

/* --- Buttons --- */
.hero-action {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn--hero {
  font-size: 2rem !important;
  font-weight: 900 !important;
  padding: 1.5rem 4rem !important;
  border-radius: var(--radius) !important;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.btn--hero:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.btn--hero:active {
  transform: scale(0.97);
}

.hero-btn-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-btn-wrap .community-badge {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) rotate(10deg);
  margin-left: -20px;
  flex-shrink: 0;
  animation: floatBadgeHero 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatBadgeHero {

  0%,
  100% {
    transform: translateY(-50%) rotate(10deg);
  }

  50% {
    transform: translateY(calc(-50% - 8px)) rotate(12deg);
  }
}

@media (max-width: 768px) {
  .btn--hero {
    font-size: 2rem;
    padding: 1.5rem 4rem;
  }

  .hero-btn-wrap .community-badge {
    width: 90px;
    height: 90px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, outline 0.2s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:not(:disabled):hover {
  transform: scale(1.02);
  outline: 3px solid var(--community-yellow);
  outline-offset: 2px;
}

.btn--black {
  background: var(--text-dark);
  color: var(--bg-pure);
}

.btn--black:not(:disabled):hover {
  background: var(--text-dark);
}

.btn--yellow {
  background: var(--community-yellow);
  color: #111827; /* Always dark text on neon yellow background */
}

.btn--yellow:not(:disabled):hover {
  background: var(--community-yellow);
  opacity: 0.95;
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn--outline:hover {
  background: var(--bg-grey);
}

/* --- Modale --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: var(--bg-pure);
  padding: 3rem;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
  position: relative;

  /* Custom Scrollbar Styles */
  scrollbar-width: thin;
  scrollbar-color: var(--community-yellow) transparent;
}

/* Chrome, Edge, Safari */
.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
  margin: 1rem 0; /* Verhindert das "Abschneiden" der runden Ecken */
}

.modal::-webkit-scrollbar-thumb {
  background-color: var(--community-yellow);
  border-radius: 20px;
  border: 2px solid var(--bg-pure); /* Erzeugt einen schwebenden Effekt */
}


.modal--document {
  max-width: 700px;
  text-align: left;
  padding: 2.5rem;
}

.modal--document .modal__title {
  text-align: center;
  margin-top: 0;
}

.modal__title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.modal__code-box {
  background: var(--bg-grey);
  padding: 1.5rem;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
}

.modal__code--blurred {
  filter: blur(8px);
  user-select: none;
}

.modal__copy {
  position: absolute;
  right: 1rem;
  background: transparent;
  color: var(--text-dark);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.1s;
}

.modal__hint {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Modal Inline-Link (shared by Draw + Ratelimit Modal) --- */
.modal__inline-link {
  color: var(--text-muted);
  text-decoration: underline;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: inline-block;
}

/* --- Terms Modal Body --- */
.modal__terms-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-bottom: 1.5rem;
}

.modal__terms-body h4 {
  margin-top: 1rem;
  color: var(--text-dark);
}

.modal__terms-body .modal__terms-note {
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Full-Width Button Modifier --- */
.btn--full {
  width: 100%;
}

/* --- Howto Section --- */
.howto__title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 3rem;
  text-align: center;
}

.howto__steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.howto__step {
  display: flex;
  gap: 1.5rem;
}

.howto__number {
  background: var(--community-yellow);
  color: #000;
  font-weight: 900;
  font-size: 1.5rem;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.howto__step h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

/* --- SEO-Content-Block (Was ist fraenk for friends + Vergleichstabelle) ---
   Immer sichtbar, nicht hinter Toggle-Buttons, damit Google den Content direkt
   indexiert. Keyword-Dichte fuer "fraenk for friends", "fraenk Empfehlungscode". */
.seo-content {
  margin: 0 auto 4rem;
  max-width: 860px;
  padding: 0 1rem;
  /* Top border accent matching section dividers */
  border-top: 3px solid var(--community-yellow);
  padding-top: 3rem;
}

.seo-content__title {
  font-size: 2.25rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.seo-content__subtitle {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.seo-content__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

/* ================================================================
   Calculator / Potenzial-Rechner — Slider Styling
   ================================================================ */
.calculator__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #222;
  border-radius: 3px;
  outline: none;
}

.calculator__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ccff00;
  cursor: pointer;
  border: 2px solid #222;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.calculator__slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ccff00;
  cursor: pointer;
  border: 2px solid #222;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.calculator__slider::-moz-range-track {
  height: 6px;
  background: #222;
  border-radius: 3px;
}

.seo-content__body {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.seo-content__body a,
.seo-content__lead a,
.seo-content__list a {
  color: var(--text-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}

.seo-content__body a:hover,
.seo-content__lead a:hover,
.seo-content__list a:hover {
  opacity: 0.7;
}

/* Für-wen-Liste: card-ähnlich wie FAQ-Items, mit Yellow-Checkmarks */
.seo-content__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-content__list li {
  background: var(--bg-grey);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.1rem 3.25rem;
  position: relative;
  line-height: 1.6;
  transition: transform 0.2s, box-shadow 0.2s;
}

.seo-content__list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.seo-content__list li::before {
  content: "✓";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--community-yellow);
  color: var(--text-dark);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

/* Vergleichstabelle: schwarzer Header wie Cards, Yellow-Highlights */
.seo-content__table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0.5rem;
  border-radius: var(--radius);
  background: var(--bg-grey);
  padding: 0;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden; /* clip rounded corners */
}

.seo-content__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}

.seo-content__table th,
.seo-content__table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.seo-content__table thead tr {
  background: var(--text-dark);
  color: var(--bg-pure);
}

.seo-content__table thead th {
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: none;
  color: var(--bg-pure);
}

/* TarifFreund-Zeile: leicht hervorgehoben */
.seo-content__table tbody tr:first-child {
  background: rgba(204, 255, 0, 0.12);
}

.seo-content__table tbody tr:first-child th[scope="row"] {
  font-weight: 900;
  position: relative;
}

.seo-content__table tbody tr:first-child th[scope="row"]::after {
  content: " ★";
  color: var(--text-dark);
  font-size: 0.8rem;
}

.seo-content__table tbody th[scope="row"] {
  font-weight: 700;
  white-space: nowrap;
}

.seo-content__table tbody tr:last-child th,
.seo-content__table tbody tr:last-child td {
  border-bottom: none;
}

.seo-content__table tbody tr:hover {
  background: var(--bg-grey);
  transition: background 0.15s;
}

.seo-content__table tbody tr:first-child:hover {
  background: rgba(204, 255, 0, 0.2);
}

.seo-content__table-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.75rem 1rem;
  line-height: 1.5;
  padding-bottom: 0.5rem;
}

/* Vorteilsrechnung: auffaellige Highlight-Card im Dark-Style */
.seo-content__highlight {
  background: var(--card-black-bg);
  color: var(--card-black-text);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  margin: 2.5rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.seo-content__highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--community-yellow);
}

.seo-content__highlight-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: var(--card-black-text);
}

.seo-content__highlight-number {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.seo-content__highlight-big {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--community-yellow);
  letter-spacing: -0.03em;
}

.seo-content__highlight-unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-black-desc);
}

.seo-content__highlight-calc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--card-black-desc);
  line-height: 1.6;
}

.seo-content__highlight-calc span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
}

.seo-content__highlight p {
  color: var(--card-black-desc);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.seo-content__highlight a {
  color: var(--community-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.seo-content__highlight a:hover {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .seo-content__highlight-big {
    font-size: 2.75rem;
  }
  .seo-content__highlight {
    padding: 1.5rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .seo-content__title { font-size: 1.75rem; }
  .seo-content__subtitle { font-size: 1.25rem; }
  .seo-content__lead { font-size: 1rem; }
}

/* --- FAQ Section --- */
.faq__title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 3rem;
  text-align: center;
}

.faq__item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 1rem 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
}

.faq__item[open] summary {
  padding-bottom: 0;
}

.faq__question {
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::before {
  content: "+";
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--community-yellow);
  background: var(--text-dark);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.faq__item[open] .faq__question::before {
  content: "−";
}

.faq__answer {
  padding: 0.75rem 0 0 2.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Misc --- */
.section-divider {
  padding: 1.5rem 0;
}

.section-divider__line {
  height: 1px;
  background: #eee;
  max-width: 200px;
  margin: 0 auto;
}

.terms-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-grey);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  text-align: left;
}

.terms-toggle__label {
  font-size: 0.9rem;
}

.terms-toggle__link {
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
}


.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .2s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--bg-pure);
  transition: .2s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--text-dark);
}

input:checked+.slider:before {
  transform: translateX(22px);
}

/* --- Footer --- */
.footer {
  background: var(--bg-grey);
  padding: 4rem 2rem 2rem 2rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2rem;
}

.footer__brand {
  font-weight: 900;
  font-size: 1.5rem;
}

.footer__links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  margin-left: 2rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom__disclaimer {
  margin-top: 0.5rem;
  max-width: 800px;
  margin-inline: auto;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: var(--bg-pure);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Loading Screen --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}

.loader--hidden {
  opacity: 0;
  pointer-events: none;
}

.community-loader-card {
  background: var(--bg-pure);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  width: 90%;
  max-width: 460px;
  text-align: left;
  color: var(--text-dark);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* CTA-Variante: klickbarer Link zur Community. Weil das Element ein <a> ist,
   muessen wir die Link-Defaults (Unterstreichung, Farbe) explizit resetten. */
.community-loader-card--cta {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.community-loader-card--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.55);
}

.community-loader-card__copy {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.community-mono {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: var(--text-dark);
}

.community-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0.5rem 0 1rem 0;
  letter-spacing: -0.02em;
}

.community-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.community-bar-track {
  flex-grow: 1;
  height: 14px;
  background: #f2f2f2;
}

.community-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--community-yellow);
  animation: loadBarCommunity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.community-percent {
  font-weight: bold;
}

.community-mono-link {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

@keyframes loadBarCommunity {
  0% {
    width: 0%;
  }

  30% {
    width: 45%;
  }

  100% {
    width: 100%;
  }
}

/* Animations */
.card.card--loading,
.btn.card--loading {
  opacity: 0.6;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
  .title {
    font-size: 2.8rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero-callout__title {
    font-size: 2rem;
  }

  .community-heading {
    font-size: 2.5rem;
  }

  .navbar__links {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer__links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
  }

  .footer__links a {
    margin-left: 0;
  }
}

/* ═════════════════════════════════════════════════════════════════
   MOBILE UX PREMIUM — Smartphone-First Experience (v1.14.1)
   ─────────────────────────────────────────────────────────────────
   fraenk ist ein Smartphone-Produkt. Die mobile Erfahrung ist das
   Aushaengeschild. Alle Touch-Targets >= 44px (WCAG 2.5.5).
   ═════════════════════════════════════════════════════════════════ */

/* --- Hamburger Button (desktop: hidden) --- */
.navbar__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.navbar__hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  transition: background 0.2s;
}

.navbar__hamburger-line::before,
.navbar__hamburger-line::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--text-dark);
  left: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar__hamburger-line::before { top: -6px; }
.navbar__hamburger-line::after { top: 6px; }

.navbar__hamburger--open .navbar__hamburger-line {
  background: transparent;
}

.navbar__hamburger--open .navbar__hamburger-line::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--text-dark);
}

.navbar__hamburger--open .navbar__hamburger-line::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--text-dark);
}

/* --- Mobile Menu Overlay (desktop: hidden) --- */
.navbar__mobile-menu {
  display: none;
}

/* ─── 768px Mobile Breakpoint ─── */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__brand {
    flex: 1;
    font-size: 1.25rem;
  }

  .navbar__cta {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
  }

  .navbar__mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-pure);
    z-index: 98;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
  }

  .navbar__mobile-menu--open {
    opacity: 1;
    visibility: visible;
  }

  .navbar__mobile-menu a {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-dark);
    padding: 0.9rem 2rem;
    min-height: 52px;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
  }

  .navbar__mobile-menu a:active {
    color: var(--text-muted);
  }

  .navbar__mobile-menu .navbar__mobile-menu-cta {
    margin-top: 1.5rem;
    background: var(--text-dark);
    color: var(--bg-pure);
    padding: 1rem 3rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    min-height: 56px;
    justify-content: center;
    transition: transform 0.15s;
  }

  .navbar__mobile-menu .navbar__mobile-menu-cta:active {
    transform: scale(0.96);
  }

  /* Hero */
  .header {
    padding: 3rem 1.25rem 2rem;
  }

  .title {
    font-size: 2rem;
    margin-bottom: 0.25rem;
  }

  .hero-action {
    margin-top: 2rem;
  }

  .hero-btn-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-btn-wrap .community-badge {
    position: static;
    margin-left: 0;
    transform: rotate(10deg);
    animation: floatBadge 4s ease-in-out infinite;
  }

  .btn--hero {
    font-size: 1.35rem !important;
    padding: 1rem 2.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  /* Cards */
  .container {
    padding: 2rem 1rem;
  }

  .hero-callout {
    margin-bottom: 1.5rem;
  }

  .hero-callout__title {
    font-size: 1.5rem;
  }

  .hero-callout p {
    font-size: 0.95rem;
  }

  .grid {
    gap: 0.75rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .card .community-badge {
    width: 72px;
    height: 72px;
    top: -10px;
    right: -6px;
  }

  .card .community-badge .community-badge__large { font-size: 1.1rem; }
  .card .community-badge .community-badge__small { font-size: 0.5rem; }

  /* SEO Content */
  .seo-content {
    padding: 0 0.5rem;
    padding-top: 2.5rem;
    margin-bottom: 3rem;
  }

  .seo-content__title { font-size: 1.5rem; }
  .seo-content__subtitle { font-size: 1.15rem; }
  .seo-content__lead { font-size: 0.95rem; }
  .seo-content__body { font-size: 0.9rem; line-height: 1.75; }

  .seo-content__list li {
    padding: 0.9rem 0.9rem 0.9rem 2.5rem;
    font-size: 0.88rem;
  }

  .seo-content__list li::before {
    left: 0.65rem;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }

  .seo-content__highlight {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
  }

  .seo-content__highlight-big { font-size: 2.5rem; }
  .seo-content__highlight-unit { font-size: 1rem; }
  .seo-content__highlight-title { font-size: 1.1rem; }
  .seo-content__highlight-calc { font-size: 0.82rem; gap: 0.35rem 0.5rem; }
  .seo-content__highlight-calc span { padding: 0.2rem 0.5rem; }
  .seo-content__highlight p { font-size: 0.88rem; }

  /* Modal */
  .modal {
    padding: 1.75rem 1.25rem;
    width: calc(100% - 1.5rem);
    max-height: 90vh;
    border-radius: 16px;
  }

  .modal__title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .modal__code-box {
    padding: 1rem;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .modal__hint {
    font-size: 0.82rem;
    margin-bottom: 1rem;
    line-height: 1.55;
  }

  .modal__actions .btn {
    min-height: 48px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .modal--document {
    padding: 1.5rem 1.25rem;
  }

  .terms-toggle {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 0.5rem;
  }

  .terms-toggle__label {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  /* FAQ */
  .faq__title {
    font-size: 1.6rem;
    margin-bottom: 1.75rem;
  }

  .faq__question {
    font-size: 0.92rem;
    min-height: 44px;
    padding: 0.25rem 0;
  }

  .faq__answer {
    font-size: 0.85rem;
    padding: 0.5rem 0 0 2rem;
    line-height: 1.65;
  }

  /* Howto */
  .howto__title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .howto__number {
    min-width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .howto__step h4 { font-size: 1.05rem; }

  /* Footer */
  .footer {
    padding: 2rem 1.25rem 1.5rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
  }

  .footer__brand { font-size: 1.25rem; }

  .footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-top: 0;
  }

  .footer__links a {
    margin-left: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-bottom { padding-top: 1rem; }
  .footer-bottom__copyright { font-size: 0.78rem; }
  .footer-bottom__disclaimer { font-size: 0.72rem; line-height: 1.55; }

  /* Loader */
  .community-loader-card {
    padding: 2rem 1.5rem;
    max-width: 340px;
  }

  .community-heading {
    font-size: 2.2rem;
    margin: 0.25rem 0 0.75rem 0;
  }

  .community-loader-card__copy { font-size: 0.85rem; }
  .community-mono-link { font-size: 0.9rem; }

  /* Toast */
  .toast {
    width: 90%;
    max-width: 320px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    border-radius: 12px;
  }
}

/* ─── Stacked Table (≤640px) ─── */
@media (max-width: 640px) {
  .seo-content__table {
    min-width: 0;
  }

  .seo-content__table thead {
    display: none;
  }

  .seo-content__table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .seo-content__table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-pure);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-bottom: none;
  }

  .seo-content__table tbody tr:first-child {
    background: var(--bg-pure);
    border-left: 4px solid var(--community-yellow);
  }

  .seo-content__table tbody tr th[scope="row"] {
    font-size: 1rem;
    font-weight: 900;
    white-space: normal;
    padding: 0 0 0.5rem 0;
    border-bottom: 2px solid var(--community-yellow);
    margin-bottom: 0.5rem;
  }

  .seo-content__table tbody tr td {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .seo-content__table tbody tr td:last-child {
    border-bottom: none;
  }

  .seo-content__table tbody tr td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
  }

  .seo-content__table-note {
    font-size: 0.82rem;
    margin: 0.5rem 0.75rem;
  }
}

/* ═════════════════════════════════════════════════════════════════
   MOBILE SIMPLIFICATION — App-Like One-Screen Experience (v1.15.0)
   ─────────────────────────────────────────────────────────────────
   Auf Smartphones zeigen wir nur das, was der User braucht:
   EINEN Button. Alles andere ist collapsed aber im DOM für SEO.
   Desktop bleibt unverändert.
   ═════════════════════════════════════════════════════════════════ */

/* --- Mobile-only subtitle (hidden on desktop) --- */
.hero-subtitle-mobile {
  display: none;
}

/* --- Details/Summary: SEO Content Wrapper --- */
.seo-content-details {
  border: none;
  margin: 0;
  padding: 0;
}

/* Desktop: always open, summary hidden */
.seo-content-details__summary {
  display: none;
}

/* Force open on desktop (CSS can't set [open] attribute, but we hide summary
   and since it starts with open attribute in HTML, it stays open) */

@media (max-width: 768px) {

  /* ── Loader: Skip on mobile ── */
  .loader {
    display: none !important;
  }

  /* ── Hero: Ultra-compact ── */
  .hero-subtitle-mobile {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0.25rem 0 0 0;
    letter-spacing: -0.01em;
  }

  .header {
    padding: 2.5rem 1.25rem 1.25rem;
    text-align: center;
  }

  .title {
    font-size: 2.2rem;
    margin-bottom: 0;
  }

  /* Badge: hidden on mobile (button is the CTA) */
  .hero-btn-wrap .community-badge {
    display: none;
  }

  .btn--hero {
    width: 100%;
    max-width: 320px;
    font-size: 1.25rem !important;
    padding: 1.1rem 2rem !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  /* ── Navbar: No CTA button (hero button is enough) EXCEPT on article pages ── */
  body:not(.page-article) .navbar__cta {
    display: none !important;
  }

  /* ── Cards → iOS Style List Menu ── */
  .hero-callout__desc {
    display: none;
  }

  .hero-callout {
    margin-bottom: 1rem;
  }

  .hero-callout__title {
    font-size: 1.25rem;
    margin-bottom: 0;
  }

  .grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    margin: 0 auto;
  }

  /* Hide the duplicate "Code ziehen" card since we have the huge Hero CTA */
  #btn-draw {
    display: none !important;
  }

  .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    text-align: left;
    min-height: auto;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .card__icon-wrapper {
    display: flex !important; /* Override desktop padding/hiding */
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-right: 1rem;
    margin-bottom: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .card__icon-wrapper svg {
    width: 20px;
    height: 20px;
  }

  .card__desc {
    display: none;
  }

  .card .community-badge {
    display: none;
  }

  .card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
    letter-spacing: -0.01em;
  }

  .card::after {
    content: "›";
    font-size: 1.5rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 0.5rem;
  }

  /* ── Yellow wrapper: Tighter spacing ── */
  .yellow-wrapper {
    padding: 0;
  }

  .container {
    padding: 1.25rem 1rem;
  }

  /* ── SEO Content: Collapsed ── */
  .seo-content-details__summary {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 1rem 0 0.5rem;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .seo-content-details__summary::-webkit-details-marker {
    display: none;
  }

  .seo-content-details__summary::marker {
    content: '';
  }

  /* Remove [open] on mobile — JS will handle it */
  .seo-content-details:not([open]) .seo-content {
    display: none;
  }

  .seo-content-details[open] .seo-content-details__summary {
    color: var(--text-dark);
  }

  .seo-content {
    padding-top: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  /* ── FAQ: More compact header ── */
  .faq__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .faq {
    padding: 1.5rem 1rem 2rem;
  }

  /* ── Footer: Minimal ── */
  .footer {
    padding: 1.5rem 1rem 1rem;
  }

  .footer__brand {
    font-size: 1.1rem;
  }

  .footer-bottom__disclaimer {
    font-size: 0.65rem;
    line-height: 1.45;
  }
}

/* ─────────────────────────────────────────────────────────────
   JS-Hook: Remove [open] from <details> on mobile load
   so SEO content starts collapsed on phones.
   ───────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────
   Protected-Contact: Kopierschutz fuer Impressum/Datenschutz
   -------------------------------------------------------------
   Verhindert Text-Selektion + visuelles Markieren. Ergaenzt die
   JS-basierten copy/cut/contextmenu-Preventers in legal.js.
   Der mailto-Link bleibt klickbar (user-select sperrt keine Klicks).
   ───────────────────────────────────────────────────────────── */
.protected-contact,
.protected-contact * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* iOS: unterdrueckt Copy/Look-up-Popup */
}

.protected-contact::selection,
.protected-contact *::selection {
  background: transparent;
  color: inherit;
}

.protected-contact::-moz-selection,
.protected-contact *::-moz-selection {
  background: transparent;
  color: inherit;
}

/* mailto-Link trotzdem klickbar — Cursor spiegelt das wider. */
.protected-contact a[href^="mailto:"] {
  cursor: pointer;
}

/* ================================================================
   ARTICLE & SEO CONTENT
   ================================================================ */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  position: relative;
}

.article__hero-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article__breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.article__breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.article__breadcrumb a:hover {
  color: var(--text-dark);
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.article__meta-tag {
  background: rgba(204, 255, 0, 0.25);
  color: var(--text-dark);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.8rem;
}

.article h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.article__intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--community-yellow);
  padding-left: 1.25rem;
}

.article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
}

.article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.article p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.article ul, .article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.article p a, .article li a, .article__callout a, .article__step-text a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--community-yellow);
  text-decoration-thickness: 2px;
}

.article p a:hover, .article li a:hover, .article__callout a:hover, .article__step-text a:hover {
  background: rgba(204, 255, 0, 0.2);
}

/* Steps Card */
.article__steps {
  background: var(--bg-grey);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0 2rem;
  counter-reset: step;
}

.article__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  counter-increment: step;
}

.article__step:last-child {
  margin-bottom: 0;
}

.article__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: var(--text-dark);
  color: var(--community-yellow);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.article__step-text {
  padding-top: 0.35rem;
  line-height: 1.5;
}

.article__step-text strong {
  display: block;
  margin-bottom: 0.15rem;
}

/* Inline callout */
.article__callout {
  background: var(--card-black-bg);
  color: var(--card-black-text);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.article__callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--community-yellow);
}

.article__callout p {
  color: var(--card-black-desc);
  margin: 0;
}

.article__callout strong {
  color: var(--community-yellow);
}

.article .article__callout a {
  color: var(--community-yellow);
  text-decoration-color: var(--community-yellow);
}

/* Info table */
.article__info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.article__info-table th,
.article__info-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.article__info-table th {
  background: var(--text-dark);
  color: var(--bg-pure);
  font-weight: 700;
}

.article__info-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

.article__info-table tr:last-child td {
  border-bottom: none;
}

.article__info-table tr:nth-child(even) {
  background: var(--bg-grey);
}

/* CTA Section */
.article__cta {
  background: var(--bg-grey);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0 1rem;
}

.article__cta h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.article__cta p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.article__cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Trust Badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 255, 0, 0.1);
  border: 1px solid var(--community-yellow);
  color: var(--text-dark);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.trust-badge svg {
  flex-shrink: 0;
  color: #10b981; /* Green check */
}

@media (max-width: 640px) {
  .article {
    padding: 2rem 1.25rem 3rem;
  }

  .article h1 {
    font-size: 1.6rem;
  }

  .article__cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .article__steps {
    padding: 1.5rem;
  }
}

/* --- Scroll Offset für Anchor-Links (Navbar-Höhe) --- */
.article h2[id] {
  scroll-margin-top: 5rem;
}

/* --- Author Box (E-E-A-T Signal) — Kompakt --- */
.article__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  margin: 0;
}

.article__author-avatar {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article__author-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.article__author-name {
  font-weight: 700;
  color: var(--text-dark);
}

.article__author-label,
.article__author-bio {
  display: none;
}

/* --- Table of Contents (TOC) --- */
.article__toc {
  background: var(--bg-grey);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 1400px) {
  .article__toc {
    position: absolute;
    right: -260px;
    top: 14rem;
    width: 220px;
    margin: 0;
  }
}

.article__toc-title {
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.article__toc-list {
  margin: 0;
  padding-left: 1.25rem;
}

.article__toc-list li {
  margin: 0.3rem 0;
}

.article__toc-list a {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--community-yellow);
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.article__toc-list a:hover {
  color: var(--text-muted);
}

/* --- Related Articles Grid --- */
.article__related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  clear: both;
}

.article__related h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.article__related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.article__related-grid .card {
  padding: 1.25rem;
}

.article__related-grid .card__title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.article__related-grid .card__desc {
  font-size: 0.82rem;
}

@media (max-width: 580px) {
  .article__related-grid {
    grid-template-columns: 1fr;
  }
}


/* --- Theme Toggle --- */
.theme-toggle {
  background: var(--bg-grey);
  border: 1px solid var(--card-border);
  color: var(--text-dark);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-right: 1rem;
  transition: background 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.theme-toggle:hover {
  background: var(--bg-pure);
  border-color: var(--community-yellow);
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
}

/* Light Mode state (default): Show Moon, Hide/Rotate Sun */
.theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.3);
}

.theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Dark Mode state: Show Sun, Hide/Rotate Moon */
html[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.3);
}

@media (max-width: 768px) {
  .theme-toggle {
    margin-right: 0.5rem;
    width: 36px;
    height: 36px;
  }
  .theme-toggle__icon {
    width: 18px;
    height: 18px;
  }
}

