/* Jahrgang 2001: Windows-XP-Desktop auf XP.css.
   Laufschrift, Zähler, Baustelle und 88x31-Buttons kommen aus ../css/common.css. */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 44px;              /* Platz für die Taskleiste */
  color: #000;
  background: #3d84dc;
  -webkit-font-smoothing: antialiased;
}
/* "Bliss" aus reinem CSS: Himmel + zwei grüne Hügel, bleibt beim Scrollen stehen */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 150% 55% at 30% 118%, #3f8f22 0 57%, transparent 58%),
    radial-gradient(ellipse 120% 45% at 90% 120%, #5aa83a 0 55%, transparent 56%),
    linear-gradient(180deg, #1f57c4 0%, #3d84dc 40%, #8fc3f0 72%, #d4ebf9 100%);
}

a { color: #0000ff; }
a:visited { color: #800080; }
a:hover { color: #ff6600; }

/* ---------- Desktop-Layout ---------- */

.desktop {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 24px;
  box-sizing: border-box;
}

.icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 6px;
}
.icon {
  width: 84px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-family: Tahoma, "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  text-shadow: 1px 1px 2px #000, 0 0 3px rgba(0, 0, 0, .6);
}
.icon svg { width: 36px; height: 36px; display: block; margin: 0 auto 4px; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, .4)); }
.icon span { padding: 1px 3px; border-radius: 2px; }
.icon:hover span,
.icon:focus-visible span { background: rgba(11, 54, 159, .65); outline: 1px dotted #fff; }
.icon.static { cursor: default; }
.icon.static:hover span { background: none; outline: none; }

.windows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.win-wide { grid-column: 1 / -1; }
.window { min-width: 0; }
.windows > .window:nth-child(3) { margin-top: 28px; }   /* leichte Kaskade */

/* Fenster-Chrome */
h2.title-bar-text {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  margin: 0 24px 0 0;
  padding-left: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-body { line-height: 1.5; }
.window-body p { margin: 0 0 8px; }
.window-body > :last-child { margin-bottom: 0; }
.menubar {
  list-style: none;
  margin: 0 3px;
  padding: 3px 6px 2px;
  display: flex;
  gap: 12px;
  font-size: 11px;
  background: #ece9d8;
  border-bottom: 1px solid #d8d2bd;
}
.menubar li { cursor: default; }

/* angesprungenes Fenster ist aktiv, alle anderen bekommen die blasse XP-Titelleiste */
body:has(.window:target) .window:not(:target) > .title-bar {
  background: linear-gradient(180deg, #9db9f3, #7a99e8 8%, #7695e6 40%, #7a9ae9 88%, #6b8de3);
}
.window:target { scroll-margin-top: 12px; }

/* ---------- Willkommen (Editor) ---------- */

.marquee.xp {
  background: linear-gradient(180deg, #3b8de8, #1b5fc4);
  color: #fff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: bold;
  font-size: 12px;
  border: 1px solid #1b4ea0;
  box-shadow: none;
}
.window-body .notepad {
  margin: 0 0 10px;
  padding: 8px;
  background: #fff;
  color: #000;
  border: 1px solid #7f9db9;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- Über mich ---------- */

.profile { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; }
.photo {
  flex: 0 0 auto;
  width: 80px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #7f9db9;
}
.photo svg { width: 64px; height: 80px; }
.props { border-collapse: collapse; }
.props th { text-align: left; padding: 1px 8px 1px 0; vertical-align: top; }
.props td { padding: 1px 0; }

.buttons { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }

/* Links, die wie XP-Buttons aussehen (XP.css stylt nur <button>) */
.btn {
  box-sizing: border-box;
  display: inline-block;
  min-width: 75px;
  min-height: 23px;
  line-height: 21px;
  padding: 0 12px;
  border: 1px solid #003c74;
  border-radius: 3px;
  background: linear-gradient(180deg, #fff, #ecebe5 86%, #d8d0c4);
  color: #000;
  text-align: center;
  text-decoration: none;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
}
.btn:hover {
  color: #000;
  box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a;
}
.btn:active {
  background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #e5e5de 94%, #f2f2f1);
  box-shadow: none;
}

/* ---------- Projekte (Explorer mit Aufgabenbereich) ---------- */

.address { margin: 0 0 8px; }
.address input { flex: 1; min-width: 0; }
.explorer { display: flex; border: 1px solid #7f9db9; background: #fff; }
.taskpane {
  flex: 0 0 170px;
  padding: 12px 8px;
  background: linear-gradient(180deg, #7ba2e7, #6375d6);
}
.tp-box { margin-bottom: 12px; border-radius: 4px 4px 0 0; overflow: hidden; }
.tp-box:last-child { margin-bottom: 0; }
.tp-head {
  padding: 4px 10px;
  background: linear-gradient(90deg, #fff, #c7d3fb);
  color: #0c327d;
  font-weight: bold;
  font-size: 11px;
}
.tp-body { padding: 8px 10px; background: #d6dff7; font-size: 11px; line-height: 1.6; }
.tp-body a { display: block; color: #215dc6; text-decoration: none; }
.tp-body a:hover { color: #428eff; text-decoration: underline; }
.explorer .tree-view { flex: 1; min-width: 0; min-height: 160px; border: none; }
.tree-view li { line-height: 1.5; }

/* ---------- Links ---------- */

.linklist { margin: 0; padding-left: 18px; }
.webring { text-align: center; font-weight: bold; }
.small { font-size: 10px; color: #444; }

/* ---------- Gästebuch ---------- */

.entries { min-height: 60px; margin: 0 0 10px; padding: 10px; background: #fff; border: 1px solid #7f9db9; }
.entries .empty { margin: 0; color: #666; font-style: italic; }

/* ---------- Sprechblase aus dem Infobereich ---------- */

.balloon {
  position: fixed;
  right: 14px;
  bottom: 44px;
  z-index: 11;
  width: 250px;
  box-sizing: border-box;
  padding: 8px 26px 10px 12px;
  background: #ffffe1;
  color: #000;
  border: 1px solid #000;
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, .35);
  font-family: Tahoma, "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
}
.balloon::after {
  content: "";
  position: absolute;
  right: 40px;
  bottom: -15px;
  border: 8px solid transparent;
  border-top-color: #000;
}
.balloon::before {
  content: "";
  position: absolute;
  right: 41px;
  bottom: -12px;
  z-index: 1;
  border: 7px solid transparent;
  border-top-color: #ffffe1;
}
.balloon p { margin: 0; }
.balloon-title { margin: 0 0 4px !important; font-weight: bold; display: flex; align-items: center; gap: 6px; }
.balloon-title::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1f5fcf;
  color: #fff;
  font: bold italic 11px Georgia, serif;
}
.balloon-close {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 14px;
  height: 14px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  text-align: center;
  font: bold 11px/12px Arial, sans-serif;
}
#tipp:target { display: none; }

/* ---------- Taskleiste ---------- */

.taskbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  height: 30px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 3px;
  background: linear-gradient(180deg, #3168d5 0, #4993e6 3%, #245edb 10%, #245edb 90%, #1941a5 100%);
  overflow-x: auto;
  overflow-y: hidden;
}
.start {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 22px 0 8px;
  margin-right: 6px;
  background: linear-gradient(180deg, #5fbf5f 0, #3c9a3c 20%, #2f7f2f 80%, #3c9a3c 100%);
  color: #fff;
  text-decoration: none;
  font: bold italic 17px "Trebuchet MS", Arial, sans-serif;
  text-shadow: 1px 1px 1px #1a4d1a;
  border-radius: 0 12px 12px 0;
  box-shadow: inset 0 1px #8fd88f, 2px 0 4px rgba(0, 0, 0, .35);
}
.start:hover { filter: brightness(1.1); color: #fff; }
.start svg { width: 20px; height: 18px; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .5)); }
.task {
  flex: 0 1 160px;
  min-width: 60px;
  margin: 4px 0;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-family: Tahoma, "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  background: linear-gradient(180deg, #3c81f3, #1d5ee0 90%, #1a51c4);
  border-radius: 3px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .45), inset 1px 0 rgba(255, 255, 255, .2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task:hover { background: linear-gradient(180deg, #5393f6, #2f6fe4); color: #fff; }
body:has(#willkommen:target) .task[href="#willkommen"],
body:has(#ueber-mich:target) .task[href="#ueber-mich"],
body:has(#projekte:target)   .task[href="#projekte"],
body:has(#links:target)      .task[href="#links"],
body:has(#gaestebuch:target) .task[href="#gaestebuch"] {
  background: #1e4fb8;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .5);
  font-weight: bold;
}
.tray {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 10px;
  background: linear-gradient(180deg, #0f7ee9 0, #1290e9 10%, #0c73d8 90%, #095fbe);
  border-left: 1px solid #092e51;
  box-shadow: inset 1px 0 #19b9f3;
  color: #fff;
  font-family: Tahoma, "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
}
.tray svg { width: 16px; height: 16px; }

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 820px) {
  .desktop { grid-template-columns: minmax(0, 1fr); padding: 12px 10px 20px; }
  .icons { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 4px; padding-top: 0; }
  .windows { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .windows > .window:nth-child(3) { margin-top: 0; }
  .profile { flex-direction: column; }
  .explorer { flex-direction: column; }
  .taskpane { flex-basis: auto; }
  .task { flex-basis: 110px; }
  .balloon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
