:root {
  --bg: #edf4fb;
  --bg-2: #f7faff;
  --navy: #071a3b;
  --navy-2: #0b2c62;
  --panel: #ffffff;
  --panel-2: #f7faff;
  --line: #d8e3f1;
  --line-strong: #bfd0e5;
  --text: #0b1c3a;
  --muted: #61738c;
  --blue: #075ce5;
  --blue-2: #1484ff;
  --blue-soft: #eaf3ff;
  --yellow: #ffc400;
  --yellow-2: #ffda42;
  --yellow-soft: #fff5c8;
  --red: #e54b5d;
  --red-soft: #fff0f2;
  --green: #16a868;
  --green-soft: #eaf9f1;
  --shadow-sm: 0 8px 24px rgba(10, 43, 90, .08);
  --shadow-md: 0 18px 48px rgba(10, 43, 90, .12);
  --shadow-lg: 0 30px 80px rgba(10, 43, 90, .14);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 132, 255, .10), transparent 30%),
    radial-gradient(circle at 95% 8%, rgba(255, 196, 0, .08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

.app-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

/* ---------------------------------------------------------
   HEADER / MARKE
   --------------------------------------------------------- */

.topbar {
  min-height: 104px;
  margin: 0 -24px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 25% 0%, rgba(20, 132, 255, .18), transparent 32%),
    linear-gradient(135deg, #06172f 0%, var(--navy) 45%, #0a2a5a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 14px 40px rgba(4, 22, 50, .16);
  position: relative;
  z-index: 10;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 91, 229, .22));
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-copy strong {
  display: block;
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 900;
  white-space: nowrap;
}

.brand-main {
  color: #fff;
}

.brand-accent {
  color: #1e88ff;
  font-style: italic;
  font-weight: 850;
}

.brand-copy small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.brand-copy small b {
  position: relative;
  color: #fff;
}

.brand-copy small b::after {
  content: "";
  position: absolute;
  left: 0;
  right: -2px;
  bottom: -5px;
  height: 4px;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-1.5deg);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-picker {
  margin: 0;
}

.language-picker select {
  width: auto;
  min-width: 148px;
  margin: 0;
  padding: 11px 38px 11px 14px;
  color: #fff;
  background: rgba(5, 20, 45, .58);
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.language-picker select:focus {
  border-color: rgba(255, 255, 255, .65);
  box-shadow: 0 0 0 3px rgba(20, 132, 255, .18);
}

.demo-pill,
.exam-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.demo-pill {
  color: #fff;
  background: rgba(5, 20, 45, .50);
  border: 1px solid rgba(255, 255, 255, .28);
}

.demo-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 14px rgba(255, 196, 0, .55);
}

.exam-badge {
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #cfe1fa;
}

.ghost-btn {
  min-height: 40px;
  padding: 10px 14px;
  color: var(--blue);
  background: transparent;
  border: 1px solid #b9ceeb;
  border-radius: 11px;
  font-weight: 800;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
}

.topbar .ghost-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, .30);
  background: rgba(5, 20, 45, .36);
}

.ghost-btn:hover {
  transform: translateY(-1px);
  background: var(--blue-soft);
  border-color: #8ab7f0;
}

.topbar .ghost-btn:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .52);
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, .68fr) minmax(280px, .86fr);
  gap: 30px;
  align-items: center;
  padding: 54px 12px 38px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.mini-label {
  color: var(--blue);
  letter-spacing: .055em;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 14px 0 20px;
  color: var(--text);
  font-size: clamp(44px, 5.7vw, 72px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 900;
}

.accent-text {
  color: var(--blue);
  position: relative;
}

.accent-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 4%;
  bottom: -8px;
  height: 5px;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-.6deg);
}

.hero p {
  max-width: 690px;
  margin: 0;
  color: #41546e;
  font-size: 18px;
  line-height: 1.72;
}

.hero-visual {
  min-width: 0;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 330px);
  height: auto;
  max-height: 315px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 28px rgba(10, 52, 109, .14));
}

.metric-card {
  min-height: 250px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(20, 132, 255, .30), transparent 28%),
    linear-gradient(145deg, #09265a 0%, #0a3f95 58%, #075ce5 100%);
  border: 1px solid rgba(7, 92, 229, .18);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "↗";
  position: absolute;
  right: 22px;
  top: 20px;
  color: rgba(255, 255, 255, .20);
  font-size: 58px;
  line-height: 1;
  font-weight: 300;
}

.metric-card span,
.metric-card small {
  display: block;
  color: rgba(255, 255, 255, .88);
  position: relative;
  z-index: 1;
}

.metric-card span {
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 9px 0 8px;
  color: #fff;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.metric-card small {
  font-size: 13px;
}

/* ---------------------------------------------------------
   ALLGEMEINE KARTEN
   --------------------------------------------------------- */

.install-card,
.account-card,
.setup-card,
.panel,
.plan-card,
.study-card,
.finish-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
}

.install-card,
.account-card {
  margin-bottom: 18px;
}

.install-card,
.account-card,
.setup-card {
  position: relative;
}

.install-card:hover,
.account-card:hover,
.setup-card:hover {
  border-color: #c6d9ef;
}

.section-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid #d7e7fb;
}

.section-icon img {
  width: 34px;
  height: 34px;
}

/* ---------------------------------------------------------
   INSTALLATION
   --------------------------------------------------------- */

.install-card {
  padding: 22px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.install-card h2 {
  margin: 6px 0 7px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -.03em;
}

.install-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.install-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.install-btn {
  min-height: 42px;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border: 0;
  border-radius: 11px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(7, 92, 229, .18);
}

.install-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.installed-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  color: #0c7f4d;
  background: var(--green-soft);
  border: 1px solid #bfe9d3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.ios-help {
  grid-column: 1 / -1;
  padding: 13px 15px;
  color: #41546e;
  background: #f6f9fd;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   KONTO + CLOUD-SYNC
   --------------------------------------------------------- */

.account-card {
  padding: 22px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.account-head h2 {
  margin: 6px 0 7px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -.03em;
}

.account-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.account-open-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.account-open-actions .demo-pill {
  color: #3c5d84;
  background: #f5f8fc;
  border-color: var(--line);
}

.account-open-actions .demo-pill::before {
  background: #9eb2c9;
  box-shadow: none;
}

.account-open-actions .primary-btn,
.account-open-actions .ghost-btn {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.account-form,
.account-user,
.account-delete-form,
.account-status {
  grid-column: 1 / -1;
}

.account-form {
  margin-top: 2px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.account-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.account-password-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.account-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.account-actions .primary-btn,
.account-actions .ghost-btn,
.account-actions .danger-btn {
  width: auto;
  margin-top: 0;
}

.account-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-status.success {
  color: var(--green);
}

.account-status.error {
  color: var(--red);
}

.account-user {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-user strong,
.account-user span,
.account-user small {
  display: block;
}

.account-user strong {
  margin-top: 4px;
  color: var(--text);
}

.account-user small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.account-user .ghost-btn {
  white-space: nowrap;
}

.account-sync-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: auto;
  margin-top: 10px;
  padding: 7px 10px;
  color: #087a48;
  background: var(--green-soft);
  border: 1px solid #c4ead5;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.account-busy {
  opacity: .65;
  pointer-events: none;
}

.account-delete-form {
  margin-top: 2px;
  padding: 18px;
  background: var(--red-soft);
  border: 1px solid #f5c7ce;
  border-radius: 14px;
}

.account-delete-copy strong {
  color: #9e2637;
}

.account-delete-copy p {
  color: #74434b;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   SETUP
   --------------------------------------------------------- */

.setup-card {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  letter-spacing: -.035em;
}

.step {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #d3e5fb;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}

.panic-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a13040;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.panic-toggle input {
  display: none;
}

.panic-toggle span {
  width: 42px;
  height: 23px;
  border-radius: 999px;
  background: #ccd8e6;
  position: relative;
  transition: .2s;
}

.panic-toggle span::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(25, 48, 78, .20);
  transition: .2s;
}

.panic-toggle input:checked + span {
  background: var(--red);
}

.panic-toggle input:checked + span::after {
  transform: translateX(19px);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

label {
  color: #30455f;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8a9bb0;
}

input:focus,
select:focus,
textarea:focus {
  background: #fff;
  border-color: rgba(7, 92, 229, .60);
  box-shadow: 0 0 0 4px rgba(7, 92, 229, .09);
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

.full-label {
  display: block;
  margin-top: 18px;
}

.upload-row {
  margin-top: 14px;
}

.upload-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  color: #30455f;
  background: #f8fbff;
  border: 1px dashed #a9c2df;
  border-radius: 14px;
  cursor: pointer;
  transition:
    background .18s ease,
    border-color .18s ease;
}

.upload-box:hover {
  background: #f2f7ff;
  border-color: #73a8eb;
}

.upload-box input {
  display: none;
}

.upload-box strong,
.upload-box small {
  display: block;
}

.upload-box small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

.upload-icon {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #d5e7fb;
  border-radius: 11px;
  font-size: 24px;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.file-chip {
  padding: 7px 9px;
  color: #52667f;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.primary-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(7, 92, 229, .18);
  font-weight: 900;
  transition:
    transform .18s ease,
    filter .18s ease,
    box-shadow .18s ease;
}

.primary-btn:hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(7, 92, 229, .22);
}

.setup-card > .primary-btn,
#analyzeBtn {
  color: #10213a;
  background: linear-gradient(135deg, #ffbd00, var(--yellow-2));
  box-shadow: 0 10px 28px rgba(255, 196, 0, .22);
}

.setup-card > .primary-btn:hover,
#analyzeBtn:hover {
  box-shadow: 0 14px 34px rgba(255, 196, 0, .28);
}

.danger-btn,
.warning-btn,
.success-btn {
  border-radius: 11px;
  font-weight: 850;
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease;
}

.danger-btn {
  color: #b52e42;
  background: var(--red-soft);
  border: 1px solid #f0b6bf;
}

.warning-btn {
  color: #8c5a00;
  background: #fff8df;
  border: 1px solid #f3d681;
}

.success-btn {
  color: #087746;
  background: var(--green-soft);
  border: 1px solid #bde4cf;
}

.danger-btn:hover,
.warning-btn:hover,
.success-btn:hover {
  transform: translateY(-1px);
}

.privacy-note {
  margin: 11px 0 0;
  color: #76879d;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

/* ---------------------------------------------------------
   ERGEBNIS
   --------------------------------------------------------- */

.results,
.session,
.finish {
  padding-top: 64px;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.panel,
.plan-card {
  padding: 22px;
  border-radius: 20px;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.panel h3 {
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.topic-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #e2eaf4;
}

.priority-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.priority-dot.high {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 75, 93, .09);
}

.priority-dot.medium {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, .10);
}

.priority-dot.low {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 168, 104, .09);
}

.topic-name strong,
.topic-name small {
  display: block;
}

.topic-name strong {
  color: var(--text);
}

.topic-name small {
  margin-top: 3px;
  color: var(--muted);
}

.rating-group {
  display: flex;
  gap: 5px;
}

.rating-group button {
  width: 34px;
  height: 34px;
  color: #687b92;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.rating-group button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(7, 92, 229, .18);
}

.plan-card {
  position: sticky;
  top: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 132, 255, .25), transparent 28%),
    linear-gradient(160deg, #071a3b 0%, #0b2f69 100%);
  border-color: rgba(7, 92, 229, .18);
  box-shadow: var(--shadow-md);
}

.plan-card .mini-label {
  color: #8fc0ff;
}

.plan-time {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 18px;
}

.plan-time strong {
  color: #fff;
  font-size: 58px;
  line-height: 1;
  letter-spacing: -.06em;
}

.plan-time span {
  color: rgba(255, 255, 255, .72);
}

.plan-step {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  color: #eef5ff;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
}

.plan-step span:last-child {
  color: rgba(255, 255, 255, .65);
}

.plan-card .primary-btn {
  color: #10213a;
  background: linear-gradient(135deg, #ffbd00, var(--yellow-2));
  box-shadow: 0 10px 26px rgba(255, 196, 0, .17);
}

/* ---------------------------------------------------------
   SESSION / DIAGNOSE
   --------------------------------------------------------- */

.session-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.session-top > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 14px;
}

.session-top h2 {
  margin: 2px 0 0;
  color: var(--text);
}

.session-top p {
  grid-column: 2;
  margin: 5px 0 0;
  color: var(--muted);
}

.timer {
  color: var(--blue);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.study-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 22px;
}

.study-progress {
  height: 6px;
  margin-bottom: 28px;
  overflow: hidden;
  background: #e8eff8;
  border-radius: 999px;
}

.study-progress div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  border-radius: inherit;
  transition: .25s;
}

.study-card h3 {
  margin: 10px 0;
  color: var(--text);
  font-size: 28px;
  letter-spacing: -.025em;
}

.study-card p {
  color: var(--muted);
  line-height: 1.7;
}

.confidence-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.confidence-buttons button {
  min-height: 48px;
  padding: 13px;
}

/* ---------------------------------------------------------
   ABSCHLUSS
   --------------------------------------------------------- */

.finish {
  padding-bottom: 60px;
}

.finish-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 30px;
  border-radius: 24px;
  text-align: center;
}

.finish-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(7, 92, 229, .18);
  font-size: 27px;
}

.finish-card h2 {
  color: var(--text);
  font-size: 34px;
  letter-spacing: -.04em;
}

.finish-card p {
  color: var(--muted);
}

.finish-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0 10px;
}

.finish-stats div {
  padding: 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.finish-stats strong,
.finish-stats span {
  display: block;
}

.finish-stats strong {
  color: var(--blue);
  font-size: 24px;
}

.finish-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------------------------------------------------------
   PASSWORT
   --------------------------------------------------------- */

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #657992;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 18px;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   FOOTER / UTILITIES
   --------------------------------------------------------- */

footer {
  margin-top: 58px;
  padding: 24px 2px 8px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #75879d;
  border-top: 1px solid #d8e3f1;
  font-size: 11px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(210px, .72fr);
  }

  .hero-visual {
    display: none;
  }

  .metric-card {
    min-height: 225px;
  }
}

@media (max-width: 800px) {
  .app-shell {
    padding: 0 16px 24px;
  }

  .topbar {
    min-height: 82px;
    margin: 0 -16px;
    padding: 13px 16px;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-copy strong {
    font-size: 29px;
  }

  .brand-copy small {
    margin-top: 5px;
    font-size: 10px;
  }

  .top-actions {
    flex-wrap: wrap;
    gap: 7px;
  }

  .demo-pill {
    display: none;
  }

  .language-picker select {
    min-width: 108px;
    padding: 9px 30px 9px 10px;
  }

  .topbar .ghost-btn {
    min-height: 36px;
    padding: 8px 10px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 44px 2px 30px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .hero p {
    font-size: 16px;
  }

  .metric-card {
    min-height: 190px;
  }

  .install-card {
    grid-template-columns: auto 1fr;
  }

  .install-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .account-card {
    grid-template-columns: auto 1fr;
  }

  .account-head {
    grid-template-columns: 1fr;
  }

  .account-open-actions {
    justify-content: flex-start;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-user {
    grid-template-columns: 1fr;
  }

  .account-open-actions .primary-btn,
  .account-open-actions .ghost-btn,
  .account-actions .primary-btn,
  .account-actions .ghost-btn,
  .account-actions .danger-btn {
    width: 100%;
  }

  .setup-card {
    padding: 22px 18px;
  }

  .form-grid.three,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    position: static;
  }

  .section-heading,
  .session-top {
    align-items: flex-start;
  }

  .section-heading {
    flex-direction: column;
  }

  .confidence-buttons {
    grid-template-columns: 1fr;
  }

  .finish-stats {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    align-self: flex-start;
  }

  .top-actions {
    justify-content: space-between;
  }

  .language-picker {
    flex: 1 1 auto;
  }

  .language-picker select {
    width: 100%;
  }

  .install-card,
  .account-card {
    grid-template-columns: 1fr;
  }

  .section-icon {
    width: 48px;
    height: 48px;
  }

  .install-actions {
    grid-column: auto;
  }

  .install-actions .install-btn,
  .install-actions .ghost-btn {
    width: 100%;
  }

  .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-item {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .rating-group {
    grid-column: 2;
  }

  .session-top {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------
   COMMUNITY-STATISTIK
   --------------------------------------------------------- */

.community-stats[hidden] {
  display: none !important;
}

.community-stats {
  margin: 18px 0 24px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(0, 1.95fr);
  align-items: center;
  gap: 26px;
  color: #fff;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(255, 196, 0, .12),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #081d3e 0%,
      #0b2c62 100%
    );
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.community-stats-copy {
  min-width: 0;
}

.community-stats-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #d9e8fb;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.community-stats-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow:
    0 0 0 4px rgba(255, 196, 0, .12);
}

.community-stats h2 {
  margin: 0;
  color: #fff;
  font-size:
    clamp(
      1.15rem,
      2vw,
      1.55rem
    );
  line-height: 1.15;
}

.community-stats-copy p {
  max-width: 430px;
  margin: 7px 0 0;
  color: #c6d7eb;
  font-size: .86rem;
  line-height: 1.45;
}

.community-stats-values {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-stat {
  min-width: 0;
  padding: 6px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.community-stat strong {
  color: var(--yellow);
  font-size:
    clamp(
      1.55rem,
      3vw,
      2.25rem
    );
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.community-stat span {
  margin-top: 7px;
  color: #eef5ff;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .community-stats {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .community-stats-copy p {
    max-width: none;
  }

  .community-stat:first-child {
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .community-stats {
    padding: 18px;
  }

  .community-stats-values {
    grid-template-columns: 1fr;
  }

  .community-stat {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  .community-stat:first-child {
    border-top: 0;
  }

  .community-stat strong {
    font-size: 1.8rem;
  }
}

/* ---------------------------------------------------------
   FOUNDER 1000
   --------------------------------------------------------- */

.founder-offer[hidden] {
  display: none !important;
}

.founder-offer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 2px;
  padding: 14px 16px;
  color: var(--text);
  background:
    linear-gradient(
      135deg,
      #fff9df 0%,
      #fffdf5 100%
    );
  border: 1px solid #f1d76a;
  border-radius: 14px;
}

.founder-offer-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #7b5a00;
  background: var(--yellow);
  border-radius: 11px;
  font-size: 18px;
  font-weight: 900;
}

.founder-offer-copy {
  min-width: 0;
}

.founder-offer-copy strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.founder-offer-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.founder-offer-status {
  min-width: 150px;
  padding-left: 16px;
  border-left: 1px solid #ead68c;
  text-align: right;
}

.founder-offer-status strong {
  display: block;
  color: #8b6700;
  font-size: 22px;
  line-height: 1;
}

.founder-offer-status span {
  display: block;
  margin-top: 5px;
  color: #6b5b2a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.founder-offer.is-founder {
  background:
    linear-gradient(
      135deg,
      #fff5bf 0%,
      #fffdf2 100%
    );
}

.founder-offer.is-closed {
  background: #f7f9fc;
  border-color: var(--line);
}

.founder-offer.is-closed .founder-offer-icon {
  color: #49617e;
  background: #e8eef6;
}

.founder-offer.is-closed .founder-offer-status {
  border-left-color: var(--line);
}

.founder-offer.is-closed .founder-offer-status strong,
.founder-offer.is-closed .founder-offer-status span {
  color: #52677f;
}

@media (max-width: 720px) {
  .founder-offer {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .founder-offer-status {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 11px 0 0;
    border-left: 0;
    border-top: 1px solid #ead68c;
    text-align: left;
  }

  .founder-offer.is-closed .founder-offer-status {
    border-top-color: var(--line);
  }
}

/* ---------------------------------------------------------
   ZEITMODELL: LERNAUFWAND → SESSION → ZEITERSPARNIS
   --------------------------------------------------------- */

.time-explainer[hidden] {
  display: none !important;
}

.time-explainer {
  border-radius: 16px;
}

.time-explainer-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.time-explainer-head > span {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}

.time-explainer-head strong {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
}

/* Erklärung direkt bei "Deine Session" */

.time-explainer-session {
  margin: 0 0 17px;
  padding: 14px 15px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      rgba(20, 132, 255, .16),
      rgba(255, 196, 0, .08)
    );
  border: 1px solid rgba(255, 255, 255, .16);
}

.time-explainer-session .time-explainer-head strong {
  color: #fff;
}

.time-explainer-session p {
  margin: 8px 0 0;
  color: rgba(238, 245, 255, .82);
  font-size: 12px;
  line-height: 1.55;
}

/* Große, nachvollziehbare Rechnung im Abschluss */

.time-explainer-finish {
  margin: 24px 0 8px;
  padding: 20px;
  text-align: left;
  color: var(--text);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 196, 0, .15),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #f3f8ff 0%,
      #fffdf3 100%
    );
  border: 1px solid #cbdcf1;
  box-shadow: 0 12px 30px rgba(10, 43, 90, .08);
}

.time-explainer-finish .time-explainer-head {
  margin-bottom: 16px;
}

.time-explainer-finish .time-explainer-head strong {
  color: var(--navy);
  font-size: 15px;
}

.time-equation {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.time-equation-value {
  min-width: 0;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.time-equation-value strong,
.time-equation-value span {
  display: block;
}

.time-equation-value strong {
  color: var(--blue);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 900;
  white-space: nowrap;
}

.time-equation-value span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 750;
}

.time-equation-value:last-of-type {
  background:
    linear-gradient(
      135deg,
      #fff6c9 0%,
      #fffdf3 100%
    );
  border-color: #efd36b;
}

.time-equation-value:last-of-type strong {
  color: #8a6500;
}

.time-equation-symbol {
  align-self: center;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

.time-explainer-finish p {
  margin: 16px 0 0;
  color: #435a75;
  font-size: 13px;
  line-height: 1.6;
}

.time-explainer-finish small {
  display: block;
  margin-top: 9px;
  padding-top: 9px;
  color: #6f8095;
  border-top: 1px solid rgba(191, 208, 229, .75);
  font-size: 11px;
  line-height: 1.5;
}

/* Mobil: Rechnung untereinander statt gequetscht */

@media (max-width: 700px) {
  .time-equation {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .time-equation-symbol {
    justify-self: center;
    transform: rotate(0deg);
  }

  .time-equation-value {
    padding: 13px 12px;
  }

  .time-explainer-finish {
    padding: 17px;
  }
}

@media (max-width: 420px) {
  .time-explainer-session {
    padding: 13px;
  }

  .time-explainer-finish {
    padding: 15px;
  }

  .time-equation-value strong {
    font-size: 23px;
  }
}