/* Lernfischer Theme - aligns app with index.html look */
/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Color system adapted from index.html */
:root {
  --bg: #0b0f14;
  --card: #121a24;
  --surface: #121a24;
  --surface-2: #182231;
  --text: #e8eef6;
  --muted: #a9b4c2;
  --brand: #14b8a6;
  --brand-2: #2dd4bf;
  --brand-rgb: 20, 184, 166;
  --brand-2-rgb: 45, 212, 191;
  --focus: rgba(45, 212, 191, 0.35);

  /* Map existing app variables to new palette */
  --primary-color: var(--brand);
  --secondary-color: var(--brand-2);
  --accent-color: var(--brand);
  --success-color: var(--brand);
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --text-color: var(--text);
  --text-light: var(--muted);
  --background-color: var(--bg);
  --white: var(--card);
  --border-color: rgba(255,255,255,0.10);
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* Variant: basic (left) card with bottom-left CTA (kompakter) */
.pricing-modern .pricing-card.basic { padding-bottom: 18px; }

 body.dashboard-page,
 body.dashboard-page .main-content {
  background: rgba(11,18,32,1) !important;
 }

 body.dashboard-page .main-header,
 body.dashboard-page .main-footer {
  background: rgba(11,18,32,1) !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
 }

 body.dashboard-page .main-content {
  padding-top: 16px;
 }

 body.dashboard-page .progress-card,
 body.dashboard-page .progress-card.accent {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
 }

 body.dashboard-page .progress-card .feature {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
 }

 body.dashboard-page .progress-card.accent .feature {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
 }
.pricing-modern .pricing-card.basic .cta { position: static; }

@media (min-width: 768px) {
  .pricing-modern .grid { grid-template-columns: 1fr 1fr; }
  .pricing-modern .pricing-card.compact { grid-column: 1 / -1; }
}

/* Global background and typography */
html, body {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 260px),
              var(--bg) !important;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  overflow-x: hidden;
}
img, video, svg, canvas {
  max-width: 100%;
  height: auto;
}
p, li, a, .chip, .btn {
  overflow-wrap: anywhere;
  word-break: break-word;
}
input, select, textarea, button {
  font-size: 16px;
}
html { scroll-behavior: smooth; }

/* Landing Layout (aus bisheriger index.html) */
.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 960px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 999px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 8px rgba(var(--brand-rgb), 0.8);
}

h1.hero-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 16px 0 10px;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.6;
  margin: 0 0 18px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 768px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
.feature {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn.secondary { color: var(--text) !important; background: rgba(255,255,255,0.06) !important; border: 1px solid var(--border-color) !important; box-shadow: none !important; }

/* Landing Visual Enhancements */
h1.hero-title {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card.card-hero {
  max-width: 1100px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  position: relative;
}
.card.card-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: radial-gradient(600px 200px at 0% 0%, rgba(var(--brand-rgb), 0.08), transparent 60%),
              radial-gradient(600px 200px at 100% 0%, rgba(var(--brand-2-rgb), 0.08), transparent 60%);
}

.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  position: relative;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.feature ol,
.feature ul {
  list-style-position: inside;
  padding-left: 12px;
  margin-left: 0;
}
.step-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; align-items: center; margin-top: 8px; }
.step-strip img { width: 100%; height: auto; object-fit: contain; background: rgba(255,255,255,0.04); border: 1px solid var(--border-color); border-radius: 8px; padding: 6px; }
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.08), rgba(var(--brand-2-rgb), 0.08));
  opacity: .4;
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.2);
}
.feature h3 { color: #eaf2ef; }

.badge { font-size: 13px; }
.badge-dot { box-shadow: 0 0 10px rgba(var(--brand-rgb), 0.9); }

.lead { color: #cdd5df; }

.actions { margin-top: 26px; }
.btn.secondary:hover { border-color: rgba(255,255,255,0.25) !important; }
.card-hero .actions .btn.secondary { background: rgba(255,255,255,0.12) !important; border: 1px solid rgba(255,255,255,0.30) !important; }
.card-hero .actions .btn.secondary:hover { border-color: rgba(255,255,255,0.40) !important; }

/* Trial CTA styles */
.trial-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(var(--brand-rgb), 0.08);
}
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.18), rgba(var(--brand-2-rgb), 0.18));
  color: var(--text);
  margin: 12px 0 16px; /* mehr Abstand nach oben und unten */
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px; /* mehr Innenabstand */
  border-radius: 999px;
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  box-shadow: 0 6px 14px rgba(var(--brand-rgb), 0.15), inset 0 1px 0 rgba(255,255,255,0.35);
}
.trial-badge i { color: var(--brand-2); }
.trial-badge:hover { background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.24), rgba(var(--brand-2-rgb), 0.24)); border-color: rgba(var(--brand-rgb), 0.45); }
.trial-badge:focus-visible { outline: 2px solid rgba(var(--brand-rgb), 0.65); outline-offset: 2px; }
.trial-actions { gap: 10px; flex-wrap: wrap; }
/* Dashboard Trial notice layout */
.alert.alert-warning .trial-text {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
.alert.alert-warning .trial-cta {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}
@media (max-width: 480px) {
  .alert.alert-warning .trial-cta {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* Landing utilities */
.section { margin-top: 22px; }
.muted-list { color: var(--muted); line-height: 1.7; margin-left: 18px; }

/* Accent variant: cards with hero gradient background */
.feature.accent,
.category-card.accent,
.progress-card.accent {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.18), rgba(var(--brand-2-rgb), 0.18)),
              linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .feature.accent,
  .category-card.accent,
  .progress-card.accent {
    background: rgba(18,26,36,0.92) !important;
  }
}

.feature.accent::before { opacity: .25; }
.feature.accent h3 { color: #f0fdfa; }

/* Cards and generic surfaces */
.progress-card,
.category-card,
.stat-card,
.login-container,
.fish-gallery,
.fish-quiz,
.quiz-header,
.question-card,
.results-container,
.pricing-card,
.alert,
.modal-content,
.fish-search {
  background: rgba(18,26,36,0.55) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text) !important;
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .progress-card,
  .category-card,
  .stat-card,
  .login-container,
  .fish-gallery,
  .fish-quiz,
  .quiz-header,
  .question-card,
  .results-container,
  .pricing-card,
  .alert,
  .modal-content,
  .fish-search {
    background: rgba(18,26,36,0.92) !important;
  }
}

 /* Headers */
 .main-header {
  background: rgba(0,0,0,0.25) !important;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
 }
 .main-header h1 { color: #ffffff !important; }
 .main-header h1 i { color: var(--brand-2) !important; }

 .header-menu {
  position: relative;
 }
 .header-menu__trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.03);
  color: var(--text);
 }
 .header-menu__trigger::-webkit-details-marker {
  display: none;
 }
 .header-menu__trigger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
 }
 .header-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(18,26,36,0.72);
  box-shadow: 0 18px 44px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  z-index: 2000;
 }
 .header-menu__item {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
 }
 .header-menu__item:hover {
  background: rgba(255,255,255,0.10);
 }
 .header-menu__item:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
 }

 .modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 3000;
  padding: 5vh 12px;
  overflow: auto;
 }

 .modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
 }

 .modal .modal-content {
  margin: 0;
  border-radius: 16px;
 }

 @media (max-width: 768px) {
  .main-header .header-content {
   flex-direction: row !important;
   justify-content: space-between !important;
   align-items: center !important;
   text-align: left !important;
  }
  .main-header .header-content h1 {
   margin: 0 !important;
  }
  .main-header .user-nav {
   margin-left: auto !important;
  }
 }

 /* Local landing pages: header nav buttons */
 .fish-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Personalisierte Begrüßung farblich hervorheben */
.main-header .user-nav span {
  color: var(--brand) !important;
  font-weight: 600;
}

/* A11y: gut sichtbare Fokus-Stile */
:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--brand) !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* A11y: Skip-Link für schnellen Sprung zum Inhalt */
.skip-link {
  position: fixed;
  left: 8px;
  top: 8px;
  transform: translateY(-200%);
  background: #ffffff;
  color: #000000;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 9999;
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* A11y: Bewegungen reduzieren, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Utility: visuell versteckt, aber für Screenreader sichtbar */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

 /* Footer */
 .main-footer {
   background: rgba(0,0,0,0.25) !important;
   border-top: 1px solid var(--border-color);
   color: var(--text) !important;
 }
 
 /* Button base styles */
 .btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 10px 16px;
   border-radius: 12px;
   text-decoration: none;
   font-weight: 700;
   line-height: 1.1;
   transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
   cursor: pointer;
 }
 .btn:focus-visible {
   outline: 2px solid var(--focus);
   outline-offset: 2px;
 }
 
 /* Buttons - vereinheitlicht wie der Login-Button */
 .btn,
 .btn-primary,
 .btn.btn-primary,
 .btn-success,
 .btn.btn-success,
 .btn-secondary,
 .btn.btn-secondary,
 .btn-warning,
 .btn.btn-warning {
   background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
   color: #0b1220 !important;
   border: none !important;
   box-shadow: 0 10px 24px rgba(var(--brand-rgb), 0.25), inset 0 1px 0 rgba(255,255,255,0.35) !important;
 }
 .btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* Subtle reset buttons only inside category cards */
.category-card .btn.btn-secondary {
  background: rgba(var(--brand-rgb), 0.10) !important; /* dezentes Teal, kein Verlauf */
  color: var(--text) !important;
  border: 1px solid rgba(var(--brand-rgb), 0.35) !important;
  box-shadow: none !important;
  font-size: 0.9rem !important;
  padding: 6px 10px !important;
  min-height: 34px !important;
}
.category-card .btn.btn-secondary:hover {
  background: rgba(var(--brand-rgb), 0.18) !important;
  border-color: rgba(var(--brand-rgb), 0.5) !important;
}

/* Forms */
.form-group input,
select,
textarea {
  background: rgba(255,255,255,0.03) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-color) !important;
}

/* Bessere Lesbarkeit von Select/Droplist */
select {
  background-color: var(--card) !important;
  color: var(--text) !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
select option {
  background-color: var(--card);
  color: var(--text);
}

/* Einheitliche Buttons in Schnellzugriff */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.action-buttons .btn {
  min-height: 44px;
  padding: 10px 16px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

 .quick-actions-top .help-toc {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text) !important;
 }
 .quick-actions-top .help-toc h2 {
  color: var(--text) !important;
  letter-spacing: 0.2px;
 }
 
 @media (max-width: 768px) {
  .quick-actions-top .toc-grid {
   grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
 }
 @media (max-width: 360px) {
  .quick-actions-top .toc-grid {
   grid-template-columns: 1fr !important;
  }
 }
 .quick-actions-top .toc-item {
   background: rgba(17,24,39,0.55) !important;
   border: 1px solid rgba(255,255,255,0.12) !important;
   color: var(--text) !important;
   box-shadow: none;
   backdrop-filter: blur(6px);
   position: relative;
   overflow: hidden;
 }
 .quick-actions-top .toc-item::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 35%, rgba(255,255,255,0.01));
   opacity: 0.65;
   pointer-events: none;
 }
 .quick-actions-top .toc-item > * { position: relative; z-index: 1; }
 .quick-actions-top .toc-item i {
   color: rgba(229,231,235,0.92);
 }
 @supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
   .quick-actions-top .toc-item {
     background: rgba(17,24,39,0.42) !important;
     border-color: rgba(255,255,255,0.14) !important;
     -webkit-backdrop-filter: blur(10px);
     backdrop-filter: blur(10px);
   }
 }
 .quick-actions-top .toc-item:hover {
   background: rgba(17,24,39,0.70) !important;
   border-color: rgba(var(--brand-rgb), 0.45) !important;
   transform: translateY(-2px);
   box-shadow: 0 10px 26px rgba(0,0,0,0.30);
 }
 .quick-actions-top .toc-item:focus-visible {
   outline: 2px solid rgba(var(--brand-rgb), 0.65);
   outline-offset: 3px;
 }

 .dashboard-page .quick-actions-top .toc-grid {
  gap: 12px !important;
 }

 .dashboard-page .quick-actions-top .toc-item {
  min-height: 112px;
  padding: 16px 14px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
 }

 .dashboard-page .quick-actions-top .toc-item .toc-icon {
  width: 84px;
  height: 84px;
 }

 .dashboard-page .quick-actions-top .toc-item span {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
 }

 .dashboard-page .quick-actions-top .toc-item:active {
  transform: scale(0.97);
 }

 .dashboard-page .quick-actions-top .toc-item--primary {
  border-color: rgba(var(--brand-rgb), 0.40) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.32), 0 0 0 1px rgba(var(--brand-rgb), 0.20) inset;
 }

 .dashboard-page .quick-actions-top .toc-item--primary::before {
  background: radial-gradient(600px 200px at 50% 0%, rgba(var(--brand-rgb), 0.28), rgba(255,255,255,0.02) 45%, rgba(255,255,255,0.01));
  opacity: 0.9;
 }

 .dashboard-page .quick-actions-top .toc-item--secondary {
  opacity: 0.92;
 }

 .dashboard-page .quick-actions-top .toc-item--secondary:hover {
  border-color: rgba(255,255,255,0.18) !important;
 }

 .progress-overview .progress-card.accent .feature {
  background: rgba(255,255,255,0.03) !important;
  border-color: var(--border-color) !important;
 }

/* Kategorie-Karten gleich hoch */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.category-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 260px;
}
.category-card .category-progress {
  margin-top: auto;
}
.category-card form { margin-top: 8px; }
.field-error { color: var(--error-color); margin-top: 6px; font-size: 0.9rem; }

/* Alerts */
.alert-success { background: rgba(var(--brand-rgb), 0.12) !important; border-color: rgba(var(--brand-rgb), 0.35) !important; color: #a7f3d0 !important; }
.alert-error { background: rgba(239,68,68,0.12) !important; border-color: rgba(239,68,68,0.35) !important; color: #fecaca !important; }
.alert-warning { background: rgba(245,158,11,0.12) !important; border-color: rgba(245,158,11,0.35) !important; color: #fde68a !important; }

/* Quiz specific overrides using existing variables */
.question-header { background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important; color: #0b1220 !important; }
.answer-option { background: rgba(255,255,255,0.03) !important; border-color: var(--border-color) !important; }
.answer-option:hover { background: rgba(var(--brand-2-rgb), 0.06) !important; border-color: var(--brand-2) !important; }
.checkmark { background-color: var(--success-color) !important; }

/* Fish identification */
.fish-card { background: rgba(255,255,255,0.03) !important; border: 0 !important; }
.fish-card:hover { border: 0 !important; border-color: transparent !important; }
.fish-image { background: transparent !important; }
.detail-section { background: rgba(255,255,255,0.06) !important; }

/* Pricing cards */
.pricing-card { background: rgba(255,255,255,0.05) !important; }
.pricing-card.recommended { background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important; color: #06201d !important; }

/* Modern pricing layout */
.pricing-modern { margin-top: 8px; }
.pricing-modern .grid { gap: 16px; }
.pricing-modern .pricing-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  contain: paint; /* verhindert, dass dekorative Elemente die Seite "breiter" machen */
  padding: 14px 14px 18px;
}
.pricing-modern .pricing-card .badge {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(90deg, #f59e0b, #f97316) !important; /* left -> right */
  color: #2b1705 !important;
  font-weight: 800;
  padding: 6px 10px;
  line-height: 1;
  border: none !important;
  border-radius: 8px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 14px); /* schräge Kante, bleibt im Card-Bereich */
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25), inset 0 1px 0 rgba(255,255,255,0.35);
  pointer-events: none; /* nicht klickblockierend über Inhalt */
  z-index: 2;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.pricing-modern .price .amount { font-size: 1.8rem; color: #f9fafb; }
.pricing-modern .pricing-card.basic h3 { color: #f9fafb; }
.pricing-modern .cta { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pricing-modern .note { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.pricing-modern .pricing-features { margin: 12px 0; }
.pricing-modern .pricing-features li { font-size: 0.95rem; }

@media (min-width: 768px) {
  .pricing-modern .grid { align-items: stretch; align-content: start; }
  .pricing-modern .pricing-card.basic { display: flex; flex-direction: column; height: 100%; }
  .pricing-modern .pricing-card.basic .cta { margin-top: auto; }
  .pricing-modern .payment-trust[aria-label="Werbemotiv"] { display: block; height: auto; }
  .pricing-modern .payment-trust[aria-label="Werbemotiv"] img { width: 100%; height: auto !important; object-fit: contain; }
  /* Erste Reihe bündig ausrichten: keine zusätzlichen oberen Außenabstände */
  .pricing-modern .grid > * { margin-top: 0 !important; align-self: start; }
}

/* Preise-Layout: Element über volle Breite */
.pricing-modern .span-2 { grid-column: 1 / -1; }

/* Variant: course card with fixed bottom CTA and corner badge */
.pricing-modern .pricing-card.course { padding-bottom: 66px; }
.pricing-modern .pricing-card.course .price { display: none; }
.pricing-modern .pricing-card.course .cta { position: absolute; bottom: 12px; left: 12px; margin-top: 0; }
.pricing-modern .pricing-card.course .corner-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: linear-gradient(45deg, #f97316, #f59e0b);
  color: #2b1705; font-weight: 800; font-size: 0.9rem;
  padding: 6px 10px;
  line-height: 1;
  border-radius: 8px;
  clip-path: polygon(100% 0, 100% 14px, 100% 100%, 0 100%, 0 0); /* schräge Ecke oben rechts */
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25), inset 0 1px 0 rgba(255,255,255,0.35);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Payment trust block */
.payment-trust {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.payment-trust.compact { padding: 10px 12px; margin-top: 10px; }
.payment-trust.compact .lead { margin-bottom: 4px !important; }
.payment-trust.compact .logos { gap: 8px; }
.payment-trust.compact .logos img { height: 18px; }
.payment-trust.compact .guarantees { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

@media (max-width: 768px) {
  .pricing-modern .span-2 { grid-column: auto; }
  .payment-trust.compact { padding: 10px; }
}
.payment-trust .logos {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0;
}
.payment-trust .logos img { height: 22px; width: auto; }
.payment-trust .guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.payment-trust .guarantee { display:flex; gap:8px; align-items:flex-start; color: var(--muted); }
.payment-trust .guarantee i { color: var(--brand-2); margin-top: 2px; }

/* Utility */
.card-shadow { box-shadow: var(--shadow); }
.border { border: 1px solid var(--border-color); }

/* Links and text */
a { color: #93c5fd; }
a:hover { color: #bfdbfe; }

/* Tables (if any) */
table { color: var(--text); }
th, td { border-color: var(--border-color); }

/* Flow utilities: chips, bleed image, price teaser, collapsible notices */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 14px;
}
.chip i { margin: 0; }
.chip.rating-chip span:first-child {
  font-size: 1.1rem;
  color: #facc15; /* warmes Gelb für Stern */
  line-height: 1;
}

/* Startseite: Chips im Hero leicht orange hervorheben */
.card-hero .chips .chip {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.18), rgba(var(--brand-2-rgb), 0.18)) !important;
  border-color: rgba(255,255,255,0.22) !important;
  box-shadow: 0 6px 14px rgba(var(--brand-rgb), 0.15);
}
.card-hero .chips .chip i { color: var(--brand-2) !important; } /* Orange 500 */
.card-hero .chips .chip.rating-chip i { color: #f5c518 !important; }
.card-hero .chips .chip:hover {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.24), rgba(var(--brand-2-rgb), 0.24)) !important;
  border-color: rgba(255,255,255,0.30) !important;
}
.card-hero .chips .chip:focus-visible {
  outline: 2px solid rgba(var(--brand-rgb), 0.65);
  outline-offset: 2px;
}
.checklist { display: flex; flex-wrap: wrap; gap: 6px 12px; list-style: none; padding-left: 0; margin: 0; color: var(--muted); }
.checklist li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.checklist li::before { content: "✓"; color: var(--brand); font-weight: 700; line-height: 1; }
/* Make an element span the card's full width by offsetting padding */
.bleed {
  display: block;
  margin-left: -28px;
  margin-right: -28px;
  width: calc(100% + 56px);
  border-radius: 0 !important;
}

.price-teaser {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--brand-rgb), 0.25);
  border-radius: 12px;
  background: rgba(var(--brand-rgb), 0.08);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.price-teaser .left { display: inline-flex; gap: 10px; align-items: center; }
.price-teaser .amount { font-weight: 800; font-size: 1.2rem; color: var(--brand); }

details.notice { margin-top: 14px; }
details.notice summary {
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  font-weight: 600;
}
details.notice[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
details.notice .content {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-top: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: rgba(255,255,255,0.03);
}

/* Mobile enhancements and landing hero */
.btn { min-height: 44px; }

.hero-fish {
  border-radius: 12px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background-position: center center, center center;
  background-size: cover, contain;
  background-repeat: no-repeat;
  /* Fallback */
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 80%),
    url('../../assets/img/fish.webp');
  /* Safari prefix */
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 80%),
    -webkit-image-set(
      url('../../assets/img/fish.webp') 1x,
      url('../../assets/img/fish.webp') 2x
    );
  /* Standard */
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 80%),
    image-set(
      url('../../assets/img/fish.webp') 1x,
      url('../../assets/img/fish.webp') 2x
    );
}
@media (max-width: 768px){
  .hero-fish { min-height: clamp(220px, 50vw, 380px); background-position: center center, center center; }
}
@media (max-width: 480px){
  .hero-fish { min-height: clamp(200px, 65vw, 320px); }
}
/* Landscape phones: weniger vertikaler Platz */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-fish { background-position: center center, center center !important; background-size: cover, contain !important; min-height: 160px; }
}

@media (max-width: 480px) {
  .actions .btn { flex: 1 1 100%; }
  .wrap { padding: 16px; }
  .card { padding: 20px 16px; }
  .fish-nav { width: 100%; justify-content: center; }
  .fish-nav .btn { flex: 1 1 100%; }
  /* Kompakter auf XS, bleibt innerhalb der Karte, gute Lesbarkeit */
  .pricing-modern .pricing-card .badge {
    top: 8px; right: 8px; font-size: 12px; padding: 5px 8px; max-width: calc(100% - 16px);
  }
  .pricing-modern .pricing-card.course .corner-badge {
    bottom: 8px; right: 8px; font-size: 0.85rem; padding: 5px 8px; max-width: calc(100% - 16px);
  }
  .payment-trust .logos { justify-content: center; }
  .payment-trust .guarantees { grid-template-columns: 1fr; }
  .muted-list { margin-left: 12px; }
  .lead { line-height: 1.7; }
  .card.card-hero > h3 { font-size: 16px; line-height: 1.6; font-weight: 400; color: var(--muted); }
  .card.card-hero .feature h3 { font-size: 16px; line-height: 1.5; }
  .wrap { background: none !important; }
  .card.card-hero { background: none !important; }
  .card.card-hero > .feature {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image:
      linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 80%),
      url('../../assets/img/pose.webp');
    background-image:
      linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 80%),
      -webkit-image-set(
        url('../../assets/img/pose.webp') 1x,
        url('../../assets/img/pose.webp') 2x
      );
    background-image:
      linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 80%),
      image-set(
        url('../../assets/img/pose.webp') 1x,
        url('../../assets/img/pose.webp') 2x
      );
  }
  .hero-fish { background: none !important; }
  html, body { overflow-x: hidden; }
}

/* Safe-area Insets (iOS Notch) */
@supports (padding: max(0px)) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
  @media (max-width: 480px) {
    .wrap {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}

/* Improve tap target for collapsible summary */
details.notice summary { min-height: 44px; display: flex; align-items: center; }

@media print {
  html, body { background: #ffffff !important; color: #000000 !important; }
  .main-header,
  .main-footer,
  .no-print,
  .chips,
  .chip,
  .user-nav,
  .action-buttons,
  .btn,
  nav,
  .badge,
  .trial-box,
  .trial-badge { display: none !important; }
  .container { max-width: none !important; padding: 0 10mm !important; }
  .feature,
  .feature.accent,
  .progress-card,
  .category-card,
  .fish-gallery,
  .fish-quiz,
  .fish-search,
  .alert,
  .modal-content,
  .card,
  .stat-card,
  .login-container,
  .question-card,
  .results-container,
  .pricing-card { background: #ffffff !important; color: #000000 !important; border: 1px solid rgba(0,0,0,0.1) !important; box-shadow: none !important; }
  .feature::before { display: none !important; }
  .feature { break-inside: avoid; page-break-inside: avoid; margin-bottom: 8mm; }
  .feature h2, .feature h3, .feature p, .feature li { color: #000000 !important; }
  .feature ol, .feature ul { list-style-position: inside; margin-left: 0; padding-left: 4mm; }
  .feature ol li, .feature ul li { margin-bottom: 2mm; line-height: 1.45; }
  a { color: #000000 !important; text-decoration: none !important; }
  @page { margin: 12mm; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
}

body.duo-quiz .duo-bottom-bar,
body.duo-fk .duo-bottom-bar,
body.duo-learn .duo-bottom-bar,
body.duo-exam .duo-bottom-bar,
body.duo-gear .duo-bottom-bar,
body.duo-fish .duo-bottom-bar,
body.duo-account .duo-bottom-bar,
body.duo-stats .duo-bottom-bar,
body.duo-uqs .duo-bottom-bar,
body.help-page .duo-bottom-bar,
body.quiz-results .duo-bottom-bar {
  position: fixed !important;
  left: 12px !important;
  right: 12px !important;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  border-radius: 18px;
  background: rgba(18,26,36,0.72) !important;
  border-top: 0 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 8px 10px !important;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.duo-quiz .duo-bottom-bar .duo-primary,
body.duo-fk .duo-bottom-bar .duo-primary,
body.duo-learn .duo-bottom-bar .duo-primary,
body.duo-exam .duo-bottom-bar .duo-primary,
body.duo-gear .duo-bottom-bar .duo-primary,
body.duo-fish .duo-bottom-bar .duo-primary,
body.duo-account .duo-bottom-bar .duo-primary,
body.duo-stats .duo-bottom-bar .duo-primary,
body.duo-uqs .duo-bottom-bar .duo-primary,
body.help-page .duo-bottom-bar .duo-primary,
body.quiz-results .duo-bottom-bar .duo-primary {
  height: 44px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.duo-quiz .duo-more-btn,
body.duo-fk .duo-more-btn,
body.duo-learn .duo-more-btn,
body.duo-exam .duo-more-btn,
body.duo-gear .duo-more-btn,
body.duo-fish .duo-more-btn,
body.duo-account .duo-more-btn,
body.duo-stats .duo-more-btn,
body.duo-uqs .duo-more-btn,
body.help-page .duo-more-btn,
body.quiz-results .duo-more-btn {
  height: 44px !important;
  width: 44px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.duo-quiz .duo-more-btn:focus-visible,
body.duo-quiz .duo-bottom-bar .duo-primary:focus-visible,
body.duo-fk .duo-more-btn:focus-visible,
body.duo-fk .duo-bottom-bar .duo-primary:focus-visible,
body.duo-learn .duo-more-btn:focus-visible,
body.duo-learn .duo-bottom-bar .duo-primary:focus-visible,
body.duo-exam .duo-more-btn:focus-visible,
body.duo-exam .duo-bottom-bar .duo-primary:focus-visible,
body.duo-gear .duo-more-btn:focus-visible,
body.duo-gear .duo-bottom-bar .duo-primary:focus-visible,
body.duo-fish .duo-more-btn:focus-visible,
body.duo-fish .duo-bottom-bar .duo-primary:focus-visible,
body.duo-account .duo-more-btn:focus-visible,
body.duo-account .duo-bottom-bar .duo-primary:focus-visible,
body.duo-stats .duo-more-btn:focus-visible,
body.duo-stats .duo-bottom-bar .duo-primary:focus-visible,
body.duo-uqs .duo-more-btn:focus-visible,
body.duo-uqs .duo-bottom-bar .duo-primary:focus-visible,
body.help-page .duo-more-btn:focus-visible,
body.help-page .duo-bottom-bar .duo-primary:focus-visible,
body.quiz-results .duo-more-btn:focus-visible,
body.quiz-results .duo-bottom-bar .duo-primary:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: 2px !important;
}

body.duo-learn {
  --duo-bottom-bar-h: 72px;
}

body.duo-learn .main-content {
  padding-bottom: calc(var(--duo-bottom-bar-h, 0px) + env(safe-area-inset-bottom, 0px));
}

body.duo-learn .duo-bottom-bar .btn {
  height: 44px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
