/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root,
html[data-theme="light"] {
  --panel: #ffffff;
  --bg: #f1f5f9;
  --line: #e2e8f0;
  --ink: #1e293b;
  --ink-soft: #64748b;
  --brand: #4655d0;
  --brand-hover: #3744b3;
  --brand-soft: #eef2ff;
  --ok: #1f9d75;
  --error: #e11d48;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --radius-lg: 18px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow: 0 12px 40px -16px rgba(31, 39, 64, 0.18);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --empty-ok-bg: #d1fae5;
  --empty-err-bg: #fee2e2;
  --placeholder: #94a3b8;
  --theme-toggle-bg: #ffffff;
  color-scheme: light;
}

html[data-theme="dark"] {
  --panel: #1e293b;
  --bg: #0f172a;
  --line: #334155;
  --ink: #f1f5f9;
  --ink-soft: #94a3b8;
  --brand: #818cf8;
  --brand-hover: #a5b4fc;
  --brand-soft: #312e81;
  --ok: #34d399;
  --error: #fb7185;
  --danger: #f87171;
  --danger-hover: #fca5a5;
  --shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.55);
  --empty-ok-bg: #064e3b;
  --empty-err-bg: #7f1d1d;
  --placeholder: #64748b;
  --theme-toggle-bg: #1e293b;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

body.app-open .container {
  padding-bottom: 100px;
}

/* ==========================================
   AUTH / LANDING CARD
   ========================================== */
.screen--auth {
  margin-top: 0;
}
.screen--landing {
  margin-top: clamp(24px, 8vh, 72px);
}

/* Landing page: volle Breite */
body:not(.app-open) .container {
  max-width: 720px;
  padding: 0 16px 40px;
}


.auth-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 36px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  max-width: 420px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 4px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin: 0 0 8px 0;
}

.hero-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 24px 0;
  line-height: 1.45;
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--brand-soft);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 11px 14px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-tab:hover {
  color: var(--ink);
}

.auth-tab.is-active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.auth-tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form[hidden] {
  display: none !important;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--ink);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.35;
}

.lookup__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lookup__input::placeholder {
  color: var(--placeholder);
}

.lookup__input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(70, 85, 208, 0.18);
}

.lookup__input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Input icons */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.lookup__input.has-left-icon {
  padding-left: 44px;
}

.lookup__input.has-right-icon {
  padding-right: 44px;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
  pointer-events: none;
}

.input-icon-right-btn {
  position: absolute;
  right: 4px;
  background: transparent;
  border: none;
  padding: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.input-icon-right-btn:hover {
  color: var(--ink);
  background: var(--brand-soft);
}

.input-icon-right {
  width: 18px;
  height: 18px;
}

/* Password strength */
.pw-strength-bar {
  height: 5px;
  border-radius: 3px;
  background: var(--brand-soft);
  margin-top: 8px;
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.pw-strength-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 5px;
  color: var(--ink-soft);
  min-height: 16px;
}

.pw-requirements {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pw-requirements li {
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
  transition: color 0.15s ease;
}

.pw-requirements li::before {
  /* leerer Kreis – CSS-Escape, funktioniert überall gleich */
  content: "\25CB";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  line-height: 1.2;
  opacity: 0.55;
  font-family: Arial, Helvetica, sans-serif;
}

.pw-requirements li.met {
  color: var(--ok);
  font-weight: 600;
}

.pw-requirements li.met::before {
  /* Haken – CSS-Escape, kein kaputtes UTF-8 im File */
  content: "\2713";
  font-size: 0.85rem;
  opacity: 1;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}


/* Buttons */
.lookup__button {
  width: 100%;
  padding: 13px 16px;
  border: none;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  margin-top: 4px;
}

.lookup__button:hover:not(:disabled) {
  background: var(--brand-hover);
}

.lookup__button:active:not(:disabled) {
  transform: scale(0.98);
}

.lookup__button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.lookup__button--danger {
  background: var(--danger);
}

.lookup__button--danger:hover:not(:disabled) {
  background: var(--danger-hover);
}

.link-button {
  background: transparent;
  border: none;
  color: var(--brand);
  font-size: 0.825rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  margin-top: 2px;
}

.link-button:hover {
  color: var(--brand-hover);
}

.link-button--danger {
  color: var(--danger);
}

.link-button--danger:hover {
  color: var(--danger-hover);
}

.auth-forgot-link {
  align-self: center;
}

.lookup__error {
  font-size: 0.825rem;
  margin: 4px 0 0;
  min-height: 20px;
  text-align: center;
  font-weight: 500;
  color: var(--error);
}

.landing-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ==========================================
   PLAN SCREEN
   ========================================== */
.screen--plan {
  margin-top: 12px;
}

.plan-header {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px 16px 12px;
  margin-bottom: 16px;
}

.plan-header__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.plan-header__title {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.plan-class-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: var(--brand);
  color: #fff;
}

#btn-plan-push .icon-bell-on {
  display: none;
}
#btn-plan-push.is-active {
  background: var(--brand);
  color: #fff;
}
#btn-plan-push.is-active .icon-bell-off {
  display: none;
}
#btn-plan-push.is-active .icon-bell-on {
  display: block;
}
#btn-plan-push:disabled {
  opacity: 0.5;
  cursor: default;
}

.plan-push-status {
  margin: 0 0 4px;
  font-size: 12.5px;
  text-align: center;
}

/* Day tabs */
.day-tabs {
  display: flex;
  background: var(--bg);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 3px;
}

.day-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.day-tab.is-active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.day-tab:hover:not(.is-active) {
  color: var(--ink);
}

/* Status */
.plan-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 12px;
  min-height: 1.2em;
}

.plan-status--loading {
  color: var(--brand);
}

.plan-status--ok {
  color: var(--ok);
}

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

.plan-status--empty {
  color: var(--ink-soft);
}

.plan-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 12px;
}

/* Substitution cards */
.sub-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-card {
  display: flex;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 2px 8px -4px rgba(31, 39, 64, 0.1);
}

.sub-card__hour {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
}

.sub-card__body {
  flex: 1;
  min-width: 0;
}

.sub-card__subject {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.sub-card__meta {
  font-size: 0.825rem;
  color: var(--ink-soft);
}

.sub-card__sep {
  margin: 0 4px;
  opacity: 0.5;
}

.sub-card__info {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 500;
  background: var(--brand-soft);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

/* Empty / error state */
.plan-empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.plan-empty__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--empty-ok-bg);
  color: var(--ok);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.plan-empty--error .plan-empty__icon {
  background: var(--empty-err-bg);
  color: var(--error);
}

.plan-empty__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.plan-empty__sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* ==========================================
   INSTALL BUTTON (PWA) – dezent pulsend
   ========================================== */
.install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 11px 16px;
  border: 1.5px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: install-pulse 2.2s ease-in-out infinite;
}

.install-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

@keyframes install-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 35%, transparent);
  }
  70% {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 0%, transparent);
  }
}

/* Fallback ohne color-mix (ältere Browser) */
@supports not (color: color-mix(in srgb, red, blue)) {
  .install-btn {
    animation: install-pulse-fallback 2.2s ease-in-out infinite;
  }
  @keyframes install-pulse-fallback {
    0% { box-shadow: 0 0 0 0 rgba(70, 85, 208, 0.35); }
    70% { box-shadow: 0 0 0 10px rgba(70, 85, 208, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 85, 208, 0); }
  }
  html[data-theme="dark"] .install-btn {
    animation-name: install-pulse-fallback-dark;
  }
  @keyframes install-pulse-fallback-dark {
    0% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(129, 140, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0); }
  }
}

.install-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 40%, transparent);
  animation: none;
  transform: scale(1.02);
}

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

.install-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 25%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .install-btn {
    animation: none;
  }
  .install-btn:hover {
    transform: none;
  }
}

/* ==========================================
   PLAN UPDATE BAR (last updated + refresh)
   ========================================== */
.plan-update-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px -4px rgba(31, 39, 64, 0.08);
}

.plan-update-bar__live {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.plan-update-bar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(31, 157, 117, 0.45);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 157, 117, 0.5);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(31, 157, 117, 0);
    opacity: 0.85;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 157, 117, 0);
    opacity: 1;
  }
}

.plan-update-bar__text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-update-bar__refresh {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.25s ease;
}

.plan-update-bar__refresh svg {
  width: 18px;
  height: 18px;
}

.plan-update-bar__refresh:hover {
  background: var(--brand);
  color: #fff;
}

.plan-update-bar__refresh:active {
  transform: rotate(-90deg);
}

.plan-update-bar__refresh.is-spinning svg {
  animation: spin-refresh 0.7s linear infinite;
}

@keyframes spin-refresh {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Card entrance animation */
.sub-card {
  animation: card-in 0.35s ease both;
}

.sub-card:nth-child(1) { animation-delay: 0.04s; }
.sub-card:nth-child(2) { animation-delay: 0.08s; }
.sub-card:nth-child(3) { animation-delay: 0.12s; }
.sub-card:nth-child(4) { animation-delay: 0.16s; }
.sub-card:nth-child(5) { animation-delay: 0.2s; }
.sub-card:nth-child(6) { animation-delay: 0.24s; }
.sub-card:nth-child(7) { animation-delay: 0.28s; }
.sub-card:nth-child(8) { animation-delay: 0.32s; }

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   THEME TOGGLE
   ========================================== */
.theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--theme-toggle-bg);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  position: absolute;
}

html[data-theme="light"] .theme-toggle__icon--sun,
html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun,
html[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

/* Landing: Theme-Toggle kollidiert nicht mit „Anmelden“ */
body:not(.app-open) .theme-toggle {
  top: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  right: 14px;
  z-index: 80;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
body:not(.app-open) .lp-nav {
  padding-right: 4px;
}
body:not(.app-open) .lp-nav__cta {
  max-width: none;
  padding: 8px 14px;
  font-size: 0.82rem;
}


/* ==========================================
   SHARE BUTTON (per entry)
   ========================================== */
.sub-card {
  position: relative;
}

.sub-card__share {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  background: var(--bg);
  color: var(--ink-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sub-card__share svg {
  width: 16px;
  height: 16px;
}

.sub-card__share:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.sub-card__body {
  padding-right: 36px;
}

/* ==========================================
   DISCLAIMER
   ========================================== */
.disclaimer {
  margin: 16px 0 0;
  padding: 0 4px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
  opacity: 0.9;
}

.disclaimer--plan {
  margin-top: 14px;
  margin-bottom: 8px;
}

@media (max-width: 420px) {
  .auth-card {
    padding: 20px 18px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .sub-card {
    padding: 12px 14px;
  }

  .plan-update-bar__text {
    font-size: 0.75rem;
  }
}

/* ==========================================
   APP SHELL + BOTTOM NAV
   ========================================== */
.app-shell {
  position: relative;
  min-height: 60vh;
}

.app-tab {
  animation: tab-fade-in 0.28s ease both;
}

.app-tab[hidden] {
  display: none !important;
  animation: none;
}

@keyframes tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  border: none;
  box-shadow: none;
}

.bottom-nav__dock {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  max-width: 400px;
  padding: 6px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow:
    0 8px 32px -8px rgba(31, 39, 64, 0.22),
    0 2px 8px -2px rgba(31, 39, 64, 0.08);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

html[data-theme="dark"] .bottom-nav__dock {
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow:
    0 10px 36px -8px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 8px 4px 6px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 16px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.bottom-nav__label {
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav__item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.bottom-nav__item:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--brand-soft) 70%, transparent);
}

.bottom-nav__item:active {
  transform: scale(0.96);
}

.bottom-nav__item.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.bottom-nav__item.is-active svg {
  transform: translateY(-0.5px) scale(1.05);
}

.nav-lock {
  display: none;
  position: absolute;
  top: -3px;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.nav-lock::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: center / 9px 9px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
body.guest-mode .bottom-nav__item--lockable .nav-lock {
  display: block;
}

/* ==========================================
   SECTION HEADER (Kalender / Konto)
   ========================================== */
.section-header {
  margin-top: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-sub {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================
   CALENDAR
   ========================================== */
.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 2px 8px -4px rgba(31, 39, 64, 0.1);
  animation: card-in 0.35s ease both;
}

.cal-card__date {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  line-height: 1.15;
}

.cal-card__day {
  font-size: 1.25rem;
  font-weight: 700;
}

.cal-card__month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.cal-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.cal-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.cal-card__meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.cal-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.cal-card__badge--ferien {
  background: #ecfdf5;
  color: #047857;
}

html[data-theme="dark"] .cal-card__badge--ferien {
  background: #064e3b;
  color: #6ee7b7;
}

.cal-card__badge--pruefung {
  background: #fef3c7;
  color: #b45309;
}

html[data-theme="dark"] .cal-card__badge--pruefung {
  background: #78350f;
  color: #fcd34d;
}

.cal-card__badge--eltern {
  background: #ede9fe;
  color: #6d28d9;
}

html[data-theme="dark"] .cal-card__badge--eltern {
  background: #4c1d95;
  color: #c4b5fd;
}

.cal-empty {
  text-align: center;
  padding: 36px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
}

/* ==========================================
   ACCOUNT
   ========================================== */
.account-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 4px 0;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.account-row:last-child {
  border-bottom: none;
}

.account-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.account-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  word-break: break-all;
}

.account-chip {
  border: 1px solid var(--line);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.account-chip:hover {
  background: var(--brand);
  color: #fff;
}

.account-chip:active {
  transform: scale(0.96);
}

.account-card--help {
  padding: 16px 18px;
}

.account-help-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.account-help-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.account-help-list li {
  margin-bottom: 6px;
}

.account-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.account-actions .lookup__button {
  margin-top: 0;
}

.cal-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 4px 0 8px;
  text-align: center;
}

.cal-loading {
  text-align: center;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 24px;
}

.cal-add {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.cal-add summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
  list-style: none;
}

.cal-add summary::-webkit-details-marker {
  display: none;
}

.cal-add__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.cal-card--personal {
  border-color: var(--brand);
}

.cal-card__badge--personal {
  background: var(--brand-soft);
  color: var(--brand);
}

.cal-card__delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg);
  color: var(--ink-soft);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.cal-card__delete:hover {
  background: var(--empty-err-bg);
  color: var(--error);
}

.cal-card {
  position: relative;
}

.cal-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.cal-search {
  font-size: 0.95rem;
}

.cal-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.cal-filters::-webkit-scrollbar {
  display: none;
}

.cal-filter {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cal-filter:hover {
  color: var(--ink);
  border-color: var(--brand);
}

.cal-filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.cal-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 14px 0 8px;
}

.cal-card--today {
  border-color: var(--ok);
  box-shadow: 0 0 0 1px var(--ok);
}

.cal-card--next {
  border-color: var(--brand);
}

.cal-card__badge--zeugnis {
  background: #e0e7ff;
  color: #3730a3;
}

html[data-theme="dark"] .cal-card__badge--zeugnis {
  background: #312e81;
  color: #c7d2fe;
}

/* ==========================================
   LEGAL OVERLAY / DISCLAIMER
   ========================================== */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  backdrop-filter: blur(4px);
  animation: tab-fade-in 0.2s ease both;
}

.legal-overlay[hidden] {
  display: none !important;
}

.legal-modal {
  width: 100%;
  max-width: 420px;
  max-height: min(88vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow);
}

.legal-modal--wide {
  max-width: 480px;
}

.legal-modal__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.legal-modal__body {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
  overflow-y: auto;
  flex: 1;
}

.legal-modal__body p {
  margin: 0 0 10px;
}

.legal-modal__body--scroll {
  max-height: 50vh;
  padding-right: 4px;
}

.legal-modal__note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.legal-modal__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.legal-modal__close {
  margin-top: 14px;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
  cursor: pointer;
}

.legal-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.legal-check .link-button {
  font-size: inherit;
  padding: 0;
  vertical-align: baseline;
}

.auth-trust {
  margin: 14px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
}

.auth-legal-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.auth-legal-footer__note {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.auth-legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
}

.auth-legal-footer__links .link-button {
  font-size: 0.75rem;
}

.auth-legal-footer__sep {
  color: var(--ink-soft);
  opacity: 0.6;
  font-size: 0.75rem;
}


.sub-card__hour-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 52px;
}

.sub-card__hour-wrap .sub-card__hour {
  width: 42px;
  height: 42px;
}

.sub-card__time {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sub-card__classes {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.sub-card__info {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
}


/* bottom-nav pointer safety */
.bottom-nav {
  pointer-events: auto;
  z-index: 90;
}
.bottom-nav__item {
  pointer-events: auto;
  touch-action: manipulation;
}
.legal-overlay[hidden] {
  display: none !important;
  pointer-events: none !important;
}
#screen-auth[hidden],
.app-shell[hidden],
.app-tab[hidden] {
  display: none !important;
}


/* ===== News ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.news-meta {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
  animation: fadeSlideIn 0.35s ease both;
}

.news-card__date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent, #4655d0);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.news-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.news-card__body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  white-space: normal;
}

/* 4 Items in bottom nav: etwas kompakter */
.bottom-nav__item {
  min-width: 0;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 0.7rem;
}


/* ===== Nav Badge (neue News) ===== */
.bottom-nav__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e11d48;
  border: 2px solid var(--card, #fff);
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.25);
  pointer-events: none;
}

.nav-badge.is-visible {
  animation: badge-pop 0.35s ease;
}

@keyframes badge-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

html[data-theme="dark"] .nav-badge {
  border-color: var(--card, #1e293b);
}

/* ===== App-Update Banner ===== */
.app-update-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: #4655d0;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  animation: fadeSlideIn 0.3s ease both;
}

.app-update-banner[hidden] {
  display: none !important;
}

.app-update-banner__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  flex: 1;
  font-weight: 500;
}

.app-update-banner__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.app-update-banner__btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
  color: #4655d0;
  cursor: pointer;
  touch-action: manipulation;
}

.app-update-banner__btn:active {
  transform: scale(0.97);
}

.app-update-banner__dismiss {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  opacity: 0.85;
}

.app-update-banner__dismiss:hover {
  opacity: 1;
}


/* Entfall / gestrichene Stunden */
.sub-card--cancel {
  opacity: 0.92;
  border-color: color-mix(in srgb, var(--error) 35%, var(--line));
}
.sub-card__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  background: color-mix(in srgb, var(--error) 15%, transparent);
  color: var(--error);
  vertical-align: middle;
}
.sub-card__subject {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}


/* Beschriftete Plan-Karten */
.sub-card__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.sub-card__row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 0.88rem;
  line-height: 1.35;
}
.sub-card__label {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sub-card__value {
  color: var(--ink);
  font-weight: 500;
  word-break: break-word;
}
.sub-card__badge--cancel {
  background: color-mix(in srgb, var(--error) 16%, transparent);
  color: var(--error);
}
.sub-card__badge--substitution {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand);
}
.sub-card__badge--room {
  background: color-mix(in srgb, #f59e0b 18%, transparent);
  color: #d97706;
}
html[data-theme="dark"] .sub-card__badge--room {
  color: #fbbf24;
}
.sub-card--subst {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.sub-card--room {
  border-color: color-mix(in srgb, #f59e0b 40%, var(--line));
}
.sub-card__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  vertical-align: middle;
}


/* Push toggle */
.push-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
}
.push-toggle-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex-shrink: 0;
}


/* ==========================================
   LANDING PAGE (vor Login)
   ========================================== */
.lp {
  padding-bottom: 24px;
}

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.lp-brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lp-brand__mark::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px var(--bg);
}

.lp-brand__mark svg {
  width: 16px;
  height: 16px;
}

.lp-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 60%, transparent);
}

.lp-nav__cta:hover {
  background: var(--brand-hover);
}

.lp-hero {
  display: grid;
  gap: 28px;
  padding: 20px 0 8px;
}

@media (min-width: 720px) {
  .lp-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 36px;
    padding-top: 28px;
  }
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.lp-hero__title {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}

.lp-hero__title em {
  font-style: normal;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--ok);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.lp-hero__lead {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.lp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.lp-btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--brand) 55%, transparent);
}

.lp-btn--primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.lp-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.lp-btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.lp-btn--on-dark {
  background: #fff;
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

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

.lp-hero__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

.lp-hero__note svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Phone mock */
.lp-mock {
  display: flex;
  justify-content: center;
}

.lp-mock__phone {
  width: 100%;
  max-width: 280px;
  background: #0f172a;
  border-radius: 22px;
  padding: 16px 14px 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e2e8f0;
}

.lp-mock__bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 600;
}

.lp-mock__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
}

.lp-mock__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #fff;
}

.lp-mock__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-mock__row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.lp-mock__cls {
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  color: #c7d2fe;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 3px 0;
}

.lp-mock__row--sub {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(129, 140, 248, 0.12);
}

.lp-mock__row--cancel {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  opacity: 0.9;
}

.lp-mock__row--ok {
  border-color: rgba(52, 211, 153, 0.35);
}

.lp-mock__foot {
  font-size: 0.65rem;
  color: #64748b;
  border-top: 1px dashed rgba(255,255,255,0.08);
  padding-top: 8px;
  text-align: center;
}

.lp-section {
  margin-top: 48px;
  padding-top: 8px;
}

.lp-section + .lp-section {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 40px;
}

/* App-Box optisch von Features trennen */
#app-install {
  border-top: none;
  padding-top: 12px;
  margin-top: 28px;
}

.lp-section__head {
  text-align: center;
  margin-bottom: 20px;
}

.lp-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 8px;
}

.lp-section__head h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lp-section__head p {
  margin: 0 auto;
  max-width: 36ch;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.lp-features {
  display: grid;
  gap: 12px;
}

@media (min-width: 600px) {
  .lp-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lp-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

/* Feste Indigo-Farben – lesbar in Hell- und Dunkelmodus */
.lp-card--accent {
  background: linear-gradient(160deg, #2f3a94 0%, #4655d0 100%);
  color: #ffffff;
  border-color: transparent;
}

.lp-card--accent h3,
.lp-card--accent p {
  color: #ffffff !important;
  opacity: 1;
}

.lp-card--accent .lp-card__tag {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
}

html[data-theme="dark"] .lp-card--accent {
  background: linear-gradient(160deg, #312e81 0%, #4338ca 100%);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.lp-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 10px;
}

.lp-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.lp-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.lp-appbox {
  background: linear-gradient(135deg, #2f3a94, #4655d0);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  margin-top: 8px;
}

html[data-theme="dark"] .lp-appbox {
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 55%, #3730a3 100%);
  border-color: rgba(165, 180, 252, 0.25);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .lp-appbox h2,
html[data-theme="dark"] .lp-appbox p {
  color: #ffffff;
}

@media (min-width: 560px) {
  .lp-appbox {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.lp-appbox h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.lp-appbox p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.lp-appbox__hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
}

.lp-steps {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .lp-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .lp-step:not(:first-child) {
    border-left: 1px dashed var(--line);
    padding-left: 16px;
  }
}

.lp-step {
  padding: 4px 0;
}

.lp-step__n {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.lp-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.lp-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.lp-section--access {
  scroll-margin-top: 72px;
}

.lp-auth-card {
  max-width: 420px;
}

.lp-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.lp-footer p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .lp-dot {
    animation: none;
  }
}


/* ===== Über / Feedback ===== */
.lp-about {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.lp-about p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.lp-about p:last-child { margin-bottom: 0; }
.lp-about strong { color: var(--ink); }

.lp-feedback {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.lp-feedback h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}
.lp-feedback > p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.lp-feedback .lp-btn {
  width: 100%;
  max-width: 280px;
}
.lp-feedback__mail {
  margin: 12px 0 0;
  font-size: 0.8rem;
}
.lp-feedback__mail a {
  color: var(--brand);
  word-break: break-all;
}

.lp-footer__links {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.78rem;
}
.lp-footer__links a,
.lp-footer__links .link-button {
  color: var(--brand);
  font-size: 0.78rem;
}

.account-feedback-intro {
  margin: 12px 0 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.account-feedback-btn {
  margin-top: 0;
  text-decoration: none;
  display: block;
  text-align: center;
}
.account-feedback-mail {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.78rem;
}
.account-feedback-mail a {
  color: var(--brand);
  word-break: break-all;
}

.plan-feedback-link {
  text-align: center;
  margin: 8px 0 16px;
  font-size: 0.8rem;
}
.plan-feedback-link a {
  color: var(--brand);
  font-weight: 600;
}

.lp-feedback__mail .link-button,
.account-feedback-mail .link-button {
  font-size: 0.8rem;
  word-break: break-all;
}
.account-feedback-btn {
  cursor: pointer;
  width: 100%;
}

.plan-bell-hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
  text-align: center;
}
.plan-bell-hint strong {
  color: var(--brand);
}

.ios-install-tip {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.4;
  color: #fff;
  text-align: left;
}
.ios-install-tip[hidden] {
  display: none !important;
}
.ios-install-tip p {
  margin: 0 0 8px;
  font-weight: 700;
}
.ios-install-tip ol {
  margin: 0;
  padding-left: 1.2em;
}
.ios-install-tip li {
  margin-bottom: 4px;
}

/* Glocke: leichte Aufmerksamkeit wenn Nachrichten aus */
@keyframes bell-jiggle {
  0%, 100% { transform: rotate(0deg); }
  12% { transform: rotate(12deg); }
  24% { transform: rotate(-10deg); }
  36% { transform: rotate(8deg); }
  48% { transform: rotate(-6deg); }
  60% { transform: rotate(3deg); }
  72% { transform: rotate(0deg); }
}
@keyframes bell-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 35%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 0%, transparent); }
}
#btn-plan-push.bell-attention {
  animation: bell-jiggle 2.4s ease-in-out infinite, bell-glow 2.4s ease-in-out infinite;
}
#btn-plan-push.bell-attention:hover,
#btn-plan-push.bell-attention:focus-visible {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  #btn-plan-push.bell-attention {
    animation: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 40%, transparent);
  }
}


/* ===== Gast-Modus ===== */
.lp-hero__subcta {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.lp-hero__subcta .link-button {
  font-size: inherit;
}

/* Zurück zur Startseite – nur im Gastmodus sichtbar */
.back-to-start {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px -4px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: color 0.15s ease, background 0.15s ease;
}
body.guest-mode .back-to-start {
  display: inline-flex;
}
.back-to-start svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.back-to-start:hover {
  color: var(--brand-hover);
  background: var(--brand-soft);
}
.back-to-start:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

body.guest-mode .bottom-nav__item--lockable {
  position: relative;
  opacity: 1;
}

/* Glocke Gast: Animation behalten + kleines Schloss */
#btn-plan-push.is-locked {
  position: relative;
  opacity: 1 !important;
}
#btn-plan-push.is-locked::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--panel, #fff);
  border: 1.5px solid var(--line, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.6'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  background-size: 9px 9px;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

/* floating nav space */
body.app-open #app-shell,
body.app-open .app-shell {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
