@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  --mx-bg: #f4f6fa;
  --mx-surface: rgba(255, 255, 255, 0.9);
  --mx-surface-strong: #ffffff;
  --mx-surface-soft: #f8fbff;
  --mx-border: rgba(18, 28, 45, 0.12);
  --mx-border-strong: rgba(18, 28, 45, 0.2);
  --mx-text: #111827;
  --mx-muted: #5b677f;
  --mx-subtle: #7d889f;
  --mx-brand: #2c2750;
  --mx-brand-2: #4740c8;
  --mx-brand-soft: #ecebff;
  --mx-success: #177f63;
  --mx-success-soft: #e8f9f2;
  --mx-warning: #ad6800;
  --mx-warning-soft: #fff3e2;
  --mx-danger: #b3261e;
  --mx-danger-soft: #fdeeee;
  --mx-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
  --mx-shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.08);
  --mx-radius-xl: 22px;
  --mx-radius-lg: 18px;
  --mx-radius-md: 14px;
  --mx-radius-sm: 10px;
  --mx-content-width: 1240px;
  --nav-height: 90px;
  --brand-logo-filter: none;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mx-text);
  background:
    radial-gradient(circle at 12% 10%, rgba(100, 88, 220, 0.15), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(33, 158, 121, 0.13), transparent 32%),
    linear-gradient(180deg, #f8faff 0%, #f2f5fa 36%, #edf2f9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0%, transparent 38%, rgba(255, 255, 255, 0.35) 100%);
  opacity: 0.65;
  z-index: -1;
}

h1,
h2,
h3,
.page-title,
.auth-title,
.greeting-line,
.prov-hero-total,
.ziel-current-badge,
.prov-total-value,
.gen-count,
.highlight-value {
  font-family: "Sora", "Manrope", sans-serif;
}

a {
  color: var(--mx-brand);
}

a:hover {
  opacity: 1;
}

.navbar {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(116, 128, 153, 0.24);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  max-width: var(--mx-content-width);
  height: var(--nav-height);
  padding: 0 1.6rem;
  gap: 1.5rem;
}

.nav-logo-img {
  width: clamp(198px, 19vw, 254px);
  max-width: 72vw;
  filter: none !important;
  opacity: 1 !important;
}

.nav-links {
  gap: 0.42rem;
}

.nav-links li a {
  color: #334155;
  border: 1px solid transparent;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--mx-brand);
  border-color: rgba(71, 64, 200, 0.2);
  background: linear-gradient(180deg, rgba(236, 235, 255, 0.9) 0%, rgba(247, 247, 255, 0.96) 100%);
}

.nav-logout {
  border: 1px solid rgba(147, 161, 184, 0.45) !important;
  color: #4b5565 !important;
  margin-left: 0.2rem;
}

.nav-logout:hover {
  border-color: rgba(71, 64, 200, 0.35) !important;
  color: var(--mx-brand) !important;
  background: rgba(236, 235, 255, 0.88) !important;
}

.nav-user-chip {
  border: 1px solid rgba(147, 161, 184, 0.34);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.nav-user-avatar {
  border: 1px solid rgba(71, 64, 200, 0.2);
  background: linear-gradient(150deg, #f6f6ff 0%, #ecf3ff 100%);
}

.nav-user-fallback {
  color: var(--mx-brand);
}

.nav-user-name {
  color: #44506a;
  font-weight: 700;
}

.nav-toggle span {
  background: var(--mx-brand);
}

.mobile-tabbar {
  display: none;
}

.mobile-tabbar-item {
  text-decoration: none;
}

.mobile-tabbar-label {
  display: block;
}

.greeting-bar {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.82) 0%, rgba(240, 247, 255, 0.86) 50%, rgba(236, 235, 255, 0.82) 100%);
  border-bottom: 1px solid rgba(116, 128, 153, 0.2);
  backdrop-filter: blur(8px);
}

.greeting-inner {
  max-width: var(--mx-content-width);
  padding: 0.92rem 1.6rem 0.84rem;
}

.greeting-kicker {
  color: #7182a0;
  letter-spacing: 0.1em;
}

.greeting-line {
  color: var(--mx-brand);
  font-size: 1.02rem;
}

.main-content {
  max-width: var(--mx-content-width);
  padding: 1.65rem 1.6rem 3rem;
}

.main-content,
.section,
.page-header,
.table-wrap {
  max-width: 100%;
}

.main-content > * {
  animation: mx-fade-up 0.35s ease both;
}

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

.site-footer {
  background: rgba(255, 255, 255, 0.84);
  border-top: 1px solid rgba(116, 128, 153, 0.2);
  backdrop-filter: blur(14px);
  padding: 1.2rem 1rem 1.4rem;
}

.footer-logo {
  width: clamp(152px, 22vw, 236px);
  filter: none !important;
}

.footer-legal,
.footer-legal a {
  color: #6c778d;
}

.footer-legal a:hover {
  color: var(--mx-brand);
}

.page-header {
  margin-bottom: 1.45rem;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.05rem, 2.2vw, 1.35rem);
  border: 1px solid var(--mx-border);
  border-radius: var(--mx-radius-lg);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 250, 255, 0.94) 100%);
  box-shadow: var(--mx-shadow-soft);
}

.page-title {
  font-size: clamp(1.46rem, 2.4vw, 1.92rem);
  letter-spacing: -0.02em;
  color: #16233c;
}

.page-subtitle {
  margin-top: 0.42rem;
  color: #61708a;
  font-size: 0.92rem;
}

.section {
  margin-bottom: 1.5rem;
}

.section-title {
  color: #66748f;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  margin-bottom: 0.78rem;
}

.section-note {
  color: #8b96ac;
}

.section-desc {
  color: #63708a;
}

.mobile-glance-section {
  display: none;
}

.mobile-glance-note {
  margin: 0 0 0.72rem;
  color: #71819d;
  font-size: 0.84rem;
}

.mobile-glance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
}

.mobile-glance-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.76rem 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(116, 128, 153, 0.24);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
}

.mobile-glance-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #70809b;
  font-weight: 800;
}

.mobile-glance-value {
  color: #1c2b48;
  font-size: 0.98rem;
  line-height: 1.2;
}

.mobile-glance-meta {
  color: #6d7d99;
  font-size: 0.76rem;
  line-height: 1.3;
}

.alert {
  border: 1px solid var(--mx-border);
  border-left-width: 4px;
  border-radius: var(--mx-radius-md);
  box-shadow: var(--mx-shadow-soft);
}

.alert-info {
  background: linear-gradient(130deg, #f0f6ff 0%, #f8fbff 100%);
  border-color: rgba(66, 112, 208, 0.28);
  color: #2f4f84;
}

.alert-success {
  background: linear-gradient(130deg, #eafaf3 0%, #f7fefb 100%);
  border-color: rgba(23, 127, 99, 0.35);
  color: #15684f;
}

.alert-error {
  background: linear-gradient(130deg, #fdeeee 0%, #fff6f6 100%);
  border-color: rgba(179, 38, 30, 0.35);
  color: #93241e;
}

.badge {
  border: 1px solid transparent;
  letter-spacing: 0.04em;
}

.badge-ok {
  background: var(--mx-success-soft);
  color: var(--mx-success);
  border-color: rgba(23, 127, 99, 0.28);
}

.badge-pending {
  background: var(--mx-warning-soft);
  color: var(--mx-warning);
  border-color: rgba(173, 104, 0, 0.28);
}

.badge-error {
  background: var(--mx-danger-soft);
  color: var(--mx-danger);
  border-color: rgba(179, 38, 30, 0.28);
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--mx-brand) 0%, var(--mx-brand-2) 100%);
  box-shadow: 0 8px 18px rgba(44, 39, 80, 0.28);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #241f42 0%, #3f39b0 100%);
  box-shadow: 0 10px 22px rgba(44, 39, 80, 0.32);
}

.btn-outline {
  color: var(--mx-brand);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(71, 64, 200, 0.36);
}

.btn-outline:hover {
  color: var(--mx-brand);
  border-color: rgba(71, 64, 200, 0.6);
  background: rgba(236, 235, 255, 0.88);
}

.btn-ghost {
  color: #4d5870;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(116, 128, 153, 0.32);
}

.btn-ghost:hover {
  color: #233149;
  border-color: rgba(71, 64, 200, 0.28);
  background: rgba(241, 246, 255, 0.9);
}

.btn-download {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(116, 128, 153, 0.34);
  color: var(--mx-brand);
}

.btn-download:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--mx-brand) 0%, var(--mx-brand-2) 100%);
}

.btn-danger {
  background: linear-gradient(135deg, #9f2620 0%, #b3261e 100%);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #8e221d 0%, #9f2620 100%);
}

.form-group label {
  color: #41506a;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(251, 253, 255, 0.9);
  border: 1px solid rgba(116, 128, 153, 0.32);
  color: var(--mx-text);
  border-radius: 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(71, 64, 200, 0.55);
  box-shadow: 0 0 0 4px rgba(71, 64, 200, 0.12);
}

.form-card,
.account-info-card,
.sync-bar,
.table-wrap,
.source-accordion,
.chart-wrapper,
.chart-section,
.month-section,
.search-card,
.results-card,
.download-section,
.calc-card,
.gen-detail-card,
.planner-card,
.npv-points-strip,
.npv-hero,
.leaderboard-card,
.booster-card,
.boost660-hero,
.ziel-summary-card,
.prov-summary-card,
.info-box,
.empty-state,
.legal-content,
.auth-card {
  background: var(--mx-surface);
  border: 1px solid var(--mx-border) !important;
  box-shadow: var(--mx-shadow-soft);
  border-radius: var(--mx-radius-lg);
}

.auth-wrapper {
  background:
    radial-gradient(circle at 18% 8%, rgba(71, 64, 200, 0.14), transparent 34%),
    radial-gradient(circle at 84% 88%, rgba(23, 127, 99, 0.12), transparent 34%),
    linear-gradient(180deg, #f8faff 0%, #f2f6fd 100%);
}

.auth-card {
  max-width: 460px;
  padding: 2.35rem 2.2rem;
}

.auth-logo-img {
  width: min(88vw, 430px);
  filter: none !important;
}

.auth-title {
  color: #17233a;
}

.auth-subtitle {
  color: #6a7690;
}

.sync-bar {
  padding: 0.92rem 1.1rem;
}

.sync-info {
  color: #4f5c73;
}

.dot-green {
  background: var(--mx-success);
  box-shadow: 0 0 0 3px rgba(23, 127, 99, 0.18);
}

.dot-red {
  background: #c33d35;
  box-shadow: 0 0 0 3px rgba(195, 61, 53, 0.16);
}

.dot-yellow {
  background: #d0860f;
  box-shadow: 0 0 0 3px rgba(208, 134, 15, 0.16);
}

.source-accordion-summary {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 255, 0.96) 100%);
  padding: 0.92rem 1rem;
}

.source-accordion-title {
  color: #2a3a58;
}

.source-accordion-body {
  border-top: 1px solid rgba(116, 128, 153, 0.22);
}

.table-wrap {
  background: rgba(255, 255, 255, 0.92);
  overflow-x: auto;
}

.data-table,
.hist-table,
.month-table,
.calc-super-breakdown {
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead,
.hist-table thead,
.month-table thead {
  background: linear-gradient(130deg, #1f2a44 0%, #2c3c63 100%);
}

.data-table thead th,
.hist-table thead th,
.month-table thead th {
  color: rgba(255, 255, 255, 0.88);
  border-bottom: none;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  padding: 0.88rem 0.95rem;
}

.data-table tbody tr,
.hist-table tbody tr,
.month-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:nth-child(even),
.hist-table tbody tr:nth-child(even),
.month-table tbody tr:nth-child(even) {
  background: rgba(240, 245, 255, 0.5);
}

.data-table tbody tr:hover,
.hist-table tbody tr:hover,
.month-table tbody tr:hover {
  background: rgba(233, 239, 255, 0.82);
}

.data-table td,
.hist-table td,
.month-table td {
  border-bottom: 1px solid rgba(116, 128, 153, 0.16);
  color: #1f2a3e;
  padding: 0.78rem 0.95rem;
}

.data-table tbody tr[style*="background"] {
  background: transparent !important;
}

.gen-grid {
  gap: 0.9rem;
}

.gen-card {
  background: var(--mx-surface-strong) !important;
  border: 1px solid var(--mx-border) !important;
  border-top: 4px solid transparent;
  box-shadow: var(--mx-shadow-soft);
  border-radius: var(--mx-radius-md);
}

.gen-grid > .gen-card:nth-child(2) {
  border-top-color: #2bb673;
}

.gen-grid > .gen-card:nth-child(3) {
  border-top-color: #2b7cd6;
}

.gen-grid > .gen-card:nth-child(4) {
  border-top-color: #d28325;
}

.gen-grid > .gen-card:nth-child(5) {
  border-top-color: #8a5ce7;
}

.gen-total {
  background: linear-gradient(140deg, #1d2843 0%, #2b3c63 64%, #3f4982 100%) !important;
  box-shadow: 0 12px 24px rgba(31, 42, 68, 0.25) !important;
  border-color: transparent !important;
}

.gen-label {
  color: #73819d;
}

.gen-count {
  color: #1b2942;
  font-size: clamp(2.15rem, 3vw, 2.55rem);
}

.gen-sublabel {
  color: #76839e;
}

.gen-grid-small .gen-card {
  background: var(--mx-surface-soft) !important;
}

.highlight-card {
  border: 1px solid var(--mx-border);
  border-radius: var(--mx-radius-md);
  box-shadow: var(--mx-shadow-soft);
}

.highlight-link:hover {
  box-shadow: var(--mx-shadow);
}

.highlight-kunden {
  border-top-color: #3a89de;
}

.highlight-partner {
  border-top-color: #23a474;
}

.highlight-value {
  color: #192742;
}

.ziel-summary-card,
.prov-summary-card {
  gap: 1.3rem;
}

.ziel-summary-card:hover,
.prov-summary-card:hover {
  box-shadow: var(--mx-shadow);
}

.ziel-current-badge {
  background: linear-gradient(135deg, #1d2843 0%, #2f4068 100%);
  border-radius: 12px;
}

.ziel-current-label,
.prov-total-label {
  color: #74819b;
}

.ziel-next-title,
.ziel-prog-label,
.prov-split-label {
  color: #3e4a61;
}

.ziel-prog-nums,
.prov-split-label em {
  color: #7986a0;
}

.ziel-bar-bg {
  background: #e9eef9;
}

.ziel-bar-fill {
  background: linear-gradient(90deg, #2c2750 0%, #4740c8 100%);
}

.wb-badge {
  border-radius: 12px;
}

.wb-badge-active {
  background: linear-gradient(130deg, #e9f9f2 0%, #f7fffb 100%);
  border: 1px solid rgba(23, 127, 99, 0.3);
}

.wb-badge-pending {
  background: linear-gradient(130deg, #fff3e2 0%, #fff9f0 100%);
  border: 1px solid rgba(173, 104, 0, 0.3);
}

.boost660-hero {
  padding: 1.2rem 1.35rem;
  border-radius: var(--mx-radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 198, 94, 0.38), transparent 32%),
    linear-gradient(130deg, #fff2dd 0%, #fff7eb 52%, #fffdf8 100%);
}

.boost660-kicker {
  color: #7d4b00;
  background: rgba(255, 176, 62, 0.22);
}

.boost660-hero h2 {
  color: #33200c;
}

.boost660-hero p,
.boost660-meta {
  color: #5e4a33;
}

.boost660-cta {
  color: #7e4d00;
}

.booster-grid {
  gap: 0.8rem;
}

.booster-card {
  padding: 0.9rem 0.95rem;
  border-radius: var(--mx-radius-md);
}

.booster-card-hot {
  background: linear-gradient(130deg, #fff4e0 0%, #fff9ec 100%);
  border-color: rgba(240, 179, 84, 0.45) !important;
}

.booster-ziel {
  color: #2d394f;
}

.booster-delta {
  color: var(--mx-success);
}

.npv-mode-pill {
  background: rgba(71, 64, 200, 0.12);
  color: #322e6e;
  border: 1px solid rgba(71, 64, 200, 0.2);
}

.npv-hero {
  background:
    radial-gradient(circle at 2% 8%, rgba(150, 141, 255, 0.22), transparent 38%),
    radial-gradient(circle at 95% 85%, rgba(77, 197, 152, 0.2), transparent 34%),
    linear-gradient(130deg, #f8f9ff 0%, #f8fcff 50%, #ffffff 100%);
}

.npv-hero-copy h2 {
  color: #19284b;
}

.npv-hero-copy p {
  color: #51607d;
}

.score-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(116, 128, 153, 0.24);
  border-radius: var(--mx-radius-md);
}

.score-card-live {
  background: linear-gradient(180deg, #eafaf3 0%, #ffffff 100%);
}

.score-card-out {
  background: linear-gradient(180deg, #fff1f1 0%, #ffffff 100%);
}

.score-label {
  color: #5a6b87;
}

.score-value {
  color: #1c2b4a;
}

.score-meta {
  color: #657491;
}

.leaderboard-card {
  border-radius: var(--mx-radius-md);
  padding: 0.9rem 0.95rem;
  background: linear-gradient(130deg, #ffffff 0%, #f7f9ff 100%);
}

.leaderboard-rank {
  background: linear-gradient(135deg, #ffc873 0%, #ffb45d 100%);
}

.leaderboard-name {
  color: #1e2a45;
}

.leaderboard-note {
  color: #687896;
}

.leaderboard-value {
  color: #2c2750;
}

.section-lead {
  color: #697996;
}

.section-chip {
  border: 1px solid rgba(116, 128, 153, 0.24);
}

.section-chip-success {
  background: var(--mx-success-soft);
  color: var(--mx-success);
}

.section-chip-muted {
  background: #edf0f5;
  color: #5e697a;
}

.table-wrap-muted {
  border-color: rgba(116, 128, 153, 0.4) !important;
  border-style: dashed !important;
}

.excluded-row {
  background: linear-gradient(90deg, rgba(232, 237, 246, 0.92) 0%, rgba(248, 250, 255, 0.97) 100%) !important;
  opacity: 0.94;
}

.out-badge {
  background: rgba(116, 128, 153, 0.16);
  color: #4d5a70;
}

.gen-badge[style],
.gen-pill[style] {
  background: #eef2fb !important;
}

.gen-badge {
  border-color: rgba(71, 64, 200, 0.2);
  color: #2f3f63;
}

.gen-badge-muted {
  opacity: 0.72;
}

.gen1-team-col {
  color: #314768;
}

.gen1-self-badge {
  background: var(--mx-success-soft);
  color: var(--mx-success);
}

.points-value {
  color: #202f4a;
}

.points-missing {
  color: #7f8ca5;
}

.npv-points-strip {
  background: linear-gradient(130deg, #f8f9ff 0%, #f4f9ff 45%, #ffffff 100%);
}

.npv-points-date {
  color: #627292;
}

.npv-points-card {
  border-radius: var(--mx-radius-md);
  border: 1px solid rgba(116, 128, 153, 0.22);
}

.npv-points-card-paid {
  background: linear-gradient(180deg, #eafaf3 0%, #ffffff 100%);
}

.npv-points-card-open {
  background: linear-gradient(180deg, #fff4e5 0%, #ffffff 100%);
}

.npv-points-card-total {
  background: linear-gradient(180deg, #f0f1ff 0%, #ffffff 100%);
}

.npv-points-label {
  color: #607292;
}

.npv-points-value {
  color: #1f2e4a;
}

.npv-points-value span {
  color: #6f7f9a;
}

.npv-points-meta {
  color: #73839f;
}

.prov-hero {
  border-radius: var(--mx-radius-xl);
  background: linear-gradient(135deg, #143f4d 0%, #1f6557 45%, #2b8f63 100%);
  box-shadow: 0 16px 30px rgba(20, 63, 77, 0.26);
}

.prov-hero-item {
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.prov-hero-item-lbl {
  color: rgba(255, 255, 255, 0.86);
}

.prov-hero-item-rate,
.prov-hero-sub,
.prov-hero-label {
  color: rgba(240, 253, 248, 0.84);
}

.prov-hero-divider {
  color: rgba(238, 253, 245, 0.62);
}

.prov-total-row {
  background: rgba(239, 245, 255, 0.8) !important;
}

.prov-amount {
  color: var(--mx-success);
}

.gen-pill {
  border-radius: 999px;
  border: 1px solid rgba(71, 64, 200, 0.22);
  color: #2f3f63;
}

.calc-card {
  padding: 1.25rem 1.3rem;
}

.provision-mobile-jump {
  display: none;
}

.provision-mobile-jump-inner {
  display: flex;
  gap: 0.52rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.1rem;
}

.provision-mobile-jump-inner::-webkit-scrollbar {
  display: none;
}

.provision-mobile-jump-link {
  white-space: nowrap;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(71, 64, 200, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #2c2750;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.provision-mobile-jump-link:active {
  transform: scale(0.98);
}

.calc-intro,
.calc-slider-label,
.calc-formula-hint,
.calc-result-label {
  color: #61708a;
}

.calc-jump-box {
  border: 1px solid rgba(222, 175, 101, 0.45);
  border-left: 4px solid #d18922;
  background: linear-gradient(130deg, #fff6ea 0%, #fffef9 100%);
}

.calc-jump-box.calc-jump-positive {
  border-color: rgba(55, 167, 123, 0.36);
  border-left-color: #1c8e65;
  background: linear-gradient(130deg, #edfaf4 0%, #f9fffc 100%);
}

.calc-jump-title,
.calc-slider-val,
.calc-rate-badge {
  color: #2f3f63;
}

.calc-interactive {
  border: 1px solid rgba(116, 128, 153, 0.28);
  background: linear-gradient(130deg, rgba(248, 251, 255, 0.94) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.calc-boost-box {
  border: 1px solid rgba(231, 172, 83, 0.45);
  border-left: 5px solid #d98e24;
  background: linear-gradient(130deg, #fff5e5 0%, #fffdf8 100%);
  box-shadow: 0 8px 18px rgba(194, 137, 52, 0.16);
}

.calc-super-boost {
  border: 1px solid rgba(230, 170, 84, 0.45);
  border-left: 6px solid #db8f26;
  background: linear-gradient(130deg, #fff6e8 0%, #fffdf7 100%);
}

.calc-super-item,
.calc-super-breakdown-wrap {
  border: 1px solid rgba(116, 128, 153, 0.22);
}

.calc-rate-badge {
  background: #eceffd;
  border: 1px solid rgba(71, 64, 200, 0.22);
}

.calc-slider {
  accent-color: #1f6557;
}

.prov-info-box {
  background: linear-gradient(130deg, #f7f9ff 0%, #ffffff 100%);
  border: 1px solid rgba(116, 128, 153, 0.28);
  border-left: 4px solid #3856a5;
  border-radius: var(--mx-radius-md);
  color: #4e5d78;
}

.planner-card {
  border-radius: var(--mx-radius-md);
}

.planner-card-primary {
  background: linear-gradient(130deg, #fff4e3 0%, #fffbee 100%);
  border-color: rgba(230, 170, 84, 0.52) !important;
}

.planner-kicker {
  color: #6f5f47;
}

.gen-detail-card {
  border-radius: var(--mx-radius-md);
}

.gen-detail-meta {
  color: #64758f;
}

.history-header h1,
.kpi-header h1 {
  font-family: "Sora", "Manrope", sans-serif;
  color: #19294a;
  letter-spacing: -0.02em;
}

.history-header p {
  color: #627291;
}

.search-card h2,
.results-card h2,
.download-section h2,
.chart-section h2,
.month-section h2 {
  color: #1d2d4f;
}

.btn-search {
  border-radius: 12px;
  border: 1px solid transparent;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--mx-brand) 0%, var(--mx-brand-2) 100%);
  box-shadow: 0 8px 18px rgba(44, 39, 80, 0.25);
}

.btn-search:hover {
  background: linear-gradient(135deg, #241f42 0%, #3f39b0 100%);
}

.btn-reset,
.btn-back {
  border: 1px solid rgba(71, 64, 200, 0.26);
  color: var(--mx-brand);
  background: rgba(236, 235, 255, 0.86);
}

.btn-reset:hover,
.btn-back:hover {
  background: rgba(221, 219, 255, 0.92);
}

.results-badge {
  background: #2b3c63;
}

.range-btn {
  border: 1px solid rgba(116, 128, 153, 0.34);
  border-radius: 999px;
  color: #34445f;
  background: rgba(255, 255, 255, 0.88);
}

.range-btn:hover {
  border-color: rgba(71, 64, 200, 0.36);
  background: rgba(236, 235, 255, 0.84);
}

.range-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--mx-brand) 0%, var(--mx-brand-2) 100%);
}

.range-input {
  border: 1px solid rgba(116, 128, 153, 0.3);
  border-radius: 10px;
}

.val-bezahlt {
  color: #204080;
}

.val-offen {
  color: #b06b04;
}

.empty-state-kpi h3 {
  color: #1d2d4f;
}

.legal-content h2 {
  color: #1d2d4f;
}

.legal-content p,
.legal-content li {
  color: #44526a;
}

.pwa-install-bar {
  top: var(--nav-height);
  background: linear-gradient(135deg, #1f2a44 0%, #2d3e65 100%);
}

.pwa-install-close {
  background: rgba(255, 255, 255, 0.18);
}

.pwa-refresh-fab {
  background: linear-gradient(140deg, #1f2a44 0%, #2d3e65 100%);
  box-shadow: 0 12px 22px rgba(31, 42, 68, 0.35);
  border-radius: 14px;
}

body.is-standalone .main-content {
  padding-top: calc(0.7rem + env(safe-area-inset-top, 0px));
  padding-right: calc(0.72rem + env(safe-area-inset-right, 0px));
  padding-left: calc(0.72rem + env(safe-area-inset-left, 0px));
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 980px) {
  .nav-inner {
    padding: 0 1rem;
  }

  .main-content {
    padding: 1.2rem 1rem 2.4rem;
  }

  .page-header {
    padding: 0.95rem 0.95rem;
  }

  .prov-hero {
    padding: 1.35rem;
    gap: 1rem;
  }

  .prov-hero-total {
    font-size: 2rem;
  }

  .npv-hero {
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding: 1.05rem;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 76px;
  }

  .has-mobile-tabbar .main-content {
    padding-bottom: calc(6.2rem + env(safe-area-inset-bottom, 0px));
  }

  .navbar {
    border-bottom: 1px solid rgba(116, 128, 153, 0.26);
  }

  .nav-inner {
    height: var(--nav-height);
    gap: 0.7rem;
  }

  .nav-logo-img {
    width: min(67vw, 244px);
  }

  .nav-links {
    top: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(116, 128, 153, 0.2);
  }

  .nav-links li a {
    border-radius: 0;
    border: none;
    padding: 0.82rem 1.2rem;
  }

  .nav-user-chip {
    background: transparent;
    box-shadow: none;
    border: none;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 240;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.38rem;
    padding: 0.58rem calc(0.56rem + env(safe-area-inset-right, 0px)) calc(0.58rem + env(safe-area-inset-bottom, 0px)) calc(0.56rem + env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95) 0%, rgba(239, 245, 255, 0.98) 100%);
    border-top: 1px solid rgba(116, 128, 153, 0.2);
    backdrop-filter: blur(14px);
  }

  .mobile-tabbar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(116, 128, 153, 0.22);
    background: rgba(255, 255, 255, 0.88);
  }

  .mobile-tabbar-label {
    color: #55637d;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.03em;
  }

  .mobile-tabbar-item.active {
    border-color: rgba(71, 64, 200, 0.35);
    background: linear-gradient(135deg, #2c2750 0%, #4740c8 100%);
    box-shadow: 0 8px 16px rgba(44, 39, 80, 0.26);
  }

  .mobile-tabbar-item.active .mobile-tabbar-label {
    color: #ffffff;
  }

  .has-mobile-tabbar .pwa-refresh-fab {
    bottom: calc(6.8rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-glance-section {
    display: block;
  }

  .provision-mobile-jump {
    display: block;
    margin-top: -0.32rem;
    margin-bottom: 0.88rem;
  }

  .mobile-stack-table-kpi thead {
    display: none;
  }

  .mobile-stack-table-kpi tbody {
    display: grid;
    gap: 0.62rem;
    padding: 0.62rem;
  }

  .mobile-stack-table-kpi tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
    border: 1px solid rgba(116, 128, 153, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.58rem 0.66rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  }

  .mobile-stack-table-kpi td {
    padding: 0 !important;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.78rem;
    font-size: 0.82rem;
  }

  .mobile-stack-table-kpi td[data-label]::before {
    content: attr(data-label);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7786a1;
    font-weight: 800;
    line-height: 1.25;
  }

  .mobile-stack-table-kpi .param-label {
    display: block;
  }

  .mobile-stack-table-kpi .param-label::before {
    content: "";
    display: none;
  }

  .mobile-stack-table-kpi .param-label .npv-link {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    color: #1e2d4b;
    font-weight: 800;
    font-size: 0.94rem;
  }

  .mobile-stack-table-kpi .kpi-action-col {
    justify-content: flex-start;
    padding-top: 0.2rem !important;
  }

  .mobile-stack-table-kpi .kpi-action-col::before {
    display: none;
  }

  #npv-table th:nth-child(3),
  #npv-table th:nth-child(4),
  #npv-table th:nth-child(6),
  #npv-excluded-table th:nth-child(3),
  #npv-excluded-table th:nth-child(4),
  #npv-excluded-table th:nth-child(6) {
    display: none;
  }

  #npv-table td:nth-child(3),
  #npv-table td:nth-child(4),
  #npv-table td:nth-child(6),
  #npv-excluded-table td:nth-child(3),
  #npv-excluded-table td:nth-child(4),
  #npv-excluded-table td:nth-child(6) {
    display: none;
  }

  #npv-table .partner-email,
  #npv-excluded-table .partner-email {
    display: none;
  }

  #prov-generation-table th:nth-child(2),
  #prov-generation-table td:nth-child(2) {
    display: none;
  }

  #prov-top-partners-table th:nth-child(3),
  #prov-top-partners-table td:nth-child(3) {
    display: none;
  }

  .greeting-inner {
    padding: 0.7rem 1rem 0.66rem;
  }

  .greeting-line {
    font-size: 0.95rem;
  }

  .section {
    margin-bottom: 1.2rem;
  }

  .form-card,
  .auth-card,
  .calc-card,
  .search-card,
  .results-card,
  .chart-section,
  .month-section,
  .download-section {
    padding: 1rem;
    border-radius: 16px;
  }

  .table-wrap {
    border-radius: 14px;
  }

  .data-table thead th,
  .hist-table thead th,
  .month-table thead th {
    padding: 0.76rem 0.72rem;
  }

  .data-table td,
  .hist-table td,
  .month-table td {
    padding: 0.66rem 0.72rem;
    font-size: 0.83rem;
  }

  .score-value {
    font-size: 1.88rem;
  }

  .highlight-value {
    font-size: 2.1rem;
  }

  .site-footer {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 540px) {
  .page-title {
    font-size: 1.3rem;
  }

  .page-subtitle {
    font-size: 0.86rem;
  }

  .gen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gen-grid-small {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .gen-count {
    font-size: 1.92rem;
  }

  .gen-count-sm {
    font-size: 1.1rem;
  }

  .npv-hero-score {
    grid-template-columns: 1fr;
  }

  .leaderboard-card {
    flex-wrap: wrap;
  }

  .leaderboard-value {
    margin-left: 3.2rem;
  }

  .prov-hero-split {
    margin-left: 0;
    gap: 0.8rem;
  }

  .prov-hero-item {
    width: 100%;
    text-align: left;
  }

  .calc-result-row {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-result-item {
    text-align: left;
  }

  .calc-result-arrow {
    align-self: center;
  }

  .auth-card {
    padding: 1.2rem 0.95rem;
  }
}
