/*
 * Stadler Consulting: Anordnung, Bausteine und Breakpoints beider Welten.
 * Jede Seite lädt diese Datei und danach ihre Haut: 98.css oder 11.css.
 * Die Haut setzt die Tokens in :root (Farben, Kanten, Rundungen, Schrift)
 * und überschreibt, was sich mit Tokens allein nicht sagen lässt.
 *
 * 1. Grundlagen             4. Fenster der Startseite
 * 2. Bausteine              5. Rechtstexte und Fehlerseite
 * 3. Arbeitsoberfläche      6. Ohne JavaScript, weniger Bewegung, Tablet und Handy
 *
 * Regeln stehen in docs/style-guide.md. Hier steht nie ein Hex-Wert,
 * scripts/check.js prüft das bei jedem Build.
 */

/* Schriften beider Welten. Der Browser lädt nur, was eine Haut auch verwendet. */
@font-face {
  font-family: "Share Tech Mono";
  src: url("/fonts/share-tech-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Selawik ist Microsofts freie Ersatzschrift für Segoe UI. Sie lädt nur, wenn Segoe fehlt.
   Ihr „ (U+201E) ist ein einzelnes Komma, deshalb lässt unicode-range es aus: Das Zeichen
   kommt dann aus der nächsten Schrift im Stapel. */
@font-face {
  font-family: Selawik;
  src: url("/fonts/selawik-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-201D, U+201F-FFFF;
}

@font-face {
  font-family: Selawik;
  src: url("/fonts/selawik-600.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-201D, U+201F-FFFF;
}

/* 1. Grundlagen ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--desktop);
  color: var(--text);
  font-family: var(--font-ui);
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
}

p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover {
  color: var(--link-hover);
}

mark {
  color: inherit;
  background: none;
}

:focus-visible {
  outline: 1px dotted var(--text);
  outline-offset: 2px;
}

::selection {
  background: var(--selection);
  color: var(--text-inverse);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: -9999px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--face);
  box-shadow: var(--bevel-raised);
  color: var(--text);
}

.skip-link:focus {
  left: 12px;
}


/* Typografie */
.heading-l {
  font-size: clamp(22px, 2.7vw, 32px);
  font-weight: 400;
  line-height: 1.12;
}

.heading-m {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.15;
}

.heading-s {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
}

.text {
  font-size: 16px;
  line-height: 1.6;
}

.text--loose {
  line-height: 1.65;
}

.kicker {
  color: var(--selection);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.highlight {
  padding: 0 4px;
  background: var(--selection);
  color: var(--text-inverse);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-s {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.stack-l {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 2. Bausteine ============================================================ */

/* Fenster */
.window {
  position: relative;
  padding: 3px;
  background: var(--face);
  box-shadow: var(--bevel-raised), 5px 5px 0 var(--drop-shadow);
}

.window__body {
  padding: 18px;
}

/* Titelleiste: aktives Fenster, Verlauf von Marineblau nach Hellblau */
.title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 3px 3px 3px 5px;
  background: linear-gradient(90deg, var(--title-start), var(--title-end));
}

.title-bar .icon {
  flex: none;
}

.title-bar__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text-inverse);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-bar--large {
  min-height: 28px;
}

.title-bar--large .title-bar__text {
  font-size: 14px;
}

.title-bar__controls {
  display: flex;
  flex: none;
  gap: 2px;
}

.title-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  background: var(--face);
  box-shadow: var(--bevel-raised);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.title-button--min {
  align-items: flex-end;
  padding-bottom: 4px;
}

.title-button--min::before {
  content: "";
  width: 9px;
  height: 2px;
  background: var(--text);
}

.title-button--max::before {
  content: "";
  width: 10px;
  height: 8px;
  border: 1px solid var(--text);
  border-top-width: 3px;
}

.title-button--action {
  width: 24px;
  height: 22px;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.title-button--action:hover {
  color: var(--text);
}

.title-button--action:active {
  box-shadow: var(--bevel-pressed);
}

/* Schaltflächen */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  background: var(--face);
  box-shadow: var(--bevel-raised);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  color: var(--text);
}

.button:active,
.button.is-pressed {
  box-shadow: var(--bevel-pressed);
}

/* Die Standardschaltfläche eines Dialogs trägt einen schwarzen Rahmen. */
.button--default {
  font-weight: 700;
  box-shadow: var(--bevel-raised), 0 0 0 1px var(--dark);
}

.button--default:active {
  box-shadow: var(--bevel-pressed), 0 0 0 1px var(--dark);
}

.button:disabled,
.button--disabled {
  color: var(--text-disabled);
  text-shadow: 1px 1px 0 var(--highlight);
  cursor: default;
}

.button:disabled:active,
.button--disabled:active {
  box-shadow: var(--bevel-raised);
}

.button--dialog {
  min-width: 96px;
}

.button--wizard {
  min-width: 104px;
  padding: 8px 16px;
  font-weight: 700;
}

.button--tool {
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
}

.button--small {
  min-height: 34px;
  padding: 6px 12px;
}

.button--large {
  min-height: 42px;
  padding: 10px 20px;
  font-weight: 700;
}

.button--cta {
  min-height: 42px;
  padding: 8px 22px;
}

.arrow {
  color: var(--selection);
}

.dialog-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 4px 10px 12px;
}

.dialog-buttons--footer {
  padding: 12px;
  box-shadow: inset 0 1px 0 var(--highlight);
}

.dialog-buttons--rule {
  padding: 12px 0 2px;
  box-shadow: inset 0 1px 0 var(--shadow), inset 0 2px 0 var(--highlight);
}

/* Felder und Rahmen */
.field {
  background: var(--window);
  box-shadow: var(--bevel-field);
}

.scroll {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.scroll__body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: scroll;
}

/*
 * iOS (Safari und Chrome) malt ::-webkit-scrollbar nicht. F12-Responsive
 * schon, weil dort die Desktop-Engine läuft. Auf Touch und unter 800 px
 * steht deshalb die gezeichnete Leiste, die native bleibt unsichtbar.
 */
.scroll > .fake-scrollbar {
  display: none;
}

@media (pointer: coarse), (max-width: 800px) {
  .scroll > .fake-scrollbar {
    display: flex;
  }

  .scroll__body {
    scrollbar-width: none;
  }

  .scroll__body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

.frame {
  display: block;
  min-width: 0;
  padding: 3px;
  background: var(--face);
}

.frame--thin {
  padding: 2px;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  font-size: 16px;
  line-height: 1.65;
}

.prose--large {
  font-size: 17px;
}

.callout {
  padding: 18px 20px;
  background: var(--face);
  box-shadow: var(--bevel-raised);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.4;
}

/* Statusleiste */
.status-bar {
  display: flex;
  gap: 3px;
  padding: 3px 2px 1px;
}

.status-bar__cell {
  min-width: 0;
  padding: 5px 8px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: var(--bevel-status);
}

.status-bar__cell--grow {
  flex: 2 1 0;
}

.status-bar__cell--fixed {
  flex: 0 0 120px;
}

/* Menüleiste */
.menu-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 3px 2px;
  box-shadow: inset 0 -1px 0 var(--shadow);
}

.menu-bar__item {
  display: block;
  padding: 5px 9px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

a.menu-bar__item:hover,
a.menu-bar__item:focus-visible {
  background: var(--selection);
  color: var(--text-inverse);
  outline: none;
}

/* Symbolleiste */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px 4px;
  box-shadow: inset 0 -1px 0 var(--shadow), inset 0 1px 0 var(--highlight);
}

.toolbar__separator {
  align-self: center;
  width: 2px;
  height: 28px;
  margin: 0 2px;
  box-shadow: inset 1px 0 0 var(--shadow), inset -1px 0 0 var(--highlight);
}

.address {
  display: flex;
  flex: 1 1 200px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.address__label {
  font-size: 13px;
  white-space: nowrap;
}

.address__field {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 8px;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
}

.address__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Registerkarten */
.property-sheet {
  padding: 10px 8px 8px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2px;
  padding-left: 2px;
}

.tab {
  position: relative;
  padding: 6px 14px;
  border: 0;
  background: var(--face);
  box-shadow: inset 1px 1px 0 var(--highlight), inset -1px -1px 0 var(--dark), inset -2px 0 0 var(--shadow);
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
}

.tab.is-active {
  z-index: 3;
  margin-bottom: -2px;
  padding: 7px 14px 9px;
  font-weight: 700;
  -webkit-text-stroke: 0.35px var(--text);
  box-shadow: inset 1px 1px 0 var(--highlight), inset -1px 0 0 var(--dark), inset -2px 0 0 var(--shadow);
  cursor: default;
}

.tabs--small .tab {
  padding: 6px 13px;
  font-size: 13px;
}

.tabs--small .tab.is-active {
  padding: 7px 13px 9px;
}

.tab-frame {
  position: relative;
  z-index: 2;
  padding: 18px 16px;
  background: var(--face);
  box-shadow: var(--bevel-tab-frame);
}

.tab-frame--roomy {
  padding: 20px 18px;
}

.js [data-tab-panel]:not(.is-active) {
  display: none;
}

/* Gruppenrahmen */
.group-box {
  position: relative;
  min-width: 0;
  margin: 6px 0 0;
  padding: 24px 14px 16px;
  border: 0;
  box-shadow: var(--bevel-status);
}

.group-box__label {
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 0 6px;
  background: var(--face);
  font-size: 13px;
  font-weight: 700;
}

/* Options- und Kontrollfelder */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-list--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 2px;
  font-size: 16px;
  cursor: pointer;
}

.choice input {
  flex: none;
  width: 13px;
  height: 13px;
  margin: 0;
  appearance: none;
  background: var(--window);
  box-shadow: var(--bevel-status), 0 0 0 1px var(--dark);
  cursor: pointer;
}

.choice input[type="radio"] {
  border-radius: 50%;
}

.choice input[type="radio"]:checked {
  background: radial-gradient(circle, var(--text) 0 2.5px, var(--window) 3px);
}

.choice input[type="checkbox"]:checked {
  background: var(--window) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'><path d='M6 0h1v3H6zM5 1h1v3H5zM4 2h1v3H4zM3 3h1v3H3zM2 4h1v3H2zM1 3h1v3H1zM0 2h1v3H0z'/></svg>") center / 7px 7px no-repeat;
}

.choice input:focus-visible {
  outline: 1px dotted var(--text);
  outline-offset: 2px;
}

.choice--disabled {
  color: var(--text-disabled);
  text-shadow: 1px 1px 0 var(--highlight);
  cursor: default;
}

.choice input:disabled {
  background: var(--face);
  box-shadow: var(--bevel-status), 0 0 0 1px var(--shadow);
  cursor: default;
}

/* Gelber Hinweiszettel für Warnungen und Gedanken */
.balloon {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 18px 20px 20px;
  border: 1px solid var(--dark);
  background: var(--tooltip);
  box-shadow: 4px 4px 0 var(--drop-shadow);
}

.balloon > .icon {
  flex: none;
  margin-top: 2px;
}

.balloon__text {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.6;
}

.balloon__quote {
  flex: 1 1 260px;
  min-width: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
}

/* Fotos und Platzhalter */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 8px;
  overflow: hidden;
  background: var(--face);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  outline: 1px dashed var(--shadow);
  outline-offset: -4px;
}

.photo {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--face);
}

.photo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* Bildausschnitte aus dem Design: Größe und Mittelpunkt in Prozent des Rahmens. */
.photo--portrait {
  aspect-ratio: 4 / 5;
}

.photo--portrait img {
  width: 125%;
  left: 54.36%;
}

.photo--quadrat {
  aspect-ratio: 1;
}

.photo--vortrag {
  aspect-ratio: 3 / 2;
}

.photo--vortrag img {
  top: 50.76%;
  left: 40.45%;
  width: 152.5%;
  height: 151.41%;
}

/*
 * Kundenprojekte: kein Ausschnitt. Der Rahmen ist genau so hoch wie das Bild,
 * egal ob quer oder hoch. Das Bild bestimmt die Größe, nicht umgekehrt.
 */
.photo--voll {
  background: var(--window);
}

.photo--voll img {
  position: static;
  width: 100%;
  height: auto;
  transform: none;
  object-fit: fill;
}

/* 3. Arbeitsoberfläche =================================================== */

.desktop {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 100vh;
  padding: 12px 12px 112px;
}

.stage {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}

.page {
  position: relative;
  width: 100%;
}

/* Mit Skript ist immer genau ein Fenster offen. Ohne stehen alle untereinander. */
.js .page:not(.is-active) {
  display: none;
}

/* Explorer */
.explorer {
  position: sticky;
  top: 12px;
  z-index: 45;
  flex: 0 0 249px;
  max-width: 249px;
  box-shadow: var(--bevel-raised), 4px 4px 0 var(--drop-shadow);
}

.explorer .title-bar {
  gap: 6px;
}

.explorer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4px 5px 6px;
  box-shadow: inset 0 -1px 0 var(--shadow);
  font-size: 13px;
  font-weight: 700;
}

.explorer__header span:last-child {
  font-size: 11px;
}

.explorer__tree {
  max-height: calc(100vh - 190px);
  margin: 3px 0;
  padding: 7px 6px 9px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.explorer__status {
  padding: 0 0 1px;
}

.explorer__status .status-bar__cell {
  padding: 4px 7px;
  font-size: 12px;
}

.explorer__count {
  flex: 0 0 54px;
  text-align: center;
}

/* Ordnerbaum mit gepunkteten Linien */
.tree__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
}

.tree__row .icon {
  flex: none;
}

.tree__toggle {
  position: relative;
  z-index: 2;
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 1px;
  padding: 0;
  border: 1px solid var(--shadow);
  background: var(--window);
  cursor: pointer;
}

.tree__toggle::before,
.tree__toggle::after {
  content: "";
  position: absolute;
  background: var(--text);
}

.tree__toggle::before {
  top: 4px;
  left: 1px;
  width: 7px;
  height: 1px;
}

.tree__toggle[aria-expanded="false"]::after {
  top: 1px;
  left: 4px;
  width: 1px;
  height: 7px;
}

.tree__root {
  font-weight: 700;
}

.tree {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 1px 0 0 11px;
  padding-left: 17px;
  border-left: 1px dotted var(--shadow);
}

.tree__group {
  position: relative;
}

.tree__group::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -17px;
  width: 16px;
  border-top: 1px dotted var(--shadow);
}

.tree__group .tree__toggle {
  position: absolute;
  top: 5px;
  left: -23px;
}

.tree__folder,
.tree__item {
  color: var(--text);
  text-decoration: none;
}

.tree__folder {
  padding: 1px 3px;
}

.tree__folder:hover,
.tree__item:hover {
  color: var(--text);
}

.tree__folder:hover,
.tree__item:hover .tree__label {
  background: var(--face);
}

.tree__items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 1px 0 2px 7px;
  padding-left: 16px;
  border-left: 1px dotted var(--shadow);
}

.tree__items > li {
  position: relative;
}

.tree__items > li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -16px;
  width: 15px;
  border-top: 1px dotted var(--shadow);
}

.tree__item {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 1px 2px;
}

.tree__label {
  padding: 1px 4px;
}

.tree__item.is-active .tree__label {
  background: var(--selection);
  color: var(--text-inverse);
}

.js .tree:not(.is-open),
.js .tree__group:not(.is-open) > .tree__items {
  display: none;
}

.tree__group:not(.is-open) .icon--open,
.tree__group.is-open .icon--closed {
  display: none;
}

/* Taskleiste */
.taskbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 4px;
  background: var(--face);
  box-shadow: inset 0 1px 0 var(--highlight), inset 0 2px 0 var(--light);
}

.taskbar__start {
  gap: 7px;
  min-height: 38px;
  padding: 6px 12px 6px 8px;
  font-size: 15px;
  font-weight: 700;
}

.taskbar__separator {
  flex: 0 0 2px;
  height: 30px;
  box-shadow: inset 1px 0 0 var(--shadow), inset -1px 0 0 var(--highlight);
}

.taskbar__legal {
  display: flex;
  align-items: center;
  gap: 4px;
}

.taskbar__button {
  min-height: 38px;
  padding: 6px 10px;
}

.taskbar__spacer {
  flex: 1 1 auto;
  min-width: 0;
}

.taskbar__tray {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
  box-shadow: var(--bevel-status);
  font-size: 14px;
  white-space: nowrap;
}

/* Startmenü und Kontextmenü */
.start-menu {
  position: fixed;
  bottom: 48px;
  left: 4px;
  z-index: 76;
  display: flex;
  max-width: calc(100vw - 8px);
  padding: 3px;
  background: var(--face);
  box-shadow: var(--bevel-raised);
}

.start-menu__banner {
  display: flex;
  flex: 0 0 26px;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  background: linear-gradient(180deg, var(--title-start), var(--banner-end));
}

.start-menu__banner span {
  color: var(--text-inverse);
  font-size: 16px;
  letter-spacing: 0.06em;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
}

.start-menu__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 200px;
  padding: 3px 3px 3px 4px;
}

.start-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 22px 11px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.start-menu__item--strong {
  font-weight: 700;
}

.context-menu {
  position: fixed;
  z-index: 75;
  min-width: 190px;
  padding: 3px;
  background: var(--face);
  box-shadow: var(--bevel-raised);
}

.menu__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.menu__item--strong {
  font-weight: 700;
}

.start-menu__item:hover,
.start-menu__item:focus-visible,
.menu__item:hover,
.menu__item:focus-visible {
  background: var(--selection);
  color: var(--text-inverse);
  outline: none;
}

.menu__separator {
  height: 2px;
  margin: 4px 2px;
  box-shadow: inset 0 1px 0 var(--shadow), inset 0 -1px 0 var(--highlight);
}

/* Weiter und Zurück */
.pager {
  position: fixed;
  right: 14px;
  bottom: 54px;
  z-index: 65;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  box-shadow: var(--bevel-raised), 4px 4px 0 var(--drop-shadow);
}

.button--pager {
  gap: 7px;
  min-width: 112px;
  min-height: 42px;
  padding: 8px 16px;
  font-weight: 700;
}

.button--pager-next:not(:disabled) {
  outline: 1px solid var(--dark);
  outline-offset: 1px;
}

.pager__arrow {
  color: var(--selection);
}

.button--pager:disabled .pager__arrow {
  color: inherit;
}

/* Herunterfahren */
.shutdown {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 24px;
  background: var(--dark);
  text-align: center;
}

.shutdown__text {
  max-width: 24ch;
  color: var(--accent-orange);
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.3;
}

/* Dialoge: Sanduhr beim Öffnen, Fehlermeldung */
.dialog {
  width: 100%;
  max-width: 520px;
  box-shadow: var(--bevel-raised), 5px 5px 0 var(--drop-shadow-strong);
}

.loading__body {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 18px 20px;
}

.loading__hourglass {
  flex: none;
  animation: hourglass 1.4s steps(1, end) infinite;
}

.loading__hourglass .icon {
  display: block;
}

.loading__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.5;
}

.progress {
  display: block;
  height: 22px;
  padding: 3px;
  background: var(--face);
  box-shadow: var(--bevel-status);
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--selection) 0 9px, var(--face) 9px 11px);
  animation: fill 1s linear forwards;
}

.loading__path {
  color: var(--selection);
  font-size: 13px;
}

.message__body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 18px 12px;
}

.message__body .icon {
  flex: none;
}

.message__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.message__heading {
  font-size: 18px;
}

@keyframes hourglass {
  0%,
  49% {
    transform: rotate(0deg);
  }
  50%,
  100% {
    transform: rotate(180deg);
  }
}

@keyframes fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* Kreis aus Punkten: Gegenstück zur Sanduhr in 11 und im Update-Bildschirm */
.spinner {
  position: relative;
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  animation: spin 1.2s linear infinite;
}

.spinner span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: currentColor;
  transform-origin: 2.5px 20px;
}

.spinner span:nth-child(2) {
  opacity: 0.8;
  transform: rotate(-28deg);
}

.spinner span:nth-child(3) {
  opacity: 0.6;
  transform: rotate(-56deg);
}

.spinner span:nth-child(4) {
  opacity: 0.4;
  transform: rotate(-84deg);
}

.spinner span:nth-child(5) {
  opacity: 0.2;
  transform: rotate(-112deg);
}

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

/* Schalter zwischen den Welten: Symbol auf dem Desktop, hinter den Fenstern */
.stage {
  position: relative;
  z-index: 2;
}

.desktop-icon {
  position: fixed;
  bottom: 72px;
  left: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 112px;
  padding: 6px 4px;
  color: var(--desktop-label);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.desktop-icon:hover {
  color: var(--desktop-label);
}

.desktop-icon__label {
  padding: 1px 3px;
}

.desktop-icon:focus-visible {
  outline: none;
}

.desktop-icon:focus-visible .desktop-icon__label {
  background: var(--selection);
  color: var(--text-inverse);
  outline: 1px dotted var(--text-inverse);
}

/* Dasselbe Symbol als Knopf im Willkommensfenster, nur auf dem Handy (siehe unten bei 599 px). */
.switch-button {
  display: none;
}

/* Bildschirm beim Wechsel: Update nach 11, Start nach 98 */
.switch-screen {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.switch-screen--update {
  background: var(--update);
  color: var(--text-inverse);
  font-family: "Segoe UI Variable Text", "Segoe UI", Selawik, system-ui, sans-serif;
  font-size: clamp(16px, 2vw, 20px);
}

.switch-screen--update .spinner {
  margin-bottom: 18px;
}

.switch-screen__title {
  font-size: clamp(22px, 3vw, 30px);
}

.switch-screen--boot {
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  padding: 48px;
  background: var(--boot);
  color: var(--boot-text);
  font-family: "Share Tech Mono", monospace;
  font-size: 20px;
}

.switch-screen--boot .caret {
  width: 12px;
  height: 3px;
  vertical-align: 0;
  background: var(--boot-text);
}

.boot-bar {
  display: block;
  width: min(320px, 100%);
  height: 18px;
  padding: 2px;
  box-shadow: inset 0 0 0 1px var(--boot-text);
}

.boot-bar__fill {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--boot-bar) 0 9px, transparent 9px 11px);
  animation: fill 1.2s steps(14, end) forwards;
}

/* 4. Fenster der Startseite ============================================== */

/* Willkommens-Assistent */
.hero {
  display: flex;
  flex-wrap: wrap;
}

.hero__aside {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 100%;
  padding: 20px;
  background: linear-gradient(160deg, var(--title-start), var(--banner-end));
}

.hero__frame {
  width: 100%;
  max-width: 420px;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-inverse);
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero__brand-sub {
  margin-top: 8px;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__main {
  display: flex;
  flex: 420 1 340px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 22px;
}

.hero__claim {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 400;
  line-height: 1.16;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  font-size: 17px;
  line-height: 1.6;
}

.hero__greeting {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}

.button--cta .icon {
  display: block;
}

/* Zusammenarbeit: Kundenlogos, links das Bild als eigener Block */
.kunden {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
}

.kunden__bild {
  flex: 0 0 340px;
}

.kunden .logos {
  flex: 1 1 300px;
  min-width: 0;
}

.logos {
  max-height: 340px;
}

.logos .scroll__body {
  padding: 14px;
}

/* Feste Kachelbreite, Zeilen linksbündig; unterschiedlich hohe Logos sitzen auf einer Mittellinie. */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}

.logo-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  text-decoration: none;
}

.logo-grid__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 8px;
}

.logo-grid__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hohe Logos füllen den Rahmen sonst stärker als die breiten daneben. */
.logo-grid__frame--klein {
  padding: 20px;
}

/* Zusammenarbeit: Häufige Fragen */
.faq {
  max-height: 360px;
}

.faq .scroll__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px;
  font-size: 16px;
  line-height: 1.65;
}

.faq__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Die Realität */
.realitaet__text {
  max-height: 320px;
}

/* Leistungen: Explorer mit Programmliste */
.split {
  display: flex;
  flex-wrap: wrap;
  padding: 3px;
}

.program-tree {
  display: flex;
  flex: 1 1 210px;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 8px;
  font-size: 14px;
}

.program-tree__root,
.program-tree__folder {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.program-tree__root {
  font-weight: 700;
}

.program-tree__folder {
  padding-left: 16px;
}

.program-tree__folder > span:first-child {
  font-size: 11px;
}

.program-tree__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 34px;
}

.program-tree__item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 3px 6px;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.program-tree__item:hover {
  background: var(--light);
}

.program-tree__item.is-active {
  background: var(--selection);
  color: var(--text-inverse);
}

.split__main {
  flex: 420 1 340px;
  min-width: 0;
  padding: 10px 4px 4px 10px;
}

.leistungen__text {
  height: 360px;
}

.leistungen__text .scroll__body {
  padding: 16px;
  gap: 13px;
}

/* Kundenprojekte: Ordneransicht und Eigenschaften */
.toolbar--view {
  gap: 10px;
  padding: 5px 6px;
}

.toolbar__label {
  font-size: 13px;
}

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

.dropdown {
  position: relative;
  flex: none;
}

.dropdown__button {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-width: 190px;
  min-height: 34px;
  padding: 5px 6px 5px 9px;
  border: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.dropdown__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown__arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 22px;
  background: var(--face);
  box-shadow: var(--bevel-raised);
  font-size: 9px;
}

.dropdown__button:active .dropdown__arrow {
  box-shadow: var(--bevel-pressed);
}

.dropdown__list {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  z-index: 30;
  min-width: 190px;
  padding: 2px;
  background: var(--window);
  box-shadow: 0 0 0 1px var(--dark);
}

.dropdown__option {
  padding: 7px 9px;
  font-size: 14px;
  cursor: pointer;
}

.dropdown__option:hover,
.dropdown__option:focus {
  background: var(--selection);
  color: var(--text-inverse);
  outline: none;
}

.dropdown--wide {
  flex: 1 1 auto;
  min-width: 0;
}

.dropdown--wide .dropdown__button {
  gap: 12px;
  padding: 4px 4px 4px 8px;
  font-size: 15px;
}

.dropdown--wide .dropdown__arrow {
  width: 22px;
  height: 24px;
}

.dropdown--wide .dropdown__option {
  padding: 9px;
  font-size: 15px;
}

.file-area {
  margin: 3px;
  padding: 14px;
}

/* Wie die Kundenlogos: am Handy drei Ordner nebeneinander, ohne Weißraum rechts. */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.icon-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-ui);
  cursor: pointer;
}

/* Lange Namen wie "Arbeitsbekleidung" trennen, statt über die Spalte zu ragen. */
.icon-grid__label {
  display: block;
  max-width: 100%;
  padding: 1px 4px;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.icon-grid__item.is-active .icon-grid__label {
  background: var(--selection);
  color: var(--text-inverse);
}

.subwindow {
  margin: 3px;
  box-shadow: var(--bevel-raised);
}

.subwindow .title-bar {
  min-height: 24px;
  padding: 3px 5px;
}

.subwindow .title-button {
  width: 20px;
  height: 18px;
  font-size: 10px;
}

.subwindow__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.subwindow__main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  gap: 16px;
}

.frame--wide .placeholder {
  aspect-ratio: 16 / 10;
}

.kunden-zitat {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.kunden-zitat__foto {
  flex: none;
  width: 200px;
  max-width: 100%;
  aspect-ratio: 1;
}

.kunden-zitat__foto .placeholder {
  aspect-ratio: 1;
}

.kunden-zitat .motto {
  flex: 1 1 280px;
  min-width: 0;
  overflow-wrap: break-word;
  font-size: clamp(16px, 1.7vw, 20px);
  text-align: left;
}

.motto__quelle {
  margin-top: 14px;
  font-size: 14px;
  font-style: normal;
  text-align: right;
}

.motto__quelle cite {
  font-style: normal;
}

/* Detailansicht, für Kundenprojekte und Eigenprojekte */
.details {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.details th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 8px;
  background: var(--face);
  box-shadow: var(--bevel-thin);
  font-size: 13px;
  text-align: left;
}

.details td {
  padding: 10px 8px;
  vertical-align: top;
}

.details tbody tr:hover {
  background: var(--light);
}

.details__preview {
  width: 98px;
}

.details__type {
  width: 112px;
}

.details__name {
  font-size: 18px;
  line-height: 1.2;
}

.details__text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
}

.frame--thin .placeholder {
  aspect-ratio: 1;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.details--list td {
  padding: 7px 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.details--list td:first-child {
  padding: 0;
}

.details__row {
  cursor: pointer;
}

.details__row.is-active,
.details__row.is-active:hover {
  background: var(--selection);
  color: var(--text-inverse);
}

.details__button {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-ui);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

/*
 * Über mich, Registerkarte Presse: je Erwähnung eine Kachel im Gruppenrahmen.
 * Symbol links, Zitat und Quellenangabe daneben, der Link darunter rechts.
 */
.presse {
  display: block;
}

.presse__kachel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px 14px;
}

/* Das Symbol steht wie in Win98-Dialogen direkt auf der Fensterfläche, ohne Rahmen. */
.presse__symbol {
  display: block;
  margin-top: 2px;
}

.presse__zitat {
  font-size: 17px;
  line-height: 1.55;
}

.presse__quelle {
  display: flex;
  flex-direction: column;
  gap: 2px;
  grid-column: 2;
  font-size: 14px;
}

.presse__quelle cite {
  font-style: normal;
  font-weight: 700;
}

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

.presse__link {
  grid-column: 2;
  justify-self: start;
  margin-top: 6px;
}

/* Über mich */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
  gap: 18px;
}

.motto {
  padding: 26px 18px;
  box-shadow: var(--bevel-status);
  font-size: clamp(18px, 2.2vw, 26px);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

/* Projektablauf: Assistent mit Seitenbanner */
.wizard {
  display: flex;
  flex-wrap: wrap;
}

.wizard__banner {
  flex: 0 0 190px;
  padding: 18px 14px;
  background: linear-gradient(160deg, var(--title-start), var(--banner-end));
}

.wizard__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wizard__step {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 32px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--text-inverse);
  font-family: var(--font-ui);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.wizard__step:focus-visible {
  outline-color: var(--text-inverse);
}

.wizard__marker {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 1px var(--text-inverse);
  opacity: 0.65;
}

.wizard__step.is-active {
  font-weight: 700;
}

.wizard__step.is-active .wizard__marker {
  background: var(--text-inverse);
  box-shadow: 0 0 0 2px var(--selection), 0 0 0 3px var(--text-inverse);
  opacity: 1;
}

.wizard__content {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 190px;
  padding: 20px;
}

/* Eigenprojekte */
.eigenprojekte__list {
  max-height: 520px;
}

.eigenprojekte__list .scroll__body {
  padding: 3px;
}

/* Aktuelles: eine Webseite im Browserfenster, im Stil der späten Neunziger */
.toolbar--browser {
  gap: 3px;
  padding: 4px;
}

.browser-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 52px;
  padding: 3px 6px 2px;
  background: var(--face);
  box-shadow: var(--bevel-raised);
}

.browser-button__glyph {
  font-size: 13px;
  line-height: 1;
}

.browser-button__label {
  font-family: var(--font-document);
  font-size: 10px;
}

.address__label--small {
  font-size: 12px;
}

.address__field--small {
  flex: 1 1 220px;
  padding: 5px 7px;
  font-size: 12px;
}

.browser {
  max-height: 640px;
  margin: 3px;
}

.browser .scroll__body {
  overflow-x: auto;
}

.news__banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 11px 14px;
  overflow: hidden;
  background: var(--selection);
}

.news__banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  bottom: 0;
  width: 46%;
  background: var(--accent-red);
  clip-path: polygon(38% 0, 100% 0, 100% 26%, 0 100%);
}

.news__logo,
.news__banner-title {
  position: relative;
  z-index: 1;
}

.news__logo {
  display: flex;
  gap: 4px;
}

.news__logo span {
  padding: 4px 6px;
  background: var(--window);
  color: var(--selection);
  font: 700 22px/1 var(--font-document);
}

.news__banner-title {
  color: var(--text-inverse);
  font: 700 clamp(22px, 3vw, 30px) / 1 var(--font-document);
  letter-spacing: 1px;
}

.news {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding-bottom: 10px;
  font-family: var(--font-document);
}

.news a:hover {
  color: var(--link-hover-web);
}

.news__nav {
  display: flex;
  flex: 0 0 132px;
  flex-direction: column;
  min-width: 118px;
  padding: 12px 9px 14px 6px;
  border-right: 1px solid var(--dark);
  text-align: right;
}

.news__filter {
  display: block;
  width: 100%;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: var(--link);
  font: 14px var(--font-document);
  text-align: right;
  text-decoration: underline;
  cursor: pointer;
}

.news__filter:hover {
  color: var(--link-hover-web);
}

.news__filter.is-active {
  color: var(--text);
  font-weight: 700;
}

.news__rule {
  display: block;
  height: 1px;
  margin: 12px 0 10px;
  background: var(--dark);
}

.news__side-link {
  padding: 4px 2px;
  font-size: 12px;
}

.news__main {
  flex: 1 1 340px;
  min-width: 0;
  padding: 12px 16px 16px;
  border-right: 1px solid var(--dark);
}

.news__dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--dark);
  color: var(--text-muted);
  font-size: 11px;
}

.news__heading {
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--dark);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
}

.news__intro {
  padding: 10px 0 2px;
  font: 16px/1.5 var(--font-serif);
}

.news__item {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--shadow);
}

.news__image {
  display: block;
  flex: 0 0 116px;
  height: 100px;
  padding: 1px;
  background: var(--face);
  box-shadow: 0 0 0 1px var(--dark);
}

.news__body {
  display: flex;
  flex: 1 1 230px;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.news__title {
  font-size: 18px;
  line-height: 1.25;
}

.news__teaser {
  font: 15px/1.5 var(--font-serif);
}

.news__also {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
  font-size: 13px;
  line-height: 1.4;
}

.news__label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 3px;
  font-size: 11px;
}

.news__meta time {
  color: var(--text-disabled);
}

.news__aside {
  display: flex;
  flex: 0 1 214px;
  flex-direction: column;
  gap: 18px;
  min-width: 180px;
  padding: 12px 10px 16px;
}

.news__aside-heading {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--dark);
  font-size: 14px;
}

.news__focus {
  display: block;
  margin-top: 8px;
  padding: 1px;
  aspect-ratio: 16 / 9;
  background: var(--face);
  box-shadow: 0 0 0 1px var(--dark);
}

.news__aside-link {
  display: block;
  padding-top: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.news__rail li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--face);
  font-size: 13px;
  line-height: 1.35;
}

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

.news__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
}

.news__disclaimer {
  padding-top: 8px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

/* Abschluss */
.abschluss {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
}

.abschluss .balloon {
  flex: 1 1 320px;
  width: auto;
  min-width: 0;
}

.abschluss__portrait {
  flex: 0 1 200px;
}

/* Kontakt: Neue Nachricht wie in Outlook Express */
.toolbar--mail {
  align-items: stretch;
  gap: 1px;
  padding: 4px 3px;
}

.tool-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 58px;
  min-height: 52px;
  padding: 4px 8px;
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
}

a.tool-button {
  background: var(--face);
  box-shadow: var(--bevel-thin);
}

a.tool-button:hover {
  color: var(--text);
}

a.tool-button:active {
  box-shadow: var(--bevel-thin-pressed);
}

.tool-button.is-disabled {
  color: var(--text-disabled);
  text-shadow: 1px 1px 0 var(--highlight);
}

.toolbar__separator--tall {
  height: 38px;
  margin: 0 3px;
}

.mail-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 4px;
  box-shadow: inset 0 -1px 0 var(--shadow), inset 0 1px 0 var(--highlight);
}

.mail-header__row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mail-header__label {
  display: flex;
  flex: 0 0 88px;
  align-items: center;
  gap: 5px;
  padding-left: 4px;
  font-size: 14px;
}

.mail-header__field {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 32px;
  padding: 7px 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-header__row[aria-hidden] .mail-header__field {
  min-height: 0;
  height: 18px;
  padding: 0 8px;
}

a.mail-header__field:hover {
  color: var(--text);
}

.toolbar--format {
  gap: 4px;
  padding: 4px;
}

.toolbar--format .toolbar__separator {
  height: 26px;
  margin: 0 3px;
}

.select {
  display: flex;
  align-items: center;
  padding: 4px 3px 4px 7px;
  font-size: 14px;
}

.select > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.select--font {
  flex: 0 1 190px;
  min-width: 120px;
}

.select--size {
  flex: 0 0 72px;
}

.dropdown__arrow--small {
  font-size: 8px;
}

.format-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font: 17px var(--font-serif);
}

.format-button--bold {
  font-weight: 700;
}

.format-button--italic {
  font-style: italic;
}

.format-button--underline {
  text-decoration: underline;
}

.format-button--color {
  border-bottom: 3px solid var(--accent-red);
  color: var(--accent-red);
}

.mail-body {
  display: flex;
  align-items: stretch;
  min-height: 230px;
  margin: 3px;
}

.mail-body__text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  font-family: var(--font-document);
  font-size: 16px;
  line-height: 1.6;
}

.mail-body__message {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.caret {
  display: inline-block;
  width: 1px;
  height: 18px;
  margin-left: 2px;
  vertical-align: -3px;
  background: var(--text);
  animation: blink 1.1s step-end infinite;
}

.fake-scrollbar {
  display: flex;
  flex: 0 0 17px;
  flex-direction: column;
  background: var(--face);
  box-shadow: inset 1px 0 0 var(--highlight);
}

.fake-scrollbar__button,
.fake-scrollbar__thumb {
  background: var(--face);
  box-shadow: var(--bevel-raised);
}

.fake-scrollbar__button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 17px;
  font-size: 7px;
}

.fake-scrollbar__thumb {
  height: 40px;
}

.fake-scrollbar__track {
  flex: 1 1 auto;
  background: repeating-conic-gradient(var(--highlight) 0 25%, var(--face) 0 50%) 0 0 / 2px 2px;
}

/* 5. Rechtstexte ========================================================= */

.editor__files {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px 6px;
  box-shadow: inset 0 -1px 0 var(--shadow), inset 0 -2px 0 var(--highlight);
}

.editor__files .is-pressed {
  font-weight: 700;
}

.editor__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 6px;
  padding: 22px 24px 26px;
}

.editor__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.editor__title {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.15;
}

.editor__path {
  color: var(--text-disabled);
  font-size: 13px;
}

.editor__lede,
.editor__block {
  font-family: var(--font-document);
  font-size: 16px;
  line-height: 1.65;
  /* Lange Adressen (RIS-Link im Impressum) brechen um, statt das Handy breiter zu machen. */
  overflow-wrap: break-word;
}

.editor__lede {
  margin-top: 8px;
}

.editor__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-margin-top: 16px;
}

.editor__heading {
  align-self: flex-start;
  padding: 3px 7px;
  background: var(--selection);
  color: var(--text-inverse);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.35;
}

.editor__block ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 22px;
  list-style: square;
}

.editor__block li::marker {
  color: var(--selection);
}

.editor__close {
  align-self: flex-start;
  margin-top: 6px;
}

/* 6. Ohne JavaScript, weniger Bewegung, Tablet und Handy ============= */

/* Ohne Skript gibt es nichts zu blättern, auf- oder zuzuklappen. */
html:not(.js) .pager,
html:not(.js) .taskbar__start,
html:not(.js) .tree__toggle,
html:not(.js) [data-tab-step] {
  display: none;
}

html:not(.js) .tree__group .icon--open {
  display: block;
}

html:not(.js) .tree__group .icon--closed {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .loading__hourglass,
  .spinner,
  .caret {
    animation: none;
  }

  .progress__bar {
    width: 100%;
    animation: none;
  }
}

/*
 * Drei Zustände, in beiden Welten gleich (docs/style-guide.md, Abschnitt 13):
 * Desktop über 1024 px wie oben. Tablet bis 1024 px ohne festen Explorer, er
 * geht über die Taskleiste auf. Handy unter 600 px mit einem maximierten
 * Fenster, dem Ordnerbaum im Startmenü und Weiter und Zurück als Leiste über
 * der Taskleiste. Die Regeln für einzelne Fenster stehen darunter bei 800 px.
 */
.taskbar__explorer,
.pager__status,
.start-menu__folder {
  display: none;
}

@media (max-width: 1024px) {
  .desktop {
    padding-bottom: 124px;
  }

  .explorer,
  .taskbar__copyright {
    display: none;
  }

  .js .taskbar__explorer {
    display: inline-flex;
  }

  .js .explorer.is-open {
    position: fixed;
    top: auto;
    bottom: 52px;
    left: 4px;
    z-index: 76;
    display: block;
    width: 280px;
    max-width: calc(100vw - 8px);
  }

  .explorer.is-open .explorer__tree {
    max-height: calc(100vh - 170px);
  }

  /* Größere Zeilen für den Finger, die gepunkteten Linien wandern zur Mitte mit. */
  .explorer.is-open .tree__row,
  .explorer.is-open .tree__item {
    min-height: 32px;
  }

  .explorer.is-open .tree__group::before,
  .explorer.is-open .tree__items > li::before {
    top: 16px;
  }

  .explorer.is-open .tree__group .tree__toggle {
    top: 11px;
  }

  .taskbar__start,
  .taskbar__explorer,
  .taskbar__button,
  .taskbar__tray {
    min-height: 44px;
  }

  .taskbar__explorer {
    gap: 7px;
    padding: 6px 12px 6px 8px;
  }

  .start-menu,
  .js .explorer.is-open {
    bottom: 54px;
  }

  .pager {
    bottom: 60px;
  }
}

@media (max-width: 599px) {
  .desktop {
    padding: 0 0 112px;
  }

  .js .taskbar__explorer,
  .taskbar__clock,
  .taskbar__separator,
  .desktop-icon {
    display: none;
  }

  /* Statt frei auf dem Desktop steht der Schalter links neben dem Kaffee-Knopf. */
  .dialog-buttons--footer {
    flex-wrap: nowrap;
    align-items: center;
  }

  .button.switch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    margin-right: auto;
    padding: 0 12px;
  }

  /* Ein Fenster, maximiert: über die volle Breite, ohne Schlagschatten. */
  .page > .window {
    box-shadow: var(--bevel-raised);
  }

  .page > .balloon {
    width: auto;
    margin: 12px;
  }

  .taskbar {
    gap: 4px;
    padding: 3px;
  }

  .taskbar__legal {
    flex: 1 1 auto;
    min-width: 0;
  }

  .taskbar__button {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px;
  }

  /* Weiter und Zurück als Statusleiste mit dem Namen des Fensters dazwischen. */
  .pager {
    right: 0;
    bottom: 50px;
    left: 0;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 3px;
    box-shadow: var(--bevel-raised);
  }

  .button--pager {
    flex: none;
    min-width: 0;
    min-height: 44px;
    padding: 6px 12px;
  }

  .pager__status {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 5px 8px;
    overflow: hidden;
    font-size: 13px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: var(--bevel-status);
  }

  /* Im Startmenü steht statt der Ordner der ganze Baum. */
  .start-menu {
    right: 4px;
    bottom: 54px;
    max-height: calc(100vh - 62px);
  }

  .start-menu__list {
    overflow-y: auto;
  }

  .start-menu__entry {
    display: none;
  }

  .js .start-menu__folder {
    display: block;
  }

  .start-menu__item {
    min-height: 44px;
    padding: 8px 12px 8px 10px;
  }

  /* Ordner sind zu, bis man sie antippt. */
  .start-menu__item--folder[aria-expanded="false"] .icon--open,
  .start-menu__item--folder[aria-expanded="true"] .icon--closed {
    display: none;
  }

  .start-menu__item--page {
    padding-left: 42px;
  }
}

@media (max-width: 800px) {
  /* Die Detailtabelle ist für schmale Fenster zu breit: nur Symbole, ohne Umschalter. */
  .toolbar--view .toolbar__label,
  .dropdown--view,
  .file-view--details {
    display: none;
  }

  .js .file-view--icons[data-tab-panel] {
    display: block;
  }

  /* Über dem Text steht der Banner über die ganze Breite, sonst bleibt rechts Weißraum. */
  .wizard__banner {
    flex-basis: 100%;
  }

  /* Am Handy steht das Bild über den Logos, über die ganze Breite. */
  .kunden__bild {
    flex-basis: 100%;
  }

  .kunden-zitat {
    flex-direction: column;
    align-items: flex-start;
  }

  .kunden-zitat__foto {
    flex: none;
    width: min(200px, 100%);
  }

  .kunden-zitat .motto {
    width: 100%;
  }
}
