/* ==========================================================================
   Unternehmer Circle Verband - Design-System
   Die Werte stammen unveraendert aus dem MUI-Theme von project3
   (src/theme/theme.ts), damit die Oberflaeche identisch wirkt.
   ========================================================================== */

:root {
  --background: #f7f9fc;
  --surface: #ffffff;
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --primary-soft: rgba(26, 115, 232, 0.1);
  --primary-soft-strong: rgba(26, 115, 232, 0.14);
  --primary-faint: rgba(26, 115, 232, 0.04);
  --text-primary: #1f1f1f;
  --text-secondary: #5f6368;
  --border: #e3e7ed;
  --success: #188038;
  --success-soft: rgba(24, 128, 56, 0.1);
  --warning: #f9ab00;
  --warning-text: #9a6a00;
  --warning-soft: rgba(249, 171, 0, 0.14);
  --error: #d93025;
  --error-soft: rgba(217, 48, 37, 0.1);
  --neutral-soft: #f1f3f6;

  --radius-button: 9px;
  --radius-input: 9px;
  --radius-card: 14px;
  --radius-chip: 7px;

  --sidebar-width: 248px;
  --topbar-height: 60px;

  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Scrollbar wie im Vorbild */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background-color: #cdd3dc;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text-primary);
}

.h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.h4 {
  font-size: 1rem;
  font-weight: 600;
}

.body1 {
  font-size: 0.9375rem;
}

.body2 {
  font-size: 0.875rem;
}

.caption {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

.muted {
  color: var(--text-secondary);
}

.strong {
  font-weight: 600;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Abstaende (8px-System)
   -------------------------------------------------------------------------- */

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Layout: App Shell
   -------------------------------------------------------------------------- */

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

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background-color: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  inset-block: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.sidebar__brand {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.sidebar__brand img {
  width: 186px;
  height: auto;
  display: block;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.sidebar__section-title {
  padding: 12px 12px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-button);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2px;
}

.nav-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.nav-item.is-active {
  background-color: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.nav-item.is-active:hover {
  background-color: var(--primary-soft-strong);
}

.nav-item__icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  display: block;
}

.nav-item__badge {
  margin-left: auto;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-chip);
  background-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item.is-active .nav-item__badge {
  background-color: var(--primary);
  color: #fff;
}

.shell__main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-height);
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar__title {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  color: inherit;
}

.topbar__user:hover {
  background-color: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar--soft {
  background-color: var(--primary-soft);
  color: var(--primary);
}

.topbar__user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}

.content {
  flex: 1;
  padding: 24px;
  max-width: 1560px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Layout: oeffentliche Seiten
   -------------------------------------------------------------------------- */

.public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
}

.public__header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.public__header-inner,
.public__footer-inner,
.public__main-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.public__header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public__header-inner img {
  width: 200px;
  height: auto;
  display: block;
}

.public__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public__main {
  flex: 1;
  padding: 40px 0;
}

.public__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  padding: 24px 0;

  /* Mattglas: der Kursverlauf schimmert nur noch schwach durch. */
  background-color: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

/* Ohne backdrop-filter waere der Footer zu durchsichtig - dann deckender. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .public__footer {
    background-color: rgba(255, 255, 255, 0.95);
  }
}

.public__footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Page Header
   -------------------------------------------------------------------------- */

.page-header {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.page-header__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

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

/* --------------------------------------------------------------------------
   Karten
   -------------------------------------------------------------------------- */

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.card + .card {
  margin-top: 20px;
}

.card__content {
  padding: 20px;
}

.card__divider {
  height: 1px;
  background-color: var(--border);
  border: 0;
  margin: 20px 0;
}

.stat-card__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-card__value {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 8px;
}

.stat-card__hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 6px;
  display: block;
}

/* --------------------------------------------------------------------------
   Raster
   -------------------------------------------------------------------------- */

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

.col-4 { grid-column: span 4; min-width: 0; }
.col-5 { grid-column: span 5; min-width: 0; }
.col-6 { grid-column: span 6; min-width: 0; }
.col-7 { grid-column: span 7; min-width: 0; }
.col-8 { grid-column: span 8; min-width: 0; }
.col-12 { grid-column: span 12; min-width: 0; }

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

.field-grid__full {
  grid-column: span 2;
}

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field__required {
  color: var(--error);
}

.input,
.select,
.textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 10px 12px;
  min-height: 40px;
}

.textarea {
  min-height: 84px;
  resize: vertical;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #c8cfd9;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  outline: 1px solid var(--primary);
  outline-offset: -2px;
}

.input:disabled,
.select:disabled {
  background-color: #f6f7f9;
  color: var(--text-secondary);
}

.field--invalid .input,
.field--invalid .select,
.field--invalid .textarea {
  border-color: var(--error);
}

.field__hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.field__error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 6px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox input {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox + .checkbox {
  margin-top: 12px;
}

/* Interessen als klickbare Chips */
.chip-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  padding: 6px 12px;
  font-size: 0.8125rem;
  cursor: pointer;
  background-color: var(--surface);
  user-select: none;
}

.chip-choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip-choice:has(input:checked) {
  border-color: var(--primary);
  background-color: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}

.chip-choice:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Honeypot gegen automatische Einsendungen */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Schaltflaechen
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  background: none;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background-color: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--primary-hover);
}

.btn--outlined {
  border-color: var(--border);
  color: var(--text-primary);
  background-color: var(--surface);
}

.btn--outlined:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.btn--text {
  color: var(--text-secondary);
  padding: 0 12px;
}

.btn--text:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.btn--danger {
  border-color: var(--border);
  color: var(--error);
  background-color: var(--surface);
}

.btn--danger:hover {
  background-color: var(--error-soft);
}

.btn--small {
  min-height: 32px;
  padding: 0 12px;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-row--end {
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Chips und Status
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-chip);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-secondary);
  white-space: nowrap;
}

.chip--neutral {
  color: var(--text-secondary);
  background-color: var(--neutral-soft);
  border-color: var(--border);
}

.chip--info {
  color: var(--primary);
  background-color: var(--primary-soft);
  border-color: rgba(26, 115, 232, 0.24);
}

.chip--success {
  color: var(--success);
  background-color: var(--success-soft);
  border-color: rgba(24, 128, 56, 0.24);
}

.chip--warning {
  color: var(--warning-text);
  background-color: var(--warning-soft);
  border-color: rgba(249, 171, 0, 0.34);
}

.chip--error {
  color: var(--error);
  background-color: var(--error-soft);
  border-color: rgba(217, 48, 37, 0.24);
}

/* --------------------------------------------------------------------------
   Hinweise
   -------------------------------------------------------------------------- */

.alert {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.875rem;
  border: 1px solid transparent;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert + .alert {
  margin-top: 12px;
}

.alert__body {
  min-width: 0;
}

.alert--success {
  background-color: var(--success-soft);
  border-color: rgba(24, 128, 56, 0.24);
  color: #10692c;
}

.alert--info {
  background-color: var(--primary-soft);
  border-color: rgba(26, 115, 232, 0.24);
  color: #14539f;
}

.alert--warning {
  background-color: var(--warning-soft);
  border-color: rgba(249, 171, 0, 0.34);
  color: var(--warning-text);
}

.alert--error {
  background-color: var(--error-soft);
  border-color: rgba(217, 48, 37, 0.24);
  color: #a52218;
}

.flash-stack {
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Schluessel-Wert-Listen
   -------------------------------------------------------------------------- */

.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 16px;
}

.kv--single {
  grid-template-columns: 1fr;
}

.kv__label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

.kv__value {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 2px;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   Tabellen
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background-color: #fbfcfe;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background-color: var(--primary-faint);
}

.table__right {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Fortschritt
   -------------------------------------------------------------------------- */

.progress {
  height: 6px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background-color: var(--primary);
  border-radius: 4px;
}

.progress__bar--complete {
  background-color: var(--success);
}

/* --------------------------------------------------------------------------
   Leerzustaende
   -------------------------------------------------------------------------- */

.empty-state {
  padding: 40px 24px;
  text-align: center;
}

.empty-state__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Landingpage
   -------------------------------------------------------------------------- */

:root {
  --navy: #0a2540;
  --brand-green: #2bc97a;
}

/* Breiterer Container für Landing- und Auth-Seiten */
.public--wide .public__header-inner,
.public--wide .public__footer-inner,
.public--wide .public__main-inner {
  max-width: 1140px;
}

.public--wide .public__main {
  padding: 0 0 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: rgba(43, 201, 122, 0.14);
  color: #157a48;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brand-green);
}


/* Kennzahlenband */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 8px 0 40px;
}

.stat {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
}

.stat__value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Abschnitte */
.section {
  padding: 40px 0;
}

.section__head {
  max-width: 62ch;
  margin-bottom: 28px;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section__lead {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

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

.feature {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature__media {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
}

.feature__body {
  padding: 20px;
  flex: 1;
}

.feature__kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-green);
}

.feature__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 6px;
}

.feature__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}

/* Aleks+ Abschnitt */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split img {
  width: 100%;
  height: auto;
  display: block;
}

.quote {
  border-left: 3px solid var(--brand-green);
  padding-left: 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 16px 0 0;
}

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

.value {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.value__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Ablauf */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 20px;
  border-top: 3px solid var(--border);
}

.step--done {
  border-top-color: var(--primary);
}

.step__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-transform: uppercase;
}

/* Abschluss-Band */
.cta-band {
  background-color: var(--navy);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 8px;
}

.cta-band h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  margin: 8px 0 0;
  max-width: 52ch;
}

.btn--onDark {
  background-color: #fff;
  color: var(--navy);
}

.btn--onDark:hover {
  background-color: #eef3fb;
}

.btn--ghostLight {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--ghostLight:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Anmeldung und Registrierung im zweispaltigen Layout
   -------------------------------------------------------------------------- */

.auth {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
}

.auth--reverse .auth__aside {
  order: -1;
}

.auth__aside {
  position: sticky;
  top: 24px;
  background-color: var(--navy);
  border-radius: 20px;
  padding: 32px;
  color: #fff;
}

.auth__aside h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth__aside p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 8px 0 0;
}

.benefit-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.benefit-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

.benefit-list li:first-child {
  border-top: 0;
}

.benefit-list__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--brand-green);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.benefit-list__text {
  min-width: 0;
}

.benefit-list__text strong {
  display: block;
  font-weight: 600;
}

.benefit-list__text span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8125rem;
}

.auth__note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}

.auth__note a {
  color: #fff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Klick-Effekt (Ripple)
   -------------------------------------------------------------------------- */

.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  /* Erbt die Textfarbe des Elements - dadurch passt der Effekt ueberall */
  background-color: currentColor;
  opacity: 0.22;
  animation: ripple 520ms cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}

/* Auf gefuellten Flaechen ist Weiss der passende Ton */
.btn--primary .ripple,
.nav-item.is-active .ripple {
  background-color: #fff;
  opacity: 0.3;
}

@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ripple {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Kopfband der öffentlichen Seiten
   -------------------------------------------------------------------------- */

/* Hintergrundebene der öffentlichen Seiten.
   Sie liegt fixiert hinter dem Inhalt. Beim Scrollen steigen die angedeuteten
   Kurskurven nach oben - jede Ebene unterschiedlich schnell, das ergibt den
   Parallax-Effekt. Alternative Silhouette: ../img/waves.svg.
   Bewusst als eigene Ebene und nicht über background-attachment: fixed,
   weil das auf iOS unzuverlässig ist. */
.public {
  position: relative;
  background-color: transparent;
}

.public::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--background);

  /* Drei Kursebenen, vorderste zuerst - die erste Grafik liegt oben.
     Beim Scrollen schiebt app.js jede Ebene unterschiedlich weit nach oben;
     die vorderste am weitesten. Das ergibt die Staffelung in der Tiefe.

     Jede Grafik ist hoeher als ihre Ruhelage: unter der Kurve sitzt ein
     Schurz, genau so hoch wie der Anstieg. Deshalb sind die Grafiken
     65 / 58 / 53vh hoch, zeigen aber in Ruhe nur 30 / 34 / 38vh Kurve.
     Der Schurz haengt anfangs unter dem Bildrand (100% + Anstieg) und
     kommt beim Steigen nach oben nach - so wird keine Unterkante sichtbar.

     Voll gescrollt steht die Spitze der vordersten Ebene bei 65vh. */
  background-image:
    url('../img/chart-front.svg'),
    url('../img/chart-mid.svg'),
    url('../img/chart-back.svg'),
    radial-gradient(60rem 30rem at 15% -10%, rgba(26, 115, 232, 0.07), transparent 60%),
    radial-gradient(45rem 26rem at 95% 8%, rgba(43, 201, 122, 0.08), transparent 62%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position:
    center calc(100% + 35vh - var(--rise-front, 0px)),
    center calc(100% + 24vh - var(--rise-mid, 0px)),
    center calc(100% + 15vh - var(--rise-back, 0px)),
    left top,
    right top;
  background-size: 100% 65vh, 100% 58vh, 100% 53vh, auto, auto;
}

/* Wer Bewegung reduziert haben möchte, bekommt die Ebene ohne Fixierung. */
@media (prefers-reduced-motion: reduce) {
  .public::before {
    position: absolute;

    /* Keine Bewegung fuer alle, die sie abgeschaltet haben: stattdessen
       stehen die Ebenen gleich auf ihrem Endstand. app.js ruehrt die
       Variablen in diesem Fall nicht an. */
    --rise-front: 35vh;
    --rise-mid: 24vh;
    --rise-back: 15vh;
  }
}

.page-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--navy);
  /* Vernetzte Welt. Alternative Motive: header-skyline.svg */
  background-image: url('../img/header-network.svg');
  background-size: cover;
  background-position: center center;
  margin-bottom: 28px;
  isolation: isolate;
}

/* Verlauf von links, damit der Text auf jedem Bildausschnitt lesbar bleibt */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(7, 27, 46, 0.94) 0%,
    rgba(7, 27, 46, 0.82) 42%,
    rgba(7, 27, 46, 0.35) 72%,
    rgba(7, 27, 46, 0.12) 100%
  );
  z-index: -1;
}

.page-hero__inner {
  padding: 44px 40px 52px;
  max-width: 40rem;
}

.page-hero--compact .page-hero__inner {
  padding: 32px 40px 36px;
}

.page-hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 14px 0 0;
}

.page-hero--compact .page-hero__title {
  font-size: 1.75rem;
  margin-top: 0;
}

.page-hero__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 46ch;
}

.badge--onDark {
  background-color: rgba(43, 201, 122, 0.18);
  color: #7fe3ae;
}

@media (max-width: 700px) {
  .page-hero__inner {
    padding: 28px 24px 34px;
  }

  .page-hero__title {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   Franchise-Bereiche: Balken mit Fly-in
   -------------------------------------------------------------------------- */

.topics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 120ms, box-shadow 120ms, background-color 120ms;

  /* Leichter Markenton, damit sich die Balken von der weissen Karte abheben.
     --accent-rgb liefert das Partial mit, der Wert hier ist nur die
     Rueckfallebene. */
  background-color: rgba(var(--accent-rgb, 26, 115, 232), 0.05);
  border-color: rgba(var(--accent-rgb, 26, 115, 232), 0.24);
}

.topic:hover {
  background-color: rgba(var(--accent-rgb, 26, 115, 232), 0.08);
}

.topic.is-selected {
  background-color: rgba(var(--accent-rgb, 26, 115, 232), 0.12);
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

/* Der Balken selbst ist die Schaltfläche für das Fly-in */
.topic__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

/* Der Farbwechsel liegt auf .topic, hier genuegt der Zeiger. */
.topic__bar {
  cursor: pointer;
}

.topic__logo {
  width: 116px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.topic__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.topic__text {
  flex: 1;
  min-width: 0;
}

.topic__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.topic__claim {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.topic__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}

.topic__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 16px 14px 148px;
}

/* Schalter statt Kästchen - deutlicher auf dem Balken */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__track {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background-color: #d3d9e2;
  position: relative;
  transition: background-color 140ms;
  flex-shrink: 0;
}

.switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #fff;
  transition: transform 140ms;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .switch__track {
  background-color: var(--accent);
}

.switch input:checked + .switch__track .switch__knob {
  transform: translateX(16px);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.switch input:checked ~ .switch__label {
  color: var(--text-primary);
  font-weight: 500;
}

/* Fly-in */
.topic-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 37, 64, 0.45);
  opacity: 0;
  transition: opacity 200ms;
  z-index: 60;
}

.topic-backdrop.is-open {
  opacity: 1;
}

.topic-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  background-color: var(--surface);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 220ms ease;
  box-shadow: -12px 0 40px rgba(10, 37, 64, 0.16);
}

/* Ohne diese Regel wuerde display:flex das hidden-Attribut ueberstimmen: Die
   Panels laegen dann dauerhaft rechts neben dem Bildausschnitt und ihr nach
   links fallender Schatten liefe als Streifen ueber den Seitenrand. */
.topic-panel[hidden] {
  display: none;
}

.topic-panel.is-open {
  transform: translateX(0);
}

.topic-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.topic-panel__logo {
  max-width: 150px;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.topic-panel__close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 0;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-panel__close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.topic-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.topic-panel__image {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.topic-panel__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 0;
}

.topic-panel__lead {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 10px 0 0;
}

.topic-panel__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.topic-panel__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.5;
}

.topic-panel__list li:first-child {
  border-top: 0;
}

.topic-panel__list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.topic-panel__audience {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background-color: var(--background);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.topic-panel__foot {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  background-color: var(--surface);
}

.topic-panel__foot .btn {
  align-self: flex-start;
  margin-top: 4px;
}

body.has-flyin {
  overflow: hidden;
}

@media (max-width: 700px) {
  .topic__choices {
    padding-left: 16px;
  }

  .topic__logo {
    width: 92px;
    height: 34px;
  }

  .topic-panel {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Rechtstexte
   -------------------------------------------------------------------------- */

/* Etwas breiter als die Formulare, aber mit begrenzter Zeilenlaenge. */
.legal {
  max-width: 860px;
  margin: 0 auto;
}

.prose {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.prose h2,
.prose h3 {
  margin: 24px 0 8px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 12px;
  max-width: 72ch;
}

.prose ul {
  margin: 0 0 12px;
  padding-left: 20px;
  max-width: 72ch;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  word-break: break-word;
}

/* Person im Impressum */
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.legal-links {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legal-links a {
  color: var(--text-secondary);
}

.legal-links a:hover {
  color: var(--text-primary);
}

.app-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Zentrierte Formulare (Login, Registrierung, Bestaetigung)
   -------------------------------------------------------------------------- */

.narrow {
  max-width: 560px;
  margin: 0 auto;
}

/* Etwas mehr Platz, wo Balken oder zwei Spalten im Formular stehen */
.narrow--wide {
  max-width: 760px;
}

.result-panel {
  text-align: center;
  padding: 40px 24px;
}

.result-panel__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: block;
}

.result-panel p {
  max-width: 520px;
  margin: 8px auto 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .col-4,
  .col-5,
  .col-7,
  .col-8 {
    grid-column: span 12;
  }
}

@media (max-width: 1000px) {
  .hero,
  .split,
  .auth {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding: 32px 0;
  }

  .hero__title {
    font-size: 2.125rem;
  }

  .hero__media {
    order: -1;
  }

  .auth__aside {
    position: static;
  }

  .auth--reverse .auth__aside {
    order: 0;
  }

  .features,
  .values,
  .steps,
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .shell {
    flex-direction: column;
  }

  .shell__main {
    margin-left: 0;
  }

  .sidebar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    overflow: visible;
  }

  .sidebar__section-title {
    width: 100%;
  }

  .col-6,
  .field-grid {
    grid-column: span 12;
    /* minmax(0, 1fr) statt 1fr: sonst behaelt die Spalte min-width:auto und
       ein breites Feld drueckt sie ueber den Bildrand hinaus. */
    grid-template-columns: minmax(0, 1fr);
  }

  .field-grid__full {
    grid-column: span 1;
  }

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

  .content {
    padding: 16px;
  }
}

/* --------------------------------------------------------------------------
   Einblenden beim Erscheinen
   -------------------------------------------------------------------------- */

/* Inhalte kommen weich herein statt hart zu stehen - wie die Uebergaenge von
   MUI im Referenzprojekt: kurz, nach oben, mit deren Standard-Easing
   (easeOut, cubic-bezier(0, 0, 0.2, 1)).

   Versteckt wird nur unter .js, und die Markierung setzt ein Skript im
   <head>. Ohne JavaScript greift diese Regel nie, der Inhalt steht also
   auch dann vollstaendig da.

   ACHTUNG: Die Auswahl unten muss mit REVEAL_SELECTOR in app.js
   uebereinstimmen. :not(.card *) haelt verschachtelte Meldungen heraus -
   sonst wuerde eine Meldung in einer Karte zweimal animiert. */
.js .page-hero,
.js .page-header,
.js .card,
.js .alert:not(.card *) {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}

.js .is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
  transition:
    opacity 420ms cubic-bezier(0, 0, 0.2, 1),
    transform 420ms cubic-bezier(0, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Wer Bewegung reduziert haben moechte, sieht den Inhalt ohne Uebergang. */
@media (prefers-reduced-motion: reduce) {
  .js .page-hero,
  .js .page-header,
  .js .card,
  .js .alert:not(.card *) {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Leistungen: Kachelwand
   -------------------------------------------------------------------------- */

/* Die Filterleiste erscheint erst, wenn app.js sie uebernommen hat. Ohne
   JavaScript stuende sie ohne Wirkung da - dann ist ungefiltert richtig. */
.offer-filter {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.offer-filter.is-ready {
  display: flex;
}

.chip--filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 140ms, background-color 140ms, color 140ms;
}

.chip--filter:hover {
  border-color: rgba(26, 115, 232, 0.4);
  color: var(--text-primary);
}

.chip--filter.is-active {
  border-color: var(--primary);
  background-color: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}

.chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: var(--neutral-soft);
  font-size: 0.6875rem;
  font-weight: 500;
}

.chip--filter.is-active .chip__count {
  background-color: rgba(26, 115, 232, 0.16);
}

/* Die Kachelwand: so viele Spalten wie hineinpassen. Die Franchise-Systeme
   nehmen zwei, damit ihr Foto Wirkung hat und die Wand einen Rhythmus bekommt. */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 16px;
  align-items: start;
}

.offer {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 160ms, box-shadow 160ms, transform 160ms;
}

.offer:hover {
  border-color: rgba(var(--accent-rgb, 26, 115, 232), 0.5);
  box-shadow: 0 6px 20px rgba(15, 32, 56, 0.09);
  transform: translateY(-2px);
}

.offer.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 3px 0 var(--accent);
}

@media (min-width: 900px) {
  .offer--brand {
    grid-column: span 2;
  }
}

/* Die ganze Kachelflaeche ist die Schaltflaeche - deshalb hier alle
   Vorgaben zuruecksetzen, die ein <button> mitbringt. */
.offer__face {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  flex: 1;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.offer__face:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* --- Markenkacheln mit Foto --- */

.offer__photo {
  position: relative;
  display: block;
  height: 132px;
  overflow: hidden;
}

.offer__photo > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Der Farbschleier bindet das Foto an die Markenfarbe und schafft den
   Kontrast fuer das negative Logo darueber. */
.offer__photo-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(var(--accent-rgb, 26, 115, 232), 0.92) 0%,
      rgba(var(--accent-rgb, 26, 115, 232), 0.62) 52%,
      rgba(10, 37, 64, 0.42) 100%
    );
}

.offer__brand-logo {
  position: absolute;
  left: 20px;
  bottom: 18px;
  width: 148px;
  max-width: 55%;
  height: auto;
  display: block;
}

/* --- Kacheln mit Symbol --- */

.offer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 20px 20px 0;
  border-radius: 12px;
  background-color: rgba(var(--accent-rgb, 26, 115, 232), 0.11);
  color: var(--accent, var(--primary));
}

.offer__icon svg {
  width: 24px;
  height: 24px;
}

/* --- Textteil --- */

.offer__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 16px 20px 20px;
}

.offer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.offer__category {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent, var(--text-secondary));
}

.offer__note {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background-color: var(--neutral-soft);
  color: var(--text-secondary);
  font-size: 0.6875rem;
}

.offer__name {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
}

.offer__claim {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.offer__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent, var(--primary));
}

.offer:hover .offer__more svg {
  transform: translateX(3px);
}

.offer__more svg {
  transition: transform 160ms;
}

/* Erscheint nur, wenn etwas vorgemerkt ist. */
.offer__flag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.offer.is-selected .offer__flag {
  display: inline-flex;
}

.offer__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background-color: rgba(var(--accent-rgb, 26, 115, 232), 0.04);
}

/* Kopfzeile des Fly-ins fuer Leistungen ohne Markenlogo. */
.topic-panel__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.topic-panel__mark svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  box-sizing: content-box;
  border-radius: 10px;
  background-color: rgba(var(--accent-rgb, 26, 115, 232), 0.11);
  color: var(--accent, var(--primary));
}

.offer-empty {
  margin: 24px 0 0;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.offer-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background-color: var(--surface);
}

/* --------------------------------------------------------------------------
   Startseite
   -------------------------------------------------------------------------- */

.btn--large {
  min-height: 46px;
  padding: 0 24px;
  font-size: 0.9375rem;
}

/* Der Kopf der Startseite. Gleiches Motiv wie die Seitenköpfe, nur höher und
   mit dem Verlauf von unten statt von links - hier steht der Text mittig. */
.hero {
  position: relative;
  margin: 0 0 48px;
  padding: 62px 40px 56px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--navy);
  background-image: url('../img/header-network.svg');
  background-size: cover;
  background-position: center center;
  text-align: center;
}

/* Der Schleier ist waagrecht abgestuft statt rundum gleich: links deckt er
   fuer den Text, in der Mitte laesst er den Globus durch, rechts steht ohnehin
   die Anmeldekarte davor. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(7, 27, 46, 0.95) 0%,
    rgba(7, 27, 46, 0.88) 32%,
    rgba(7, 27, 46, 0.46) 60%,
    rgba(7, 27, 46, 0.58) 100%
  );
}


/* Zweispaltig: links die Ansprache, rechts die Anmeldung. Der Text steht
   dann linksbuendig - mittig gesetzt wirkt er neben einer Karte unruhig. */
.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 44px;
  align-items: center;
  text-align: left;
  padding: 76px 44px 68px;
}

.hero__pitch {
  max-width: 560px;
}

.hero__points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero__points li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Haken als Pseudoelement - spart 3x dasselbe SVG im Markup. */
.hero__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(43, 201, 122, 0.22);
  box-shadow: inset 0 0 0 1px rgba(43, 201, 122, 0.55);
}

.hero__points li::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: 9px;
  width: 7px;
  height: 3.5px;
  border-left: 2px solid var(--brand-green);
  border-bottom: 2px solid var(--brand-green);
  transform: rotate(-45deg);
}

.hero__panel {
  padding: 26px 26px 28px;
  border-radius: 16px;
  background-color: var(--surface);
  box-shadow: 0 18px 48px rgba(4, 18, 33, 0.34);
}

.hero__panel-title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 500;
}

.hero__panel-link {
  margin: 12px 0 0;
  font-size: 0.8125rem;
}

.hero__panel-rule {
  margin: 20px 0 16px;
  border: 0;
  border-top: 1px solid var(--border);
}

.hero__panel-note {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.btn--block {
  width: 100%;
}

/* Unter 900 px steht die Anmeldung unter der Ansprache statt daneben. */
@media (max-width: 900px) {
  .hero--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 44px 28px;
  }

  .hero__pitch {
    max-width: none;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid rgba(43, 201, 122, 0.5);
  background-color: rgba(43, 201, 122, 0.16);
  color: var(--brand-green);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero__title {
  margin: 0;
  color: #fff;
  /* Die Untergrenze ist so gewaehlt, dass die zweite Zeile auch auf einem
     schmalen Telefon (288 px Spalte) noch am Stueck steht - sonst faellt
     das letzte Wort allein in eine dritte Zeile. */
  font-size: clamp(1.5rem, 3.4vw, 2.625rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.hero__lead {
  margin: 18px auto 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  line-height: 1.6;
}


/* --- Abschnitte --- */

.lp-section {
  margin-bottom: 56px;
}

.lp-head {
  max-width: 640px;
  margin-bottom: 24px;
}

.lp-head .h2 {
  margin: 0;
}

.lp-head p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.lp-head--light p {
  color: rgba(255, 255, 255, 0.78);
}

.lp-head--light .h2 {
  color: #fff;
}

/* --- Verbandsleistungen --- */

.lp-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(194px, 1fr));
  gap: 16px;
}

.lp-benefit {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background-color: var(--surface);
}

.lp-benefit__art {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}

.lp-benefit__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.lp-benefit__short {
  margin: 6px 0 0;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.lp-benefit__text {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* --- Franchise-Systeme --- */

.lp-brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 16px;
}

.lp-brand {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms, box-shadow 160ms, transform 160ms;
}

.lp-brand:hover {
  border-color: rgba(var(--accent-rgb, 26, 115, 232), 0.55);
  box-shadow: 0 8px 24px rgba(15, 32, 56, 0.1);
  transform: translateY(-3px);
}

.lp-brand__photo {
  position: relative;
  display: block;
  height: 126px;
  overflow: hidden;
}

.lp-brand__photo > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-brand__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(var(--accent-rgb, 26, 115, 232), 0.94) 0%,
    rgba(var(--accent-rgb, 26, 115, 232), 0.66) 58%,
    rgba(10, 37, 64, 0.46) 100%
  );
}

.lp-brand__logo {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: 142px;
  max-width: 62%;
  height: auto;
}

.lp-brand__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}

.lp-brand__claim {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}

.lp-brand__audience {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* --- Zahlen --- */

.lp-numbers {
  margin-bottom: 48px;
  padding: 40px;
  border-radius: 22px;
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(26, 115, 232, 0.34), transparent 62%),
    linear-gradient(120deg, #0a2540 0%, #123a5e 100%);
}

.lp-numbers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.lp-number {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.06);
}

.lp-number__value {
  color: var(--brand-green);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.1;
}

.lp-number__label {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
}

.lp-number__hint {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.lp-numbers__note {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

/* --- Abschluss --- */

.lp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background-color: var(--surface);
}

.lp-cta .h2 {
  margin: 0;
}

@media (max-width: 640px) {
  .hero {
    padding: 52px 22px 46px;
  }

  .lp-numbers {
    padding: 28px 22px;
  }

  .lp-cta {
    padding: 24px 22px;
  }
}

/* Auf schmalen Geräten passen Logo und beide Schaltflächen nicht in eine
   Zeile - der Kopf hat die Seite dadurch quer scrollbar gemacht. Erst wird
   alles etwas kleiner, und wenn es dann immer noch nicht reicht, rutscht die
   Navigation in eine zweite Zeile. */
@media (max-width: 560px) {
  .public__header-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .public__header-inner img {
    width: 148px;
  }

  .public__nav {
    gap: 6px;
  }

  .public__nav .btn {
    padding: 0 12px;
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   Cookie-Hinweis
   -------------------------------------------------------------------------- */

/* Als Leiste am unteren Rand statt als Sperrschicht über der Seite: Der
   Hinweis muss sichtbar sein, darf das Lesen aber nicht verhindern - sonst
   wäre die Zustimmung erzwungen und damit keine. */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background-color: var(--surface);
  box-shadow: 0 16px 44px rgba(10, 37, 64, 0.22);
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.consent.is-open {
  transform: none;
  opacity: 1;
}

.consent__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.consent__text {
  flex: 1 1 380px;
}

.consent__text p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Der Auslöser im Fußbereich sieht aus wie die Links daneben, ist aber eine
   Schaltfläche - er führt nirgendwohin, sondern öffnet den Hinweis erneut. */
.legal-links__button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
}

.legal-links__button:hover {
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  .consent {
    transition: none;
  }
}

@media (max-width: 560px) {
  .consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 18px;
  }

  .consent__actions .btn {
    flex: 1 1 auto;
  }
}

/* Der Fussbereich traegt seit dem Cookie-Hinweis drei Eintraege statt zwei.
   Nebeneinander passen sie auf schmalen Geraeten nicht mehr in eine Zeile -
   dann untereinander statt ueber den Rand hinaus. */
@media (max-width: 560px) {
  .public__footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
}
