/* Cards and panels (FE-D5). Solid surfaces on the patterned background. No card in a card. */
.card {
  position: relative;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-1);
  padding: var(--space-5);
}
.card__title { font-size: var(--text-base); font-weight: var(--weight-semibold); margin-bottom: var(--space-1); }
.card__subtitle { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.card__head .card__subtitle { margin-bottom: 0; }
/* Running text in a card that has no inner stack: a paragraph and what follows it stand apart.
   Low specificity on purpose: any class that sets its own margin (.stack, .form-actions) wins. */
:where(.card) > p + *, :where(.card) > :where(:not(.card__head)) + p { margin-top: var(--space-3); }
.card--muted { background: var(--color-surface-muted); box-shadow: none; }
.card--flush { padding: 0; overflow: hidden; }
/* Highlighted: the one card in a row that matters most (template: "Abo-Verwaltung"). */
.card--highlight { border-color: var(--color-primary-line); background: var(--color-primary-soft); }
.card--interactive { transition: border-color var(--duration-fast); }
.card--interactive:hover { border-color: var(--color-primary-line); }
.card > fieldset > legend { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin-bottom: var(--space-4); }

/* Feature card: icon tile, title, one or two lines. */
.feature { display: grid; gap: var(--space-2); align-content: start; }
.feature__title { font-size: var(--text-base); font-weight: var(--weight-semibold); margin-top: var(--space-2); }
.feature__text { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Icon tile: a line icon in a small tinted square. */
.icon-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius-control);
  background: var(--color-primary-soft); border: 1px solid var(--color-primary-line); color: var(--color-primary);
}
.icon-tile svg { width: 1.125rem; height: 1.125rem; }
.icon-tile--large { width: 2.75rem; height: 2.75rem; }

/* Eyebrow chip above a heading (template: "KI für Verlage und Agenturen"). */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-badge);
  border: 1px solid var(--color-primary-line); background: var(--color-primary-soft);
  color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--weight-medium);
}
.chip svg { width: 0.875rem; height: 0.875rem; }

/* A list of choices with an action each (U-0063 organisation switch). */
.choice-list { list-style: none; margin: 0; padding: 0; }
.choice-list__item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.choice-list__item:last-child { border-bottom: 0; }
.choice-list__name { font-weight: var(--weight-medium); }
.choice-list__item form { margin: 0; }
/* The name with a line of facts below it (U-0142: role, since when, legal name, city). */
.choice-list__text { display: grid; gap: var(--space-1); min-width: 0; }
.choice-list__facts { font-size: var(--text-sm); color: var(--color-text-muted); overflow-wrap: anywhere; }
/* A long text that is read once and agreed to (the AI's consent text, U-0133): whole and open;
   from 992px it flows in two columns, a heading never alone at the foot of one. */
.consent-text h3 { margin-top: var(--space-5); break-after: avoid; }
.consent-text > section:first-child h3 { margin-top: 0; }
.consent-text p, .consent-text li { break-inside: avoid; }
@media (min-width: 992px) { .consent-text { columns: 2; column-gap: var(--space-7); } }
/* A list of facts in two columns (U-0135): a value never pushes its column wide — a long
   address or a website wraps where it has to. */
.facts > div { min-width: 0; overflow-wrap: anywhere; }
