* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 480px;
  /* A fixed height (not min-height) makes .view the only scroller, so the nav stays put. */
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.view {
  flex: 1;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
}

.view--detail {
  padding-top: 12px;
}

/* Must be a flex column itself, or the .view gap never reaches the sections. */
.view-body {
  display: flex;
  flex-direction: column;
  gap: inherit;
}

.view-title {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1;
  color: var(--text-primary);
  margin: 0;
}

.view-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.card--accent {
  background: var(--surface);
  border-color: var(--accent-border);
}

.card--chart {
  border-radius: 14px;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Pills / chips */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.pill--room {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.pill--cancel {
  border: 1px dashed var(--text-disabled);
  color: var(--text-secondary);
  background: transparent;
}

.chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 11px;
  font-weight: 500;
}

.badge-lk {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--lk-badge-bg);
  color: var(--lk-badge-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}

/* Lesson list (Heute / Stundenplan) */
.lesson-list {
  display: flex;
  flex-direction: column;
}

.lesson-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
}

.lesson-period {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-muted);
}

.lesson-subject {
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 500;
}

.lesson-subject--cancelled {
  color: var(--text-secondary);
  text-decoration: line-through;
  font-weight: 400;
}

.lesson-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* Anstehend list */
.hw-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
}

.hw-text {
  flex: 1;
  /* Lets the flex item shrink so the clamp below applies. */
  min-width: 0;
  font-size: 16px;
  color: var(--text-primary);
}

.hw-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

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

.hw-due {
  flex: none;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Grade capsule */
.grade-capsule {
  min-width: 52px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-primary);
}

.grade-capsule--new {
  border-color: var(--text-primary);
  background: transparent;
}

/* Noten list rows */
.subject-row {
  display: grid;
  grid-template-columns: 1fr 84px minmax(58px, auto);
  align-items: center;
  gap: 14px;
  min-height: 64px;
  border-bottom: 1px solid var(--border);
}

.subject-row--points {
  grid-template-columns: 1fr 76px 62px;
  gap: 12px;
  min-height: 62px;
}

.subject-name {
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 500;
}

.subject-row--points .subject-name {
  font-weight: 400;
}

.subject-row--lk .subject-name {
  font-weight: 600;
}

.subject-empty-note {
  font-size: 13px;
  color: var(--text-muted);
}

.subject-row--points .subject-value {
  font-size: 25px;
}

.subject-value {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--text-primary);
  text-align: right;
  white-space: nowrap;
}

.subject-value--empty {
  color: var(--text-muted);
}

.trend-line {
  overflow: visible;
}

.trend-empty {
  font-size: 11px;
  color: var(--text-muted);
}

/* Overall average header (Noten) */
.average-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.average-header--points {
  padding-bottom: 18px;
}

.average-value {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: .9;
  color: var(--text-primary);
  white-space: nowrap;
  flex: none;
}

.average-header--points .average-value {
  font-size: 60px;
}

.average-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

.interval-picker {
  appearance: none;
  -webkit-appearance: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-primary);
}

.settings-group {
  padding: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 16px;
}

.settings-row + .settings-row {
  border-top: 1px solid var(--border);
}

.settings-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.settings-label {
  font-size: 16px;
  color: var(--text-primary);
}

.settings-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.settings-row .interval-picker {
  flex: none;
  align-self: center;
}

/* Fach-Detail */
.back-link {
  font-size: 14px;
  color: var(--text-secondary);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.subject-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.subject-header-title {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.1;
  color: var(--text-primary);
}

.subject-header-weighting {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.subject-header--badged .subject-header-weighting {
  margin-top: 4px;
}

.subject-header-value {
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: .9;
  color: var(--text-primary);
  white-space: nowrap;
  flex: none;
}

.grade-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grade-group-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.grade-entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--border);
}

.grade-entry-row--points {
  min-height: 52px;
}

.grade-entry-row--points .grade-capsule {
  min-width: 58px;
}

.formula-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  width: 100%;
  text-align: left;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.formula-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Bottom navigation */
.bottom-nav {
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  /* Just enough to clear the iPhone home indicator. */
  padding: 4px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  flex: none;
}

.nav-item {
  flex: 1;
  min-height: var(--touch-target);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}

.nav-item { position: relative; }
.nav-item--dot::after {
  content: "";
  position: absolute;
  top: 3px;
  left: calc(50% + 9px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--surface);
}

.nav-item[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 600;
}

/* Skeleton loading */
@keyframes shimmer { 0% { opacity: .45 } 50% { opacity: .9 } 100% { opacity: .45 } }

.skeleton {
  background: var(--border);
  border-radius: 8px;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* Empty / error states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 48px 16px;
  color: var(--text-muted);
}

/* Login */
.login-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 24px;
}

.login-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.button-primary {
  min-height: var(--touch-target);
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
}

.button-primary[disabled] {
  opacity: .5;
  cursor: default;
}

.button-primary--inline {
  padding: 0 20px;
}

.button-primary--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.login-help {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.login-error {
  font-size: 13px;
  color: var(--accent);
}

@media (max-width: 400px) {
  .view { padding-left: 16px; padding-right: 16px; }
}

/* Stundenplan week navigation */
.sp-week-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-week-nav-btn {
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  margin: 0 -10px;
  font-size: 20px;
  color: var(--text-secondary);
}

/* Stundenplan 5-day grid */
.sp-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-grid-row {
  display: grid;
  grid-template-columns: 16px repeat(5, 1fr);
  gap: 4px;
  align-items: stretch;
}

/* min-width:0 on the grid item, or a long note widens the whole track. */
.sp-grid-cell {
  min-width: 0;
}

.sp-day-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

/* The 44px hit area lives on ::before, so the header row keeps its height. */
.sp-day-head--exam {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 8px;
}

.sp-day-head--exam::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 50%;
  height: max(100%, var(--touch-target));
  transform: translateY(-50%);
  border-radius: 8px;
}

.sp-day-head--exam:hover::before,
.sp-day-head--exam:active::before {
  background: var(--pressed);
}

.sp-exam-dot,
.sp-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.sp-cell .sp-exam-dot {
  position: absolute;
  top: 8px;
  right: 8px;
}

.sp-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.sp-legend-dot {
  vertical-align: middle;
  margin: 0 5px 1px 0;
}

.sp-day-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sp-day-label--today {
  color: var(--text-primary);
}

.sp-day-date {
  font-size: 10px;
  color: var(--text-muted);
}

.sp-period {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-disabled);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-cell {
  display: block;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 5px;
  min-height: 58px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.sp-cell[role="button"] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sp-cell--changed {
  background: var(--accent-bg);
  border-color: var(--accent-border);
}

.sp-cell--changed .sp-cell-title,
.sp-cell--changed .sp-cell-meta {
  color: var(--accent);
}

.sp-cell--cancelled {
  background: transparent;
  border-style: dashed;
  border-color: var(--text-disabled);
}

.sp-cell--cancelled .sp-cell-title,
.sp-cell--cancelled .sp-cell-meta {
  color: var(--text-secondary);
}

.sp-cell-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-cell-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Detail sheet (components/detail-sheet.js) */
.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 23, 20, .32);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: sheet-scrim-in 200ms ease-out;
}

.detail-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 10px 24px calc(30px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 -10px 30px rgba(26, 23, 20, .12);
  animation: sheet-in 200ms ease-out;
}

.detail-backdrop.is-closing {
  animation: sheet-scrim-out 200ms ease-in forwards;
}

.detail-backdrop.is-closing .detail-sheet {
  animation: sheet-out 200ms ease-in forwards;
}

@keyframes sheet-scrim-in {
  from { background-color: rgba(26, 23, 20, 0); }
}

@keyframes sheet-scrim-out {
  to { background-color: rgba(26, 23, 20, 0); }
}

@keyframes sheet-in {
  from { transform: translateY(100%); }
}

@keyframes sheet-out {
  to { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .detail-backdrop,
  .detail-sheet {
    animation: none;
  }
}

.detail-handle {
  flex: none;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  align-self: center;
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-header-text {
  min-width: 0;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 8px 0 2px;
}

.detail-title:first-child {
  margin-top: 0;
}

.detail-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.detail-sheet .eyebrow {
  color: var(--accent);
}

.detail-close {
  flex: none;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  margin: -10px -10px 0 0;
  font-size: 20px;
  color: var(--text-secondary);
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.detail-label {
  flex: none;
  font-size: 13px;
  color: var(--text-muted);
}

.detail-value {
  min-width: 0;
  font-size: 15px;
  color: var(--text-primary);
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Test sheet (views/stundenplan.js) */
.exam-when {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.exam-pill {
  background: var(--lk-badge-bg);
  color: var(--lk-badge-text);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 6px;
  padding: 3px 7px;
}

.exam-date {
  font-size: 13px;
  color: var(--text-muted);
}

/* Termine */

.segmented {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--chip-bg);
  border-radius: var(--radius-sm);
}

.segment {
  flex: 1;
  min-height: 38px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
}

.segment--active {
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(26, 23, 20, .12);
}

.next-card {
  background: var(--lk-badge-bg);
  color: var(--lk-badge-text);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72;
}

.next-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  /* min-width:0 on the flex item itself, or the ellipsis never applies. */
  min-width: 0;
}

.next-card-title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-card-when {
  font-size: 13px;
  opacity: .72;
  white-space: nowrap;
}

.next-card-meta {
  font-size: 14px;
  opacity: .72;
}

.next-card-body {
  font-size: 14px;
  border-top: 1px solid rgba(128, 128, 128, .35);
  padding-top: 10px;
  margin-top: 2px;
}

.date-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.date-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.date-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.date-row-number {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1;
  color: var(--text-primary);
}

.date-row-weekday {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.date-row-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  /* min-width:0 on the grid item, as above. */
  min-width: 0;
}

.date-row-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
}

.date-row-detail {
  font-size: 13px;
  color: var(--text-secondary);
}

.date-row-note {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.is-expandable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.is-expandable:active {
  opacity: .6;
}

.date-row--muted .date-row-number,
.date-row--muted .date-row-weekday {
  color: var(--text-disabled);
}

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

.ferien-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ferien-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}

.ferien-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.ferien-row-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 0;
}

.ferien-row-range {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Mitteilungen */
.mt-list {
  display: flex;
  flex-direction: column;
}

.mt-row {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 12px;
  padding: 12px 0;
  min-height: var(--touch-target);
  border-bottom: 1px solid var(--border);
}

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

.mt-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.mt-dot--read { background: transparent; }

.mt-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mt-title {
  font-size: 16px;
  color: var(--text-primary);
}
.mt-title--unread { font-weight: 600; }

.mt-preview {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.mt-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.mt-clip svg,
.mt-attachment-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.mt-detail-title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  overflow-wrap: anywhere;
}

.mt-confirm {
  font-size: 14px;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.mt-confirm--done {
  color: var(--text-secondary);
}

/* Letter text: the only place links are underlined. */
.mt-message {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.mt-message p { margin: 0 0 14px; }
.mt-message p:last-child { margin-bottom: 0; }
.mt-message a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mt-attachment {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.mt-attachment-icon {
  flex: none;
  color: var(--accent);
}
.mt-attachment-icon svg {
  width: 22px;
  height: 22px;
}

.mt-attachment-name {
  font-size: 15px;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.mt-chevron {
  font-size: 20px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Rechtliches */
.legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.legal > * {
  margin: 0;
}

.legal h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.legal h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 8px;
}

.legal h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 4px;
}

.legal a,
.legal-link {
  text-decoration: underline;
}

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