/**
 * MyNxMail - Die neue Generation von E-Mail
 * Modern, clean, distinctive
 */

/* Dark theme (default) */
:root,
[data-theme="dark"] {
  --bg-dark: #0a0e17;
  --bg-card: #111827;
  --bg-input: #1f2937;
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --accent-dim: rgba(6, 182, 212, 0.15);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #374151;
  --success: #10b981;
  --error: #ef4444;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light theme */
[data-theme="light"] {
  --bg-dark: #f3f4f6;
  --bg-card: #ffffff;
  --bg-input: #e5e7eb;
  --accent: #0891b2;
  --accent-hover: #0e7490;
  --accent-dim: rgba(8, 145, 178, 0.12);
  --text: #111827;
  --text-muted: #6b7280;
  --border: #d1d5db;
}

/* System theme: follow OS preference */
@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --bg-dark: #f3f4f6;
    --bg-card: #ffffff;
    --bg-input: #e5e7eb;
    --accent: #0891b2;
    --accent-hover: #0e7490;
    --accent-dim: rgba(8, 145, 178, 0.12);
    --text: #111827;
    --text-muted: #6b7280;
    --border: #d1d5db;
  }
}
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-input: #1f2937;
    --accent: #06b6d4;
    --accent-hover: #22d3ee;
    --accent-dim: rgba(6, 182, 212, 0.15);
    --text: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #374151;
  }
}

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

html {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
}

/* Landing */
.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-dim), transparent),
    var(--bg-dark);
  overflow-x: hidden;
  overflow-y: visible;
}

.landing > nav:not(.landing-header) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem 0.8rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.landing .logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.landing .logo span { color: var(--accent); }

.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;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.brand-logo:hover {
  opacity: 0.95;
}

.brand-logo__img {
  height: auto;
  width: auto;
  max-height: 2.45rem;
  display: block;
  object-fit: contain;
}

.brand-logo__img--auth {
  max-height: 3.1rem;
}

.brand-logo__img--blog {
  max-height: 2.4rem;
}

.brand-logo__img--webmail {
  max-height: 1.95rem;
}

.brand-logo__img--compact {
  max-height: 2rem;
}

/* PNGs mit schwarzer Fläche auf dunklem UI weich einbinden (Logo, Header, Webmail, Footer, Auth) */
.landing-header__logo .brand-logo__img,
.landing > nav .brand-logo .brand-logo__img,
.legal-page .brand-logo .brand-logo__img,
.footer-brand .brand-logo .brand-logo__img,
.webmail-app .webmail-sidebar .logo .brand-logo__img,
.auth-page .auth-brand-logo .brand-logo__img,
.blog-page .blog-page__logo.brand-logo .brand-logo__img {
  mix-blend-mode: lighten;
}

.hero-brand-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.hero-brand-mark__img {
  width: min(280px, 78vw);
  height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 14px 36px rgba(6, 182, 212, 0.18));
  mix-blend-mode: lighten;
}

.landing > nav:not(.landing-header) .nav-links {
  display: flex;
  gap: 1.15rem;
  flex-wrap: nowrap;
}
.landing > nav:not(.landing-header) .nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.landing > nav:not(.landing-header) .nav-links a:hover { color: var(--text); }

/* Startseite: Sticky-Header, Gruppen, Hamburger < 900px */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0.75rem clamp(1rem, 3vw, 1.75rem);
  border-bottom: 1px solid rgba(55, 65, 81, 0.45);
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] .landing-header {
  background: rgba(243, 244, 246, 0.92);
}

[data-theme="light"] .landing-header__logo .brand-logo__img,
[data-theme="light"] .landing > nav .brand-logo .brand-logo__img,
[data-theme="light"] .legal-page .brand-logo .brand-logo__img,
[data-theme="light"] .footer-brand .brand-logo .brand-logo__img,
[data-theme="light"] .webmail-app .webmail-sidebar .logo .brand-logo__img,
[data-theme="light"] .auth-page .auth-brand-logo .brand-logo__img,
[data-theme="light"] .landing .hero-brand-mark__img,
[data-theme="light"] .landing .hero-visual__img,
[data-theme="light"] .feature-card__img,
[data-theme="light"] .blog-page .blog-page__logo.brand-logo .brand-logo__img {
  mix-blend-mode: normal;
}

.landing-header__logo {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.landing-header__toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.2s, background 0.2s;
}
.landing-header__toggle:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.landing-header__toggle-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.landing-header__toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}
.landing-header__toggle-line {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: currentColor;
}
.landing-header__toggle-x {
  display: none;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: inherit;
}
.landing-header.is-open .landing-header__toggle-bars {
  display: none;
}
.landing-header.is-open .landing-header__toggle-x {
  display: block;
}
.landing-header__backdrop {
  display: none;
}
.landing-header__panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  flex: 1;
  min-width: 0;
}
.landing-header__scroll {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.landing-header__group {
  display: flex;
  align-items: center;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
}
.landing-header__group-label {
  display: none;
}
.landing-header__links {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}
.landing-header__links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.landing-header__links a:hover {
  color: var(--text);
  background: rgba(6, 182, 212, 0.08);
}
.landing-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  padding-left: 1rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--border);
}
.landing-header__login {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.landing-header__login:hover {
  color: var(--accent);
  background: var(--accent-dim);
}
.landing-header__register {
  font-size: 0.875rem !important;
  padding: 0.5rem 1.1rem !important;
  white-space: nowrap;
}

/* Desktop: eine Zeile, kein „zweite Reihe“, volle Breite, ruhiger als „Schwebe-Karte“ */
@media (min-width: 901px) {
  .landing-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem 1.25rem;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0.7rem clamp(1.25rem, 4vw, 2.5rem);
    top: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(55, 65, 81, 0.55);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    background: rgba(10, 14, 23, 0.97);
  }
  [data-theme="light"] .landing-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(209, 213, 219, 0.9);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  }
  .landing .landing-header__logo {
    font-size: 1.55rem;
  }
  .landing-header__panel {
    display: contents;
  }
  .landing-header__group {
    display: contents;
  }
  .landing-header__links {
    display: contents;
  }
  .landing-header__scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
    padding: 0 0.35rem;
    /* alle <a> direkt unter .landing-header__scroll */
    -webkit-overflow-scrolling: touch;
  }
  .landing-header__scroll a {
    color: rgba(243, 244, 246, 0.72);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    flex: 0 0 auto;
  }
  [data-theme="light"] .landing-header__scroll a {
    color: rgba(17, 24, 39, 0.72);
  }
  .landing-header__scroll a:hover {
    color: var(--text);
    background: rgba(6, 182, 212, 0.12);
  }
  .landing-header__actions {
    border-left: 1px solid rgba(55, 65, 81, 0.65);
    padding-left: 1rem;
    margin-left: 0;
    gap: 0.5rem;
  }
  [data-theme="light"] .landing-header__actions {
    border-left-color: rgba(209, 213, 219, 0.95);
  }
  .landing-header__login {
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
  }
  .landing-header__register {
    font-size: 0.9rem !important;
    padding: 0.55rem 1.15rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 12px rgba(6, 182, 212, 0.25);
  }
  .landing-header__more {
    position: relative;
    flex: 0 0 auto;
  }
  .landing-header__more-summary {
    list-style: none;
    cursor: pointer;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
    color: rgba(243, 244, 246, 0.72);
    transition: background 0.2s, color 0.2s;
  }
  .landing-header__more-summary::-webkit-details-marker {
    display: none;
  }
  .landing-header__more-summary::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.35rem;
    vertical-align: middle;
    border: 4px solid transparent;
    border-top-color: currentColor;
    opacity: 0.7;
  }
  [data-theme="light"] .landing-header__more-summary {
    color: rgba(17, 24, 39, 0.72);
  }
  .landing-header__more[open] .landing-header__more-summary,
  .landing-header__more-summary:hover {
    color: var(--text);
    background: rgba(6, 182, 212, 0.12);
  }
  .landing-header__more-inner {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    padding: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    z-index: 8100;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .landing-header__more-inner a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
  }
  .landing-header__more-inner a:hover {
    background: var(--bg-input);
    color: var(--text);
  }
}

/* Schmale Desktops: horizontales Scrollen statt Umbruch */
@media (min-width: 901px) and (max-width: 1200px) {
  .landing-header__scroll {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }
}

html.landing-nav-open {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
}
body.landing-nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 900px) {
  .landing-header__toggle {
    display: inline-flex;
  }
  /* Logo darf nicht über dem Drawer liegen (sonst überdeckt es „PRODUKT“ / Inhalt) */
  .landing-header.is-open .landing-header__logo {
    z-index: 0;
  }
  .landing-header.is-open .landing-header__toggle {
    z-index: 8030;
    border-color: rgba(6, 182, 212, 0.55);
  }
  /* Keine volle Blur-Leiste über dem Menü — nur Schließen-Button schwebt oben */
  .landing-header.is-open {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  [data-theme="light"] .landing-header.is-open {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Direktes Kind von .landing — nicht im sticky nav, damit Touch/Stacking zuverlässig */
  .landing-header__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 7990;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }
  body.landing-nav-open .landing-header__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .landing-header__panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 340px);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.1rem 1.25rem 1.5rem;
    padding-top: max(1.1rem, env(safe-area-inset-top));
    gap: 0;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
    transform: translateX(102%);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    z-index: 8020;
  }
  .landing-header.is-open .landing-header__panel {
    transform: translateX(0);
  }
  .landing-header__scroll {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 1.25rem;
    justify-content: flex-start;
  }
  .landing-header__group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .landing-header__group-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.15rem;
  }
  .landing-header__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .landing-header__links a {
    white-space: normal;
    padding: 0.55rem 0.75rem;
    font-size: 0.9375rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
  }
  .landing-header__links a:hover {
    background: var(--bg-input);
    border-color: rgba(6, 182, 212, 0.35);
  }
  .landing-header__more {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.04);
    overflow: hidden;
  }
  .landing-header__more-summary {
    list-style: none;
    padding: 0.65rem 0.85rem;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: pointer;
  }
  .landing-header__more-summary::-webkit-details-marker {
    display: none;
  }
  .landing-header__more-inner {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.5rem 0.65rem;
  }
  .landing-header__more-inner a {
    padding: 0.55rem 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-input);
  }
  .landing-header__more-inner a:hover {
    border-color: rgba(6, 182, 212, 0.35);
    color: var(--text);
  }
  .landing-header__actions {
    margin-top: auto;
    padding-top: 1.25rem;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .landing-header__login {
    text-align: center;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    background: var(--bg-input);
  }
  .landing-header__register {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-header__panel,
  .landing-header__backdrop {
    transition: none !important;
  }
}

.landing .hero {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.5rem 3.25rem;
}

.landing .hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  margin-top: 0.35rem;
}

/* Exklusivitäts-Bar – im gleichen Farbraum wie der Rest (Cyan, kein Orange-Konflikt) */
.landing .exclusivity-bar {
  width: 100%;
  max-width: 420px;
  margin-bottom: 1.25rem;
  margin-top: 0.25rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.14) 0%, rgba(6, 182, 212, 0.04) 55%, rgba(10, 14, 23, 0.6) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(6, 182, 212, 0.08);
  animation: exclusivity-pulse-cyan 4s ease-in-out infinite;
}
@keyframes exclusivity-pulse-cyan {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(6, 182, 212, 0.06); }
  50% { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 12px 44px rgba(6, 182, 212, 0.14); }
}
.landing .exclusivity-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.landing .exclusivity-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.landing .exclusivity-count {
  font-size: 1.05rem;
  color: var(--text);
}
.landing .exclusivity-count strong {
  font-size: 1.35rem;
  color: var(--accent-hover);
  font-weight: 800;
}
.landing .exclusivity-progress {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  overflow: hidden;
}
.landing .exclusivity-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.landing .hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing .hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.landing .cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.landing .hero-visual {
  margin-top: 2.25rem;
  width: 100%;
  max-width: min(1100px, 100%);
  padding: 0 0.5rem;
}

.landing .hero-visual__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  mix-blend-mode: lighten;
}

.landing .hero p.hero-sub {
  max-width: 40rem;
  line-height: 1.65;
}

.landing .hero p.hero-sub strong {
  color: var(--text);
}

.landing-seo-block {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  scroll-margin-top: 5rem;
}

.landing-seo-block__inner {
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  background: rgba(6, 182, 212, 0.06);
}

.landing-seo-block h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  margin: 0 0 1rem;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

.landing-seo-block p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-muted);
  text-align: left;
}

.landing-seo-block p:last-child {
  margin-bottom: 0;
}

.landing-seo-block a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.landing-seo-block a:hover {
  color: var(--accent-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: 
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--accent-dim), transparent),
    var(--bg-dark);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.auth-brand-row {
  text-align: center;
  margin: -0.25rem 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.auth-brand-logo {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}
.auth-brand-logo span {
  color: var(--accent);
}
.auth-brand-logo:hover {
  color: var(--text);
}
.auth-brand-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.auth-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input::placeholder {
  color: var(--text-muted);
}
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.auth-card .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  margin-top: 0.5rem;
}

.auth-card .footer-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.auth-card .footer-link a { color: var(--accent); }

/* Login/Register mobile polish */
.auth-page .donate-strip {
  width: 100%;
  max-width: 460px;
}
.auth-card .verify-actions {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}
.auth-card .pool-badge {
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  line-height: 1.45;
}
.auth-card .email-inline-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.auth-card .recovery-tab-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.auth-card small {
  display: block;
  margin-top: 0.45rem;
}
.auth-card .alert {
  border-radius: 12px;
}
.auth-card input[type="checkbox"] {
  accent-color: var(--accent);
}

@media (max-width: 768px) {
  .auth-page {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.9rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .auth-card {
    max-width: 100%;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 14px 32px -16px rgba(0, 0, 0, 0.65);
  }

  .auth-card h1 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .auth-card .subtitle {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .form-group {
    margin-bottom: 0.95rem;
  }

  .form-group label {
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 48px;
    font-size: 16px; /* iOS zoom prevention */
  }

  .auth-card .btn {
    min-height: 48px;
    padding: 0.8rem 1rem;
    font-size: 0.98rem;
    border-radius: 10px;
  }

  .auth-card .email-inline-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .auth-card .email-inline-group span {
    font-size: 0.9rem;
  }

  .auth-card .recovery-tab-switch .btn {
    margin-top: 0;
    width: auto;
    min-height: 42px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .auth-card .footer-link {
    margin-top: 1rem;
    font-size: 0.88rem;
  }

  .donate-strip {
    padding: 0.8rem 1rem;
    gap: 0.6rem;
  }
  .auth-page .donate-strip {
    max-width: 100%;
    margin-top: 0.7rem;
  }

  .donate-strip p {
    min-width: 0;
    font-size: 0.9rem;
  }
}

/* Webmail */
.webmail {
  display: flex;
  height: 100vh;
  background: var(--bg-dark);
}

.webmail-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.webmail-sidebar .logo {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.webmail-sidebar .logo span { color: var(--accent); }

.webmail-sidebar .compose-btn {
  margin: 1rem 1rem 0;
}

.webmail-folders {
  flex: 1;
  padding: 1rem 0;
}
.webmail-folders a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.webmail-folders a:hover, .webmail-folders a.active {
  color: var(--text);
  background: var(--accent-dim);
}
.webmail-folders a.active { color: var(--accent); }

.webmail-user {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.webmail-user strong { color: var(--text); }

.webmail-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.webmail-toolbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.webmail-toolbar input {
  flex: 1;
  max-width: 400px;
  padding: 0.6rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.webmail-list {
  flex: 1;
  overflow-y: auto;
}
.webmail-list .empty {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.email-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.email-row:hover { background: var(--bg-card); }
.email-row.unread { font-weight: 500; }
.email-row .from { flex: 0 0 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-row .subject { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-row .date { flex: 0 0 80px; font-size: 0.85rem; color: var(--text-muted); }

.webmail-view {
  flex: 1;
  min-width: 0;
  padding: 2rem;
  overflow-y: auto;
}
.webmail-view .email-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.webmail-view .email-header h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.webmail-view .email-header .meta { color: var(--text-muted); font-size: 0.9rem; }
.webmail-view .email-body {
  line-height: 1.7;
  color: var(--text);
  width: 100%;
  min-width: 0;
}
.webmail-view .email-body pre { white-space: pre-wrap; }
.webmail-view .email-body-iframe {
  display: block;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  min-height: 400px;
  border: none;
  background: #fff;
  box-sizing: border-box;
}

/* Compose Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-overlay[hidden] {
  display: none !important;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
}
.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Modal-Formulare: einheitlich und touch-freundlich */
.modal .form-row {
  margin-bottom: 1.25rem;
}
.modal .form-row:last-of-type { margin-bottom: 0; }
.modal .form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.modal .form-row input[type="text"],
.modal .form-row input[type="email"],
.modal .form-row input[type="datetime-local"],
.modal .form-row textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  min-height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
}
.modal .form-row textarea {
  min-height: 80px;
  resize: vertical;
}
.modal .form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.modal .form-row .btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; margin-right: 0.5rem; margin-top: 0.5rem; }
.modal .form-error {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--error, #ef4444);
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.alert-error { background: rgba(239,68,68,0.15); color: var(--error); }
.alert-success { background: rgba(16,185,129,0.15); color: var(--success); }
.alert-warning { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.alert-info { background: rgba(6,182,212,0.12); color: var(--accent); border: 1px solid rgba(6,182,212,0.25); }

/* Landing - Features & More */
.landing .nav-cta { color: var(--accent) !important; }
.landing .nav-cta:hover { color: var(--accent-hover) !important; }

.features, .how-it-works, .cta-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.features h2, .how-it-works h2, .cta-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.features p, .how-it-works p, .cta-section > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.12);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card__img {
  width: auto;
  max-height: 72px;
  max-width: min(100%, 140px);
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  mix-blend-mode: lighten;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; text-align: left; }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; margin: 0; text-align: center; }

.privacy-badge {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.privacy-badge-inner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(6, 182, 212, 0.08);
}

.privacy-badge h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.privacy-badge p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.landing-faq-teaser {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.landing-faq-teaser h2 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.faq-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.faq-teaser-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.faq-teaser-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.faq-teaser-item p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.landing-faq-teaser > p { text-align: center; }

.cta-section {
  text-align: center;
  margin-top: 2rem;
}
.cta-section .btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.cta-section .cta-urgency {
  color: #f97316 !important;
  font-weight: 600;
  margin-bottom: 0.5rem !important;
}
.cta-section .cta-urgency strong { font-size: 1.15em; }

/* Google AdSense / Anzeige vor dem Footer (optional, wenn Slot in .env) */
.landing-ad-wrap {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}
.landing-ad-inner {
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem 1rem;
  background: rgba(6, 182, 212, 0.04);
  overflow: hidden;
  min-height: 90px;
}
.landing-ad-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.landing-ad-unit { min-height: 50px; }

.landing-footer {
  margin-top: auto;
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand { font-weight: 700; }
.footer-brand span { color: var(--accent); }
.footer-brand .brand-logo__img,
.footer-brand .brand-logo__img--compact {
  max-height: 1.35rem;
  width: auto;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* Legal Pages */
.legal-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-dark);
  padding: 2rem;
  padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.legal-page header {
  max-width: 800px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.legal-page .logo { font-weight: 700; }
.legal-page .logo span { color: var(--accent); }
.legal-page .brand-logo .brand-logo__img { max-height: 2.35rem; }
.legal-page header a { color: var(--text-muted); font-size: 0.9rem; }

.legal-page main {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  padding-bottom: 3rem;
  overflow: visible;
}

.legal-page h1 { font-size: 1.75rem; margin-bottom: 1.5rem; }

.legal-page .privacy-hero {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.legal-page .privacy-hero .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}
.legal-page .legal-note { margin-top: 2rem; font-size: 0.9rem; }
.legal-page h2 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; color: var(--text); }
.legal-page h3 { font-size: 1rem; margin: 1rem 0 0.5rem; color: var(--text); }
.legal-page h4 {
  font-size: 0.95rem;
  margin: 0.85rem 0 0.4rem;
  color: var(--text);
  font-weight: 600;
}
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.legal-page ul { margin: 0.5rem 0 1rem 1.5rem; }
/* Nur Fließtext-Links – nicht .btn (sonst Cyan auf Cyan bei .btn-primary = unsichtbar) */
.legal-page main a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
}
.legal-page main a:not(.btn):hover {
  color: var(--accent);
  text-decoration: underline;
}

.legal-page main .btn.btn-primary {
  color: var(--bg-dark);
  text-decoration: none;
}
.legal-page main .btn.btn-primary:hover {
  color: var(--bg-dark);
  text-decoration: none;
}
.legal-page main .btn.btn-secondary {
  color: var(--text);
  text-decoration: none;
}
.legal-page main .btn.btn-secondary:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .legal-page {
    padding: 1rem;
  }
  .legal-page main {
    padding: 1.5rem;
    border-radius: 12px;
  }
  .legal-page h1 {
    font-size: 1.5rem;
  }
}

.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.05rem; }
.faq-item p { margin: 0; }

/* Landing: Header mobil (nur klassische nav, nicht landing-header) */
@media (max-width: 768px) {
  .landing > nav:not(.landing-header) {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
  }
  .landing > nav:not(.landing-header) .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
  }
  .landing > nav:not(.landing-header) .nav-links a {
    font-size: 0.9rem;
  }
  .landing > nav:not(.landing-header) .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
  }
  .landing .hero {
    padding: 1.25rem 1rem 2.25rem;
  }
  .landing .hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
  .landing .hero p {
    font-size: 1.05rem;
  }
  .features,
  .how-it-works,
  .cta-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Modal: Mobil optimiert */
@media (max-width: 480px) {
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-start;
  }
  .modal {
    max-height: none;
    border-radius: 12px;
  }
  .modal-header {
    padding: 1rem 1rem;
    font-size: 1.1rem;
  }
  .modal-body {
    padding: 1rem 1rem;
  }
  .modal-footer {
    padding: 1rem 1rem;
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
  .modal-footer .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    justify-content: center;
  }
  .modal .form-row input[type="datetime-local"] {
    min-height: 48px;
    font-size: 16px; /* verhindert Zoom auf iOS */
  }
}

/* Cookie-Hinweis (unten, unter Beta-Popup) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99900;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 23, 0.97) 12%);
  pointer-events: none;
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner-inner {
  pointer-events: auto;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}
.cookie-banner-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1 1 220px;
}
.cookie-banner-text a {
  color: var(--accent);
  font-weight: 500;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cookie-banner .btn-sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}
@media (max-width: 560px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-banner-actions .btn-sm {
    flex: 1;
    min-width: 0;
  }
}

/* Beta-Popup */
.beta-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.beta-popup-overlay[hidden] {
  display: none !important;
}
.beta-popup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.beta-popup-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.beta-popup h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}
.beta-popup p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.beta-popup-muted {
  font-size: 0.85rem !important;
  opacity: 0.9;
}
.beta-popup-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

/* Spenden-Streifen (Landing, Auth) */
.donate-strip {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0.04) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  justify-content: space-between;
}
.donate-strip p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}
.donate-strip .btn-donate {
  flex-shrink: 0;
}
/* Spenden-Karte im Hero: schmal, zentriert, dezenter CTA (kein breiter Zwei-Spalter) */
.hero-donate {
  width: 100%;
  max-width: 22.5rem;
  margin: 0 auto 1.15rem;
  padding: 0 0.75rem;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}
.donate-card--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 1.15rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  background: linear-gradient(
    165deg,
    rgba(6, 182, 212, 0.11) 0%,
    rgba(10, 14, 23, 0.72) 55%,
    rgba(6, 182, 212, 0.05) 100%
  );
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
[data-theme="light"] .donate-card--hero {
  background: linear-gradient(165deg, rgba(6, 182, 212, 0.12) 0%, #fff 50%, rgba(6, 182, 212, 0.06) 100%);
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}
.donate-card__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.donate-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.donate-card__text strong {
  color: var(--text);
  font-weight: 600;
}
.donate-card--hero .btn.btn-donate-hero {
  margin-top: 0.15rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.42);
  box-shadow: none;
  transform: none;
}
.donate-card--hero .btn.btn-donate-hero:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: none;
}
[data-theme="light"] .donate-card--hero .btn.btn-donate-hero {
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.45);
}
[data-theme="light"] .donate-card--hero .btn.btn-donate-hero:hover {
  background: rgba(6, 182, 212, 0.14);
  color: #0f766e;
}
@media (min-width: 640px) {
  .hero-donate {
    max-width: 24rem;
    margin-bottom: 1.25rem;
  }
  .donate-card--hero {
    padding: 1.1rem 1.35rem 1.2rem;
  }
}
@media (max-width: 640px) {
  .hero-donate {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}
@media (max-width: 1180px) {
  .landing > nav:not(.landing-header) {
    max-width: 1200px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .landing > nav:not(.landing-header) .nav-links {
    gap: 0.8rem;
  }
  .landing > nav:not(.landing-header) .nav-links a {
    font-size: 0.86rem;
  }
}
/* Einzelne Zeile nach Umbruch: Button nicht am linken Rand kleben */
.donate-strip {
  justify-content: center;
}
@media (min-width: 520px) {
  .donate-strip {
    justify-content: space-between;
  }
}
.landing-footer .footer-donate {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.landing-footer .footer-donate a {
  color: var(--accent);
  font-weight: 600;
}

/* --- Über uns (v2) & Kontakt --- */
body.about-body {
  background:
    radial-gradient(ellipse 90% 50% at 50% -15%, rgba(6, 182, 212, 0.12), transparent 52%),
    var(--bg-dark);
}

.about-page--v2 main {
  max-width: 56rem;
}

.contact-page .contact-lead {
  max-width: 46rem;
}

.about-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.about-headline {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.about-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 42rem;
}

.about-lead strong {
  color: var(--text);
}

.about-nobr {
  white-space: nowrap;
}

.about-top {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .about-top {
    grid-template-columns: 1fr minmax(260px, 300px);
    gap: 2rem;
  }
}

.about-top__intro {
  padding-top: 0.25rem;
}

.about-studio-card {
  position: relative;
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(6, 182, 212, 0.12) 0%, var(--bg-card) 45%);
  border: 1px solid rgba(6, 182, 212, 0.28);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.about-studio-card__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.about-studio-card__brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.about-studio-card__line {
  margin: 0.5rem 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.about-studio-card__btn {
  width: 100%;
  max-width: 100%;
  text-align: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.about-studio-card__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.about-pillars {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .about-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

.about-pillar {
  padding: 1.25rem 1.2rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.about-pillar:hover {
  border-color: rgba(6, 182, 212, 0.35);
}

.about-pillar__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
}

.about-pillar__icon svg {
  flex-shrink: 0;
}

.about-pillar__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.about-pillar__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-cta--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(6, 182, 212, 0.08);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.about-cta--inline .btn {
  margin: 0;
}

/* Kontakt */
.contact-page--v2 main {
  max-width: 56rem;
}

.contact-form-panel {
  margin: 0 0 2rem;
  padding: 1.5rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-form-heading {
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.contact-form-intro {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact-form {
  max-width: 520px;
}

.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="text"],
.contact-form .form-group select,
.contact-form .form-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form .form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form-success,
.contact-form-error {
  margin-bottom: 1.25rem;
}

.contact-mail-block {
  margin: 0.75rem 0 0;
}

.contact-mail-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.75rem !important;
  font-size: 0.95rem;
}

.contact-mail-key {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-mail-value {
  font-size: 1rem;
  font-weight: 600;
  word-break: break-all;
}

.contact-lead {
  margin-bottom: 2rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.contact-lead strong {
  color: var(--text);
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  transition: border-color 0.2s ease;
}

.contact-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
}

.contact-card--accent {
  background: linear-gradient(160deg, var(--accent-dim), var(--bg-card) 55%);
}

.contact-card--wide {
  grid-column: 1 / -1;
}

.contact-card h2 {
  font-size: 1.12rem;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.contact-card p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-action {
  margin: 1rem 0 0.5rem !important;
}

.contact-action .btn {
  display: inline-block;
  word-break: break-word;
  text-align: center;
  line-height: 1.35;
}

/* Sicher sichtbar: dunkle Schrift auf Primary (unabhängig von .legal-page main a) */
.contact-page .contact-action .btn.btn-primary {
  color: #0a0e17 !important;
  background: var(--accent) !important;
}
.contact-page .contact-action .btn.btn-primary:hover {
  color: #0a0e17 !important;
  background: var(--accent-hover) !important;
}

.contact-hint {
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  opacity: 0.95;
}

.contact-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-note {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
}

.contact-footer-links {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-footer-links a {
  color: var(--accent);
}

.legal-page .subtitle {
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Öffentlicher Blog – volle Breite, Landing-ähnlich (kein „Briefkasten“-Kartenmain) */
.blog-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-dim), transparent),
    var(--bg-dark);
  overflow-x: hidden;
  color: var(--text);
}

.blog-page__shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.blog-page__logo {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.blog-page__logo span {
  color: var(--accent);
}

.blog-page__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.blog-page__nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.blog-page__nav a:hover {
  color: var(--accent);
}

.blog-page__nav .btn.btn-primary {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  border-radius: 10px;
}

.blog-page__hero {
  margin-bottom: 2rem;
}

.blog-page__hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.blog-page__hero .blog-page__lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 42rem;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

[data-theme="light"] .blog-card {
  background: var(--bg-card);
}

.blog-card__title {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}

.blog-card__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card__excerpt {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.blog-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.35);
  max-width: 32rem;
  margin: 0 auto;
}

.blog-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.blog-empty__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Einzelner Blog-Artikel */
.blog-article-wrap--single {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 0 2rem;
}

.blog-article-breadcrumb {
  font-size: 0.82rem;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
}

.blog-article-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.blog-article-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-article-breadcrumb__sep {
  opacity: 0.45;
  user-select: none;
}

.blog-article-hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(6, 182, 212, 0.18);
  position: relative;
}

.blog-article-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 5rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.blog-article-title {
  font-size: clamp(1.65rem, 4.2vw, 2.05rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.blog-article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.blog-article-date {
  color: var(--text-muted);
  font-weight: 500;
}

.blog-article-meta-dot {
  opacity: 0.4;
}

.blog-article-readtime {
  color: rgba(6, 182, 212, 0.95);
  font-weight: 600;
  font-size: 0.84rem;
}

.blog-article-lead {
  margin: 1.1rem 0 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
  opacity: 0.95;
}

.blog-article-surface {
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(165deg, rgba(6, 182, 212, 0.06) 0%, rgba(15, 23, 42, 0.55) 42%, rgba(15, 23, 42, 0.75) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 16px 48px rgba(0, 0, 0, 0.22);
}

@media (min-width: 640px) {
  .blog-article-surface {
    padding: 2rem 2rem 1.75rem;
  }
}

.blog-body--article {
  font-size: 1.04rem;
  line-height: 1.78;
  color: #cbd5e1;
  max-width: 62ch;
}

[data-theme="light"] .blog-body--article {
  color: var(--text-muted);
}

.blog-body--article .blog-body__p {
  margin: 0 0 1.2rem;
}

.blog-body--article .blog-body__p:last-child {
  margin-bottom: 0;
}

.blog-body--article .blog-body__h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  padding-left: 0.85rem;
  border-left: 3px solid rgba(6, 182, 212, 0.65);
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.02em;
}

.blog-body--article .blog-body__h2:first-child {
  margin-top: 0;
}

.blog-body--article .blog-body__hr {
  border: none;
  height: 1px;
  margin: 1.75rem 0;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.35), transparent);
}

.blog-body--article .blog-body__ul {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
  color: #cbd5e1;
}

[data-theme="light"] .blog-body--article .blog-body__ul {
  color: var(--text-muted);
}

.blog-body--article .blog-body__ul li {
  margin-bottom: 0.45rem;
  padding-left: 0.25rem;
}

.blog-body--article .blog-body__ul li::marker {
  color: var(--accent);
}

.blog-article-footer {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}

/* Blog-Likes */
.blog-like-wrap {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(15, 23, 42, 0.5) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.blog-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem 0.55rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text-muted);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.blog-like-btn:hover {
  border-color: rgba(6, 182, 212, 0.55);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.15);
  transform: translateY(-1px);
}

.blog-like-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.blog-like-btn--active {
  border-color: rgba(236, 72, 153, 0.55);
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.12);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.12);
}

.blog-like-btn--active .blog-like-btn__path {
  fill: currentColor;
}

.blog-like-btn--busy {
  opacity: 0.65;
  pointer-events: none;
}

.blog-like-btn--error {
  animation: blog-like-shake 0.45s ease;
}

@keyframes blog-like-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.blog-like-btn__heart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-like-btn:hover .blog-like-btn__heart {
  transform: scale(1.05);
}

.blog-like-btn--active .blog-like-btn__heart {
  background: rgba(236, 72, 153, 0.2);
  animation: blog-like-pop 0.45s ease;
}

@keyframes blog-like-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.blog-like-btn__path {
  transition: fill 0.2s ease;
}

.blog-like-btn__meta {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.blog-like-btn__count {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.blog-like-btn__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-like-wrap__hint {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 28rem;
}

.blog-card__likes {
  color: rgba(244, 114, 182, 0.95);
  font-weight: 600;
  font-size: 0.85rem;
}

.blog-card__likes-icon {
  opacity: 0.9;
}

.blog-page__back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.blog-article-footer .blog-page__back--article {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.blog-page__back a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.blog-page__back a:hover {
  text-decoration: underline;
}

.blog-page__footer {
  margin-top: auto;
  padding-top: 2.5rem;
}

.blog-page__footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  font-size: 0.88rem;
}

.blog-page__footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
}

.blog-page__footer-inner a:hover {
  color: var(--accent);
}

.blog-page__muted {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.blog-page__muted code {
  font-size: 0.88em;
}

/* Blog-Übersicht: Hauptspalte + Newsletter-Panel */
.blog-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 2rem 2.25rem;
  align-items: start;
  width: 100%;
}

.blog-page__main-col {
  min-width: 0;
}

.blog-page__aside {
  position: sticky;
  top: 1rem;
}

.blog-panel {
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(6, 182, 212, 0.28);
  background:
    linear-gradient(165deg, rgba(6, 182, 212, 0.1) 0%, rgba(15, 23, 42, 0.75) 45%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.blog-panel--newsletter .blog-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.blog-panel__lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.blog-panel__lead a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.blog-panel__lead a:hover {
  text-decoration: underline;
}

.blog-empty--in-layout {
  max-width: none;
  margin: 0;
  text-align: left;
  padding: 2.25rem 1.75rem;
}

/* Newsletter-Formular (öffentlich) */
.newsletter-page__flash {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.newsletter-page__flash--ok {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.newsletter-page__flash--err {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.newsletter-page__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 26rem;
}

.newsletter-form--compact {
  max-width: none;
  gap: 0.65rem;
}

.newsletter-form__field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.newsletter-form__field input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.newsletter-form__topics {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.newsletter-form__legend {
  padding: 0;
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.newsletter-form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.newsletter-form__check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.newsletter-form__check span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.newsletter-form__hint {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.newsletter-form__submit {
  align-self: flex-start;
  margin-top: 0.15rem;
}

.newsletter-form--compact .newsletter-form__submit {
  width: 100%;
  text-align: center;
}

.newsletter-form__legal {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .blog-page__layout {
    grid-template-columns: 1fr;
  }

  .blog-page__aside {
    position: static;
    order: 2;
  }

  .blog-page__main-col {
    order: 1;
  }
}

@media (max-width: 640px) {
  .blog-page__shell {
    padding: 0.75rem 1rem 2rem;
  }

  .blog-page__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-page__nav {
    width: 100%;
    justify-content: flex-start;
  }
}
