/* ============================================================
   STYLES.CSS (alle Seiten)
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Farben */
  --color-brand:      #574FF1;
  --color-accent:     #21abbf;
  --color-bg:         #4d49ba;
  --color-text:       #ffffff;
  --color-text-muted: rgb(223, 207, 207);
  --color-ink:        #1a1830;
  --ink-rgb:          26, 24, 48;
  --primary:          var(--color-brand);
  --primary-rgb:      87, 79, 241;
  --bg:               #FAFAFA;
  --text:             var(--color-ink);
  --muted:            #4B5263;
  --grey:             #9499A4;
  --border:           #E5E7EB;
  --ease-soft:        cubic-bezier(.2, .8, .2, 1);

  --layout-max: 1280px;
  --layout-pad: clamp(1rem, 5vw, 2.5rem);

  /* Abstände */
  --space-xs: 0.75rem;
  --space-s:  1rem;
  --space-m:  2rem;
  --space-l:  3rem;
  --space-xl: 5rem;

  /* Radien */
  --radius-s:    8px;
  --radius-m:    16px;
  --radius-l:    24px;
  --radius-full: 9999px;

  /* Pfeil */
  --arrow-w:    8px;
  --arrow-h:    13px;

  --font-light:   'VoldaSans-Light', system-ui, sans-serif;
  --font-regular: 'VoldaSans-Regular', system-ui, sans-serif;
  --font-semibold:    'VoldaSans-SemiBold', system-ui, sans-serif;
  --font-main:    'Chillax-Semibold', system-ui, sans-serif;
  --text-small: clamp(0.7rem, 0.9vw, 0.95rem);
  --text-note: 14px;
  --line-note: 1.5;
  --text-base: clamp(1.1rem, 1.05rem + 0.25vw, 1.2rem);
  --text-xl: clamp(2.25rem, 4vw, 3.5rem);

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
}

h1 {
  font-family: var(--font-main);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.2;
}

h2 {
  font-family: var(--font-main);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.2;
}

h3 {
  font-family: var(--font-semibold);
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0.1em;
}

h4 {
  font-family: var(--font-semibold);
  font-size: var(--text-base);
  line-height: 1.2;
}

h5 {
  font-family: var(--font-semibold);
  font-size: var(--text-base);
  line-height: 1.2;
}

@media (max-width: 480px) {
  :root {
    --text-base: clamp(1rem, 0.98rem + 0.2vw, 1.2rem);
  }

  h1 { font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  h2 { font-size: clamp(1.35rem, 5vw, 2rem);
  }
}


/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'VoldaSans-Regular';
  src: url('../fonts/VoldaSans/VoldaSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VoldaSans-Light';
  src: url('../fonts/VoldaSans/VoldaSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'VoldaSans-SemiBold';
  src: url('../fonts/VoldaSans/VoldaSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chillax-Semibold';
  src: url('../fonts/Chillax/Chillax-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6,
strong, b {
  font-weight: normal;
}

strong, b {
  font-family: var(--font-semibold);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-regular);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100dvh;
}

a { text-decoration: none; color: inherit;
}

img,
svg { display: block; max-width: 100%;
}

p {
  font-family: var(--font-light);
  font-size: var(--text-base);
  line-height: 1.65;
}

.text-white { color: #ffffff;
}

::selection {
  background: var(--color-brand);
  color: #ffffff;
}

::-moz-selection {
  background: var(--color-brand);
  color: #ffffff;
}


/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: var(--layout-pad);
}

.subpage {
  padding-block: clamp(2rem, 4vw, 3rem) 0;
}


/* ============================================================
   LOGO
   ============================================================ */
.site-logo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
  font-family: var(--font-main);
  font-size: clamp(1rem, 2.2vw, 2rem);
  color: var(--color-text);
  min-width: 0;
}

@media (min-width: 1024px) {
  .site-logo {
    grid-column: 2;
    justify-self: center;
  }
}


.site-logo__img {
  width: clamp(2.75rem, 5vw, 4rem);
  height: clamp(2.75rem, 5vw, 4rem);
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 70px;
  padding-inline: 2.25rem;
  border-radius: 18px;
  font-family: var(--font-semibold);
  font-size: 17px;
  letter-spacing: 0.1px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
}

.primary-button:active {
  opacity: 0.82;
  transform: scale(0.985);
}

@media (max-width: 480px) {
  .primary-button {
    height: 60px;
    font-size: 15px;
  }
}

.primary-button {
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(119, 105, 228, 0.35);
}

.primary-button:hover { background: #6859d4;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-semibold);
  font-size: var(--text-small);
  color: var(--color-brand);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.text-button:hover { color: #6859d4;
}

.text-button:hover .icon-arrow { transform: translateX(3px);
}

.text-button:hover .icon-arrow--left { transform: translateX(-3px);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .site-logo {
    font-size: 1rem;
    gap: 0.8rem;
  }

  .site-logo__img {
    width: 3rem;
    height: 3rem;
  }
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer-wrapper {
  background: #f3f0ff;
  padding: var(--space-l) var(--layout-pad);
  padding-bottom: calc(70px + var(--space-l) + env(safe-area-inset-bottom, 0px));
}

.site-footer {
  background: var(--primary);
  transition: background .6s var(--ease-soft);
  --footer-pad: 1.4rem;
  border-radius: var(--radius-l);
  max-width: calc(var(--layout-max) - 2 * var(--layout-pad));
  margin-inline: auto;
  color: #fff;
}

/* ── Footer oben ── */
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: var(--footer-pad) var(--footer-pad) 0;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.site-footer__brand .site-logo { margin-bottom: 2.75rem; }

.site-footer__brand .site-logo { gap: 12px; font-size: 26px; }
.site-footer__brand .site-logo__img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12); }
@media (max-width: 599px) {
  .site-footer__brand .site-logo { font-size: clamp(16px, 4.8vw, 19px); gap: clamp(6px, 2vw, 9px); }
  .site-footer__brand .site-logo__img { width: clamp(34px, 11vw, 42px); height: clamp(34px, 11vw, 42px); border-radius: 12px; }
}


.store-badges {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
}

/* ── Store-Badges ── */
.store-badge {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease);
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: scale(1.06);
}

.store-badge img {
  height: 44px;
  width: auto;
  display: block;
}

.site-footer .store-badge img { height: 46px; }
@media (min-width: 641px) { .site-footer .store-badge img { height: 52px; } }

.site-footer__label {
  margin: 0 0 0.85rem;
  font-family: var(--font-semibold);
  font-size: 20px;
  line-height: 1.2;
  color: #fff;
}

/* ── Social Media ── */
.site-footer__social-list {
  display: flex;
  gap: 18px;
}

.site-footer__social-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.16);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.site-footer__social-btn svg {
  width: 29px;
  height: 29px;
}

.site-footer__social-btn svg path:not([fill]) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__social-btn:hover,
.site-footer__social-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
}

/* ── Footer Mitte ── */
.site-footer__cards {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0.75rem var(--footer-pad);
}

.site-footer .site-footer__list {
  padding: 6px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.16);
}

.site-footer .site-footer__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 14px;
  font-family: var(--font-semibold);
  font-size: 16px;
  color: var(--color-ink);
}

.site-footer__row-label { flex: 1; min-width: 0; }

.site-footer .site-footer__list > * + *::before { left: 14px; right: 14px; }

.site-footer__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: color .6s var(--ease-soft);
}

.site-footer__ic svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__row .icon-arrow {
  color: #9499A4;
}

.site-footer__row:hover .icon-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

/* ── Pfeil-Icon ── */
/* Inline-SVG (snippets/icon-arrow.php), feste Größe aus --arrow-* */
.icon-arrow {
  display: inline-block;
  width: var(--arrow-w);
  height: var(--arrow-h);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
}


.icon-arrow--down { transform: rotate(90deg); }
.text-button:hover .icon-arrow--down { transform: rotate(90deg) translateX(3px); }

/* ── Footer unten ── */
.site-footer__bottom {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem var(--footer-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: var(--text-note);
  line-height: var(--line-note);
}

.site-footer__bottom p {
  color: rgba(255, 255, 255, 0.50);
}

.site-footer__copy { margin: 0; font-size: inherit; line-height: inherit; white-space: nowrap; }

.site-footer__made::before { content: "·"; margin: 0 0.6em; }
.site-footer__made .flag { display: inline-block; width: 20px; height: 12px; border-radius: 2px; margin: 0 1px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #fff;
  transition: color var(--dur-fast) var(--ease);
}

.site-footer__legal a:hover { color: rgba(255, 255, 255, 0.50); }


@media (min-width: 600px) {
  .site-footer__bottom { font-size: 15px; }
  .site-footer { --footer-pad: 2.2rem; }
}

@media (min-width: 641px) {
  .footer-wrapper { padding-inline: var(--layout-pad); }


  .site-footer__social-btn { width: 52px; height: 52px; }

  .site-footer__cards {
    gap: 1.75rem;
    padding: 2.25rem var(--footer-pad) var(--footer-pad);
  }

}

@media (min-width: 900px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .site-footer__social .site-footer__label { text-align: right; }

  .site-footer__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .site-footer__legal { justify-content: flex-end; }
}

@media (max-width: 640px) {
  .footer-wrapper {
    padding-inline: 0.75rem;
  }

  .site-footer__group .site-footer__label { padding-left: calc(var(--footer-pad) - 0.75rem); }
}


/* ── Download-Popup ── */
.download-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding-block: 0.5rem 1rem;
}

.download-badges__link {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease);
}

a.download-badges__link:hover,
a.download-badges__link:focus-visible {
  transform: scale(1.04);
}

.download-badges__link img {
  height: 56px;
  width: auto;
  display: block;
}

@media (max-width: 599px) {
  .download-badges { flex-wrap: nowrap; gap: 12px 18px; }
  .download-badges__link img { height: 44px; }
}
@media (max-width: 339px) {
  .download-badges { flex-wrap: wrap; }
}

.download-badges__note {
  text-align: center;
  color: var(--modal-ink-soft);
}

html:has(.modal-backdrop.is-open) {
  background-color: #ffffff;
}

/* ============================================================
   MODAL / POPUP
   ============================================================ */
:root {
  --modal-ink:       #1a1830;
  --modal-ink-soft:  rgba(26, 24, 48, 0.60);
  --modal-line:      rgba(26, 24, 48, 0.08);
  --modal-pad-x:     clamp(1.5rem, 4vw, 3.5rem);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 18, 60, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  position: relative;
  background: #ffffff;
  color: var(--modal-ink);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  width: 100%;
  max-width: 860px;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease);
  scrollbar-width: none;
  box-shadow: 0 -8px 40px rgba(20, 18, 60, 0.25);
}

.modal-sheet::-webkit-scrollbar { display: none;
}

.modal-backdrop.is-open .modal-sheet {
  transform: translateY(0);
}

@media (min-width: 600px) {
  .modal-backdrop {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: var(--layout-pad);
  }

  .modal-sheet {
    border-radius: var(--radius-l);
    max-height: 86svh;
    transform: translateY(12px) scale(0.98);
    box-shadow: 0 30px 90px rgba(20, 18, 60, 0.35);
  }

  .modal-backdrop.is-open .modal-sheet {
    transform: none;
  }
}

.modal-handle {
  flex: none;
  width: 44px;
  height: 5px;
  margin-bottom: 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(1.5rem);
  pointer-events: none;
  transition:
    opacity   var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}

.modal-backdrop.is-open .modal-handle {
  opacity: 1;
  transform: none;
}

@media (min-width: 600px) {
  .modal-handle { display: none;
  }
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: center;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.75rem var(--modal-pad-x) 1.75rem;
  border-bottom: 1px solid transparent;
  transition:
    padding var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
}

.modal-header.is-scrolled {
  padding-top: 2.2rem;
  padding-bottom: 1.6rem;
  border-bottom-color: var(--modal-line);
}

.modal-header .modal-title {
  font-family: var(--font-main);
  color: var(--modal-ink);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: normal;
  transition: font-size var(--dur-base) var(--ease);
}

.modal-header.is-scrolled .modal-title {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.modal-subtitle {
  color: var(--modal-ink-soft);
  margin-top: 0.6rem;
  max-height: 5rem;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height var(--dur-base) var(--ease),
    opacity    var(--dur-base) var(--ease),
    margin     var(--dur-base) var(--ease);
}

.modal-header.is-scrolled .modal-subtitle {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.modal-close {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(26, 24, 48, 0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--modal-ink);
  transition: background var(--dur-fast) var(--ease);
}

.modal-close:hover { background: rgba(26, 24, 48, 0.12);
}

.modal-body {
  padding: 1.5rem var(--modal-pad-x) clamp(2rem, 4vw, 3rem);
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(87, 79, 241, 0.15);
  color: var(--color-brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Premium-Badge ── */
.badge--premium {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 22px; padding: 0;
  background: var(--color-brand); color: #fff;
  font-size: 12px; letter-spacing: 0; text-transform: none; line-height: 1;
}
.badge--premium svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── KI-Badge ── */
.ai-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 22px; margin-left: 8px;
  border-radius: 20px;
  background: rgba(var(--primary-rgb, 87, 79, 241), .1);
  color: var(--text, var(--color-ink));
  vertical-align: .1em;
  transition: background-color .6s var(--ease-soft, cubic-bezier(.2, .8, .2, 1));
}
.ai-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-badge--link { border: 0; padding: 0; cursor: pointer; font: inherit; transition: filter var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.ai-badge--link:hover { filter: brightness(.94); }
.ai-badge--link:active { transform: scale(.94); }
.ai-badge--link:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

.badge--link {
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  transition: filter var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.badge--link:hover { filter: brightness(0.94);
}

.badge--link:active { transform: scale(0.96);
}

.badge--link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* ── Karten-Grid ── */
.news__grid,
.guides__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .news__grid,
  .guides__grid { grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .news__grid,
  .guides__grid { grid-template-columns: repeat(3, 1fr);
  }
}

.news__grid[hidden],
.post-card[hidden] {
  display: none;
}

/* ── Karten-Optik ── */
.post-card,
.tile-card {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow:
    0 1px 3px rgba(87, 79, 241, 0.06),
    0 8px 24px rgba(87, 79, 241, 0.07);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.post-card:hover,
.tile-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 6px rgba(87, 79, 241, 0.10),
    0 16px 36px rgba(87, 79, 241, 0.14);
}

.post-card,
.tile-card {
  padding: 1.5rem 1.6rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-card :is(h2,
h3) {
  color: var(--color-ink);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card p {
  color: rgba(var(--ink-rgb), 0.6);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
  margin-top: auto;
  color: var(--color-brand);
  font-size: var(--text-base);
  font-family: var(--font-semibold);
}

.post-card:hover .post-card__more .icon-arrow { transform: translateX(3px); }

.post__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-family: var(--font-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  line-height: 1;
}

.post__badge--update {
  background: rgba(87, 79, 241, 0.12);
  color: var(--color-brand);
}

.post__badge--guide {
  background: rgba(33, 171, 191, 0.14);
  color: #1590a3;
}

.post__badge--notice {
  background: rgba(230, 149, 0, 0.15);
  color: #b9740a;
}

.post__version {
  font-size: 0.72rem;
  font-family: var(--font-semibold);
  color: rgba(var(--ink-rgb), 0.5);
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(var(--ink-rgb), 0.05);
  line-height: 1;
}

.post__date {
  font-size: var(--text-small);
  color: rgba(var(--ink-rgb), 0.45);
  margin-left: auto;
}

.post__body {
  margin-top: 1.5rem;
}

.post__body h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
}

.post__body h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.2;
}

.post__body h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.post__body h4 {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

#news-modal-content .post__meta {
  margin-bottom: 0.5rem;
}

.post__body figure {
  margin: 1.5rem 0;
}

.post__body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  display: block;
}

.post__body figure[data-ratio]:not([data-ratio="auto"]) img {
  height: auto;
  object-fit: contain;
}

.post__body figure[data-ratio][data-crop]:not([data-ratio="auto"]) img {
  object-fit: cover;
}

.post__body figure[data-ratio="1/1"]  img { aspect-ratio: 1 / 1;
}

.post__body figure[data-ratio="16/9"] img { aspect-ratio: 16 / 9;
}

.post__body figure[data-ratio="10/8"] img { aspect-ratio: 10 / 8;
}

.post__body figure[data-ratio="21/9"] img { aspect-ratio: 21 / 9;
}

.post__body figure[data-ratio="7/5"]  img { aspect-ratio: 7 / 5;
}

.post__body figure[data-ratio="4/3"]  img { aspect-ratio: 4 / 3;
}

.post__body figure[data-ratio="5/3"]  img { aspect-ratio: 5 / 3;
}

.post__body figure[data-ratio="3/2"]  img { aspect-ratio: 3 / 2;
}

.post__body figure[data-ratio="3/1"]  img { aspect-ratio: 3 / 1;
}

.post__body figure figcaption {
  font-size: var(--text-small);
  color: rgba(26, 24, 48, 0.5);
  margin-top: 0.5rem;
}

.post__body blockquote {
  border-left: 3px solid rgba(87, 79, 241, 0.3);
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: rgba(26, 24, 48, 0.7);
  font-style: italic;
}


/* ============================================================
   BLOCK-INHALT
   ============================================================ */
.infopage__body h2,
.infopage__body h3,
.infopage__body h4 {
  color: #1a1830;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.infopage__body h2:first-child,
.infopage__body h3:first-child,
.infopage__body h4:first-child {
  margin-top: 0;
}

.infopage__body h3 {
  text-transform: none;
  letter-spacing: 0;
  color: rgba(26, 24, 48, 0.75);
}

.infopage__body :is(p, ul, ol) {
  max-width: 75ch;
}

.infopage__body p {
  color: rgba(26, 24, 48, 0.68);
  margin-bottom: 1rem;
}

.infopage__body a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.infopage__body ul,
.infopage__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: rgba(26, 24, 48, 0.68);
}

.infopage__body li {
  margin-bottom: 0.35rem;
  font-size: var(--text-base);
  line-height: 1.65;
}

.infopage__body h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
}

.infopage__body h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.2;
}

.infopage__body h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.infopage__body h4 {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}


/* ============================================================
   FUNKTIONEN-POPUP
   ============================================================ */
.features-modal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.features-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.features-section + .features-section {
  padding-top: 2.5rem;
}

.features-section__title {
  font-family: var(--font-main);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: normal;
  color: var(--color-ink);
}

.list-icon {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
  padding: 0;
  margin: 0;
}

@media (max-width: 640px) {
  .list-icon {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.list-icon__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.list-icon__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(26%) sepia(92%) saturate(1400%) hue-rotate(238deg) brightness(104%);
  margin-top: 2px;
}

.list-icon__body {
  min-width: 0;
  flex: 1;
}

.list-icon__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.list-icon__head .ai-badge { margin-left: 0; }

.list-icon__title {
  color: var(--modal-ink);
  margin: 0;
  font-size: var(--text-base);
}

.list-icon__text {
  color: var(--modal-ink-soft);
  margin: 0;
}

.features-modal-note {
  margin: 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--modal-line);
  color: var(--modal-ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  scroll-margin-top: 5rem;
}

.features-modal-note .badge,
.features-modal-note .ai-badge {
  vertical-align: middle;
  margin: 0 0.15em;
}

.features-modal-note + .features-modal-note {
  padding-top: 0.6rem;
  border-top: none;
}

/* ============================================================
   KI-KENNZEICHNUNG
   ============================================================ */
.ai-image-note {
  position: absolute; z-index: 3;
  right: 10px; bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .12);
  color: var(--color-ink);
  font-size: 12px; line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   UMBRUCH
   ============================================================ */
h1, h2, h3, h4, h5, h6, summary, figcaption, label, button { text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }

/* ── Fußnoten ── */
.note {
  margin: 0;
  font-size: var(--text-note);
  line-height: var(--line-note);
  color: var(--grey);
  text-wrap: balance;
}

/* ============================================================
   LISTEN-KARTE
   ============================================================ */
.list-card {
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border-radius: var(--radius-l);
  box-shadow: 0 1px 3px rgba(87, 79, 241, .06), 0 8px 24px rgba(87, 79, 241, .07);
}
.list-card > * + * { position: relative; }
.list-card > * + *::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--border, #E5E7EB); transition: opacity .25s var(--ease-soft, cubic-bezier(.2, .8, .2, 1)); }
.list-card > :hover::before, .list-card > :hover + *::before,
.list-card > [open]::before, .list-card > [open] + *::before { opacity: 0; }
.list-card__row {
  display: block; padding: 20px 22px;
  border-radius: calc(var(--radius-l) - 6px);
  color: var(--text, var(--color-ink)); text-decoration: none;
  transition: background-color .25s var(--ease-soft, cubic-bezier(.2, .8, .2, 1));
  box-shadow: inset 0 0 0 3px #fff;
}
.list-card__row[open] { background: rgba(var(--primary-rgb, 87, 79, 241), .03); }
.list-card__row:hover { background: rgba(var(--primary-rgb, 87, 79, 241), .05); }
.list-card__go {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(var(--primary-rgb, 87, 79, 241), .08); color: var(--primary, var(--color-brand));
  transition: background-color .25s var(--ease-soft, cubic-bezier(.2, .8, .2, 1)), color .25s var(--ease-soft, cubic-bezier(.2, .8, .2, 1));
}
.list-card__go .icon-arrow {
  rotate: 90deg;
  transition: transform .3s var(--ease-soft, cubic-bezier(.2, .8, .2, 1)), translate .3s var(--ease-soft, cubic-bezier(.2, .8, .2, 1));
}
.list-card__row:hover .list-card__go { background: var(--primary, var(--color-brand)); color: #fff; }
.list-card__row:hover .list-card__go .icon-arrow { translate: 0 2px; }
.list-card__row[open] .list-card__go .icon-arrow { transform: rotate(180deg); }
/* ── Aufklappbare Zeile ── */
.list-card summary {
  padding: 20px 22px;
  list-style: none; cursor: pointer;
  font-family: var(--font-semibold); font-size: 18px; line-height: 1.4; color: var(--color-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.list-card summary::-webkit-details-marker { display: none; }
.list-card summary:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 4px; border-radius: 12px; }
.list-card__row:is(details) { padding: 0; }
.list-card__answer { color: var(--muted, #4B5263); padding: 0 22px 20px; display: grid; gap: 10px; }
.list-card__answer > * { margin: 0; }
.list-card__answer a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }
.list-card__row { interpolate-size: allow-keywords; }
.list-card__row::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease-soft, cubic-bezier(.2, .8, .2, 1)), content-visibility .35s allow-discrete; }
.list-card__row[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .list-card__row::details-content { transition: none; } }

@media (max-width: 599px) {
  .list-card__row { padding: 18px 16px; }
  .list-card summary { padding: 18px 16px; }
  .list-card__answer { padding: 0 16px 18px; }
  .list-card__go { width: 34px; height: 34px; }}
