/* signum3 Desktop OS — lokal, kein CDN */

@font-face {
  font-family: "SpaceGrotesk";
  src: url("../fonts/space/SpaceGroteskVariable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MonoLisa";
  src: url("../fonts/monolisa/MonoLisaVariableNormal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BodoniModa";
  src: url("../fonts/bodoni/BodoniModaVariable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1b1e;
  --paper: #ece8e1;
  --mute: #6b6f78;
  --line: rgba(26, 27, 30, 0.12);
  --accent: #c45c26;
  --menubar-h: 36px;
  --dock-h: 72px;
  --win-radius: 10px;
  --glass: rgba(246, 243, 238, 0.88);
  --glass-dark: rgba(28, 30, 34, 0.92);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  --font: "SpaceGrotesk", ui-sans-serif, sans-serif;
  --mono: "MonoLisa", ui-monospace, monospace;
  --display: "BodoniModa", Georgia, serif;
}

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

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: #121316;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

/* ========== Boot ========== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  background: #0e0f12;
  color: var(--paper);
  transition: opacity 0.4s ease, visibility 0.4s;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot__logo {
  width: 140px;
  height: auto;
  fill: var(--paper);
  display: block;
  margin: 0 auto;
  animation: boot-pulse 1.6s ease-in-out infinite;
}

.boot__label {
  margin: 0;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(236, 232, 225, 0.55);
  font-family: var(--mono);
}

.boot__bar {
  width: min(220px, 60vw);
  height: 3px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.boot__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #e8a06a);
  transition: width 0.12s linear;
}

@keyframes boot-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* ========== Menüleiste ========== */
.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  height: var(--menubar-h);
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.55rem 0 0.4rem;
  background: rgba(18, 19, 22, 0.72);
  color: rgba(236, 232, 225, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  user-select: none;
}

.menubar__apple {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  color: inherit;
}

.menubar__apple:hover,
.menubar__btn:hover,
.menubar__apple[aria-expanded="true"],
.menubar__btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
}

.menubar__logo {
  width: 34px;
  height: auto;
  fill: currentColor;
  display: block;
}

.menubar__brand-name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.menubar__nav {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}

.menubar__item {
  position: relative;
}

.menubar__btn {
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  color: inherit;
}

.menubar__status {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
  padding-right: 0.35rem;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  padding: 0.35rem;
  background: rgba(32, 34, 38, 0.96);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  z-index: 5100;
}

.menu-panel--brand {
  left: 0.4rem;
  top: calc(var(--menubar-h) + 4px);
}

.menu-panel button,
.menu-panel a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  font-size: 0.84rem;
}

.menu-panel button:hover,
.menu-panel a:hover {
  background: rgba(196, 92, 38, 0.85);
  color: #fff;
}

.menu-panel hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.3rem 0.35rem;
}

.menu-panel__empty {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  color: rgba(236, 232, 225, 0.45);
}

/* ========== Desktop ========== */
.desktop {
  position: fixed;
  inset: var(--menubar-h) 0 var(--dock-h) 0;
  overflow: hidden;
}

.desktop__wallpaper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.5s ease, opacity 0.5s;
}

/* Schiefer — dunkles Marken-Desktop */
.desktop[data-wallpaper="slate"] .desktop__wallpaper {
  background:
    radial-gradient(1200px 700px at 12% 18%, rgba(196, 92, 38, 0.22), transparent 55%),
    radial-gradient(900px 600px at 88% 72%, rgba(61, 126, 166, 0.18), transparent 50%),
    linear-gradient(165deg, #1c1e24 0%, #12141a 45%, #0c0d10 100%);
}

.desktop[data-wallpaper="slate"] .desktop__wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Dämmerung */
.desktop[data-wallpaper="dusk"] .desktop__wallpaper {
  background:
    radial-gradient(ellipse at 30% 20%, #3a2a38 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, #1a2a3a 0%, transparent 45%),
    linear-gradient(180deg, #2a2430 0%, #141820 100%);
}

/* Papier — hell */
.desktop[data-wallpaper="paper"] .desktop__wallpaper {
  background:
    radial-gradient(800px 500px at 70% 20%, rgba(196, 92, 38, 0.12), transparent 55%),
    linear-gradient(160deg, #e8e2d6 0%, #d5cfc3 100%);
}

.desktop[data-wallpaper="paper"] .desk-icon__label {
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.desktop[data-wall-tone="light"] .desk-icon__label {
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Foto-Hintergrund */
.desktop[data-wallpaper="image"] .desktop__wallpaper {
  background-color: #12141a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.45s ease;
}

.desktop[data-wallpaper="image"] .desktop__wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 13, 16, 0.35) 0%, rgba(12, 13, 16, 0.15) 40%, rgba(12, 13, 16, 0.45) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(12, 13, 16, 0.35) 100%);
}

/* Wallpaper-Picker */
.wall-pick__heading {
  margin: 1rem 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.wall-pick__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
}

.wall-pick__grid--photos {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.wall-pick__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.wall-pick__item:hover,
.wall-pick__item:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.wall-pick__item.is-active {
  border-color: var(--accent);
}

.wall-pick__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.wall-pick__label {
  font-size: 0.72rem;
  line-height: 1.25;
  padding: 0 0.15rem 0.2rem;
  color: #3a3c42;
}

.desktop__icons {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, 96px);
  grid-auto-rows: 104px;
  align-content: start;
  justify-content: start;
  gap: 0.35rem 0.5rem;
  padding: 1rem 1rem 1.25rem;
  overflow: auto;
}

.desktop__windows {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.desktop__windows > * {
  pointer-events: auto;
}

/* Desktop-Icons */
.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.25rem;
  border-radius: 12px;
  color: var(--paper);
  transition: background 0.15s, transform 0.15s;
}

.desk-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

.desk-icon.is-selected {
  background: rgba(255, 255, 255, 0.14);
}

.desk-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.desk-icon__glyph {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent));
  box-shadow:
    0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}

.desk-icon__glyph svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}

.desk-icon__abbr {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 22px;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  background: #0e0f12;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.desk-icon__label {
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.2;
  max-width: 88px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  word-break: break-word;
}

/* ========== Fenster ========== */
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  min-height: 180px;
  border-radius: var(--win-radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transform-origin: center top;
  animation: win-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.win.is-focused {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(196, 92, 38, 0.25);
}

.win.is-dragging,
.win.is-resizing {
  user-select: none;
  opacity: 0.97;
}

.win.is-minimized {
  display: none !important;
}

.win.is-maximized {
  border-radius: 0;
}

.win.is-closing {
  animation: win-out 0.14s ease forwards;
}

@keyframes win-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes win-out {
  to {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
}

.win__titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.28));
  border-bottom: 1px solid var(--line);
  cursor: grab;
  flex-shrink: 0;
}

.win.is-dragging .win__titlebar {
  cursor: grabbing;
}

.win__traffic {
  display: flex;
  gap: 7px;
  align-items: center;
}

.win__btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}

.win__btn--close {
  background: #ff5f57;
}
.win__btn--min {
  background: #febc2e;
}
.win__btn--max {
  background: #28c840;
}

.win:not(.is-focused) .win__btn {
  background: #c9c9c9;
}

.win__btn:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.12);
}

.win__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  pointer-events: none;
}

.win__icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.win__icon svg {
  width: 11px;
  height: 11px;
}

.win__name {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win__body {
  flex: 1;
  overflow: auto;
  padding: 1.1rem 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.55);
  -webkit-user-select: text;
  user-select: text;
}

/* Resize-Handles */
.win__resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  z-index: 2;
}

.win__resize::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(0, 0, 0, 0.25);
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
}

.win__edge {
  position: absolute;
  z-index: 2;
}

.win__edge--n {
  top: 0;
  left: 12px;
  right: 12px;
  height: 5px;
  cursor: ns-resize;
}
.win__edge--s {
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 5px;
  cursor: ns-resize;
}
.win__edge--e {
  top: 12px;
  right: 0;
  bottom: 12px;
  width: 5px;
  cursor: ew-resize;
}
.win__edge--w {
  top: 12px;
  left: 0;
  bottom: 12px;
  width: 5px;
  cursor: ew-resize;
}

.win.is-maximized .win__resize,
.win.is-maximized .win__edge {
  display: none;
}

/* ========== App-Inhalte ========== */
.app-muted {
  color: var(--mute);
  font-size: 0.88rem;
}

.app-lead {
  margin: 0 0 1rem;
  line-height: 1.45;
  color: #2a2c31;
}

.app-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.app-list li {
  padding: 0.55rem 0.75rem;
  background: rgba(26, 27, 30, 0.04);
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.app-list--plain li {
  background: transparent;
  border: 0;
  padding: 0.2rem 0;
}

.app-list a {
  color: var(--accent);
  text-decoration: none;
}

.app-list a:hover {
  text-decoration: underline;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.15s, background 0.15s;
}

.app-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.app-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.app-btn--ghost:hover {
  background: rgba(26, 27, 30, 0.06);
  color: var(--ink);
}

.app-about__hero {
  text-align: center;
  margin-bottom: 1rem;
}

.app-about__logo {
  width: 100px;
  fill: var(--ink);
  margin: 0 auto 0.5rem;
  display: block;
}

.app-about h1,
.app-disc h1,
.app-tool h1,
.app-contact h1,
.app-help h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.app-disc__badge {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 36px;
  padding: 0 0.6rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.app-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.app-gallery__item {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0e0f12;
  cursor: zoom-in;
  text-align: left;
  display: block;
  width: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-gallery__item:hover,
.app-gallery__item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  pointer-events: none;
}

.app-gallery__cap {
  display: block;
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
  color: rgba(236, 232, 225, 0.75);
  background: #16181c;
}

/* Büro: Hero + Kachelraster */
.app-story__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 110px;
  gap: 0.55rem;
}

.app-story__tile {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0e0f12;
  cursor: zoom-in;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-story__tile.is-hero {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.app-story__tile:hover,
.app-story__tile:focus-visible {
  transform: scale(1.015);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 1;
}

.app-story__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.app-tool--book {
  text-align: left;
  padding-top: 0;
}

.app-tool--book .app-lead {
  margin-bottom: 0.85rem;
}

.app-tool__mount {
  min-height: 12rem;
}

@media (max-width: 560px) {
  .app-story__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 100px;
  }

  .app-story__tile.is-hero {
    grid-column: 1 / -1;
    grid-row: span 2;
  }
}

.app-quote {
  display: grid;
  place-content: center;
  min-height: 100%;
  text-align: center;
  padding: 1rem;
}

.app-quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.app-help__list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.1rem;
  line-height: 1.55;
  font-size: 0.92rem;
}

.app-help__list li + li {
  margin-top: 0.45rem;
}

/* ========== Dock ========== */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  height: var(--dock-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 0.75rem 0.55rem;
  pointer-events: none;
}

.dock__inner,
.dock__tray {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: rgba(18, 19, 22, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.dock__app {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.dock__app:hover {
  transform: translateY(-6px) scale(1.08);
}

.dock__glyph {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent));
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.dock__glyph svg {
  width: 20px;
  height: 20px;
}

.dock__dot {
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  transform: translateX(-50%);
}

.dock__app.is-open .dock__dot {
  background: rgba(236, 232, 225, 0.85);
}

.dock__app.is-min .dock__dot {
  background: var(--accent);
}

.dock__show-desktop {
  width: auto;
  min-width: 36px;
  height: 40px;
  border-radius: 8px;
  color: rgba(236, 232, 225, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 0.15rem;
  padding: 0 0.55rem 0 0.65rem;
}

.dock__show-desktop:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dock__show-desktop.is-active {
  color: #fff;
  background: rgba(196, 92, 38, 0.85);
}

.dock__show-desktop svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dock__show-desktop-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .dock__show-desktop-label {
    display: none;
  }
}

/* ========== Lightbox ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(8px);
  padding: 2.5rem 3.5rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__figure {
  margin: 0;
  max-width: min(960px, 100%);
  max-height: 100%;
  text-align: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__figure figcaption {
  margin-top: 0.75rem;
  color: rgba(236, 232, 225, 0.8);
  font-size: 0.9rem;
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox__close:hover {
  background: var(--accent);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

.lightbox__nav:hover {
  background: rgba(196, 92, 38, 0.85);
}

.lightbox__nav--prev {
  left: 0.75rem;
}

.lightbox__nav--next {
  right: 0.75rem;
}

/* ========== Teams-Buchung (helles Fenster) ========== */
.bw-book {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--ink);
}

.bw-book__intro {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.45;
}

.bw-book__cal-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(26, 27, 30, 0.03);
}

.bw-book__retry-wrap {
  margin-top: 0.65rem;
}

.bw-book__retry {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.bw-book__retry:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.bw-book__cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.bw-book__cal-header button {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.bw-book__cal-header button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.bw-book__cal-header button:disabled {
  opacity: 0.3;
  cursor: default;
}

.bw-book__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
}

.bw-book__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.bw-book__day {
  border: 1px solid transparent;
  background: rgba(26, 27, 30, 0.04);
  color: inherit;
  aspect-ratio: 1;
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.bw-book__day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.bw-book__day.is-weekend,
.bw-book__day.is-holiday,
.bw-book__day.is-no-slots {
  opacity: 0.35;
  cursor: default;
}

.bw-book__day.has-slots {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
}

.bw-book__day.has-slots:hover {
  background: rgba(37, 99, 235, 0.18);
}

.bw-book__day.is-selected {
  background: #2563eb;
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.bw-book__times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.bw-book__time {
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.bw-book__time.is-selected {
  background: #2563eb;
  color: #fff;
  border-color: transparent;
  font-weight: 650;
}

.bw-book__selected {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--mute);
}

.bw-book__fields {
  display: grid;
  gap: 0.65rem;
}

.bw-book__fields label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.bw-book__fields input {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.bw-book__fields input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 1px;
}

.bw-book__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #3a3c42;
  cursor: pointer;
  text-transform: none;
}

.bw-book__consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.bw-book__msg {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
}

.bw-book__msg.is-err {
  color: #b45309;
}

.bw-book__msg.is-ok {
  color: #15803d;
}

.bw-book__submit {
  border: none;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
}

.bw-book__submit:hover {
  background: var(--accent);
}

.bw-book__submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.bw-book__note {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.bw-book__process,
.bw-book__success {
  padding: 1.25rem 0.5rem;
  text-align: center;
}

.bw-book__process ol {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.bw-book__process li {
  opacity: 0.35;
  font-size: 0.95rem;
}

.bw-book__process li.is-active {
  opacity: 1;
  color: #2563eb;
}

.bw-book__process li.is-done {
  opacity: 0.7;
}

.bw-book__success-icon {
  margin: 0;
  font-size: 2.5rem;
  color: #15803d;
}

.bw-book__success h3 {
  margin: 0.35rem 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.6rem;
}

.bw-book__teams {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.bw-book__teams a {
  color: #2563eb;
}

/* ========== Mobil ========== */
@media (max-width: 720px) {
  :root {
    --dock-h: 64px;
  }

  .menubar__brand-name {
    display: none;
  }

  .menubar__nav .menubar__item:nth-child(n + 3) {
    display: none;
  }

  .desktop__icons {
    grid-template-columns: repeat(auto-fill, 80px);
    grid-auto-rows: 92px;
    padding: 0.65rem;
  }

  .desk-icon__glyph {
    width: 48px;
    height: 48px;
  }

  .dock__app {
    width: 42px;
    height: 42px;
  }

  .dock__glyph {
    width: 34px;
    height: 34px;
  }

  .win {
    /* Auf schmalen Screens etwas großzügiger starten */
    max-width: calc(100vw - 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot__logo,
  .win,
  .dock__app {
    animation: none;
    transition: none;
  }
}
