/* STC Premium – User UI (Bootstrap-kompatibel, Stitch/Verdant Light Tokens) */

:root {
  --stc-primary: #001b16;
  --stc-primary-container: #08312a;
  --stc-secondary: #006d38;
  --stc-secondary-accent: #00e47c;
  --stc-secondary-fixed-dim: #00e47c;
  --stc-on-primary: #ffffff;
  --stc-on-surface: #1a1c1b;
  --stc-on-surface-variant: #414846;
  --stc-background: #faf9f7;
  --stc-surface: #ffffff;
  --stc-surface-container: #efeeec;
  --stc-surface-container-low: #f4f3f1;
  --stc-outline-variant: #c0c8c5;
  --stc-warm-gray: #e5e3de;
  --stc-light-gray: #f6f5f3;
  --stc-error: #ba1a1a;
  --stc-font: Calibri, Arial, Helvetica, sans-serif;
  --stc-radius-sm: 8px;
  --stc-radius-md: 16px;
  --stc-radius-lg: 24px;
  --stc-radius-pill: 9999px;
  --stc-shadow-soft: 0 4px 24px rgba(8, 49, 42, 0.06);
  --stc-shadow-nav: 0 4px 24px rgba(8, 49, 42, 0.08);
  --stc-max-width: 1280px;
  --stc-nav-offset: 88px;
}

body.stc-user-app {
  font-family: var(--stc-font) !important;
  background-color: var(--stc-background) !important;
  color: var(--stc-on-surface) !important;
  line-height: 1.6;
  padding-bottom: 5.5rem;
}

@media (min-width: 768px) {
  body.stc-user-app {
    padding-bottom: 0;
  }
}

/* Top navigation */
.stc-top-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  width: min(95%, var(--stc-max-width));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(192, 200, 197, 0.5);
  border-radius: var(--stc-radius-pill);
  box-shadow: var(--stc-shadow-nav);
  padding: 0.5rem 1rem;
}

.stc-top-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stc-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--stc-primary);
  min-width: 0;
}

.stc-brand__logo {
  height: 56px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
}

.stc-brand__name {
  display: none;
}

@media (max-width: 767px) {
  .stc-top-nav {
    padding: 0.65rem 1rem;
  }

  .stc-top-nav__inner {
    justify-content: center;
  }

  .stc-brand {
    flex: 1;
    justify-content: center;
    margin: 0 auto;
  }

  .stc-brand__logo {
    height: 56px;
    max-width: min(240px, 72vw);
  }

  .stc-top-nav__links,
  .stc-top-nav__actions {
    display: none !important;
  }
}

.stc-top-nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .stc-top-nav__links {
    display: flex;
  }
}

.stc-top-nav__links a,
.stc-top-nav__link {
  color: var(--stc-on-surface-variant);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--stc-radius-pill);
  transition: color 0.2s, background 0.2s;
  display: inline-block;
}

.stc-top-nav__links a:hover,
.stc-top-nav__link:hover {
  color: var(--stc-primary-container);
  background: var(--stc-surface-container-low);
}

.stc-top-nav__links a.is-active,
.stc-top-nav__link.is-active {
  color: var(--stc-primary-container);
  background: var(--stc-secondary-accent);
  box-shadow: inset 0 0 0 1px rgba(8, 49, 42, 0.12);
}

.stc-top-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Page shell */
.stc-page {
  max-width: var(--stc-max-width);
  margin: 0 auto;
  padding: var(--stc-nav-offset) 1rem 2.5rem;
}

.stc-overview-layout,
body.stc-user-app .live_stream_sections.stc-overview-layout {
  display: grid !important;
  gap: 1.5rem;
  max-width: none;
  padding: 0;
  flex-wrap: unset;
  justify-content: unset;
}

@media (min-width: 1200px) {
  .stc-overview-layout,
  body.stc-user-app .live_stream_sections.stc-overview-layout {
    grid-template-columns: 1fr !important;
    align-items: start;
  }
}

.stc-overview-main,
.stc-overview-aside {
  min-width: 0;
}

/* Hero */
.stc-hero {
  position: relative;
  border-radius: var(--stc-radius-lg);
  overflow: hidden;
  box-shadow: var(--stc-shadow-soft);
  background: var(--stc-primary-container);
  margin-bottom: 1.5rem;
  display: block;
  min-height: 120px;
}

.stc-top-nav {
  display: block !important;
  visibility: visible !important;
}

.stc-hero__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.stc-hero__image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.stc-hero__banner {
  background: linear-gradient(135deg, var(--stc-secondary-accent) 0%, #41fe92 100%);
  color: var(--stc-primary-container);
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.stc-hero__banner p {
  margin: 0;
}

/* Sections */
.stc-section {
  margin-bottom: 2rem;
}

.stc-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stc-primary);
  margin: 0 0 1rem;
}

.stc-section__title--bar {
  background: var(--stc-primary-container);
  color: var(--stc-secondary-accent);
  padding: 0.5rem 1rem;
  border-radius: var(--stc-radius-sm);
  text-align: center;
}

.stc-section__intro {
  color: var(--stc-primary-container);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Cards & seminar entries */
.stc-card {
  background: var(--stc-surface);
  border-radius: var(--stc-radius-md);
  box-shadow: var(--stc-shadow-soft);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--stc-outline-variant);
}

.stc-seminar-entry {
  background: var(--stc-surface);
  border-radius: var(--stc-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--stc-shadow-soft);
  border: 1px solid rgba(192, 200, 197, 0.45);
}

.stc-seminar-entry__title {
  color: var(--stc-primary-container);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.stc-seminar-entry__title a {
  color: inherit;
  text-decoration: none;
}

.stc-seminar-entry__title a:hover {
  color: var(--stc-secondary);
}

.stc-divider {
  height: 4px;
  background: var(--stc-secondary-accent);
  border-radius: var(--stc-radius-pill);
  margin: 1rem 0;
  border: none;
}

/* Buttons */
.stc-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.55rem 1.1rem;
  border-radius: var(--stc-radius-pill);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  margin: 0.25rem 0.5rem 0.25rem 0;
}

.stc-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 109, 56, 0.2);
}

.stc-btn-primary {
  background: var(--stc-primary-container);
  color: var(--stc-on-primary) !important;
}

.stc-btn-primary:hover {
  background: #065c40;
  color: var(--stc-on-primary) !important;
}

.stc-btn-accent {
  background: var(--stc-secondary-accent);
  color: var(--stc-primary-container) !important;
}

.stc-btn-accent:hover {
  background: #00d874;
  color: var(--stc-primary-container) !important;
}

.stc-btn-outline {
  background: transparent;
  color: var(--stc-primary-container) !important;
  border: 2px solid var(--stc-primary-container);
}

.stc-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

/* Zukünftige Seminare: Details + Teilnahme gestapelt, Kalender rechts daneben */
.stc-seminar-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.stc-seminar-card__actions-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

.stc-seminar-card__actions-stack .stc-btn {
  width: 100%;
  justify-content: center;
}

.stc-seminar-card__actions-calendar {
  flex: 0 0 auto;
  align-self: flex-start;
}

/* Aside / registration panel */
.stc-panel {
  background: var(--stc-surface);
  border-radius: var(--stc-radius-md);
  box-shadow: var(--stc-shadow-soft);
  padding: 1.5rem;
  border: 1px solid var(--stc-outline-variant);
}

.stc-panel__logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.stc-panel__heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--stc-primary-container);
  margin-bottom: 1rem;
}

/* Forms */
.stc-user-app .login-form input[type="text"],
.stc-user-app .login-form input[type="password"],
.stc-user-app .login-form input[type="email"],
.stc-user-app .registration input[type="text"],
.stc-user-app .registration input[type="password"] {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--stc-radius-sm);
  border: 1px solid var(--stc-outline-variant);
  background: var(--stc-surface-container-low);
  color: var(--stc-on-surface);
  margin: 0.35rem 0 0.75rem;
}

.stc-user-app .login-form input:focus,
.stc-user-app .registration input:focus {
  outline: none;
  border-color: var(--stc-secondary);
  box-shadow: 0 0 0 3px rgba(0, 228, 124, 0.25);
  background: var(--stc-surface);
}

/* Legacy overview classes – premium overrides */
.stc-user-app .live_stream_foyer {
  width: 100%;
}

body.stc-user-app .live_stream_sections {
  display: grid !important;
}

body.stc-user-app .active_discussion {
  position: static !important;
  width: 100% !important;
  left: auto !important;
  min-height: auto !important;
  background: transparent !important;
  padding: 0 !important;
}

body.stc-user-app .registration {
  position: static !important;
  width: 100% !important;
  right: auto !important;
  max-width: none !important;
  min-height: auto !important;
  background: transparent !important;
  padding: 0 !important;
}

.stc-user-app .active_p {
  font-weight: 600;
  color: var(--stc-primary-container);
  border-bottom: none;
  background: transparent;
  padding: 0;
  margin-top: 0;
}

.stc-user-app .active_p.stc-highlight-band {
  background: linear-gradient(135deg, var(--stc-secondary-accent) 0%, #41fe92 100%);
  color: var(--stc-primary-container);
  padding: 0.65rem 1rem;
  border-radius: var(--stc-radius-sm);
  margin-bottom: 1rem;
}

.stc-user-app .button_class a,
.stc-user-app .button_class button {
  max-width: none;
  border-radius: var(--stc-radius-pill);
}

/* Checkboxes */
.stc-user-app .custom-checkbox {
  color: var(--stc-primary-container);
}

.stc-user-app .checkbox-visual {
  background-color: var(--stc-secondary-accent);
  border-color: var(--stc-primary-container);
  border-radius: 4px;
}

.stc-user-app .custom-dropdown {
  background-color: var(--stc-surface-container-low);
  color: var(--stc-primary-container);
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-sm);
}

/* Mobile bottom nav */
.stc-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 1050;
  background: rgba(8, 49, 42, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--stc-radius-md);
  box-shadow: var(--stc-shadow-nav);
  padding: 0.35rem;
}

@media (min-width: 768px) {
  .stc-bottom-nav {
    display: none;
  }
}

.stc-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.45rem 0.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: var(--stc-radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.stc-bottom-nav__item i {
  font-size: 1.15rem;
}

.stc-bottom-nav__item.is-active,
.stc-bottom-nav__item:hover {
  background: var(--stc-secondary-accent);
  color: var(--stc-primary-container);
}

/* Footer */
.stc-user-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stc-outline-variant);
  text-align: center;
}

.stc-user-footer .legal-links-container a {
  color: var(--stc-primary-container) !important;
}

/* Profile pages */
.stc-profile-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--stc-nav-offset) 1rem 3rem;
}

.stc-profile-page .card {
  border-radius: var(--stc-radius-md);
  border-color: var(--stc-outline-variant);
  box-shadow: var(--stc-shadow-soft);
}

.stc-profile-page .btn-primary {
  background-color: var(--stc-primary-container);
  border-color: var(--stc-primary-container);
}

.stc-profile-page .btn-primary:hover {
  background-color: var(--stc-secondary);
  border-color: var(--stc-secondary);
}

/* Guest layout – volle Breite ohne Sidebar */
body.stc-user-app .stc-overview-layout--guest {
  grid-template-columns: 1fr !important;
}

.stc-guest-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0 0 1.5rem;
}

.stc-btn-outline {
  background: transparent !important;
  color: var(--stc-primary-container) !important;
  border: 2px solid var(--stc-primary-container) !important;
}

/* Login-Modal */
.stc-login-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.stc-login-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.stc-login-modal-open {
  overflow: hidden;
}

/* Abmelden-Bestätigung */
.stc-logout-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.stc-logout-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.stc-logout-modal-open {
  overflow: hidden;
}

.stc-logout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 27, 22, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.stc-logout-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}

.stc-logout-modal__card {
  background: #fff;
  border-radius: var(--stc-radius-md, 12px);
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(8, 49, 42, 0.18);
}

.stc-logout-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stc-primary-container, #08312a);
}

.stc-logout-modal__text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #414846;
}

.stc-logout-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.stc-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 27, 22, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.stc-login-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 1rem;
}

.stc-login-modal__close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--stc-primary-container);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--stc-shadow-soft);
}

.stc-login-modal__brand {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1.25rem 1rem 1rem;
  background: #fff;
  border-radius: var(--stc-radius-md);
  box-shadow: var(--stc-shadow-soft);
}

.stc-login-modal__logo {
  max-width: min(280px, 85vw);
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
}

.stc-login-modal__brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stc-primary);
  margin: 0 0 0.25rem;
}

.stc-login-modal__brand-tagline {
  font-size: 1rem;
  color: var(--stc-secondary);
  font-weight: 600;
  margin: 0;
}

.stc-login-modal__brand-name {
  color: var(--stc-primary-container);
}

.stc-login-modal__card {
  background: var(--stc-surface);
  border-radius: var(--stc-radius-md);
  box-shadow: var(--stc-shadow-soft);
  padding: 1.5rem;
  border: 1px solid var(--stc-outline-variant);
}

.stc-login-modal__header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.stc-login-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stc-primary-container);
  margin: 0 0 0.35rem;
}

.stc-login-modal__subtitle {
  font-size: 0.95rem;
  color: var(--stc-on-surface-variant);
  margin: 0;
}

.stc-login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stc-login-field__label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stc-primary-container);
  margin-bottom: 0.35rem;
}

.stc-login-field__label-icon {
  font-size: 0.85rem;
  color: var(--stc-secondary);
  line-height: 1;
}

.stc-login-field__label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.stc-login-field__label-row .stc-login-field__label {
  margin-bottom: 0;
}

.stc-login-field__link {
  font-size: 0.75rem;
  color: var(--stc-on-surface-variant);
  text-decoration: none;
  white-space: nowrap;
}

.stc-login-field__link:hover {
  color: var(--stc-primary-container);
  text-decoration: underline;
}

.stc-login-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.stc-login-field__input {
  width: 100%;
  padding: 0.7rem 2.75rem 0.7rem 0.85rem;
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-sm);
  background: var(--stc-surface);
  color: var(--stc-on-surface);
  font-size: 1rem;
  line-height: 1.4;
}

.stc-login-field__input:focus {
  outline: none;
  border-color: var(--stc-primary-container);
  box-shadow: 0 0 0 3px rgba(0, 228, 124, 0.25);
}

.stc-login-field__toggle {
  position: absolute;
  right: 0.5rem;
  border: none;
  background: transparent;
  color: var(--stc-on-surface-variant);
  padding: 0.35rem;
  cursor: pointer;
}

.stc-login-modal__error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--stc-radius-sm);
  background: #ffdad6;
  color: #93000a;
  font-size: 0.875rem;
}

.stc-login-modal__submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--stc-radius-sm);
  background: var(--stc-secondary-fixed-dim);
  color: var(--stc-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.stc-login-modal__submit:hover {
  box-shadow: 0 8px 24px rgba(0, 228, 124, 0.25);
  transform: translateY(-1px);
}

.stc-login-modal__register-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stc-outline-variant);
  text-align: center;
}

.stc-login-modal__register-text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--stc-on-surface-variant);
}

.stc-login-modal__register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
}

.stc-login-modal__footer {
  text-align: center;
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.stc-login-modal__register,
.stc-login-modal__extra {
  font-size: 0.9rem;
  color: var(--stc-on-surface-variant);
  margin: 0 0 0.5rem;
}

.stc-login-modal__register a,
.stc-login-modal__extra a {
  color: var(--stc-primary-container);
  font-weight: 600;
  text-decoration: none;
}

.stc-login-modal__register a:hover,
.stc-login-modal__extra a:hover {
  text-decoration: underline;
}

.stc-login-modal__legal {
  font-size: 0.75rem;
  color: var(--stc-on-surface-variant);
  margin: 0.75rem 0 0;
}

.stc-login-modal__legal a {
  color: var(--stc-on-surface-variant);
  text-decoration: none;
}

.stc-login-modal__legal a:hover {
  color: var(--stc-primary-container);
}

@media (max-width: 767px) {
  .stc-login-modal {
    display: none !important;
  }
}

/* Login Vollseite (Mobil) */
body.stc-login-page-body {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--stc-background, #faf9f7);
  padding-bottom: 5.5rem;
}

body.stc-login-page-body .stc-login-modal__brand--page {
  display: none !important;
}

@media (min-width: 768px) {
  body.stc-login-page-body .stc-login-page {
    padding-top: 5.5rem;
  }
}

.stc-login-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stc-outline-variant);
}

.stc-login-page-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--stc-primary-container);
  text-decoration: none;
  font-size: 1.15rem;
}

.stc-login-page-brand {
  display: flex;
  justify-content: center;
  grid-column: 2;
}

.stc-login-page-logo {
  height: 52px;
  width: auto;
  max-width: min(260px, 75vw);
  object-fit: contain;
}

.stc-login-page {
  flex: 1;
  padding: 1rem 1rem 2rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.stc-mobile-logout-bar {
  display: none;
}

@media (max-width: 767px) {
  .stc-mobile-logout-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: calc(1rem + 4.75rem);
    left: 0;
    right: 0;
    z-index: 1045;
    padding: 0.35rem 1rem 0;
    pointer-events: none;
  }

  .stc-mobile-logout-bar .stc-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--stc-shadow-soft);
    min-width: 7.5rem;
    text-align: center;
  }

  body.stc-user-logged-in .stc-page {
    padding-top: 8.25rem;
  }
}

.stc-seminar-details-source[hidden] {
  display: none !important;
}

.stc-session-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid #f0c36d;
  border-left: 4px solid #d98c00;
  border-radius: var(--stc-radius-md);
  background: #fff8e6;
  color: #6b4a00;
  font-weight: 600;
}

.stc-live-unavailable-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10090;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.5);
}

.stc-live-unavailable-backdrop.is-open {
  display: flex;
}

.stc-live-unavailable-box {
  width: min(100%, 420px);
  padding: 1.5rem;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid var(--stc-secondary-accent, #00e47c);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.stc-live-unavailable-box p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1a1c1b;
}

.stc-participation-error {
  flex-basis: 100%;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b3261e;
}

.stc-login-page__inner {
  max-width: 420px;
  margin: 0 auto;
}

.stc-login-modal__brand--page {
  margin-bottom: 1.25rem;
  padding: 1rem;
}

.stc-login-modal__logo--page {
  max-height: 72px;
  margin-bottom: 0.5rem;
}

.stc-login-page .stc-login-modal__card {
  box-shadow: var(--stc-shadow-soft);
}

/* Dashboard hero (Stitch) */
.stc-dashboard-hero {
  position: relative;
  border-radius: var(--stc-radius-lg);
  overflow: hidden;
  min-height: 320px;
  margin-bottom: 2rem;
  box-shadow: var(--stc-shadow-soft);
}

body.stc-user-app.stc-user-logged-in .stc-dashboard-hero {
  margin-top: 1.25rem;
}

body.stc-user-app.stc-user-logged-in .stc-dashboard-hero__overlay {
  border-radius: var(--stc-radius-lg);
}

.stc-dashboard-hero__bg {
  display: none;
}

.stc-dashboard-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 27, 22, 0.88) 0%, rgba(8, 49, 42, 0.55) 55%, rgba(8, 49, 42, 0.25) 100%);
}

.stc-dashboard-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  min-height: 320px;
  align-items: end;
}

@media (min-width: 900px) {
  .stc-dashboard-hero__inner {
    grid-template-columns: 1fr minmax(240px, 300px);
    align-items: stretch;
    padding: 2rem 2.25rem;
  }
}

.stc-dashboard-hero__content {
  color: #fff;
  max-width: 36rem;
}

.stc-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--stc-radius-pill);
}

.stc-badge--live {
  background: var(--stc-secondary-accent);
  color: var(--stc-primary-container);
  margin-bottom: 0.75rem;
}

.stc-badge--live-now {
  background: #d32f2f !important;
  color: #fff !important;
}

.stc-hero-live-status {
  margin-bottom: 0.75rem;
}

.stc-hero-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.stc-hero-countdown__label {
  opacity: 0.85;
}

.stc-hero-countdown__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.stc-hero-countdown__value.is-live-elapsed {
  color: var(--stc-secondary-accent);
}

.stc-btn--participating {
  background: #d32f2f !important;
  border: 2px solid #d32f2f !important;
  color: #fff !important;
}

.stc-btn--participating:hover {
  background: #b71c1c !important;
  border-color: #b71c1c !important;
  color: #fff !important;
}

.stc-archive-card__play-overlay,
.stc-media-bento__play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  margin: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.stc-archive-card__media:hover .stc-archive-card__play-overlay,
.stc-media-bento a:hover .stc-media-bento__play-overlay,
a.stc-media-bento__featured:hover .stc-media-bento__play-overlay,
a.stc-media-bento__side:hover .stc-media-bento__play-overlay {
  filter: brightness(1.05);
}

.stc-mediathek-header__abt {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.stc-abteilung-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.75rem;
}

.stc-abteilung-tabs--fach {
  margin-top: 0.5rem;
}

.stc-abteilung-tab {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: var(--stc-radius-pill);
  border: 1px solid var(--stc-outline-variant);
  background: var(--stc-surface);
  color: var(--stc-primary-container);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.stc-abteilung-tab:hover {
  text-decoration: none;
  background: var(--stc-surface-container-low);
}

.stc-abteilung-tab.is-active {
  background: var(--stc-primary-container);
  border-color: var(--stc-primary-container);
  color: #fff;
}

.stc-dashboard-hero__meta {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0 0.5rem;
}

.stc-dashboard-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #fff;
}

.stc-dashboard-hero__desc {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.92;
  margin: 0 0 1.25rem;
}

.stc-dashboard-hero__desc--html p {
  margin: 0 0 0.5rem;
  color: inherit;
}

/* Seminar-Details: nur im Live-Banner hellgrün (Pill-Outline) */
.stc-dashboard-hero .js-stc-seminar-details.stc-btn-outline {
  color: var(--stc-secondary-accent) !important;
  border: 1px solid var(--stc-secondary-accent) !important;
  background: transparent !important;
}

.stc-dashboard-hero .js-stc-seminar-details.stc-btn-outline:hover,
.stc-dashboard-hero .js-stc-seminar-details.stc-btn-outline:focus-visible {
  color: var(--stc-primary-container) !important;
  background: var(--stc-secondary-accent) !important;
  border-color: var(--stc-secondary-accent) !important;
}

.stc-dashboard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.stc-dashboard-hero__actions .stc-btn--participating {
  margin: 0;
}

/* Hero: „Ich möchte teilnehmen“ hellgrün neben Seminar-Details */
.stc-dashboard-hero__actions .stc-btn--hero-join {
  background: var(--stc-secondary-accent) !important;
  border: 2px solid var(--stc-secondary-accent) !important;
  color: var(--stc-primary-container) !important;
}

.stc-dashboard-hero__actions .stc-btn--hero-join:hover,
.stc-dashboard-hero__actions .stc-btn--hero-join:focus-visible {
  background: #41fe92 !important;
  border-color: #41fe92 !important;
  color: var(--stc-primary-container) !important;
}

.stc-dashboard-hero__panel {
  background: rgba(8, 49, 42, 0.82);
  backdrop-filter: blur(8px);
  border-radius: var(--stc-radius-md);
  padding: 1.25rem;
  color: #fff;
  align-self: end;
}

.stc-dashboard-hero__panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.stc-dashboard-hero__details {
  margin: 0 0 1rem;
}

.stc-dashboard-hero__details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.stc-dashboard-hero__details dt {
  opacity: 0.75;
  font-weight: 500;
}

.stc-dashboard-hero__details dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.stc-btn--play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.stc-btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

.stc-btn--sm {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}

.stc-btn--xs {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

body.stc-user-logged-in .stc-dashboard-hero {
  margin-top: 1.25rem;
}

.stc-dashboard-hero__desc--html {
  max-height: none;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

.stc-seminar-details-source[hidden] {
  display: none !important;
}

.stc-seminar-details-modal__dialog {
  width: calc(100% - 2rem);
  max-width: 640px;
  margin: 1.75rem auto;
}

.stc-seminar-details-modal .modal-content {
  border: none;
  border-radius: var(--stc-radius-md);
  box-shadow: 0 12px 40px rgba(8, 49, 42, 0.18);
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 720px);
  overflow: hidden;
}

.stc-seminar-details-modal__header {
  border-bottom: 1px solid var(--stc-outline-variant);
  padding: 1rem 1.25rem;
  flex-shrink: 0;
}

.stc-seminar-details-modal__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--stc-primary);
  margin: 0;
  padding-right: 2rem;
  line-height: 1.35;
}

.stc-seminar-details-modal__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--stc-on-surface);
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.stc-seminar-details-modal__body p {
  margin: 0 0 0.75rem;
}

.stc-seminar-details-modal__body img,
.stc-seminar-details-modal__body iframe,
.stc-seminar-details-modal__body video,
.stc-seminar-details-modal__body embed,
.stc-seminar-details-modal__body object {
  max-width: 100% !important;
  height: auto !important;
}

.stc-seminar-details-modal__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.stc-seminar-details-modal__body table td,
.stc-seminar-details-modal__body table th {
  word-break: break-word;
}

.stc-seminar-details-modal__footer {
  border-top: 1px solid var(--stc-outline-variant);
  padding: 0.75rem 1.25rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .stc-seminar-details-modal__dialog {
    width: calc(100% - 1.25rem);
    max-width: none;
    margin: 4.25rem auto 1rem;
    max-height: calc(100dvh - 5.5rem);
  }

  .stc-seminar-details-modal .modal-content {
    max-height: calc(100dvh - 5.5rem);
  }

  .stc-seminar-details-modal__body {
    max-height: calc(100dvh - 11.5rem);
  }

  .stc-settings-header {
    margin-top: 60px;
  }
}

.stc-archive-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.stc-archive-card__body-main {
  flex: 1;
  min-width: 0;
}

.stc-archive-card__body--row .stc-archive-card__body-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stc-media-bento__featured-wrap,
.stc-media-bento__side-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

@media (min-width: 768px) {
  .stc-media-bento__featured-wrap {
    grid-row: 1 / span 2;
  }
}

.stc-media-bento__featured-wrap > a,
.stc-media-bento__side-wrap > a {
  flex: 1;
}

.stc-media-bento__details-btn {
  align-self: flex-start;
}

.stc-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.stc-section__title--plain {
  background: none;
  color: var(--stc-primary);
  padding: 0;
  text-align: left;
}

.stc-link-arrow {
  font-weight: 600;
  color: var(--stc-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.stc-link-arrow::after {
  content: " →";
}

.stc-link-arrow:hover {
  color: var(--stc-primary-container);
}

.stc-link-arrow--sm {
  font-size: 0.9rem;
}

.stc-seminar-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stc-seminar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .stc-seminar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stc-seminar-card {
  background: var(--stc-surface);
  border-radius: var(--stc-radius-md);
  overflow: hidden;
  border: 1px solid var(--stc-outline-variant);
  box-shadow: var(--stc-shadow-soft);
}

.stc-seminar-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.stc-seminar-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.stc-seminar-card:hover .stc-seminar-card__media img {
  transform: scale(1.03);
}

.stc-seminar-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.stc-seminar-card__meta {
  font-size: 0.8rem;
  color: var(--stc-on-surface-variant);
  margin: 0 0 0.35rem;
}

.stc-seminar-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.stc-seminar-card__title a {
  color: var(--stc-primary);
  text-decoration: none;
}

.stc-seminar-card__excerpt {
  font-size: 0.9rem;
  color: var(--stc-on-surface-variant);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.stc-media-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .stc-media-bento {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 340px;
  }

  .stc-media-bento__featured {
    grid-row: 1 / span 2;
  }
}

/* Nicht nur als Nachfahre von .stc-media-bento adressieren: kaputtes Editor-HTML
   in den Beschreibungen kann den Grid-Container vorzeitig schliessen. */
.stc-media-bento a,
a.stc-media-bento__featured,
a.stc-media-bento__side {
  position: relative;
  display: block;
  border-radius: var(--stc-radius-md);
  overflow: hidden;
  text-decoration: none;
  min-height: 140px;
}

.stc-media-bento img,
a.stc-media-bento__featured img,
a.stc-media-bento__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.stc-media-bento__featured {
  min-height: 200px;
}

@media (min-width: 768px) {
  .stc-media-bento__featured {
    min-height: 100%;
  }
}

.stc-media-bento__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
}

.stc-media-bento__play {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--stc-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.stc-media-bento__duration {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: auto;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--stc-radius-pill);
  z-index: 3;
}

.stc-media-bento__dummy {
  display: none;
}

.stc-guest-cta--compact {
  margin-bottom: 1rem;
}

.stc-empty-hint {
  color: var(--stc-on-surface-variant);
  margin: 0;
}

/* Mediathek page */
.stc-dummy-notice {
  display: none;
}

.stc-dummy-notice i {
  margin-top: 0.15rem;
}

.stc-mediathek-header {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.stc-mediathek-header__controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.5rem;
}

.stc-mediathek-header .stc-abteilung-tabs {
  margin: 0;
}

.stc-mediathek-search-toggle {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--stc-outline-variant);
  background: var(--stc-surface);
  color: var(--stc-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stc-mediathek-search-toggle:hover {
  background: var(--stc-surface-container);
}

.stc-mediathek-search-panel {
  display: none;
  margin-top: 0.75rem;
}

.stc-mediathek-search-panel.is-open {
  display: block;
}

.stc-mediathek-search-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.stc-mediathek-search-input {
  flex: 1 1 12rem;
  min-width: 10rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-pill);
  font: inherit;
}

.stc-mediathek-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 26rem;
  overflow-y: auto;
  padding: 0.35rem 0;
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-md);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.stc-mediathek-suggest[hidden] {
  display: none;
}

.stc-mediathek-suggest__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.9rem;
  color: inherit;
  text-decoration: none;
}

.stc-mediathek-suggest__item:hover,
.stc-mediathek-suggest__item.is-active {
  background: var(--stc-surface-variant, #f2f4f7);
  text-decoration: none;
  color: inherit;
}

.stc-mediathek-suggest__thumb {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 2.25rem;
  border-radius: var(--stc-radius-sm, 4px);
  object-fit: cover;
}

.stc-mediathek-suggest__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stc-mediathek-suggest__title {
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stc-mediathek-suggest__meta {
  font-size: 0.78rem;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stc-mediathek-suggest__notice,
.stc-mediathek-suggest__message {
  margin: 0;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  opacity: 0.85;
}

.stc-mediathek-suggest__group {
  margin: 0;
  padding: 0.7rem 0.9rem 0.2rem;
  border-top: 1px solid var(--stc-outline-variant);
  font-weight: 700;
}

.stc-mediathek-suggest__group:first-of-type {
  border-top: 0;
}

.stc-mediathek-suggest__hint {
  margin: 0;
  padding: 0 0.9rem 0.3rem;
  font-size: 0.78rem;
  color: #8a5a00;
}

.stc-mediathek-suggest__more {
  display: block;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--stc-outline-variant);
  font-weight: 600;
  text-align: center;
}

.stc-mediathek-suggest__more.is-active,
.stc-mediathek-suggest__more:hover {
  background: var(--stc-surface-variant, #f2f4f7);
  text-decoration: none;
}

.stc-abteilung-tabs--mediathek {
  flex: 1 1 auto;
  margin: 0;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
  padding-bottom: 2px;
}

.stc-abteilung-tabs--mediathek::-webkit-scrollbar {
  display: none;
}

.stc-abteilung-tabs--mediathek .stc-abteilung-tab {
  flex-shrink: 0;
  white-space: nowrap;
}

.stc-mediathek-header__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--stc-primary);
  margin: 0 0 1rem;
}

.stc-mediathek-header__desc {
  margin: 0;
  max-width: 32rem;
  color: var(--stc-on-surface-variant);
}

.stc-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stc-filter-chip {
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--stc-radius-pill);
  background: var(--stc-surface-container);
  color: var(--stc-on-surface);
  transition: background 0.2s, color 0.2s;
}

.stc-filter-chip.is-active {
  background: var(--stc-primary-container);
  color: #fff;
}

.stc-mediathek-featured__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .stc-mediathek-featured__grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.stc-mediathek-featured__main {
  display: flex;
  flex-direction: column;
}

.stc-mediathek-featured__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stc-archive-card {
  background: var(--stc-surface);
  border-radius: var(--stc-radius-md);
  overflow: hidden;
  border: 1px solid var(--stc-outline-variant);
}

.stc-archive-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.stc-archive-card__media--lg {
  aspect-ratio: 16 / 9;
}

.stc-archive-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stc-media-badges-stack {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: calc(100% - 1.5rem);
  pointer-events: none;
}

.stc-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stc-cert-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.32rem 0.65rem;
  border-radius: var(--stc-radius-pill);
  line-height: 1.2;
  letter-spacing: 0.02em;
  background: #ffb3b3;
  color: #000;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.2);
}

.stc-cert-badge--archive,
.stc-cert-badge--live {
  background: #ffb3b3;
  color: #000;
}

.stc-cert-badge--has-tip {
  pointer-events: auto;
  cursor: help;
  position: relative;
}

.stc-cert-badge--has-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  z-index: 20;
  min-width: 14rem;
  max-width: 18rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--stc-radius-sm);
  background: rgba(26, 28, 27, 0.95);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stc-cert-badge--has-tip:hover::after,
.stc-cert-badge--has-tip:focus::after,
.stc-cert-badge--has-tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.stc-media-badges-stack .stc-cert-badge--has-tip {
  pointer-events: auto;
}

.stc-dashboard-hero--archive .stc-dashboard-hero__rec-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.stc-empty-hint--html p:last-child {
  margin-bottom: 0;
}

.stc-section__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--stc-on-surface-variant);
}

.stc-settings-seminar--booked {
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.stc-settings-seminar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.stc-settings-cert-grid {
  margin-top: 1rem;
}

.stc-settings-cert-card .stc-archive-card__body {
  padding-bottom: 1.1rem;
}

.stc-settings-cert-card__meta {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--stc-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stc-hero-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.stc-archive-card__badge,
.stc-media-badges-stack .stc-archive-card__badge {
  position: static;
  background: var(--stc-secondary-accent);
  color: var(--stc-primary-container);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--stc-radius-pill);
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.stc-media-bento a .stc-archive-card__badge,
a.stc-media-bento__featured .stc-archive-card__badge,
a.stc-media-bento__side .stc-archive-card__badge {
  position: static;
}

/* Hinweis auf den Sendungsstart, unten über dem Kartenbild */
.stc-media-countdown {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 4;
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--stc-radius-pill);
  background: rgba(8, 49, 42, 0.86);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.stc-media-countdown--next {
  background: var(--stc-secondary-accent);
  color: var(--stc-primary-container);
}

.stc-media-countdown--soon,
.stc-media-countdown--live {
  background: #ba1a1a;
  color: #ffffff;
}

/* Kurz vor dem Start soll der Hinweis auffallen. */
.stc-media-countdown--soon {
  animation: stc-countdown-blink 1.2s ease-in-out infinite;
}

@keyframes stc-countdown-blink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 2px 10px rgba(186, 26, 26, 0.45);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 2px 18px rgba(186, 26, 26, 0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stc-media-countdown--soon {
    animation: none;
  }
}

.stc-archive-card__duration {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--stc-radius-pill);
  z-index: 2;
}

.stc-archive-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.stc-archive-card__body--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stc-archive-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--stc-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}

.stc-archive-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.stc-archive-card__title a {
  color: var(--stc-primary);
  text-decoration: none;
}

.stc-archive-card__excerpt {
  font-size: 0.88rem;
  color: var(--stc-on-surface-variant);
  margin: 0;
  line-height: 1.4;
}

.stc-archive-card--compact .stc-archive-card__media {
  aspect-ratio: 2 / 1;
}

.stc-archive-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stc-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .stc-archive-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stc-archive-card.is-hidden-archive {
  display: none;
}

.stc-load-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

.stc-load-more-btn {
  min-width: 220px;
}

.stc-mediathek-search-notice {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--stc-on-surface-variant);
}

.stc-mediathek-search-group {
  margin-bottom: 2rem;
}

.stc-mediathek-search-group__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.stc-mediathek-search-group__hint,
.stc-archive-card__login-hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--stc-on-surface-variant);
}

.stc-archive-card__login-hint {
  margin: 0.5rem 0 0;
}

/* Einstellungen */
.stc-settings-page {
  padding-bottom: 3rem;
}

.stc-settings-header {
  margin-bottom: 1.5rem;
}

.stc-settings-header__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--stc-primary);
  margin: 0 0 0.5rem;
}

.stc-settings-header__desc {
  margin: 0;
  color: var(--stc-on-surface-variant);
  max-width: 40rem;
}

.stc-settings-card {
  display: flex;
  flex-direction: column;
  background: var(--stc-surface);
  border-radius: var(--stc-radius-lg);
  box-shadow: var(--stc-shadow-soft);
  border: 1px solid var(--stc-outline-variant);
  overflow: hidden;
}

@media (min-width: 900px) {
  .stc-settings-card {
    flex-direction: row;
    min-height: 520px;
  }
}

.stc-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: rgba(244, 243, 241, 0.8);
  border-bottom: 1px solid var(--stc-outline-variant);
}

@media (min-width: 900px) {
  .stc-settings-nav {
    width: 260px;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--stc-outline-variant);
  }
}

.stc-settings-nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: var(--stc-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--stc-on-surface-variant);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.stc-settings-nav__item:hover {
  background: var(--stc-surface-container-low);
  color: var(--stc-primary);
}

.stc-settings-nav__item.is-active {
  background: var(--stc-primary-container);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--stc-secondary);
}

.stc-settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--stc-outline-variant);
}

.stc-settings-toggle-row:last-child {
  border-bottom: none;
}

.stc-settings-toggle-row__label {
  font-weight: 600;
  color: var(--stc-primary-container);
  margin: 0;
}

.stc-settings-toggle-row__hint {
  font-size: 0.8rem;
  color: var(--stc-on-surface-variant);
  margin: 0.2rem 0 0;
}

.stc-settings-switch {
  position: relative;
  display: inline-flex;
  width: 3rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.stc-settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.stc-settings-switch__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--stc-outline-variant);
  border-radius: 999px;
  transition: background 0.2s;
}

.stc-settings-switch__slider::before {
  content: "";
  position: absolute;
  height: 1.25rem;
  width: 1.25rem;
  left: 0.2rem;
  bottom: 0.2rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.stc-settings-switch input:checked + .stc-settings-switch__slider {
  background: var(--stc-secondary);
}

.stc-settings-switch input:checked + .stc-settings-switch__slider::before {
  transform: translateX(1.35rem);
}

.stc-settings-message {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--stc-radius-sm);
  font-size: 0.9rem;
}

.stc-settings-message--success {
  background: #e8f5e9;
  color: #1b5e20;
}

.stc-settings-message--error {
  background: #ffdad6;
  color: #93000a;
}

.stc-settings-panels {
  flex: 1;
  padding: 1.25rem;
}

@media (min-width: 900px) {
  .stc-settings-panels {
    padding: 2rem;
  }
}

.stc-settings-panel__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--stc-primary);
  margin: 0 0 0.35rem;
}

.stc-settings-panel__lead {
  color: var(--stc-on-surface-variant);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.stc-settings-form__row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stc-settings-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.stc-settings-field {
  margin-bottom: 1rem;
}

.stc-settings-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stc-primary-container);
  margin-bottom: 0.35rem;
}

.stc-settings-input,
.stc-settings-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-sm);
  background: var(--stc-surface);
  color: var(--stc-on-surface);
  font-size: 1rem;
}

.stc-settings-input:focus,
.stc-settings-select:focus {
  outline: none;
  border-color: var(--stc-primary-container);
  box-shadow: 0 0 0 3px rgba(0, 228, 124, 0.2);
}

.stc-settings-form__subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--stc-primary-container);
  margin: 1.5rem 0 0.75rem;
}

.stc-settings-hint {
  font-size: 0.85rem;
  color: var(--stc-on-surface-variant);
  margin: 0.35rem 0 0;
}

.stc-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stc-outline-variant);
}

.stc-settings-cancel {
  color: var(--stc-on-surface-variant);
  text-decoration: none;
  font-weight: 600;
}

.stc-settings-cancel:hover {
  color: var(--stc-primary);
}

.stc-settings-checkgrid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.stc-settings-checkbox {
  font-size: 0.95rem;
  color: var(--stc-primary-container);
}

.stc-settings-seminars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stc-settings-seminar {
  padding: 1rem;
  border-radius: var(--stc-radius-sm);
  border: 1px solid var(--stc-outline-variant);
  background: var(--stc-surface-container-low);
}

.stc-settings-seminar__meta {
  font-size: 0.85rem;
  color: var(--stc-on-surface-variant);
  margin: 0 0 0.25rem;
}

.stc-settings-seminar__title {
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--stc-primary);
}

.stc-settings-security,
.stc-settings-privacy {
  max-width: 36rem;
  line-height: 1.5;
}

.stc-btn--danger {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

.stc-btn--danger:hover {
  background: #dc3545 !important;
  color: #fff !important;
}

.stc-settings-page .email-confirm-group {
  display: none;
  margin-top: 0.75rem;
}

.stc-settings-page .email-confirm-group.show {
  display: block;
}

body.stc-user-app .stc-overview-layout .registration {
  display: none !important;
}

/* Auth / Registrierung (Premium) */
body.stc-auth-page-body {
  padding-bottom: 5.5rem;
}

.stc-auth-page {
  padding: 1rem 1rem 2.5rem;
}

.stc-auth-page__inner {
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  body.stc-auth-page-body .stc-auth-page {
    padding-top: 5.5rem;
  }
}

.stc-auth-card {
  background: var(--stc-surface);
  border-radius: var(--stc-radius-lg);
  box-shadow: var(--stc-shadow-soft);
  border: 1px solid var(--stc-outline-variant);
  overflow: hidden;
}

.stc-auth-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stc-outline-variant);
  background: var(--stc-surface-container-low);
}

.stc-auth-card__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--stc-primary);
  margin: 0;
  flex: 1;
  text-align: center;
}

.stc-auth-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.stc-auth-intro {
  text-align: center;
  margin-bottom: 1.5rem;
}

.stc-auth-intro__logo {
  max-width: min(280px, 75vw);
  height: auto;
  margin-bottom: 1rem;
}

.stc-auth-intro__hero-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--stc-radius-md);
  margin: 1rem auto;
  display: block;
}

.stc-auth-highlight {
  background: var(--stc-secondary-accent);
  color: var(--stc-primary-container);
  border-radius: var(--stc-radius-sm);
  padding: 0.75rem 1rem;
  font-weight: 700;
  margin: 1rem 0;
}

.stc-auth-form .stc-auth-field {
  margin-bottom: 0.85rem;
}

.stc-auth-form .row {
  --bs-gutter-x: 0.75rem;
}

.stc-auth-input,
.stc-auth-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-sm);
  background: var(--stc-surface);
  color: var(--stc-on-surface);
  font-size: 1rem;
}

.stc-auth-input:focus,
.stc-auth-select:focus {
  outline: none;
  border-color: var(--stc-primary-container);
  box-shadow: 0 0 0 3px rgba(0, 228, 124, 0.2);
}

.stc-auth-input.is-invalid,
.stc-auth-select.is-invalid {
  border-color: #dc3545;
  background: #fff5f5;
}

.stc-auth-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--stc-primary-container);
  margin: 1.25rem 0 0.75rem;
}

.stc-auth-checkgrid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  margin-bottom: 1rem;
}

.stc-auth-seminar-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.stc-auth-seminar {
  padding: 1rem;
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-md);
  background: var(--stc-surface-container-low);
}

.stc-auth-seminar__meta {
  font-size: 0.85rem;
  color: var(--stc-on-surface-variant);
  margin: 0 0 0.25rem;
}

.stc-auth-seminar__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--stc-primary);
  margin: 0 0 0.75rem;
}

.stc-auth-seminar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stc-auth-seminar__join {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--stc-secondary-accent);
  border-radius: var(--stc-radius-sm);
  font-weight: 600;
  color: var(--stc-primary-container);
}

.stc-auth-privacy {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--stc-on-surface-variant);
  margin: 1rem 0;
}

.stc-auth-privacy a {
  color: var(--stc-primary-container);
}

.stc-auth-submit-wrap {
  margin-top: 1.25rem;
}

.stc-auth-alert {
  border-radius: var(--stc-radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.stc-auth-alert--danger {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.stc-auth-alert--success {
  background: #e8f5e9;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.stc-auth-countdown {
  font-weight: 700;
  color: var(--stc-primary-container);
}

.stc-auth-footer {
  margin-top: 2rem;
}

.stc-auth-card__spacer {
  width: 5.5rem;
  flex-shrink: 0;
}

.stc-auth-actions-top {
  margin-bottom: 1rem;
}

.stc-auth-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

body.stc-user-app .stc-auth-form .custom-checkbox {
  color: var(--stc-primary-container);
}

body.stc-user-app .stc-auth-form .checkbox-visual {
  background-color: var(--stc-secondary-accent);
  border-color: var(--stc-primary-container);
}

.stc-auth-modal .modal-content {
  border-radius: var(--stc-radius-md);
  border: none;
}

.stc-auth-modal .modal-header {
  background: var(--stc-surface-container-low);
  border-bottom: 1px solid var(--stc-outline-variant);
}

.stc-auth-modal .modal-title {
  color: var(--stc-primary);
  font-weight: 700;
}

.stc-auth-code-input {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 1.35rem;
}

/* Registrierung (Stitch) */
body.stc-reg-page-body,
body.stc-reset-page-body,
body.stc-auth-shell-body {
  background: #f6f5f3 !important;
}

body.stc-reg-page-body .stc-user-nav,
body.stc-reg-page-body .stc-bottom-nav,
body.stc-reset-page-body .stc-user-nav,
body.stc-reset-page-body .stc-bottom-nav,
body.stc-auth-shell-body .stc-user-nav,
body.stc-auth-shell-body .stc-bottom-nav {
  display: none !important;
}

.stc-reg-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192, 200, 197, 0.35);
}

.stc-reg-topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stc-reg-topbar__brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--stc-primary-container);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.stc-reg-topbar__logo {
  max-height: 2.25rem;
  width: auto;
}

.stc-reg-topbar__back {
  color: var(--stc-on-surface-variant);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stc-reg-topbar__back:hover {
  color: var(--stc-primary-container);
}

/* Die Registrierung hat statt der fixierten Navigation eine mitlaufende
   Topbar. Der Platzhalter von 5.5rem wäre hier nur Leerraum. */
@media (min-width: 768px) {
  body.stc-reg-page-body .stc-auth-page {
    padding-top: 1rem;
  }
}

.stc-reg-page__inner {
  width: 100%;
  max-width: 36rem !important;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

@media (max-width: 767px) {
  .stc-reg-page__inner {
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 2rem;
  }

  .stc-reg-form {
    padding: 1rem;
  }

  .stc-reg-hero__title {
    font-size: 1.75rem;
  }

  .stc-reg-fieldset__legend {
    font-size: 1.25rem;
  }
}

.stc-reg-hero {
  margin-bottom: 2rem;
}

.stc-reg-hero__title {
  font-family: var(--stc-font);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--stc-primary-container);
  margin: 0 0 0.35rem;
}

.stc-reg-hero__subtitle {
  font-size: 1.125rem;
  color: var(--stc-on-surface-variant);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.stc-reg-info-box {
  background: var(--stc-surface-container-low);
  border: 1px solid rgba(192, 200, 197, 0.35);
  border-radius: var(--stc-radius-md);
  padding: 1.25rem;
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--stc-on-surface);
}

.stc-reg-info-box__highlight {
  margin: 0.75rem 0 0;
  font-weight: 600;
  color: var(--stc-primary-container);
}

.stc-reg-hint {
  font-size: 0.875rem;
  color: var(--stc-on-surface-variant);
  margin: 0.5rem 0 0;
}

.stc-reg-form {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(192, 200, 197, 0.2);
  box-shadow: 0 4px 24px rgba(8, 49, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .stc-reg-form {
    padding: 2rem;
  }
}

.stc-reg-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--stc-radius-sm);
  font-size: 0.95rem;
}

.stc-reg-alert--danger {
  background: #ffdad6;
  color: #93000a;
  border: 1px solid #ffc9c4;
}

.stc-reg-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stc-reg-fieldset__legend {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--stc-primary-container);
  width: 100%;
  padding-bottom: 0.65rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(192, 200, 197, 0.35);
}

.stc-reg-fieldset__intro {
  margin: 0 0 0.5rem;
  color: var(--stc-on-surface-variant);
  font-size: 1rem;
  line-height: 1.5;
}

.stc-reg-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stc-reg-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stc-on-surface);
}

.stc-reg-input,
.stc-reg-select {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--stc-on-surface);
  background: #fff;
  border: 1px solid #e5e3de;
  border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.stc-reg-input:focus,
.stc-reg-select:focus {
  outline: none;
  border-color: var(--stc-primary-container);
  box-shadow: 0 0 0 1px var(--stc-primary-container);
}

.stc-reg-input.is-invalid,
.stc-reg-select.is-invalid {
  border-color: var(--stc-error);
}

.stc-reg-select-wrap {
  position: relative;
}

.stc-reg-select {
  appearance: none;
  padding-right: 2.5rem;
}

.stc-reg-select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--stc-on-surface-variant);
  font-size: 0.75rem;
}

.stc-reg-grid {
  display: grid;
  gap: 1rem;
}

.stc-reg-grid--2 {
  grid-template-columns: 1fr;
}

.stc-reg-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stc-reg-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .stc-reg-grid--3 {
    grid-template-columns: 1fr 2fr;
  }

  .stc-reg-field--span-2 {
    grid-column: span 1;
  }
}

@media (min-width: 640px) {
  .stc-reg-grid--3 .stc-reg-field--span-2 {
    grid-column: span 1;
  }
}

.stc-reg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stc-reg-pill {
  cursor: pointer;
  margin: 0;
}

.stc-reg-pill__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.stc-reg-pill__text {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--stc-radius-pill);
  background: var(--stc-surface-container);
  border: 1px solid #e5e3de;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stc-on-surface-variant);
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(8, 49, 42, 0.02);
}

.stc-reg-pill__input:checked + .stc-reg-pill__text {
  background: var(--stc-primary-container);
  border-color: var(--stc-primary-container);
  color: #fff;
  box-shadow: 0 4px 12px rgba(8, 49, 42, 0.08);
}

.stc-reg-pill__input:focus-visible + .stc-reg-pill__text {
  outline: 2px solid var(--stc-secondary-accent);
  outline-offset: 2px;
}

.stc-reg-interest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .stc-reg-interest-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stc-reg-interest {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid #e5e3de;
  border-radius: var(--stc-radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin: 0;
}

.stc-reg-interest:hover {
  background: var(--stc-surface-container-low);
}

/* Ausgewählt: farbige Fläche zusätzlich zum Haken. Die .is-checked-Variante
   setzt das Skript, damit die Rückmeldung auch ohne :has()-Unterstützung
   und bereits beim Seitenaufruf sichtbar ist. */
.stc-reg-interest.is-checked,
.stc-reg-interest:has(.stc-reg-interest__input:checked) {
  background: var(--stc-secondary-accent);
  border-color: var(--stc-secondary-accent);
}

.stc-reg-interest.is-checked .stc-reg-interest__label,
.stc-reg-interest:has(.stc-reg-interest__input:checked) .stc-reg-interest__label {
  color: var(--stc-primary-container);
  font-weight: 700;
}

.stc-reg-interest__input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--stc-primary-container);
  flex-shrink: 0;
}

.stc-reg-interest__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stc-on-surface);
}

.stc-reg-seminar-card {
  background: #fff;
  border: 1px solid #e5e3de;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(8, 49, 42, 0.02);
  transition: box-shadow 0.2s;
}

.stc-reg-seminar-card:hover {
  box-shadow: 0 4px 16px rgba(8, 49, 42, 0.06);
}

.stc-reg-seminar-card__top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .stc-reg-seminar-card__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.stc-reg-seminar-card__badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--stc-radius-pill);
  background: rgba(8, 49, 42, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--stc-primary-container);
  margin-bottom: 0.5rem;
}

.stc-reg-seminar-card__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--stc-on-surface);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.stc-reg-seminar-card__date {
  margin: 0;
  font-size: 1rem;
  color: var(--stc-on-surface-variant);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stc-reg-seminar-card__body {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--stc-on-surface);
  margin-bottom: 0.75rem;
}

.stc-reg-seminar-card__body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.stc-reg-seminar-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e5e3de;
}

.stc-reg-seminar-card__details {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stc-primary-container);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.stc-reg-seminar-card__details:hover {
  text-decoration: underline;
}

.stc-reg-seminar-card__ical {
  font-size: 0.875rem;
  color: var(--stc-on-surface-variant);
  text-decoration: none;
}

.stc-reg-seminar-card__ical:hover {
  color: var(--stc-primary-container);
  text-decoration: underline;
}

.stc-reg-join {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--stc-surface-container);
  border: 1px solid #e5e3de;
  border-radius: var(--stc-radius-md);
  cursor: pointer;
  margin: 0;
  align-self: flex-start;
  width: 100%;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

@media (min-width: 768px) {
  .stc-reg-join {
    width: auto;
    justify-content: flex-start;
  }
}

.stc-reg-join:hover {
  border-color: var(--stc-primary-container);
}

/* Teilnahme bestätigt: gleiche Signalfarbe wie der Registrieren-Button. */
.stc-reg-join.is-checked,
.stc-reg-join:has(.stc-reg-join__input:checked) {
  background: var(--stc-secondary-accent);
  border-color: var(--stc-secondary-accent);
  box-shadow: 0 4px 16px rgba(0, 228, 124, 0.25);
}

.stc-reg-join__input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--stc-primary-container);
}

.stc-reg-join__text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--stc-primary-container);
}

.stc-reg-empty-seminars {
  color: var(--stc-on-surface-variant);
  font-size: 0.95rem;
  margin: 0;
}

.stc-reg-legal {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(192, 200, 197, 0.35);
}

.stc-reg-legal__extra {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--stc-on-surface);
}

.stc-reg-legal__box {
  background: var(--stc-surface-container);
  border-radius: var(--stc-radius-md);
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--stc-on-surface-variant);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stc-reg-legal__box a {
  color: var(--stc-primary-container);
  text-decoration: underline;
}

.stc-reg-privacy-input {
  position: absolute;
  left: -9999px;
}

.stc-reg-submit {
  align-self: flex-end;
  width: 100%;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--stc-radius-md);
  background: var(--stc-secondary-accent);
  color: var(--stc-primary-container);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 228, 124, 0.2);
  transition: background 0.15s, box-shadow 0.15s;
}

@media (min-width: 768px) {
  .stc-reg-submit {
    width: auto;
  }
}

.stc-reg-submit:hover {
  background: #00d874;
  box-shadow: 0 8px 24px rgba(0, 228, 124, 0.3);
}

/* Passwort zurücksetzen (Stitch) */
.stc-reset-page {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 4rem;
}

.stc-reset-page__inner {
  max-width: none !important;
  width: 100%;
  padding: 0 !important;
}

.stc-reset-canvas {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.stc-reset-canvas::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(circle at 1px 1px, #08312a 1px, transparent 0);
  background-size: 40px 40px;
  z-index: 0;
}

.stc-reset-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(192, 200, 197, 0.15);
  box-shadow: 0 4px 24px rgba(8, 49, 42, 0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}

@media (min-width: 768px) {
  .stc-reset-card {
    padding: 2.5rem;
  }
}

.stc-reset-card:hover {
  box-shadow: 0 8px 32px rgba(8, 49, 42, 0.08);
}

.stc-reset-card__hero {
  text-align: center;
  margin-bottom: 2rem;
}

.stc-reset-card__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--stc-surface-container-low);
  color: var(--stc-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stc-reset-card__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--stc-primary-container);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.stc-reset-card__lead {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--stc-on-surface-variant);
  max-width: 28rem;
  margin: 0 auto;
}

.stc-reset-card__lead-note {
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
}

.stc-reset-step--request {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--stc-surface-variant);
}

.stc-reset-step--verify {
  transition: opacity 0.3s;
}

.stc-reset-step--verify.stc-reset-step--inactive {
  opacity: 0.55;
}

.stc-reset-step--verify.stc-reset-step--inactive:hover {
  opacity: 0.85;
}

.stc-reset-step--verify.stc-reset-step--inactive .stc-reset-otp__cell,
.stc-reset-step--verify.stc-reset-step--inactive .stc-reset-btn,
.stc-reset-step--verify.stc-reset-step--inactive .stc-reset-link-btn {
  pointer-events: none;
}

.stc-reset-step--verify.stc-reset-step--active {
  opacity: 1;
}

.stc-reset-step__head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.stc-reset-step__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--stc-primary-container);
  margin: 0 0 0.35rem;
}

.stc-reset-step__hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--stc-on-surface-variant);
}

.stc-reset-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stc-reset-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stc-reset-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stc-on-surface);
}

.stc-reset-input-wrap {
  position: relative;
}

.stc-reset-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stc-outline);
  pointer-events: none;
}

.stc-reset-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 1rem;
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-md);
  background: var(--stc-background);
  color: var(--stc-on-surface);
}

.stc-reset-input:focus {
  outline: none;
  border-color: var(--stc-primary-container);
  box-shadow: 0 0 0 2px rgba(8, 49, 42, 0.12);
}

.stc-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: var(--stc-radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.stc-reset-btn--primary {
  background: var(--stc-secondary-accent);
  color: var(--stc-primary-container);
  box-shadow: 0 4px 16px rgba(0, 228, 124, 0.2);
}

.stc-reset-btn--primary:hover {
  background: #00d874;
  box-shadow: 0 8px 24px rgba(0, 228, 124, 0.3);
}

.stc-reset-btn--primary.stc-reset-btn--sent {
  background: #fff;
  color: var(--stc-primary-container);
  border: 2px solid var(--stc-secondary-accent);
  box-shadow: none;
}

.stc-reset-btn--primary.stc-reset-btn--sent:hover {
  background: rgba(0, 228, 124, 0.08);
  box-shadow: 0 4px 12px rgba(0, 228, 124, 0.15);
}

.stc-reset-btn--secondary {
  background: var(--stc-primary-container);
  color: #fff;
  box-shadow: 0 4px 12px rgba(8, 49, 42, 0.15);
}

.stc-reset-btn--secondary:hover {
  background: #065c40;
}

.stc-reset-otp {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stc-reset-otp__cell {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-md);
  background: var(--stc-background);
  color: var(--stc-on-surface);
}

.stc-reset-otp__cell:focus {
  outline: none;
  border-color: var(--stc-primary-container);
  box-shadow: 0 0 0 2px rgba(8, 49, 42, 0.12);
}

.stc-reset-step__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.stc-reset-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stc-on-surface-variant);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stc-reset-link-btn:hover {
  color: var(--stc-primary-container);
}

.stc-reset-link-btn--underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stc-reset-step__or {
  font-size: 0.75rem;
  color: var(--stc-outline);
}

.stc-reset-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--stc-radius-sm);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stc-reset-alert--danger {
  background: #ffdad6;
  color: #93000a;
}

.stc-reset-alert--success {
  background: #e8f5e9;
  color: #1b5e20;
}

/* Neues Passwort setzen */
.stc-reg-topbar__back--plain {
  gap: 0;
}

.stc-set-password-card {
  max-width: 28rem;
  margin: 0 auto;
}

.stc-set-password-card__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: var(--stc-on-surface-variant);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.stc-set-password-card__back:hover {
  color: var(--stc-primary-container);
}

.stc-set-password-card__head {
  margin-bottom: 1.75rem;
}

.stc-set-password-card__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--stc-primary-container);
  margin: 0 0 0.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stc-set-password-card__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--stc-on-surface-variant);
}

.stc-set-password-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stc-set-password-form .stc-login-field {
  margin: 0;
}

.stc-set-password-field__input {
  background: var(--stc-surface-container-low);
  border-color: transparent;
}

.stc-set-password-field__input:focus {
  background: var(--stc-surface);
  border-color: var(--stc-primary-container);
}

.stc-set-password-hint {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--stc-on-surface-variant);
}

.stc-set-password-card__actions {
  margin-top: 0.5rem;
}

/* Rechtstexte (Impressum, Datenschutz, Barrierefreiheit) */
.stc-legal-page__main {
  padding-bottom: 3rem;
}

.stc-legal-doc {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--stc-surface);
  border: 1px solid var(--stc-outline-variant);
  border-radius: var(--stc-radius-lg);
  box-shadow: var(--stc-shadow-soft);
  padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 768px) {
  .stc-legal-doc {
    padding: 2.25rem 2.5rem 2.5rem;
  }
}

.stc-legal-doc__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--stc-primary-container);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.stc-legal-doc__intro {
  margin: 0 0 1.5rem;
  color: var(--stc-on-surface-variant);
  line-height: 1.55;
}

.stc-legal-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--stc-outline-variant);
}

.stc-legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.stc-legal-section--vetmedica {
  background: var(--stc-surface-container-low);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 1.5rem;
  border-radius: var(--stc-radius-md);
  border-bottom: none;
}

@media (min-width: 768px) {
  .stc-legal-section--vetmedica {
    margin-left: 0;
    margin-right: 0;
    padding: 1.75rem;
  }
}

.stc-legal-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stc-primary-container);
  margin: 0 0 1rem;
}

.stc-legal-section__subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--stc-primary-container);
  margin: 1.25rem 0 0.5rem;
}

.stc-legal-prose,
.stc-legal-section p,
.stc-legal-section li {
  line-height: 1.6;
  color: var(--stc-on-surface);
}

.stc-legal-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.stc-legal-list li {
  margin-bottom: 0.35rem;
}

.stc-legal-doc__cta {
  margin: 1.25rem 0;
}

.stc-legal-muted {
  font-size: 0.9rem;
  color: var(--stc-on-surface-variant);
}

.stc-legal-prose a {
  color: var(--stc-primary-container);
  text-decoration: underline;
}

.stc-legal-prose h2,
.stc-legal-prose h3 {
  color: var(--stc-primary-container);
  margin-top: 1.5rem;
}

/* Cookie-Hinweis (nur angemeldet, einmalig) */
.stc-cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 49, 42, 0.45);
  pointer-events: none;
}

.stc-cookie-banner:not(.is-visible) {
  display: none;
}

.stc-cookie-banner.is-visible {
  pointer-events: auto;
}

body.stc-cookie-banner-open {
  overflow: hidden;
}

.stc-cookie-banner__panel {
  width: 100%;
  max-width: 40rem;
  background: var(--stc-surface);
  border-radius: var(--stc-radius-lg);
  box-shadow: 0 12px 48px rgba(8, 49, 42, 0.2);
  padding: 1.25rem 1.25rem 1.5rem;
  max-height: min(85vh, 32rem);
  overflow-y: auto;
}

@media (min-width: 768px) {
  .stc-cookie-banner {
    align-items: center;
  }

  .stc-cookie-banner__panel {
    padding: 1.5rem 1.75rem 1.75rem;
  }
}

.stc-cookie-banner__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--stc-primary-container);
  margin: 0 0 0.75rem;
}

.stc-cookie-banner__text p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--stc-on-surface-variant);
}

.stc-cookie-banner__text p:last-child {
  margin-bottom: 0;
}

.stc-cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

@media (min-width: 480px) {
  .stc-cookie-banner__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.stc-cookie-banner__link {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--stc-primary-container);
  text-decoration: underline;
}

/* Accessibility modes – preserve contrast */
body.high-contrast.stc-user-app,
body.dark-mode.stc-user-app {
  /* Widget overrides in accessibility-overrides.ejs remain authoritative */
}
