:root {
  --bg-main: #008080;
  --window-bg: #c0c0c0;
  --window-light: #ffffff;
  --window-dark: #7b7b7b;
  --window-darker: #4a4a4a;
  --text-main: #000000;
  --title-bg: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  --title-text: #ffffff;
  --desktop-icon-text: #ffffff;
  --button-face: #c0c0c0;
  --button-shadow-light: #ffffff;
  --button-shadow-dark: #808080;
  --button-shadow-deep: #000000;
  --boot-bg: #000000;
  --boot-text: #b7ffb7;
  --quote-bg: #ffffe1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* Bootscreen */

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--boot-bg);
  color: var(--boot-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Courier New", monospace;
}

.boot-screen.fade-out {
  animation: bootFadeOut 0.9s ease forwards;
}

@keyframes bootFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.boot-inner {
  width: min(780px, 100%);
  min-height: 360px;
  border: 1px solid #1f411f;
  background: #020202;
  box-shadow: 0 0 0 2px #0a0a0a, 0 0 20px rgba(0, 255, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.boot-header {
  font-size: 15px;
  margin-bottom: 18px;
  color: #d7ffd7;
}

.boot-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.7;
  overflow: hidden;
  white-space: pre-wrap;
}

.boot-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  color: #9cff9c;
}

.boot-cursor {
  width: 10px;
  height: 18px;
  background: #9cff9c;
  animation: blink 1s steps(1) infinite;
}

/* Desktop */

.hidden {
  display: none !important;
}

.desktop {
  min-height: 100vh;
  padding: 24px 24px 70px;
  position: relative;
}

.desktop-icons {
  position: absolute;
  top: 18px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}

.desktop-icon {
  width: 88px;
  text-align: center;
  color: var(--desktop-icon-text);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.25;
}

.desktop-icon:hover {
  text-decoration: underline;
}

.desktop-icon .icon-box {
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  background: #dcdcdc;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #000;
}

.window {
  width: min(920px, calc(100% - 140px));
  margin: 40px auto 0 140px;
  background: var(--window-bg);
  border-top: 2px solid var(--window-light);
  border-left: 2px solid var(--window-light);
  border-right: 2px solid var(--window-darker);
  border-bottom: 2px solid var(--window-darker);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

.title-bar {
  background: var(--title-bg);
  color: var(--title-text);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: bold;
}

.title-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-bar-icon {
  width: 16px;
  height: 16px;
  background: #c0c0c0;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1px solid #000;
}

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

.title-button {
  width: 18px;
  height: 18px;
  background: #c0c0c0;
  color: #000;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.window-body {
  padding: 16px;
}

.intro-box,
.section,
.link-box,
.quote-box {
  background: #d4d0c8;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  padding: 14px;
  margin-bottom: 16px;
}

.intro-box {
  background: #000;
  color: #00ff7f;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.section p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
}

.section p:last-child {
  margin-bottom: 0;
}

.quote-box {
  background: var(--quote-bg);
  font-size: 15px;
  line-height: 1.6;
  font-weight: bold;
}

.quote-box-strong {
  text-align: center;
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.card {
  background: #d4d0c8;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  padding: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.win-btn {
  display: inline-block;
  min-width: 170px;
  padding: 8px 14px;
  background: var(--button-face);
  color: #000;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  border-top: 2px solid var(--button-shadow-light);
  border-left: 2px solid var(--button-shadow-light);
  border-right: 2px solid var(--button-shadow-dark);
  border-bottom: 2px solid var(--button-shadow-dark);
  box-shadow: inset -1px -1px 0 var(--button-shadow-deep);
}

.win-btn:hover {
  text-decoration: none;
  background: #d6d6d6;
}

.win-btn:active {
  border-top: 2px solid var(--button-shadow-dark);
  border-left: 2px solid var(--button-shadow-dark);
  border-right: 2px solid var(--button-shadow-light);
  border-bottom: 2px solid var(--button-shadow-light);
  box-shadow: inset 1px 1px 0 var(--button-shadow-deep);
}

.status-bar {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-top: 2px solid #808080;
  background: #c0c0c0;
  font-size: 12px;
}

.status-field {
  flex: 1;
  padding: 4px 6px;
  background: #d4d0c8;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  z-index: 50;
}

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: #c0c0c0;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  box-shadow: inset -1px -1px 0 #000;
  font-size: 13px;
}

.start-logo {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ff0000 0 25%, #00ff00 25% 50%, #0000ff 50% 75%, #ffff00 75% 100%);
  border: 1px solid #000;
}

.taskbar-window {
  padding: 6px 10px;
  background: #d4d0c8;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  font-size: 12px;
  min-width: 180px;
}

.clock {
  margin-left: auto;
  padding: 6px 10px;
  background: #d4d0c8;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  font-size: 12px;
  min-width: 72px;
  text-align: center;
}

.blink {
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .window {
    width: calc(100% - 20px);
    margin: 100px auto 0;
  }

  .desktop-icons {
    flex-direction: row;
    top: 12px;
    left: 10px;
    right: 10px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .desktop-icon {
    width: 72px;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .boot-inner {
    min-height: 300px;
    padding: 14px;
  }

  .boot-header,
  .boot-text,
  .boot-footer {
    font-size: 13px;
  }

  .title-bar {
    font-size: 12px;
  }

  .window-body {
    padding: 12px;
  }

  .section h2 {
    font-size: 16px;
  }

  .section p,
  .card p,
  .intro-box {
    font-size: 13px;
  }

  .quote-box,
  .quote-box-strong {
    font-size: 15px;
  }

  .button-row {
    flex-direction: column;
  }

  .win-btn {
    width: 100%;
  }

  .taskbar-window {
    display: none;
  }
}
/* Desktop Atmosphäre */

.desktop::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.02), rgba(0,0,0,0.03)),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 3px
    );
  z-index: 1;
}

.desktop-icons {
  position: absolute;
  top: 18px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 3;
}

.welcome-window {
  position: absolute;
  top: 88px;
  right: 32px;
  width: min(360px, calc(100% - 40px));
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
  z-index: 10;
  animation: popupOpen 0.45s ease-out;
}

.window {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 140px));
  margin: 40px auto 0 140px;
  background: var(--window-bg);
  border-top: 2px solid var(--window-light);
  border-left: 2px solid var(--window-light);
  border-right: 2px solid var(--window-darker);
  border-bottom: 2px solid var(--window-darker);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
  animation: windowOpen 0.6s ease-out;
  transform-origin: center top;
}

/* Fenster Animation */

.window {
  animation: windowOpen 0.6s ease-out;
  transform-origin: center top;
}

@keyframes windowOpen {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(18px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Echtes Popup-Fenster */

.welcome-window {
  position: absolute;
  top: 88px;
  right: 32px;
  width: min(360px, calc(100% - 40px));
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
  z-index: 10;
  animation: popupOpen 0.45s ease-out;
}

@keyframes popupOpen {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.welcome-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.welcome-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #dcdcdc;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
}

.welcome-text strong {
  font-size: 15px;
}

.welcome-actions {
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
}

.win-btn-small {
  min-width: 90px;
}

.real-button {
  cursor: pointer;
  font-family: inherit;
}

/* Startmenü */

.start-menu {
  position: fixed;
  left: 6px;
  bottom: 46px;
  width: 280px;
  min-height: 320px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
  display: flex;
  z-index: 100;
  animation: startMenuOpen 0.18s ease-out;
}

@keyframes startMenuOpen {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.start-menu-side {
  width: 38px;
  background: linear-gradient(to top, #000080, #1084d0);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
}

.start-menu-side span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 14px;
}

.start-menu-main {
  flex: 1;
  padding: 8px 0;
}

.start-menu-item {
  display: block;
  padding: 10px 14px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
}

.start-menu-item:hover {
  background: #000080;
  color: #fff;
}

/* Taskbar Knopf als Button */

.start-button {
  cursor: pointer;
  font-family: inherit;
}

/* Desktop Icons stärker */

.desktop-icon .icon-box {
  transition: transform 0.12s ease;
}

.desktop-icon:hover .icon-box {
  transform: translateY(-1px);
}

/* Intro-Box subtiler Glow */

.intro-box {
  box-shadow: inset 0 0 12px rgba(0, 255, 120, 0.06);
}

/* Mobil */

@media (max-width: 900px) {
  .welcome-window {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-bottom: 18px;
  }

  .start-menu {
    width: calc(100% - 12px);
    min-height: auto;
  }
}