
/* Verborgene Bereiche dürfen nicht durch Komponenten-CSS wieder eingeblendet werden. */
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

:root {
  --dash-bg: #02152d;
  --dash-bg-deep: #000d1e;
  --dash-panel: rgba(2, 23, 48, 0.82);
  --dash-panel-hover: rgba(4, 36, 73, 0.95);
  --dash-gold: #e7a933;
  --dash-gold-light: #ffd56f;
  --dash-white: #ffffff;
  --dash-muted: #aebbd0;
  --dash-border: rgba(231, 169, 51, 0.35);
}

.dashboard-body {
  min-height: 100vh;
  margin: 0;
  color: var(--dash-white);
  background-color: #020c1b;
  background-image:
    linear-gradient(rgba(1, 8, 18, .10), rgba(1, 8, 18, .10)),
    url("assets/infinity-background-desktop.webp?v=20260804-bg-master-1");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  min-height: 112px;
  padding: 18px clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0, 10, 25, 0.48);
  backdrop-filter: blur(12px);
}

.app-brand img {
  display: block;
  width: 190px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: screen;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-user {
  max-width: 250px;
  overflow: hidden;
  color: var(--dash-muted);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-link {
  border: 0;
  padding: 0;
  color: var(--dash-gold-light);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.logout-link:hover {
  color: var(--dash-white);
}

.dashboard-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 48px;
  flex: 1;
}

.dashboard-hero {
  max-width: 830px;
  margin-bottom: 44px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--dash-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.08;
}

.hero-text {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--dash-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.primary-action {
  margin-bottom: 28px;
}

.analysis-start-card {
  min-height: 220px;
  padding: clamp(28px, 5vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: var(--dash-white);
  text-decoration: none;
  border: 1px solid var(--dash-gold);
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(231,169,51,0.12), transparent 42%),
    var(--dash-panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.analysis-start-card:hover {
  transform: translateY(-3px);
  background:
    linear-gradient(120deg, rgba(231,169,51,0.19), transparent 44%),
    var(--dash-panel-hover);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.analysis-start-card h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
}

.analysis-start-card p {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--dash-muted);
  font-size: 18px;
  line-height: 1.55;
}

.start-arrow {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dash-border);
  border-radius: 50%;
  color: var(--dash-gold-light);
  font-size: 42px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-tile {
  min-height: 190px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: var(--dash-white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(1, 17, 37, 0.64);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}


.admin-dashboard-tile {
  grid-column: 1 / -1;
  min-height: 125px;
  border-color: var(--dash-border);
  background:
    linear-gradient(120deg, rgba(231,169,51,0.09), transparent 42%),
    rgba(1, 17, 37, 0.72);
}

.dashboard-tile:hover {
  transform: translateY(-2px);
  border-color: var(--dash-border);
  background: var(--dash-panel-hover);
}

.tile-symbol {
  flex: 0 0 auto;
  color: var(--dash-gold);
  font-size: 30px;
  line-height: 1;
}

.dashboard-tile h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
}

.dashboard-tile p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 16px;
  line-height: 1.55;
}

.status-strip {
  margin-top: 24px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dash-muted);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(0, 11, 28, 0.38);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #78d7a2;
  box-shadow: 0 0 16px rgba(120,215,162,0.75);
}

.app-footer {
  padding: 26px;
  color: rgba(174, 187, 208, 0.65);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 850px) {
  .app-header {
    min-height: 82px;
  }

  .app-brand img {
    width: 150px;
    height: 52px;
  }

  .header-user {
    display: none;
  }

  .dashboard-main {
    padding-top: 48px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .analysis-start-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .dashboard-main {
    width: min(100% - 28px, 1180px);
  }

  .app-header {
    padding: 14px 18px;
  }

  .app-brand img {
    width: 125px;
    height: 44px;
  }

  .analysis-start-card {
    padding: 28px 24px;
    border-radius: 15px;
  }

  .start-arrow {
    display: none;
  }

  .dashboard-tile {
    min-height: 0;
  }
}


body.access-gated .app-shell {
  visibility: hidden;
}


.analysis-quota {
  display: inline-flex;
  margin: 18px 0 0 !important;
  padding: 8px 13px;
  border: 1px solid rgba(231, 169, 51, 0.58);
  border-radius: 999px;
  color: #ffd56f !important;
  background: rgba(2, 21, 45, 0.52);
  font-size: 14px !important;
  font-weight: 700;
}

.analysis-start-card-disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.analysis-start-card-disabled .start-arrow {
  opacity: 0.35;
}


/* INFINITY Master-Hintergrund – Mobile
   Das mobile 9:16-Template bleibt fest an den Bildschirm gebunden.
   Lange Seiten vergrößern oder verschieben den Hintergrund dadurch nicht mehr. */
@media (max-width: 680px) {
  .dashboard-body {
    position: relative;
    isolation: isolate;
    background-color: #020c1b;
    background-image: none;
  }

  .dashboard-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #020c1b;
    background-image:
      linear-gradient(rgba(1, 8, 18, .10), rgba(1, 8, 18, .10)),
      url("assets/infinity-background-mobile.webp?v=20260806-bg-fixed-1");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
  }
}

/* =========================================================
   INFINITY – Dashboard Sprachschalter
   ========================================================= */
.dashboard-language-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(231, 169, 51, .30);
  border-radius: 10px;
  background: rgba(0, 11, 24, .42);
}

.dashboard-language-switch .language-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}

.dashboard-language-switch .language-option:hover,
.dashboard-language-switch .language-option:focus-visible,
.dashboard-language-switch .language-option.active {
  color: var(--dash-gold-light);
}

.dashboard-language-switch .language-option.active {
  font-weight: 700;
}

.dashboard-language-switch .language-flag {
  display: block;
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16);
}

.dashboard-language-switch .language-separator {
  color: rgba(255,255,255,.26);
  font-size: 13px;
}

@media (max-width: 700px) {
  .header-actions {
    gap: 12px;
  }

  .dashboard-language-switch {
    gap: 7px;
    padding: 6px 9px;
  }

  .dashboard-language-switch .language-option {
    gap: 5px;
    font-size: 13px;
  }

  .dashboard-language-switch .language-flag {
    width: 20px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .dashboard-language-switch .language-option span:last-child {
    display: none;
  }

  .dashboard-language-switch .language-separator {
    display: none;
  }
}

