/* ================= WIR KAUFEN DEINE SCHANZE - Windows XP Trollebene ================= */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: Tahoma, "Segoe UI", Verdana, sans-serif;
  font-size: 11px;
  color: #000;
  user-select: none;
}

button { font-family: inherit; }

/* ================= GENERISCHE OVERLAYS ================= */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 5000;
}
.hidden { display: none !important; }

/* ================= BOOT-SCREEN ================= */
#boot {
  background: #000;
  color: #dcdcdc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  font-family: Tahoma, sans-serif;
}
.boot-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 40px;
}
.boot-logo { text-align: center; }
.boot-brandline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}
.boot-flag {
  display: inline-grid;
  grid-template-columns: 12px 12px;
  grid-template-rows: 12px 12px;
  gap: 1px;
  transform: skewX(-8deg);
}
.boot-flag i { display: block; }
.boot-flag i:nth-child(1) { background: #f65314; }
.boot-flag i:nth-child(2) { background: #7cbb00; }
.boot-flag i:nth-child(3) { background: #00a1f1; }
.boot-flag i:nth-child(4) { background: #ffbb00; }
.boot-ms { font-size: 22px; font-style: italic; color: #fff; }
.boot-ms sup { font-size: 11px; }
.boot-word {
  font-size: 52px;
  font-weight: bold;
  font-style: italic;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1;
}
.boot-word .xp { color: #f65314; font-size: 30px; vertical-align: super; }
.boot-edition { font-size: 13px; color: #9fb6cf; margin-top: 6px; letter-spacing: 1px; }

.boot-progress {
  width: 260px;
  height: 18px;
  border: 1px solid #6a6a6a;
  border-radius: 9px;
  background: #111;
  padding: 3px;
  overflow: hidden;
  position: relative;
}
.boot-progress-inner {
  position: absolute;
  top: 3px;
  left: -90px;
  display: flex;
  gap: 6px;
  animation: bootslide 2.2s linear infinite;
}
.boot-progress-inner span {
  width: 16px; height: 12px;
  background: #3a8ee6;
  border-radius: 2px;
  box-shadow: 0 0 6px #3a8ee6;
}
@keyframes bootslide {
  0% { left: -90px; }
  100% { left: 260px; }
}
.boot-loading { font-size: 11px; color: #8fa8c0; letter-spacing: 2px; }
.boot-footer { font-size: 11px; color: #7d7d7d; }

/* ================= LOGIN-SCREEN ================= */
#login {
  background: linear-gradient(180deg,#5a8fd6 0%, #2a5a9e 45%, #123f7a 100%);
  display: flex;
  flex-direction: column;
  color: #fff;
}
.login-topbar {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  background: linear-gradient(180deg,#1f6fd0,#0a3f96);
  border-bottom: 3px solid #ff9e2e;
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
  text-shadow: 1px 1px 2px #000;
}
.login-topbar .xpl { color: #ff9e2e; font-size: 14px; vertical-align: super; }
.login-topbar-flag {
  display: inline-grid;
  grid-template-columns: 12px 12px;
  grid-template-rows: 12px 12px;
  gap: 1px;
  transform: skewX(-8deg);
}
.login-topbar-flag i:nth-child(1) { background: #f65314; }
.login-topbar-flag i:nth-child(2) { background: #7cbb00; }
.login-topbar-flag i:nth-child(3) { background: #00a1f1; }
.login-topbar-flag i:nth-child(4) { background: #ffbb00; }

.login-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 30px;
}
.login-left { flex: 1; }
.login-brand {
  font-size: 40px;
  font-weight: bold;
  font-style: italic;
  text-shadow: 1px 1px 3px #000;
}
.login-brand .xpl { color: #ff9e2e; font-size: 22px; vertical-align: super; }
.login-hint { font-size: 15px; margin: 14px 0; }
.login-tips {
  font-size: 12px;
  color: #cfe0f5;
  max-width: 340px;
  border-left: 3px solid #ff9e2e;
  padding-left: 10px;
}
.login-divider { width: 2px; align-self: stretch; margin: 40px 0; background: rgba(255,255,255,.35); }

.login-right { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.user-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}
.user-tile:hover { background: rgba(255,255,255,.15); border-color: #ff9e2e; }
.user-avatar {
  width: 58px; height: 58px;
  font-size: 38px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.5);
}
.user-name { font-size: 18px; font-weight: bold; text-shadow: 1px 1px 2px #000; }
.user-sub { font-size: 12px; color: #dbe8fa; }
.user-tile.locked { opacity: .6; }
.user-tile.locked:hover { border-color: #ff4444; }
.user-tile.shake { animation: shake .4s; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.login-footbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: linear-gradient(180deg,#0a3f96,#062a68);
  border-top: 1px solid #ff9e2e;
  font-size: 12px;
}
.login-foot-right { color: #bcd0ea; }

/* ================= WELCOME-FLASH ================= */
#welcome {
  background: linear-gradient(180deg,#2a5a9e,#123f7a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-inner { text-align: center; color: #fff; animation: wfade 1.6s ease; }
.welcome-avatar {
  width: 110px; height: 110px;
  margin: 0 auto 16px;
  font-size: 70px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 0 5px rgba(255,255,255,.4);
}
.welcome-text { font-size: 44px; font-style: italic; text-shadow: 1px 1px 4px #000; }
.welcome-user { font-size: 18px; color: #ffd9a0; margin-top: 6px; }
@keyframes wfade { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

/* ================= DESKTOP ================= */
#desktop {
  position: absolute;
  inset: 0;
  bottom: 30px;
  overflow: hidden;
}

#bliss {
  position: absolute;
  inset: 0;
  transition: background .4s;
}
#bliss.theme-bliss {
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(#5aa0e0 0%, #7bb7ec 25%, #a9d3f5 45%, #cfe9fb 60%, #e8f6d0 75%, #9fd35a 85%, #5c9a24 100%);
}
#bliss.theme-bliss::after {
  content: ""; position: absolute; left: 0; right: -10%; bottom: -20%; height: 90%;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, #4c9a1e, #2f6a0f 70%, transparent 72%);
  opacity: .85;
}
#bliss.theme-classic { background: #3a6ea5; }
#bliss.theme-classic::after { content: none; }
#bliss.theme-haider {
  background: radial-gradient(circle at 30% 20%, #ff5a5a, #800000 70%, #2a0000 100%);
}
#bliss.theme-haider::after { content: none; }
#bliss.theme-nacht {
  background: linear-gradient(#02050f 0%, #0a1330 60%, #000 100%);
}
#bliss.theme-nacht::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 40px 40px; opacity: .5;
}
#bliss.theme-kot {
  background: radial-gradient(ellipse at 50% 100%, #d8c38a, #b39d5f 60%, #7d6a35 100%);
}
#bliss.theme-kot::after { content: none; }

/* Icons */
.desktop-icons {
  position: absolute;
  top: 8px; left: 8px; right: 8px;
  height: calc(100% - 16px);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px 4px;
  z-index: 1;
  pointer-events: none;
}
.dicon { width: 88px; text-align: center; cursor: pointer; padding: 3px; pointer-events: auto; }
.dicon-img { font-size: 34px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.dicon-label {
  margin-top: 3px; color: #fff; font-size: 11px; line-height: 1.2;
  text-shadow: 1px 1px 2px #000, 0 0 4px #000;
}
.dicon:hover .dicon-label { background: #316ac5; }
.dicon:active .dicon-img { transform: scale(.92); }

/* ================= FENSTER ================= */
.xpwindow {
  position: absolute;
  z-index: 5;
  background: #ece9d8;
  border: 1px solid #0a246a;
  border-top: none;
  border-radius: 8px 8px 0 0;
  box-shadow: 2px 2px 12px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  min-width: 220px;
  min-height: 120px;
}
.xpwindow.active { z-index: 50; }

.titlebar {
  height: 26px; display: flex; align-items: center; gap: 4px;
  padding: 0 3px 0 4px;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #06f 88%, #0055ee 93%, #003bd0 95%, #0831d9 100%);
  border-radius: 7px 7px 0 0; color: #fff; font-weight: bold; cursor: default;
}
.titlebar.red { background: linear-gradient(180deg,#ff8a8a,#d41414 40%,#b00 100%); }
.titlebar.green { background: linear-gradient(180deg,#8fe08f,#1c8a1c 40%,#0f6b0f 100%); }
.tb-icon { font-size: 13px; }
.tb-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 1px rgba(0,0,0,.6); }
.tb-buttons { display: flex; gap: 2px; }
.tb-btn {
  width: 21px; height: 20px; border: 1px solid #fff; border-radius: 3px;
  background: linear-gradient(180deg,#5a91f7,#1c50c9); color: #fff; font-weight: bold;
  font-size: 11px; line-height: 1; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.tb-btn:hover { filter: brightness(1.2); }
.tb-close { background: linear-gradient(180deg,#f7a05a,#c94f1c); }

.menubar { display: flex; gap: 2px; padding: 2px 4px; background: #ece9d8; border-bottom: 1px solid #d4d0c8; }
.menubar span { padding: 2px 7px; cursor: default; }
.menubar span:hover, .menubar span.open { background: #316ac5; color: #fff; }
.menu-dropdown {
  position: absolute; z-index: 4000; background: #fff; border: 1px solid #aca899;
  box-shadow: 2px 2px 6px rgba(0,0,0,.35); padding: 2px; min-width: 170px;
}
.menu-dropdown ul { list-style: none; margin: 0; padding: 0; }
.menu-dropdown li { padding: 4px 22px 4px 26px; font-size: 12px; cursor: pointer; position: relative; }
.menu-dropdown li:hover { background: #316ac5; color: #fff; }
.menu-dropdown li.msep { height: 1px; padding: 0; margin: 3px 4px; background: #c0c8d8; pointer-events: none; }

.toolbar, .addressbar, .paint-tools, .game-hud {
  display: flex; align-items: center; gap: 4px; padding: 3px 5px;
  background: #ece9d8; border-bottom: 1px solid #d4d0c8;
}
.addressbar span { padding-right: 6px; }
.addressbar input { flex: 1; font-family: Tahoma, sans-serif; font-size: 11px; padding: 2px 4px; border: 1px solid #7f9db9; }

.xp-btn {
  border: 1px solid #003c74; border-radius: 3px;
  background: linear-gradient(180deg,#fff 0%,#f2f2ea 45%,#e2e0d2 55%,#d7d4c4 100%);
  padding: 3px 10px; cursor: pointer; font-size: 11px; color: #000;
  box-shadow: inset 0 1px 0 #fff;
}
.xp-btn:hover { border-color: #e8a400; background: linear-gradient(180deg,#fff,#ffe6a3 55%,#ffcf5e 100%); }
.xp-btn:active { box-shadow: inset 1px 1px 3px rgba(0,0,0,.4); }
.xp-btn.small { padding: 2px 7px; font-size: 10px; }
.xp-btn.big { padding: 6px 16px; font-size: 13px; font-weight: bold; }
.xp-btn.blue { color: #fff; background: linear-gradient(180deg,#5a91f7,#1c50c9); border-color: #003c74; }

.window-body { flex: 1; overflow: auto; border-top: 1px solid #fff; min-height: 0; }
.window-body.white { background: #fff; padding: 6px; }
.scrollable { overflow: auto; }
.window-body.dark { background: #17331a; }

.statusbar {
  height: 20px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px; background: #ece9d8; border-top: 1px solid #fff; font-size: 10px; color: #333;
}
.statusbar .status-right { color: #555; }
.tiny { font-size: 10px; color: #555; }
.microtext { font-size: 9px; color: #999; }

.resize-grip {
  position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
  cursor: nwse-resize; z-index: 2;
  background: repeating-linear-gradient(135deg, transparent 0 2px, #9a988c 2px 3px);
}

/* ================= WEBSEITE ================= */
.webpage { font-family: "Comic Sans MS", "Comic Sans", cursive; padding: 0 0 20px; background: #ffffcc; min-height: 100%; }
.top-banner { background: linear-gradient(#ffe600,#ff8a00); color: #c00; font-weight: bold; padding: 4px 0; border-bottom: 3px double #c00; font-size: 13px; }
.webpage h1 { text-align: center; color: #ff0000; font-size: 34px; margin: 12px 0 0; text-shadow: 2px 2px 0 #ffff00, 4px 4px 0 #000; }
.webpage h2.subtitle { text-align: center; color: #0000cc; font-size: 14px; margin: 4px 0 10px; font-style: italic; }
.hr { height: 6px; margin: 0 20px 12px; background: repeating-linear-gradient(90deg,#f00 0 20px,#ff0 20px 40px,#00f 40px 60px); }
.promise-table { width: 90%; margin: 0 auto 12px; border-collapse: collapse; text-align: center; font-size: 13px; }
.promise-table td { border: 2px ridge #808080; padding: 6px; background: #fffde7; }
.promise-table tr:first-child td { font-size: 30px; }
.promise-table .promise-head td { color: #c00; font-weight: bold; }
.note-box { margin: 10px 24px; padding: 8px 10px; border: 3px dashed #f00; background: #fff0f0; color: #800; font-size: 12px; }
.formbox { margin: 14px 24px; border: 2px groove #7f9db9; background: #eef7ff; padding: 10px; }
.formbox legend { font-weight: bold; color: #003399; font-size: 13px; }
.form-table { font-size: 12px; }
.form-table td { padding: 3px 6px; vertical-align: top; }
.form-table input[type=text], .form-table textarea, .form-table select {
  font-family: Tahoma, sans-serif; font-size: 11px; border: 1px solid #7f9db9; padding: 2px 4px; width: 260px;
}
.counter-box { margin: 14px auto; width: 320px; text-align: center; border: 2px outset #999; background: #000; padding: 8px; }
.counter-label { color: #0f0; font-size: 12px; margin-bottom: 4px; }
.counter-odometer { display: flex; justify-content: center; gap: 2px; }
.counter-odometer span { display: inline-block; width: 26px; padding: 4px 0; background: #222; color: #0f0; font-family: "Courier New", monospace; font-size: 22px; font-weight: bold; border: 1px solid #555; }
.counter-note { color: #0f0; font-size: 10px; margin-top: 4px; }
.blink-red { text-align: center; color: #f00; font-size: 18px; animation: blink 1s steps(1) infinite; }
.testi { margin: 8px 24px; padding: 8px; background: #fff; border: 2px inset #ccc; font-size: 12px; }
.testi:nth-child(odd) { background: #f0ffe0; }
.testi-name { color: #003399; font-weight: bold; }
.quote { font-style: italic; }
.fake-ads { display: flex; gap: 12px; justify-content: center; margin: 16px 12px; flex-wrap: wrap; }
.ad { width: 180px; padding: 10px 6px; text-align: center; font-size: 12px; border: 3px outset #888; background: linear-gradient(#fff,#ffe); cursor: pointer; }
.ad:hover { background: #ffffcc; border-style: inset; }
.ad-blink { animation: blink 1.2s steps(1) infinite; }
.ad-spin { animation: spin 6s linear infinite; }
.construction { text-align: center; font-weight: bold; color: #c60; background: repeating-linear-gradient(45deg,#ffe600 0 12px,#000 12px 24px); -webkit-text-stroke: 1px #fff; padding: 10px; font-size: 15px; margin: 12px 0; }
.construction-emoji { animation: blink .7s steps(1) infinite; }
.flags { text-align: center; font-size: 11px; color: #333; margin: 10px; }
.flags img { vertical-align: middle; margin-right: 4px; }
.hit-counter { text-align: center; font-family: "Courier New", monospace; font-weight: bold; font-size: 14px; color: #800080; margin: 10px; }
.hit-counter span { background: #000; color: #0f0; padding: 2px 6px; letter-spacing: 2px; }
.footer-links { text-align: center; font-size: 11px; margin: 10px; }
.footer-links a { color: #0000ee; }
.copyright { text-align: center; font-size: 9px; color: #777; }

/* ================= LISTEN / EXPLORER ================= */
.file-list { list-style: none; margin: 0; padding: 4px; }
.file-list li { padding: 3px 6px; cursor: pointer; border-bottom: 1px dotted #eee; }
.file-list li:hover { background: #316ac5; color: #fff; }
.file-list li:hover .tiny { color: #ddd; }
.drive { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.drive-icon { font-size: 34px; }
.drive-bar { width: 240px; height: 14px; border: 1px solid #7f9db9; background: #fff; margin: 3px 0; }
.drive-bar span { display: block; height: 100%; background: linear-gradient(#7be, #05a); }

/* ================= NOTEPAD ================= */
.notepad-area {
  width: 100%; height: 100%; border: none; resize: none; outline: none;
  font-family: "Lucida Console", "Courier New", monospace; font-size: 12px; padding: 6px;
  background: #fff; color: #000;
}

/* ================= PAINT ================= */
.paint-body { display: flex; overflow: hidden; }
#paint-canvas { background: #fff; cursor: crosshair; touch-action: none; }
.paint-label { font-size: 11px; margin-left: 6px; }
.swatch { width: 20px; height: 20px; border: 1px solid #333; cursor: pointer; border-radius: 2px; }
.swatch.active { outline: 2px solid #000; outline-offset: 1px; }

/* ================= GAME ================= */
.game-hud { justify-content: space-between; font-size: 12px; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 26px 20px; }
.hole {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #3a2a12, #1a1206 70%);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  cursor: pointer; border: 3px solid #2a1e0a; user-select: none;
}
.hole span { transition: transform .08s; }
.hole.up span { transform: scale(1.25); }
.game-msg { color: #ffdca8; text-align: center; font-size: 13px; padding: 0 16px 16px; }

/* ================= CMD ================= */
.cmd-body { background: #000; color: #c0c0c0; font-family: "Lucida Console","Courier New",monospace; font-size: 12px; padding: 6px; display: flex; flex-direction: column; }
.cmd-output { flex: 1; overflow: auto; white-space: pre-wrap; line-height: 1.35; }
.cmd-line { display: flex; gap: 4px; align-items: center; }
.cmd-prompt { color: #c0c0c0; }
.cmd-line input { flex: 1; background: #000; border: none; outline: none; color: #c0c0c0; font-family: inherit; font-size: 12px; }

/* ================= SCANNER ================= */
.scan-bar { height: 20px; border: 1px solid #7f9db9; background: #eee; margin: 6px 4px; }
.scan-bar span { display: block; height: 100%; width: 0; background: linear-gradient(#8ce, #159); transition: width .2s; }
.scan-log { margin: 6px 4px; padding: 6px; background: #001100; color: #0f0; font-family: "Courier New", monospace; font-size: 11px; white-space: pre-wrap; min-height: 90px; }

/* ================= TABS / DISPLAY ================= */
.tabs { display: flex; gap: 2px; padding: 4px 6px 0; background: #ece9d8; }
.tab { padding: 3px 12px 4px; border: 1px solid #aca899; border-bottom: none; border-radius: 4px 4px 0 0; background: #d6d2c2; font-size: 11px; cursor: pointer; }
.tab.active { background: #fff; margin-bottom: -1px; font-weight: bold; }
.theme-list { list-style: none; margin: 6px 4px; padding: 0; border: 1px solid #7f9db9; }
.theme-list li { padding: 6px 8px; cursor: pointer; border-bottom: 1px solid #eee; font-size: 12px; }
.theme-list li:hover { background: #316ac5; color: #fff; }
.theme-list li.active { background: #b6d4f7; font-weight: bold; }

/* ================= SYSTEMSTEUERUNG ================= */
.cpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
.cpl { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #d0d0d0; border-radius: 4px; cursor: pointer; font-size: 12px; }
.cpl span { font-size: 26px; }
.cpl:hover { background: #e8f0fd; border-color: #316ac5; }

/* ================= UHR / KALENDER ================= */
.clock-body { text-align: center; padding: 10px; }
.big-clock { font-size: 34px; font-weight: bold; font-family: "Lucida Console", monospace; color: #1a3a8a; }
.big-date { font-size: 13px; color: #444; margin-bottom: 10px; }
.cal-header { display: flex; justify-content: space-between; align-items: center; margin: 6px 8px; font-weight: bold; font-size: 12px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 0 8px; }
.calendar .cal-cell { padding: 4px 0; font-size: 11px; border: 1px solid #eee; }
.calendar .cal-head { font-weight: bold; color: #a00; border: none; }
.calendar .cal-today { background: #316ac5; color: #fff; font-weight: bold; }
.calendar .cal-empty { border: none; }

/* ================= MEDDL PLAYER ================= */
.viz { display: flex; align-items: flex-end; gap: 3px; height: 46px; margin: 8px 4px; }
.viz span { flex: 1; background: linear-gradient(#0f0,#080); width: 8px; height: 20%; animation: bounce .8s ease-in-out infinite alternate; }
.viz span:nth-child(2){animation-delay:.1s}.viz span:nth-child(3){animation-delay:.2s}
.viz span:nth-child(4){animation-delay:.3s}.viz span:nth-child(5){animation-delay:.15s}
.viz span:nth-child(6){animation-delay:.25s}.viz span:nth-child(7){animation-delay:.05s}
.viz span:nth-child(8){animation-delay:.35s}.viz span:nth-child(9){animation-delay:.18s}
.viz span:nth-child(10){animation-delay:.28s}

/* ================= CLIPPY ================= */
.clippy { z-index: 60; }
.clippy-body { display: flex; gap: 8px; padding: 8px; align-items: flex-start; }
.clippy-avatar { font-size: 40px; }
.clippy-bubble { background: #fffbe0; border: 1px solid #b8b060; border-radius: 6px; padding: 8px; font-size: 11px; flex: 1; }
.clippy-actions { display: flex; flex-direction: column; gap: 4px; }

/* ================= POPUP ================= */
.popup { z-index: 70; }
.popup-body { padding: 10px; }
.popup-body u { cursor: pointer; color: #00c; }

/* ================= AUSFÜHREN ================= */
.run-row { display: flex; align-items: center; gap: 6px; padding: 6px; }
.run-row label { font-size: 12px; }
.run-row input { flex: 1; border: 1px solid #7f9db9; padding: 3px 5px; font-size: 12px; font-family: Tahoma, sans-serif; }
.run-buttons { display: flex; justify-content: flex-end; gap: 6px; padding: 6px; }

/* ================= KONTEXTMENÜ ================= */
#contextmenu {
  position: absolute; z-index: 4500; background: #fff; border: 1px solid #aca899;
  box-shadow: 3px 3px 8px rgba(0,0,0,.4); padding: 2px; min-width: 210px;
}
#contextmenu ul { list-style: none; margin: 0; padding: 0; }
#contextmenu li { padding: 5px 20px 5px 24px; font-size: 12px; cursor: pointer; }
#contextmenu li:hover { background: #316ac5; color: #fff; }
#contextmenu li.csep { height: 1px; padding: 0; margin: 3px 4px; background: #c0c8d8; pointer-events: none; }

/* ================= TASKBAR ================= */
#taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  display: flex; align-items: center; gap: 4px; padding: 0 4px 0 0;
  background: linear-gradient(180deg,#2666d9 0%,#3f8cf3 8%,#2666d9 40%,#1e5bc4 88%,#13408f 94%,#1e5bc4 100%);
  border-top: 1px solid #0a3a9e; z-index: 100;
}
#start-btn {
  height: 26px; margin: 2px 6px 2px 0; padding: 0 18px 0 8px;
  border: none; border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg,#7ee06a 0%,#3aa81c 45%,#1f8a10 55%,#0f6e07 100%);
  color: #fff; font-weight: bold; font-style: italic; font-size: 15px;
  text-shadow: 1px 1px 1px #063; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
#start-btn:hover { filter: brightness(1.12); }
#start-btn:active, #start-btn.open { filter: brightness(.85); }
.start-logo { font-size: 14px; margin-right: 4px; font-style: normal; }
#taskbar-items { display: flex; gap: 4px; flex: 1; overflow: hidden; }
.task-item {
  max-width: 160px; height: 24px; padding: 0 8px; display: flex; align-items: center; gap: 4px;
  border-radius: 3px; background: linear-gradient(180deg,#4a8ce8,#1f5cc0); color: #fff;
  border: 1px solid #0a3a9e; font-size: 11px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.task-item.active { background: linear-gradient(180deg,#1f5cc0,#4a8ce8); box-shadow: inset 1px 1px 3px rgba(0,0,0,.5); }
#tray {
  display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px;
  background: linear-gradient(180deg,#1e9ae8,#12c1e8 40%,#0f8fd0); border-left: 1px solid #1050b0;
  color: #fff; font-size: 11px;
}
.tray-ico { cursor: pointer; }
#clock { cursor: pointer; }

/* ================= STARTMENÜ ================= */
#startmenu {
  position: absolute; left: 0; bottom: 30px; width: 400px; background: #fff;
  border: 1px solid #0a246a; border-bottom: none; border-radius: 8px 8px 0 0;
  z-index: 200; box-shadow: 3px -3px 14px rgba(0,0,0,.5); overflow: hidden;
}
.start-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: linear-gradient(180deg,#1f6fe0,#0a3a9e); color: #fff; font-weight: bold; font-size: 16px; }
.start-head small { font-weight: normal; font-size: 11px; }
.start-avatar { width: 42px; height: 42px; font-size: 28px; background: #fff; border: 2px solid #fff; border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.start-body { display: flex; padding: 6px; }
.start-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.start-list.right { background: #d3e5fa; border-radius: 0 4px 4px 0; }
.start-list li { padding: 6px 10px; font-size: 12px; cursor: pointer; border-radius: 3px; white-space: nowrap; }
.start-list li:hover { background: #316ac5; color: #fff; }
.start-list li.sep { height: 1px; margin: 4px 6px; padding: 0; background: #c0c8d8; pointer-events: none; }
.start-foot { display: flex; justify-content: flex-end; gap: 16px; padding: 6px 12px; background: linear-gradient(180deg,#3f8cf3,#1f5cc0); color: #fff; font-size: 12px; }
.start-foot span { cursor: pointer; padding: 2px 6px; border-radius: 3px; }
.start-foot span:hover { background: rgba(255,255,255,.25); }

/* ================= HERUNTERFAHREN-DIALOG ================= */
#shutdown-dialog {
  position: absolute; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
}
.sd-inner { width: 420px; background: #ece9d8; border: 1px solid #0a246a; border-radius: 8px 8px 0 0; box-shadow: 0 4px 20px rgba(0,0,0,.6); }
.sd-head {
  height: 30px; display: flex; align-items: center; padding: 0 10px; color: #fff; font-weight: bold;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg,#0997ff,#0053ee 40%,#06f 88%,#003bd0 100%);
}
.sd-body { padding: 16px; text-align: center; }
.sd-options { display: flex; justify-content: center; gap: 22px; margin-top: 16px; }
.sd-options button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 90px;
  padding: 12px; border: 1px solid #7a9cc4; border-radius: 6px; cursor: pointer;
  background: linear-gradient(#fff,#dfe8f5); font-size: 12px;
}
.sd-options button span { font-size: 28px; }
.sd-options button:hover { background: linear-gradient(#fff,#bcd6f7); border-color: #e8a400; }
.sd-foot { padding: 10px 16px; text-align: right; border-top: 1px solid #d0ccc0; }

/* ================= BSOD ================= */
.bsod {
  position: absolute; inset: 0 0 30px 0; z-index: 9000; background: #0000aa; color: #fff;
  font-family: "Lucida Console", "Courier New", monospace; font-size: 14px;
  padding: 60px 80px; line-height: 1.6; overflow: auto;
}
.bsod-title { background: #ccc; color: #0000aa; display: inline-block; padding: 0 8px; font-weight: bold; margin: 12px 0; }
.bsod .xp-btn { font-family: Tahoma, sans-serif; }

/* ================= SHUTDOWN-OVERLAY ================= */
#shutdown {
  position: absolute; inset: 0; z-index: 10000;
  background: linear-gradient(180deg,#3a6ea5,#1c3f66); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: 24px; text-align: center;
}
#shutdown .tiny { font-size: 13px; }

/* ================= ANIMATIONEN ================= */
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes bounce { 0% { height: 15%; } 100% { height: 100%; } }

/* ================= RESPONSIVE ================= */
@media (max-width: 700px) {
  .xpwindow { max-width: calc(100vw - 12px); }
  .webpage h1 { font-size: 22px; }
  .start-body { flex-direction: column; }
  .promise-table { font-size: 10px; }
  .login-body { flex-direction: column; padding: 20px; gap: 16px; }
  .login-divider { display: none; }
}

/* =====================================================================
   ============ MEDDL-ERWEITERUNG 1337 (mehr unnötiger Kram) ===========
   ===================================================================== */

/* ---- Generische kleine Helfer ---- */
.gen-body { padding: 10px; }
.gen-row { display: flex; gap: 6px; align-items: center; margin: 5px 0; flex-wrap: wrap; }
.gen-row label { min-width: 130px; font-size: 11px; }
.gen-row input[type=text], .gen-row select, .gen-row input[type=number] {
  border: 1px solid #7f9db9; padding: 3px 5px; font-size: 11px; font-family: Tahoma, sans-serif; flex: 1; min-width: 120px;
}
.gen-output {
  margin-top: 8px; padding: 8px; min-height: 90px; background: #001100; color: #0f0;
  font-family: "Lucida Console","Courier New",monospace; font-size: 12px; white-space: pre-wrap;
  border: 1px solid #063; line-height: 1.4;
}
.gen-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* ---- Lord-Sprüche-Generator ---- */
.spruch-quote {
  font-family: "Comic Sans MS", cursive; font-size: 17px; color: #c00; text-align: center;
  padding: 16px; background: #ffffcc; border: 3px dashed #ff8a00; min-height: 70px;
  display: flex; align-items: center; justify-content: center;
}
.spruch-sub { text-align: center; font-size: 10px; color: #777; margin-top: 6px; }

/* ---- Taschenrechner ---- */
.calc-display {
  background: #dceec0; border: 2px inset #888; font-family: "Lucida Console", monospace;
  font-size: 20px; text-align: right; padding: 6px 8px; margin-bottom: 8px; overflow: hidden;
  color: #123; min-height: 34px;
}
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.calc-grid button {
  padding: 10px 0; font-size: 14px; font-weight: bold; cursor: pointer;
  border: 1px solid #7a9cc4; border-radius: 3px; background: linear-gradient(#fff,#dfe8f5);
}
.calc-grid button:hover { background: linear-gradient(#fff,#bcd6f7); }
.calc-grid button.op { background: linear-gradient(#ffe9a8,#ffcf5e); }
.calc-grid button.eq { background: linear-gradient(#a8e6a8,#5fc05f); color: #063; }
.calc-grid button.wide { grid-column: span 2; }

/* ---- Währungsrechner ---- */
.conv-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.conv-table td { border-bottom: 1px solid #ddd; padding: 5px 4px; }
.conv-table td:last-child { text-align: right; font-family: "Lucida Console", monospace; color: #063; }
.conv-note { font-size: 10px; color: #999; margin-top: 8px; }

/* ---- Taskmanager ---- */
.tm-body { display: flex; flex-direction: column; height: 100%; }
.tm-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.tm-table th { text-align: left; background: #d6d2c2; border: 1px solid #aca899; padding: 3px 5px; }
.tm-table td { border-bottom: 1px solid #eee; padding: 3px 5px; }
.tm-table tr { cursor: pointer; }
.tm-table tr.sel { background: #316ac5; color: #fff; }
.tm-cpu { height: 42px; background: #000; margin: 6px; display: flex; align-items: flex-end; gap: 2px; padding: 3px; }
.tm-cpu i { flex: 1; background: linear-gradient(#0f0,#080); height: 5%; }
.tm-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px; }

/* ---- Bingo ---- */
.bingo-head { text-align: center; font-family: "Comic Sans MS", cursive; color: #c00; padding: 6px; }
.bingo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 10px; }
.bingo-cell {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 4px; font-size: 9px; cursor: pointer;
  border: 2px solid #888; border-radius: 4px; background: #fffbe0; line-height: 1.1;
}
.bingo-cell:hover { background: #fff6b0; }
.bingo-cell.mark { background: #316ac5; color: #fff; text-decoration: line-through; }

/* ---- Meme-Generator ---- */
.meme-stage { display: flex; justify-content: center; padding: 8px; background: #3a3a3a; }
.meme-box {
  position: relative; width: 340px; height: 260px; background: #ffd700; overflow: hidden;
  display: flex; align-items: center; justify-content: center; border: 2px solid #000;
}
.meme-emoji { font-size: 110px; line-height: 1; }
.meme-caption {
  position: absolute; left: 0; right: 0; text-align: center; color: #fff;
  font-family: Impact, "Arial Black", sans-serif; text-transform: uppercase; font-size: 24px;
  -webkit-text-stroke: 1px #000; text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
  pointer-events: none; padding: 0 6px; word-wrap: break-word;
}
.meme-top { top: 6px; }
.meme-bottom { bottom: 6px; }

/* ---- Steckbrief/Ausweis Formular ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }

/* ---- Balloon-Tooltip (XP Infobereich-Sprechblase) ---- */
#balloons { position: absolute; right: 6px; bottom: 34px; z-index: 300; display: flex; flex-direction: column-reverse; gap: 6px; }
.balloon {
  width: 260px; background: #ffffe1; border: 1px solid #000; border-radius: 6px;
  padding: 8px 10px 10px; font-size: 11px; color: #000; position: relative;
  box-shadow: 2px 2px 8px rgba(0,0,0,.4); animation: balloonIn .35s ease;
}
.balloon .b-title { font-weight: bold; display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.balloon .b-close { position: absolute; top: 4px; right: 6px; cursor: pointer; font-weight: bold; color: #666; }
.balloon::after {
  content: ""; position: absolute; bottom: -9px; right: 24px;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid #000;
}
@keyframes balloonIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Screensaver ---- */
#screensaver {
  position: absolute; inset: 0; z-index: 6000; background: #000; overflow: hidden; cursor: none;
}
#screensaver .ss-text {
  position: absolute; top: 20%; left: 20%; font-family: "Comic Sans MS", cursive;
  font-size: 64px; color: #ffd700; text-shadow: 0 0 20px #f00, 0 0 40px #f00; white-space: nowrap;
  animation: ssbounceX 7s linear infinite alternate, ssbounceY 5s linear infinite alternate;
}
#screensaver .ss-hint { position: absolute; bottom: 16px; width: 100%; text-align: center; color: #555; font-size: 12px; }
@keyframes ssbounceX { 0% { left: 2%; } 100% { left: 62%; } }
@keyframes ssbounceY { 0% { top: 5%; } 100% { top: 74%; } }

/* ---- Meddl-Ticker / Zitat / Meme des Tages ---- */
.ticker {
  display: flex; align-items: center; background: #000; color: #0f0; font-family: "Lucida Console", monospace;
  font-size: 12px; border-top: 2px solid #f00; border-bottom: 2px solid #f00; overflow: hidden;
}
.ticker-label { background: #f00; color: #fff; font-weight: bold; padding: 3px 8px; white-space: nowrap; }
.ticker-text { white-space: nowrap; padding-left: 100%; animation: tickerScroll 22s linear infinite; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.meme-daily { display: flex; gap: 12px; margin: 12px 24px; align-items: center; }
.meme-daily .meme-box { width: 220px; height: 170px; }
.meme-daily .meme-emoji { font-size: 74px; }
.meme-daily .meme-caption { font-size: 16px; }

.zitat-box {
  margin: 12px 24px; padding: 12px; background: #fff7cc; border: 2px outset #c60;
  font-family: "Comic Sans MS", cursive;
}
.zitat-box b { color: #c00; }

/* ---- Fehler-Dialog ---- */
.err-body { display: flex; gap: 10px; padding: 12px; align-items: flex-start; }
.err-icon { font-size: 34px; }

/* ---- Nachzügler / Feinschliff 1337 ---- */
.bingo-cell.free { background: #ffd700; font-weight: bold; border-color: #c60; }
.bingo-cell.mark { cursor: default; }
.balloon .b-body { line-height: 1.35; }
.err-text { font-size: 12px; line-height: 1.5; flex: 1; }
.xp-btn.small { font-size: 11px; padding: 2px 8px; }
.xp-btn.big { font-size: 13px; font-weight: bold; padding: 6px 14px; }
.spruch-quote { transition: opacity .13s ease; }
.spruch-quote.fade { opacity: 0.2; }
.gen-row input[type=color] { border: 1px solid #7f9db9; height: 22px; padding: 0; flex: 0 0 60px; }

