/* ============================================================ */
/* FILE: assets/viewers.css                                       */
/* Datei-Anzeige (viewers.js) - identisch in allen drei Apps.     */
/* Nutzt die Farb-Variablen der jeweiligen App (--color-...).     */
/* ============================================================ */

html.vw-open,
html.vw-open body {
  overflow: hidden;
}

.vw-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 17, 21, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.vw-overlay[hidden],
.vw-btn[hidden] {
  display: none;
}

.vw-modal {
  display: flex;
  flex-direction: column;
  width: min(1200px, 100%);
  height: min(92vh, 100%);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.vw-modal--audio,
.vw-modal--font,
.vw-modal--cert {
  height: auto;
  max-height: min(92vh, 100%);
}

.vw-modal--audio {
  width: min(560px, 100%);
}

.vw-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.vw-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 220px;
}

.vw-title__icon {
  color: var(--color-primary);
  display: inline-flex;
}

.vw-title__text {
  min-width: 0;
}

.vw-title h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vw-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vw-tabs {
  display: inline-flex;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.vw-tabs[hidden] {
  display: none;
}

.vw-tab {
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 5px 12px;
  border-radius: calc(var(--radius-sm) - 1px);
  cursor: pointer;
}

.vw-tab.is-active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.vw-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.vw-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.vw-icon--xl {
  width: 44px;
  height: 44px;
}

.vw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.vw-btn:hover:not(:disabled) {
  background: var(--color-surface-alt);
}

.vw-btn:disabled {
  opacity: .5;
  cursor: default;
}

.vw-btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-contrast, #fff);
}

.vw-btn--primary:hover:not(:disabled) {
  background: var(--color-primary-hover, var(--color-primary));
}

.vw-btn--danger {
  color: var(--color-danger);
  border-color: color-mix(in srgb, var(--color-danger) 45%, transparent);
}

.vw-btn--icon {
  padding: 6px;
}

.vw-btn--sm {
  font-size: 12px;
  padding: 4px 9px;
}

.vw-btn--icon.vw-btn--sm {
  padding: 4px;
}

.vw-btn--icon.vw-btn--sm .vw-icon {
  width: 16px;
  height: 16px;
}

.vw-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.vw-notice[hidden] {
  display: none;
}

.vw-notice--warn {
  background: var(--color-warning-bg);
}

.vw-notice__actions {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.vw-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.vw-status {
  display: flex;
  gap: 16px;
  padding: 5px 16px;
  font-size: 12px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.vw-status[hidden] {
  display: none;
}

.vw-status__dirty {
  margin-left: auto;
}

.is-dirty .vw-status__dirty {
  color: var(--color-warning);
  font-weight: 600;
}

.vw-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted);
}

.vw-state--error .vw-icon--xl {
  color: var(--color-warning);
}

.vw-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: vw-spin .8s linear infinite;
}

@keyframes vw-spin {
  to { transform: rotate(360deg); }
}

.vw-muted {
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.vw-hint {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

.vw-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

/* --- Medien --- */

.vw-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #000;
}

.vw-media video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
}

.vw-media--audio {
  flex-direction: column;
  gap: 18px;
  padding: 28px 20px;
  background: transparent;
  height: auto;
}

.vw-media--audio audio {
  width: 100%;
}

.vw-audio-art {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
}

/* --- Bild (SVG / ZIP-Eintrag) --- */

.vw-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 16px;
}

.vw-img img {
  max-width: 100%;
  max-height: calc(92vh - 120px);
  object-fit: contain;
}

.vw-img--checker {
  background-color: #fff;
  background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

/* --- PDF --- */

.vw-modal--pdf .vw-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface-alt);
}

.vw-pdf-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.vw-pdf-pages {
  margin-right: auto;
}

.vw-pdf {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vw-pdf-page {
  background: #fff;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.vw-pdf-page canvas {
  display: block;
}

.vw-pdf-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* --- Tabellen (ZIP, CSV) --- */

.vw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vw-table th,
.vw-table td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.vw-table th {
  position: sticky;
  top: 0;
  background: var(--color-surface-alt);
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--color-text-muted);
  z-index: 1;
}

.vw-num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vw-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  background: var(--color-surface);
  color: var(--color-text-faint);
  min-width: 0;
  flex: 0 1 280px;
}

.vw-filter input {
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  padding: 6px 0;
  color: var(--color-text);
  min-width: 0;
  width: 100%;
}

.vw-filter input:focus {
  outline: none;
}

.vw-zip {
  padding: 12px 16px;
}

.vw-zip__tools {
  display: flex;
  margin-bottom: 10px;
}

.vw-zip__name {
  word-break: break-all;
}

.vw-zip__dir {
  color: var(--color-text-faint);
}

.vw-zip__act {
  white-space: nowrap;
  text-align: right !important;
  width: 1%;
}

.vw-zip__comment {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: pre-wrap;
}

.vw-sub__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 2;
}

.vw-sub__title {
  font-size: 12.5px;
  color: var(--color-text-muted);
  word-break: break-all;
}

.vw-csv {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vw-csv__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}

.vw-csv__scroll {
  flex: 1;
  overflow: auto;
}

.vw-csv__table td {
  white-space: pre-wrap;
  max-width: 420px;
}

.vw-csv__table th[data-col] {
  cursor: pointer;
  white-space: nowrap;
}

.vw-csv__table th.is-sorted {
  color: var(--color-primary);
}

.vw-sort {
  display: inline-block;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0;
  vertical-align: middle;
}

.is-sorted .vw-sort {
  opacity: 1;
}

th[data-dir="desc"] .vw-sort {
  transform: rotate(180deg);
}

.vw-csv__rn {
  color: var(--color-text-faint);
  font-size: 11px;
  width: 1%;
  text-align: right !important;
}

/* --- Quelltext --- */

.vw-source {
  display: flex;
  min-height: 100%;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  line-height: 1.55;
}

.vw-source pre {
  margin: 0;
  padding: 12px 0;
}

.vw-source__gutter {
  flex-shrink: 0;
  text-align: right;
  padding: 12px 10px 12px 14px !important;
  color: var(--color-text-faint);
  background: var(--color-surface-alt);
  border-right: 1px solid var(--color-border);
  user-select: none;
  position: sticky;
  left: 0;
}

.vw-source__code {
  flex: 1;
  padding: 12px 16px !important;
  overflow: visible;
}

.vw-source__code code,
.vw-source__code code.hljs {
  background: none !important;
  padding: 0 !important;
  font: inherit;
  white-space: pre;
}

/* --- Markdown --- */

.vw-markdown {
  padding: 20px 28px 32px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.vw-markdown h1,
.vw-markdown h2 {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: .3em;
}

.vw-markdown pre {
  background: var(--color-surface-alt);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  overflow: auto;
  font-size: 13px;
}

.vw-markdown code {
  font-family: var(--font-mono, monospace);
  font-size: .9em;
  background: var(--color-surface-alt);
  padding: .1em .35em;
  border-radius: 4px;
}

.vw-markdown pre code {
  background: none;
  padding: 0;
}

.vw-markdown table {
  border-collapse: collapse;
}

.vw-markdown th,
.vw-markdown td {
  border: 1px solid var(--color-border);
  padding: 6px 10px;
}

.vw-markdown img {
  max-width: 100%;
}

.vw-markdown blockquote {
  margin-left: 0;
  padding-left: 14px;
  border-left: 3px solid var(--color-border);
  color: var(--color-text-muted);
}

/* --- JSON-Baum --- */

.vw-json {
  padding: 12px 16px;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  line-height: 1.6;
}

.vw-json__tools {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  font-family: var(--font-sans, sans-serif);
}

.vw-json__kids {
  padding-left: 18px;
  border-left: 1px dashed var(--color-border);
  margin-left: 5px;
}

.vw-json summary {
  cursor: pointer;
  list-style: none;
}

.vw-json summary::-webkit-details-marker {
  display: none;
}

.vw-json summary::before {
  content: '▸';
  display: inline-block;
  width: 12px;
  color: var(--color-text-faint);
  transition: transform .1s;
}

.vw-json details[open] > summary::before {
  transform: rotate(90deg);
}

.vw-json div.vw-json__node {
  padding-left: 12px;
  word-break: break-all;
}

.vw-json__key { color: #8250df; }
.vw-json__string { color: #0a7d32; }
.vw-json__number { color: #0550ae; }
.vw-json__boolean,
.vw-json__null { color: #cf222e; }
.vw-json__count {
  color: var(--color-text-faint);
  font-size: 11px;
  margin: 0 6px;
  font-family: var(--font-sans, sans-serif);
}
.vw-json__brace { color: var(--color-text-muted); }

html[data-theme="dark"] .vw-json__key { color: #d2a8ff; }
html[data-theme="dark"] .vw-json__string { color: #7ee787; }
html[data-theme="dark"] .vw-json__number { color: #79c0ff; }
html[data-theme="dark"] .vw-json__boolean,
html[data-theme="dark"] .vw-json__null { color: #ff7b72; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .vw-json__key { color: #d2a8ff; }
  html:not([data-theme="light"]) .vw-json__string { color: #7ee787; }
  html:not([data-theme="light"]) .vw-json__number { color: #79c0ff; }
  html:not([data-theme="light"]) .vw-json__boolean,
  html:not([data-theme="light"]) .vw-json__null { color: #ff7b72; }
}

/* --- Diff --- */

.vw-diff-wrap {
  padding: 0;
}

.vw-diff__stats {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 650;
  border-bottom: 1px solid var(--color-border);
}

.vw-diff__plus { color: var(--color-success); }
.vw-diff__minus { color: var(--color-danger); }

.vw-diff {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  line-height: 1.5;
}

.vw-diff__l {
  display: block;
  padding: 0 16px;
  white-space: pre;
}

.vw-diff__l--add { background: color-mix(in srgb, var(--color-success) 16%, transparent); }
.vw-diff__l--del { background: color-mix(in srgb, var(--color-danger) 16%, transparent); }
.vw-diff__l--hunk { color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 8%, transparent); }
.vw-diff__l--file { font-weight: 700; }
.vw-diff__l--meta { color: var(--color-text-muted); }

/* --- Mermaid --- */

.vw-mermaid {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.vw-mermaid svg {
  max-width: 100%;
  height: auto;
}

/* --- Zertifikat --- */

.vw-cert {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vw-cert__card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.vw-cert__card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--color-surface-alt);
}

.vw-cert__card h3 {
  margin: 2px 0 0;
  font-size: 16px;
  word-break: break-all;
}

.vw-cert__role {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  font-weight: 650;
}

.vw-pill {
  font-size: 12px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.vw-pill--ok { background: var(--color-success-bg); color: var(--color-success); }
.vw-pill--warn { background: var(--color-warning-bg); color: var(--color-warning); }
.vw-pill--bad { background: var(--color-danger-bg); color: var(--color-danger); }

.vw-dl {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  margin: 0;
  font-size: 13px;
}

.vw-dl dt,
.vw-dl dd {
  margin: 0;
  padding: 7px 14px;
  border-top: 1px solid var(--color-border);
}

.vw-dl dt {
  color: var(--color-text-muted);
}

.vw-dl dd {
  word-break: break-all;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
}

.vw-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.vw-alert--warn {
  background: var(--color-warning-bg);
  color: var(--color-text);
}

.vw-alert--warn .vw-icon {
  color: var(--color-warning);
}

/* --- Schrift --- */

.vw-font {
  padding: 16px 20px 24px;
}

.vw-font__input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  margin-bottom: 12px;
}

.vw-font__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.vw-font__size {
  font-size: 11px;
  color: var(--color-text-faint);
  width: 44px;
  flex-shrink: 0;
}

.vw-font__text {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.vw-font__glyphs {
  margin-top: 18px;
  font-size: 26px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* --- Editor --- */

.vw-modal.is-editing .vw-body {
  overflow: hidden;
}

.vw-editor,
.vw-editor .CodeMirror {
  height: 100%;
}

.vw-editor .CodeMirror {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  line-height: 1.55;
  background: var(--color-surface);
  color: var(--color-text);
}

.vw-editor .CodeMirror-gutters {
  background: var(--color-surface-alt);
  border-right: 1px solid var(--color-border);
}

.vw-editor .CodeMirror-linenumber {
  color: var(--color-text-faint);
}

.vw-editor .CodeMirror-cursor {
  border-left-color: var(--color-text);
}

.vw-editor .CodeMirror-activeline-background {
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}

.vw-editor .CodeMirror-selected,
.vw-editor .CodeMirror-focused .CodeMirror-selected {
  background: color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.vw-editor .CodeMirror-dialog {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding: 6px 10px;
  font-family: var(--font-sans, sans-serif);
  font-size: 13px;
}

.vw-editor .CodeMirror-dialog input {
  font: inherit;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
  background: var(--color-surface);
}

.vw-textarea {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 0;
  resize: none;
  padding: 12px 16px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  line-height: 1.55;
  background: var(--color-surface);
  color: var(--color-text);
  tab-size: 4;
  white-space: pre;
}

.vw-textarea:focus {
  outline: none;
}

/* CodeMirror im Dunkelmodus: lesbare Token-Farben */
html[data-theme="dark"] .vw-editor .cm-keyword { color: #ff7b72; }
html[data-theme="dark"] .vw-editor .cm-string,
html[data-theme="dark"] .vw-editor .cm-string-2 { color: #a5d6ff; }
html[data-theme="dark"] .vw-editor .cm-comment { color: #8b949e; }
html[data-theme="dark"] .vw-editor .cm-number { color: #79c0ff; }
html[data-theme="dark"] .vw-editor .cm-def,
html[data-theme="dark"] .vw-editor .cm-property,
html[data-theme="dark"] .vw-editor .cm-attribute { color: #d2a8ff; }
html[data-theme="dark"] .vw-editor .cm-variable-2,
html[data-theme="dark"] .vw-editor .cm-variable-3,
html[data-theme="dark"] .vw-editor .cm-type { color: #ffa657; }
html[data-theme="dark"] .vw-editor .cm-tag,
html[data-theme="dark"] .vw-editor .cm-header { color: #7ee787; }
html[data-theme="dark"] .vw-editor .cm-atom,
html[data-theme="dark"] .vw-editor .cm-builtin,
html[data-theme="dark"] .vw-editor .cm-meta { color: #79c0ff; }
html[data-theme="dark"] .vw-editor .CodeMirror-matchingbracket { color: #7ee787 !important; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .vw-editor .cm-keyword { color: #ff7b72; }
  html:not([data-theme="light"]) .vw-editor .cm-string,
  html:not([data-theme="light"]) .vw-editor .cm-string-2 { color: #a5d6ff; }
  html:not([data-theme="light"]) .vw-editor .cm-comment { color: #8b949e; }
  html:not([data-theme="light"]) .vw-editor .cm-number { color: #79c0ff; }
  html:not([data-theme="light"]) .vw-editor .cm-def,
  html:not([data-theme="light"]) .vw-editor .cm-property,
  html:not([data-theme="light"]) .vw-editor .cm-attribute { color: #d2a8ff; }
  html:not([data-theme="light"]) .vw-editor .cm-variable-2,
  html:not([data-theme="light"]) .vw-editor .cm-variable-3,
  html:not([data-theme="light"]) .vw-editor .cm-type { color: #ffa657; }
  html:not([data-theme="light"]) .vw-editor .cm-tag,
  html:not([data-theme="light"]) .vw-editor .cm-header { color: #7ee787; }
  html:not([data-theme="light"]) .vw-editor .cm-atom,
  html:not([data-theme="light"]) .vw-editor .cm-builtin,
  html:not([data-theme="light"]) .vw-editor .cm-meta { color: #79c0ff; }
  html:not([data-theme="light"]) .vw-editor .CodeMirror-matchingbracket { color: #7ee787 !important; }
}

/* --- Schmale Bildschirme: Vollbild --- */

@media (max-width: 640px) {
  .vw-overlay {
    padding: 0;
  }
  .vw-modal,
  .vw-modal--audio,
  .vw-modal--font,
  .vw-modal--cert {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
  .vw-head {
    padding: 8px 8px 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
  }
  .vw-btn--hide-label-sm .vw-btn__label {
    display: none;
  }
  .vw-btn--hide-label-sm {
    padding: 6px;
  }
  .vw-tabs {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
  }
  .vw-tab {
    flex: 1;
  }
  .vw-hide-sm {
    display: none;
  }
  .vw-dl {
    grid-template-columns: 1fr;
  }
  .vw-dl dd {
    border-top: 0;
    padding-top: 0;
  }
  .vw-markdown {
    padding: 14px 16px 24px;
  }
  .vw-status {
    padding-bottom: max(5px, env(safe-area-inset-bottom));
  }
}
