/* meemoo brand colours and functional greys from the 2024 brand book. */
:root {
  --font-sans: "DM Sans", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-green: #00C8AA;
  --color-grey-dark: #505050;
  --color-grey: #969696;
  --color-grey-light: #E6E6E6;
  --accent-soft: var(--color-grey-light);
  --app-text: var(--color-black);
  --app-text-leise: var(--color-grey-dark);
  --app-text-blass: var(--color-grey-dark);
  --app-linie: var(--color-grey-light);
  --app-linie-fein: var(--color-grey-light);
  --app-rand: var(--color-grey);
  --app-grau: var(--color-grey-light);
  --app-akzent: var(--color-green);
  --app-focus: var(--color-black);
  --app-haupt: var(--color-black);
  --app-haupt-text: var(--color-white);
  --app-feld: var(--color-white);
  --app-feld-linie: var(--color-grey-dark);
  --bg-page: var(--color-white);
  color-scheme: light;
}
* { box-sizing: border-box; border-radius: 0 }
body {
  background: var(--bg-page); color: var(--app-text);
  font-family: var(--font-sans); font-size: 13px; line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: inherit }
:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 1px }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important } }

/* header */
.kopf {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding-block: 14px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid var(--app-linie);
}
.logo { width: 220px; max-width: 100%; height: auto; display: block }
.kopf-titel { flex: 1 1 260px; min-width: 0 }
.kopf-titel h1 { margin: 0; font-size: 17px; font-weight: 600; text-wrap: balance }
.kopf-titel p { margin: 0; color: var(--app-text-leise) }
.segment { display: inline-flex; border: 1px solid var(--app-linie) }
.segment button {
  font: inherit; background: var(--color-white); color: var(--app-text); border: 0; padding: 5px 12px; cursor: pointer;
}
.segment button + button { border-left: 1px solid var(--app-linie) }
.segment button:hover { text-decoration: underline; text-underline-offset: 3px }
.segment button[aria-pressed="true"] { background: var(--color-white); font-weight: 600; box-shadow: inset 0 -3px 0 var(--app-akzent) }
.sprache { display: flex; align-items: center; gap: 8px; color: var(--app-text-leise) }

/* frame */
.rahmen { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 70px) }
.leiste {
  border-right: 1px solid var(--app-linie); padding-block: 12px 32px; background: var(--color-white);
  padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: 8px;
}
.leiste h2 {
  margin: 14px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--app-text-leise);
}
.nav-punkt {
  display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; text-decoration: none; color: var(--app-text);
  border-left: 2px solid transparent;
}
.nav-punkt:hover { text-decoration: underline; text-underline-offset: 3px }
.nav-punkt[aria-current="page"] { border-left-color: var(--app-akzent); background: var(--color-white); font-weight: 700 }
.nav-punkt[aria-current="page"] small { color: var(--app-text) }
.nav-punkt small { color: var(--app-text-blass); font-weight: 400 }
.modulwahl { display: none }
.inhalt {
  min-width: 0; padding-block: 20px 48px;
  padding-left: 28px; padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (max-width: 860px) {
  .rahmen { grid-template-columns: minmax(0, 1fr) }
  .leiste { display: none }
  .modulwahl { display: block; padding-block: 10px 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
  .modulwahl select { width: 100% }
  .inhalt { padding-left: max(16px, env(safe-area-inset-left, 0px)) }
}

/* page header */
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--app-text-leise); font-size: 12px; letter-spacing: .04em; text-transform: uppercase }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--app-akzent) }
.seitenkopf h2 { margin: 6px 0 2px; font-size: 26px; font-weight: 600; line-height: 1.2; text-wrap: balance }
.seitenkopf .neben { color: var(--app-text-leise); margin: 0 0 4px }
.zahlen { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 18px }
.zahl b { display: block; font-size: 20px; font-weight: 600 }
.zahl span { color: var(--app-text-leise) }
.reiter { display: flex; gap: 0; border-bottom: 1px solid var(--app-linie); margin-bottom: 14px; flex-wrap: wrap }
.reiter a { padding: 8px 14px; text-decoration: none; color: var(--app-text-leise); border-bottom: 2px solid transparent; margin-bottom: -1px }
.reiter a:hover { text-decoration: underline; text-underline-offset: 3px }
.reiter a[aria-current="page"] { color: var(--app-text); background: var(--color-white); border-bottom-color: var(--app-akzent); font-weight: 700 }

/* toolbar + fields */
.werkzeuge { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 10px }
.feld { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.feld label { font-size: 11px; color: var(--app-text-leise) }
.feld input, .feld select, .modulwahl select {
  font: inherit; color: var(--app-text); background: var(--app-feld); border: 0; border-bottom: 1px solid var(--app-feld-linie);
  padding: 6px 8px; height: 32px; max-width: 100%;
}
.feld input:focus, .feld select:focus { border-bottom-color: var(--app-focus) }
.feld.breit { flex: 1 1 260px }
.treffer { color: var(--app-text-leise); margin: 0 0 6px }

/* tables */
.tabelle-huelle { overflow-x: auto; border-top: 1px solid var(--app-linie) }
table { border-collapse: collapse; width: 100%; min-width: 980px }
th, td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--app-linie-fein) }
th { position: sticky; top: 0; background: var(--color-white); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--app-rand); white-space: nowrap }
tbody tr.zeile { cursor: pointer }
tbody tr.zeile:hover td { background: var(--app-grau) }
tbody tr.offen td { background: var(--app-grau) }
.tech { font-size: 12px; color: var(--app-text-leise); word-break: break-word }
.tech.dunkel { color: var(--app-text) }
.eingerueckt { padding-left: 22px; position: relative }
.eingerueckt::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 50%; width: 7px; border-left: 1px solid var(--app-rand); border-bottom: 1px solid var(--app-rand) }
.leer-zelle { color: var(--app-text-blass) }
.etikett {
  display: inline-block; padding: 1px 6px; margin: 0 4px 3px 0; font-size: 11px; white-space: nowrap;
  background: var(--app-grau); border: 1px solid var(--app-rand); color: var(--app-text);
}
.etikett.alle { background: var(--color-white) }
.detail td { background: var(--color-white); padding: 10px 10px 16px 22px }
.detail-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px }
.detail-raster h4 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--app-text-leise); font-weight: 600 }
.detail-raster ul { margin: 0; padding-left: 16px }
.mehr { margin-top: 12px }
.btn {
  font: inherit; cursor: pointer; padding: 6px 14px; height: 32px; border: 1px solid var(--app-feld-linie); background: var(--color-white); color: var(--app-text);
}
.btn:hover { border-color: var(--app-text) }

/* forms view */
.formliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 22px }
.formkarte {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-decoration: none; background: var(--color-white);
  border: 1px solid var(--app-linie); min-width: 0;
}
.formkarte:hover { border-color: var(--app-text) }
.formkarte[aria-current="page"] { border-color: var(--app-rand); box-shadow: inset 3px 0 0 var(--app-akzent) }
.formkarte b { font-weight: 600 }
.formkarte .tech { margin-top: -2px }
.formkarte .fuss { display: flex; justify-content: space-between; gap: 8px; align-items: end; margin-top: 6px; color: var(--app-text-leise) }
.abschnitt { margin: 22px 0 6px; font-size: 15px; font-weight: 600 }
.abschnitt small { font-weight: 400; color: var(--app-text-leise); margin-left: 6px }
.dialogzeile td { background: var(--app-grau); font-size: 12px; color: var(--app-text-leise) }

/* overview */
.text { max-width: 68ch }
.text p { margin: 0 0 10px }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 8px 0 26px }
.kachel { display: block; padding: 12px 14px; background: var(--color-white); border: 1px solid var(--app-linie); text-decoration: none; min-width: 0 }
.kachel:hover { box-shadow: inset 0 -2px 0 var(--app-akzent) }
.kachel:hover b, .formkarte:hover b { text-decoration: underline; text-underline-offset: 3px }
.kachel b { display: block; font-weight: 600; font-size: 14px }
.kachel span { color: var(--app-text-leise) }
.gruppe-titel { margin: 18px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--app-text-leise); font-weight: 600 }
dl.legende { display: grid; grid-template-columns: minmax(150px, max-content) minmax(0, 1fr); gap: 6px 18px; margin: 8px 0 22px; max-width: 900px }
dl.legende dt { font-weight: 600 }
dl.legende dd { margin: 0; color: var(--app-text) }
.fussnote { color: var(--app-text-leise); font-size: 12px; margin-top: 28px }

/* resizable columns */
table.fest { table-layout: fixed; width: 100% }
table.fest th, table.fest td { overflow-wrap: anywhere }
th { position: sticky }
.griff {
  position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 3;
  touch-action: none; background: transparent;
}
.griff::after { content: ""; position: absolute; top: 20%; bottom: 20%; left: 4px; width: 1px; background: var(--app-rand) }
.griff:hover::after, .griff:focus-visible::after, .griff.zieht::after { background: var(--app-focus); width: 2px; left: 3px; top: 0; bottom: 0 }
.griff:focus-visible { outline: none }
body.zieht-spalte { cursor: col-resize; user-select: none }

/* sortable headers */
th[data-sortable] { cursor: pointer }
th[data-sortable]:hover { color: var(--color-black); text-decoration: underline }
.sort { display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent }
th[aria-sort="none"] .sort { border-top: 4px solid var(--app-rand); border-bottom: 0 }
th[aria-sort="ascending"] .sort { border-bottom: 5px solid var(--app-text); border-top: 0 }
th[aria-sort="descending"] .sort { border-top: 5px solid var(--app-text); border-bottom: 0 }

/* column chooser above the table */
.btn-spalten[aria-expanded="true"] { background: var(--app-haupt); color: var(--app-haupt-text); border-color: var(--app-haupt) }
.feld-label-leer { font-size: 11px }
.spaltenwahl { border: 1px solid var(--app-linie); background: var(--app-grau); padding: 12px 14px; margin: 0 0 12px }
.spaltenwahl .hinweis { color: var(--app-text-leise); margin: 0 0 8px; font-size: 12px }
.spaltenwahl ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 18px }
.kaestchen { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; padding: 3px 0; min-width: 0 }
.kaestchen span { min-width: 0; overflow-wrap: anywhere }
.kaestchen input { appearance: none; flex: none; width: 16px; height: 16px; margin: 1px 0 0; background: var(--color-white); box-shadow: inset 0 0 0 1.5px var(--color-black); display: grid; place-items: center; cursor: pointer }
.kaestchen input:checked { background: var(--color-black) }
.kaestchen input:checked::after { content: ""; width: 8px; height: 4px; border: solid var(--color-white); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) }
.kaestchen input:disabled { opacity: .45; cursor: default }
.kaestchen input:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px }
.spalten-aktionen { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px }
.btn-leise { font: inherit; background: none; border: 0; padding: 2px 0; text-decoration: underline; cursor: pointer; color: var(--app-text) }

/* field by form matrix */
table.matrix { min-width: 0 }
.matrix th.fcol { white-space: normal; vertical-align: bottom; font-weight: 600; font-size: 11px; line-height: 1.3 }
.matrix th.fcol a { text-decoration: none }
.matrix th.fcol a:hover { text-decoration: underline }
.matrix th.fcol .etikett { white-space: normal; word-break: break-word; margin-top: 4px }
.matrix th.ecol, .matrix td.ecol { position: sticky; left: 0; background: var(--color-white); z-index: 1 }
.matrix th.ecol { background: var(--color-white); z-index: 2 }
.matrix td.mz { text-align: center; vertical-align: middle; border-left: 1px solid var(--app-linie-fein); padding: 4px }
.punkt { display: inline-block; width: 10px; height: 10px; background: var(--app-haupt) }
.nicht { display: inline-block; width: 10px; height: 1px; background: var(--app-rand); vertical-align: middle }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.matrix tbody tr:hover td { background: var(--app-grau) }

/* references */
.refzeile td { border-top: 1px solid var(--app-rand); background: var(--color-white) }
.attrzeile td { background: var(--app-grau); font-size: 12px }
.stufe { font-weight: 600 }
.stufe-Complex { box-shadow: inset 3px 0 0 var(--app-haupt); padding-left: 8px }
.stufe-Medium { box-shadow: inset 3px 0 0 var(--app-feld-linie); padding-left: 8px }
.stufe-Simple { box-shadow: inset 3px 0 0 var(--app-rand); padding-left: 8px }

/* Added migration information inside Data elements; all original CSS rules retained. */
.mig-summary { margin: 0 0 11px; font-size: 12px; line-height: 1.55; max-width: 95ch; color: var(--app-text-leise); }
.mig-summary b { color: var(--app-text); }
.mig-summary a { text-underline-offset: 2px; }
.mig-summary.mig-muted { margin-top: 0; }
.mig-column { min-width: 126px; }
.mig-cell { font-size: 12px; }
.mig-cell strong { display: inline-block; font-weight: 600; }
.mig-cell .tech { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.mig-empty-cell { color: var(--app-text-blass); }
.mig-special { font-weight: 400; color: var(--app-text-leise); font-size: 11px; }
.mig-inline-detail { grid-column: 1 / -1; min-width: 0; padding-top: 8px; border-top: 1px solid var(--app-linie); }
.mig-inline-detail h4 { margin-bottom: 5px; }
.mig-intro-detail { color: var(--app-text-leise); margin: 0 0 10px; }
.mig-rules { border-top: 1px solid var(--app-linie-fein); max-width: 100%; }
.mig-rule { padding: 9px 0; border-bottom: 1px solid var(--app-linie-fein); overflow-wrap: anywhere; }
.mig-rule-main { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 18px; }
.mig-rule-main > div { flex: 1 1 225px; min-width: 0; }
.mig-rule-main strong { font-weight: 600; }
.mig-rule-main .tech { display: block; overflow-wrap: anywhere; }
.mig-rule .mig-technical { margin-top: 4px; }
.mig-technical summary { display: inline-block; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: 12px; }
.mig-technical summary:focus-visible { outline: 2px solid var(--app-focus); }
.mig-tech-list { margin: 8px 0 4px; padding: 10px 13px; background: var(--app-grau); border-left: 2px solid var(--app-rand); display: grid; grid-template-columns: minmax(130px,175px) minmax(0,1fr); gap: 5px 14px; }
.mig-tech-list dt { color: var(--app-text-leise); font-size: 11px; font-weight: 600; }
.mig-tech-list dd { margin: 0; min-width: 0; font-size: 12px; }
.mig-tech-list pre { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 11px; }
.mig-other { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--app-linie); }
.mig-other > summary { font-weight: 600; cursor: pointer; }
.mig-other .mig-other-copy { color: var(--app-text-leise); margin: 8px 0; max-width: 95ch; }
.mig-other .werkzeuge { margin-top: 8px; }
.mig-other-row { padding: 9px 0; border-bottom: 1px solid var(--app-linie-fein); }
.mig-other-row .tech { display: block; }
.mig-other-empty { color: var(--app-text-leise); }
.mig-other .btn { margin: 9px 0 4px; }
.mig-concordance { margin: 10px 0 14px; padding: 10px 14px; border: 1px solid var(--app-linie); background: var(--color-white); }
.mig-concordance summary { cursor: pointer; font-weight: 600; }
.mig-concordance summary .tech { font-weight: 400; }
.mig-concordance .tabelle-huelle { margin-top: 12px; }
.mig-concordance table { min-width: 600px; }
.mig-concordance pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
@media (max-width: 680px) { .mig-tech-list { grid-template-columns: 1fr; } .mig-tech-list dd { margin-bottom: 7px; } }

/* Concise migration presentation in the Data elements view. */
.mig-summary { max-width: 95ch; }
.mig-cell { min-width: 105px; line-height: 1.5; }
.mig-count { font-size: 12px; font-weight: 600; display: block; }
.mig-open-link { font-size: 12px; color: var(--app-text); text-decoration: underline; text-underline-offset: 2px; }
.mig-field-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 9px; }
.mig-field-head h4 { margin: 0; }
.mig-rule { padding: 10px 0; }
.mig-rule-main > div { flex-basis: 210px; }
.mig-rule-main .mig-what { color: var(--app-text-leise); font-size: 11px; display: block; }
.mig-focus-row td { background: var(--accent-soft) !important; }
.mig-focus-row td:first-child { box-shadow: inset 4px 0 0 var(--app-akzent); }
.mig-focus-row { scroll-margin-block: 80px; }
/* The fifth tab uses the same tables, controls and details components as the original. */
.mig-intro { max-width: 95ch; margin-bottom: 14px; }
.mig-intro p { margin: 0 0 8px; }
.mig-empty-state { background: var(--app-grau); padding: 15px; border-left: 3px solid var(--app-rand); max-width: 82ch; }
.mig-browser-table { min-width: 830px; }
.mig-browser-table th:nth-child(1) { width: 35%; }
.mig-browser-table th:nth-child(2) { width: 35%; }
.mig-browser-table th:nth-child(3) { width: 30%; }
.mig-browser-table td { overflow-wrap: anywhere; }
.mig-browser-table .mig-dest { font-weight: 600; }
.mig-browser-table .mig-dest .tech { display: block; font-weight: 400; }
.mig-browser-table .mig-query { display: block; margin-top: 5px; color: var(--app-text-leise); font-size: 11px; }
.mig-browser-table details { margin-top: 5px; }
.mig-browser-table summary { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: 12px; display: inline-block; }
.mig-group-row th { position: static; background: var(--color-white); border-top: 1px solid var(--app-rand); font-size: 12px; padding: 10px 12px; }
.mig-group-row small { color: var(--app-text-leise); font-weight: 400; font-size: 11px; margin-left: 8px; }
.mig-browser-table .mig-tech-list { margin-top: 8px; }
.mig-attention { font-size: 11px; padding: 0 5px; border: 1px solid var(--app-akzent); display: inline-block; margin: 3px 0 0; }
.mig-view-field { font-size: 11px; font-weight: 400; margin-top: 3px; display: inline-block; }
.mig-focus-filter { padding: 9px 12px; border-left: 3px solid var(--app-akzent); background: var(--color-white); margin: 0 0 12px; }
.mig-focus-filter button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; margin-left: 8px; }
.mig-note { color: var(--app-text-leise); font-size: 12px; margin-top: 12px; }
.mig-tab-intro-link { font-weight: 600; }
@media (max-width: 650px) { .mig-browser-table { min-width: 720px; } }

/* Concordance navigation: small text links, consistent with the existing design. */
.mig-conv-links { display: block; margin-top: 5px; font-size: 12px; line-height: 1.5; }
.mig-conv-label { color: var(--app-text-leise); font-weight: 400; }
.mig-conv-link { color: var(--app-text); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.mig-conv-link:hover { color: var(--app-text); text-decoration-thickness: 2px; }
.mig-row-convs { margin-top: 6px; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.mig-tech-list .mig-conv-links { margin-top: 7px; }
.mig-conv-selected { margin: 10px 0; }
.mig-conv-selected button { margin-left: 12px; }

/* Concordance reverse navigation (keeps the established table and module layouts). */
.mig-conv-uses { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--app-linie); }
.mig-conv-uses h4 { font-size: 13px; font-weight: 600; margin: 0 0 5px; }
.mig-conv-uses > .tech { margin: 0 0 6px; }
.mig-conv-use-list { margin: 2px 0 0; padding: 0; list-style: none; }
.mig-conv-use { padding: 8px 0; border-bottom: 1px solid var(--app-linie-fein); overflow-wrap: anywhere; }
.mig-conv-use:last-child { border-bottom: 0; }
.mig-conv-use a { text-decoration: underline; text-underline-offset: 2px; }
.mig-conv-use a:hover { color: var(--app-text); text-decoration-thickness: 2px; }
.mig-conv-use .tech { display: block; margin-top: 2px; }

/* Adlib multilingual source labels */
.adlib-fields{display:flex;flex-direction:column;gap:2px;min-width:0}
.adlib-field{display:block;min-width:0}
.adlib-field b{font-weight:600}
.adlib-field .tech{display:block;margin-top:-1px}
.adlib-source-expression{display:block;margin-top:4px;color:var(--app-text-leise);font-size:11px;overflow-wrap:anywhere}
.adlib-inline{display:inline-block;margin-right:8px}
