/* Verbandsdesign für den E-Rechnung-Mock: StBV Berlin-Brandenburg.
   Quelle: context/specs/e_rechnung_tool/design_stbv_berlin_brandenburg.md, Abschnitte 8 und 9.
   Flächig und kantig, keine Schatten, Source Sans 3 selbst gehostet, Grundschrift 18 px, Überschriften nicht fett.
   Orange #bb5b07 statt #dd6c07 als Handlungsfarbe, damit weißer Text AA erfüllt. Navy als ruhige Zweitfarbe.
   White-Label (G-1): --accent ist die Markenfarbe, die G-1 am body setzt. --primary leitet sich am body davon ab.
   Die Schriftgrößen stehen in rem, damit I-4 "Text 200 %" greift. */

@font-face { font-family: "Source Sans 3"; font-weight: 300; font-display: swap; src: url(../assets/fonts/source-sans-3-300.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(../assets/fonts/source-sans-3-400.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(../assets/fonts/source-sans-3-700.woff2) format("woff2"); }

:root {
  --background: #ffffff;
  --foreground: #333333;
  --card: #ffffff;
  --muted: #eeefef;                 /* Fläche grau, App-Hintergrund */
  --muted-50: rgba(238, 239, 239, 0.5);
  --muted-70: rgba(238, 239, 239, 0.7);
  --muted-foreground: #666666;
  --faint-foreground: #767676;      /* nur Dekor/deaktiviert */
  --accent-surface: #eeefef;        /* ausgewählte Flächen */
  --secondary: #00276b;             /* Navy */
  --action: #bb5b07;                /* Handlungsfarbe */
  --brand-orange: #dd6c07;          /* nur Flächen und Linien ohne Text */
  --secondary-foreground: #ffffff;
  --success: #3c763d;
  --destructive: #a94442;
  --warning: #8a6d3b;
  --info: #31708f;
  --border: #dddddd;
  --input: #767676;                 /* #ccc erreicht auf Weiß nur 1,61 */
  --field-border-hover: #555555;
  --hairline: #dddddd;
  --soft: #eeefef;
  --surface-hover: #eeefef;
  --shadow-input: 0 0 0 transparent;
  --shadow-sm: 0 0 0 transparent;
  --shadow-card: 0 0 0 transparent;
  --shadow-card-hover: 0 0 0 transparent;
  --shadow-pop: 0 0 0 1px #dddddd;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 120ms;  --t-toggle: 200ms;  --t-panel: 320ms;
  --text-xl: 1.875rem;   /* 30 Seitentitel */
  --text-lg: 1.5625rem;  /* 25 Abschnitt */
  --text-md: 1.125rem;   /* 18 Text, Label */
  --text-sm: 0.9375rem;  /* 15 Metazeile */
  --text-kicker: 0.8125rem; /* 13 Kicker, Großbuchstaben */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px;
  --r-sm: 4px; --r-md: 0; --r-lg: 0; --r-full: 0;   /* eckig, nur Felder behalten 4 px */
  --font: "Source Sans 3", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  /* Lucide-Icons (Strich 2) als Masken für ::before */
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  --i-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Markenfarbe: G-1 setzt --accent am body (inline oder per body.alt). Alles Primäre hängt an --primary. */
body {
  --accent: var(--action);
  --primary: var(--accent);
  --primary-hover: color-mix(in oklab, var(--accent) 72%, black);  
  --primary-10: color-mix(in srgb, var(--accent) 10%, transparent);
  --ring: var(--secondary);
}
body.alt { --accent: #8b2772; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; }
body {
  margin: 0; font-family: var(--font); font-size: var(--text-md); line-height: 1.43;
  color: var(--foreground); background: var(--muted); -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
* { scrollbar-width: none; }                       /* E-91: keine sichtbaren Scrollbalken */
*::-webkit-scrollbar { display: none; }
a { color: var(--primary); text-underline-offset: 2px; }
h1, h2, h3, h4 { color: var(--foreground); margin: 0 0 var(--s3); }
h1 { font-size: var(--text-xl); font-weight: 400; line-height: 1.15; }
h1 small { font-size: var(--text-md); font-weight: 400; color: var(--muted-foreground); margin-left: var(--s2); letter-spacing: 0; }
h2 { font-size: var(--text-lg); font-weight: 400; line-height: 1.15; margin-top: var(--s6); }
h3, h4 { font-size: 1.25rem; font-weight: 400; margin-top: var(--s4); }
p { margin: 0 0 var(--s3); }
small { font-size: var(--text-sm); color: var(--muted-foreground); }
code, kbd, samp { font-family: var(--mono); font-size: var(--text-sm); }
ul, ol { padding-left: var(--s6); margin: 0 0 var(--s3); }
li { margin: var(--s1) 0; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--s6) 0; }

/* ---------- Shell ---------- */
body > header {
  height: 64px; display: flex; gap: var(--s3); align-items: center; padding: 0 var(--s4) 0 var(--s6);
  background: var(--background); border-bottom: 1px solid var(--hairline);
}
body > header strong { font-size: var(--text-md); font-weight: 400; margin-right: auto; display: inline-flex; align-items: center; gap: var(--s2); }
body > header > span { color: var(--muted-foreground); font-size: var(--text-sm); }
body > header button { min-height: 32px; height: 32px; white-space: nowrap; flex: none; }
main {
  display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: var(--s4);
  padding: var(--s4); min-height: calc(100vh - 160px); align-items: start;
}
nav { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s2) 0; }
nav button {
  height: 40px; justify-content: flex-start; background: transparent; box-shadow: none;
  color: var(--muted-foreground); padding: 0 var(--s3); border-radius: var(--r-md); gap: var(--s3);
}
nav button svg { width: 20px; height: 20px; flex: none; }
nav button:hover:not(:disabled) { background: var(--surface-hover); color: var(--foreground); }
nav button[aria-current="page"] { background: var(--background); color: var(--primary); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary), inset 0 0 0 1px var(--hairline); }
#app {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--hairline);
  padding: var(--s6) var(--s8) var(--s8); max-width: 1100px; min-width: 0;
}
#app section { padding: 0; margin-top: var(--s8); max-width: none; }

/* ---------- Buttons (HeroUI: bordered, primary = solid secondary, light) ---------- */
button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 40px; padding: 0 var(--s4); border: 0; border-radius: var(--r-full);
  background: var(--background); color: var(--foreground); font-size: var(--text-md); font-weight: 500; line-height: 1.3;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm); cursor: pointer; text-align: center;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
button:hover:not(:disabled) { background: var(--surface-hover); }
button:active:not(:disabled) { background: var(--accent-surface); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary, button[type="submit"]:not(.light) {
  background: var(--primary); color: var(--secondary-foreground); box-shadow: none;
}
button.primary:hover:not(:disabled), button[type="submit"]:not(.light):hover:not(:disabled) { background: var(--primary-hover); }
button.primary:active:not(:disabled), button[type="submit"]:not(.light):active:not(:disabled) { background: var(--primary-hover); }
button.light { background: transparent; box-shadow: none; }
button.light:hover:not(:disabled) { background: var(--surface-hover); }
button.danger { background: transparent; box-shadow: none; color: var(--destructive); }
button.danger:hover:not(:disabled) { background: rgba(180, 35, 24, 0.1); }
/* Auswahl aus festen Optionen: ausgewählter Reiter weiß mit Textfarbe, nicht Waldgrün */
button[aria-pressed="true"] {
  background: var(--accent-surface); color: var(--foreground); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(49, 44, 38, 0.35);
}
/* Reiter (Workspace tabs): Unterstrich in Markenfarbe */
[role="tablist"], .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin: var(--s3) 0; flex-wrap: wrap; }
button[role="tab"], button[aria-selected] {
  background: transparent; box-shadow: none; border-radius: 0; min-height: 40px; padding: 0 var(--s3);
  color: var(--muted-foreground); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
button[role="tab"]:hover:not(:disabled), button[aria-selected]:hover:not(:disabled) { background: transparent; color: var(--foreground); }
button[role="tab"][aria-selected="true"], button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: var(--s4) 0; }

/* ---------- Formulare ---------- */
fieldset {
  margin: 0 0 var(--s4); padding: var(--s4) var(--s6) var(--s6); border: 0; min-width: 0;
  border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline);
}
legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--s3); font-size: var(--text-lg); font-weight: 400; }
legend + * { clear: both; }
label { display: block; margin: var(--s3) 0; font-weight: 500; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
  display: flex; align-items: center; gap: var(--s2); font-weight: 400; min-height: 24px;
}
input, select, textarea {
  display: block; width: min(100%, 520px); margin-top: var(--s1); min-height: 40px; padding: var(--s2) var(--s3);
  border: 0; border-radius: var(--r-md); background: var(--background); color: var(--foreground); font-weight: 400;
  box-shadow: inset 0 0 0 1px var(--input), var(--shadow-input);
  transition: box-shadow var(--t-fast) var(--ease);
}
textarea { line-height: 1.5; }
input:hover:not(:disabled):not([readonly]), select:hover:not(:disabled), textarea:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--field-border-hover), var(--shadow-input); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); }
input[readonly] { background: var(--muted-50); }
select {
  appearance: none; -webkit-appearance: none; padding-right: var(--s8);
  background: var(--background) var(--i-chevron) no-repeat right 12px center / 16px 16px;
}
input[type="checkbox"], input[type="radio"] {
  display: inline-block; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; flex: none;
  box-shadow: none; accent-color: var(--primary);
}
input[type="file"] { min-height: 40px; padding: var(--s2); }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 500; border: 0; border-radius: var(--r-full); padding: var(--s1) var(--s3); margin-right: var(--s3);
  background: var(--soft); color: var(--foreground); cursor: pointer;
}
input[type="color"] { width: 64px; padding: var(--s1); }
input[aria-invalid="true"], select[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--destructive), var(--shadow-input); }

/* ---------- Hinweise, Ergebnisse ---------- */
.notice {
  padding: var(--s3) var(--s4); margin: var(--s3) 0; background: var(--muted-50); border-radius: var(--r-md);
  color: var(--foreground);
}
.notice:empty, .result:empty { display: none; }
.result {
  position: relative; padding: var(--s4); margin: var(--s3) 0; background: var(--card); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm);
}
.result.bad, .notice.bad { padding-left: 44px; position: relative; }
.result.bad::before, .notice.bad::before {
  content: ""; position: absolute; left: var(--s4); top: calc(var(--s4) + 2px); width: 16px; height: 16px;
  background: var(--destructive); -webkit-mask: var(--i-alert) center / contain no-repeat; mask: var(--i-alert) center / contain no-repeat;
}
.notice.bad::before { top: calc(var(--s3) + 2px); }
.result > :last-child, .notice > :last-child { margin-bottom: 0; }

/* ---------- Kacheln für Funktionen ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: var(--s3); margin: var(--s3) 0; }
.feature-grid button {
  position: relative; display: block; text-align: left; min-height: 72px; padding: var(--s3) var(--s4);
  border-radius: var(--r-lg); font-weight: 500; line-height: 1.4;
}
.feature-grid button b { font-family: var(--mono); font-size: var(--text-sm); font-weight: 400; color: var(--muted-foreground); }
.feature-grid button:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-card-hover); }
.locked::after {
  content: "Pro"; position: absolute; top: var(--s3); right: var(--s3); font-size: var(--text-sm); font-weight: 500;
  line-height: 20px; padding: 0 var(--s2); border-radius: var(--r-full); background: var(--soft); color: var(--foreground);
}
.feature-head { display: flex; gap: var(--s3); align-items: center; margin-bottom: var(--s3); }
#feature-back { background: transparent; box-shadow: none; padding: 0 var(--s3) 0 var(--s2); color: var(--muted-foreground); min-height: 32px; }
#feature-back::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--i-back) center / contain no-repeat; mask: var(--i-back) center / contain no-repeat;
}
#feature-back:hover { color: var(--foreground); background: var(--surface-hover); }
.feature-id { font-family: var(--mono); font-size: var(--text-sm); color: var(--muted-foreground); }
.badge {
  display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--text-sm); font-weight: 500; line-height: 20px;
  padding: 0 var(--s2); border-radius: var(--r-full); background: var(--soft); color: var(--foreground);
}

/* ---------- Tabellen (HeroUI-Rahmen: Kopfzeile gedämpft, Zeilen mit Hairline) ---------- */
table {
  border-collapse: separate; border-spacing: 0; margin: var(--s3) 0; font-size: var(--text-md);
  border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--hairline);
}
th, td { padding: var(--s2) var(--s3); text-align: left; vertical-align: top; border: 0; }
th { background: var(--muted-50); font-weight: 500; color: var(--foreground); }
tr + tr > td, tr + tr > th { border-top: 1px solid var(--hairline); }
tr:first-child > th:first-child { border-top-left-radius: var(--r-md); }
tr:first-child > th:last-child { border-top-right-radius: var(--r-md); }
td input, td select { margin-top: 0; }
caption { caption-side: top; text-align: left; font-weight: 500; color: var(--muted-foreground); padding: 0 0 var(--s2); }

/* ---------- Code ---------- */
pre {
  white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; margin: var(--s3) 0;
  font-family: var(--mono); font-size: var(--text-sm); line-height: 1.6;
  background: var(--muted-50); color: var(--foreground); border-radius: var(--r-md); padding: var(--s3) var(--s4);
}

/* ---------- Dialog: zentriert, Blur-Backdrop ---------- */
dialog {
  width: min(640px, calc(100% - 32px)); max-width: 640px; max-height: calc(100vh - 64px); overflow: auto;
  border: 0; border-radius: var(--r-lg); padding: var(--s6); background: var(--card); color: var(--foreground);
  box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--hairline);
}
dialog[open] { animation: dlg-in var(--t-panel) var(--ease); }
dialog::backdrop { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
dialog h2 { margin: 0 0 var(--s4); font-size: var(--text-lg); }
dialog > .row:last-child { justify-content: flex-end; margin: var(--s6) 0 0; }
dialog > .row:last-child #close { background: transparent; box-shadow: none; }
dialog > .row:last-child #close:hover { background: var(--surface-hover); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Toast: helle Karte, Semantikfarbe nur im Icon ---------- */
.toast {
  position: fixed; left: 50%; bottom: var(--s6); transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: var(--s2); max-width: calc(100% - 32px);
  background: var(--card); color: var(--foreground); padding: var(--s3) var(--s4); border-radius: var(--r-md);
  box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--hairline); animation: toast-in var(--t-panel) var(--ease);
}
.toast::before {
  content: ""; width: 16px; height: 16px; flex: none; background: var(--success);
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Bausteine für Module ---------- */
.kicker { font-size: var(--text-kicker); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--text-sm); font-weight: 500; line-height: 20px;
  padding: 0 var(--s2); border-radius: var(--r-full); background: var(--soft); color: var(--foreground); white-space: nowrap;
}
/* Statuspunkt: Semantikfarbe nur als kleiner Punkt */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint-foreground); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Mobil: 16 px Rand ---------- */
@media (max-width: 700px) {
  body > header { padding: 0 var(--s4); gap: var(--s2); }
  body > header > span { display: none; }
  body > header button { padding: 0 var(--s3); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  body > header strong { display: block; font-size: var(--text-md); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  main { display: block; padding: 0; }
  nav { flex-direction: row; overflow-x: auto; padding: 0 var(--s4) var(--s2); }
  nav button { white-space: nowrap; flex: none; }
  #app { border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--s4); min-height: calc(100vh - 104px); }
  fieldset { padding: var(--s4); }
  #app table { display: block; max-width: 100%; overflow-x: auto; }
  .row > button { flex: 1 1 auto; }
}

/* Leerer Zustand und Pro-Hinweis: Text, Knopf und Zusatz mit festen Abständen */
#app .re-empty { display: flex; flex-direction: column; align-items: center; gap: var(--s4); padding: var(--s8) var(--s6); margin-top: var(--s4); }
#app .re-empty > p { margin: 0; }
#app .re-empty > button + p { margin-top: calc(var(--s1) * -1); }

/* Name im Kopf führt zurück zur Landingpage */
.brand-link { margin-right: auto; color: inherit; text-decoration: none; min-width: 0; }
.brand-link:hover { text-decoration: underline; }

/* Hinweis der Vorschau über dem Inhalt */
#preview-note { margin: 0; padding: var(--s2) var(--s4); background: var(--soft); color: var(--muted-foreground); font-size: var(--text-sm); text-align: center; }

/* ---------- Verbandsdesign ---------- */
.brand-link { display: inline-flex; align-items: center; gap: var(--s4); }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-link:hover { text-decoration: none; }
.brand-link:hover strong { text-decoration: underline; }
body.alt .brand-logo { display: none; }
/* Hauptbutton mit Pfeilquadrat links, Erkennungsmerkmal des Verbands */
button.primary, button[type="submit"]:not(.light) { padding: 0 var(--s4) 0 0; gap: var(--s3); align-items: center; text-align: left; }
button.primary::before, button[type="submit"]:not(.light)::before {
  content: ""; flex: none; width: 40px; min-height: 40px; align-self: stretch;
  background: var(--primary-hover) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center/20px no-repeat;
}
button.primary:hover:not(:disabled)::before { background-color: color-mix(in oklab, var(--primary-hover) 80%, black); }
/* Fuß mit Orangelinie, Pflichtangabe aus G-1d */
#app-footer { border-top: 3px solid var(--brand-orange); background: var(--background); color: var(--muted-foreground); font-size: var(--text-sm); padding: var(--s3) var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; }
#app-footer p { margin: 0; }
@media (max-width: 720px) { .brand-logo { height: 36px; } .brand-link strong { display: none; } }
/* Textaktionen wie der Textlink des Verbands */
button.light { color: var(--primary); }
button.light:hover:not(:disabled) { background: transparent; text-decoration: underline; }
/* Listen: Nummer als Link, Zeile mittig */
.re-table td { vertical-align: middle; }
#app .re-table td button.light { min-height: 0; padding: 0; }
/* Untergruppe im Formular ohne eigenen Rahmen */
#app fieldset fieldset { border: 0; box-shadow: none; padding: 0; background: transparent; margin: var(--s4) 0; }
#app fieldset fieldset > legend { font-size: var(--text-md); font-weight: 700; margin-bottom: var(--s2); }
