/*
 * Fun-World – Version 1.2 (2002), nachgebaut mit den Originalgrafiken.
 * Aufteilung wie die alten Frames: Kopf 117px (titel.jpg), links 160px (navileer.jpg + buttonz),
 * rechts 177px (navi2hint.jpg + Minimenü), Mitte mit background.jpg. Ohne Frames, läuft ohne Server.
 */
@font-face { font-family: "FW Comic"; src: url(fonts/comic-neue-latin-700-italic.woff2) format("woff2"); font-weight: 700 900; font-style: italic; font-display: swap; }
@font-face { font-family: "FW Comic"; src: url(fonts/comic-neue-latin-700-normal.woff2) format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
:root {
  --fw-blue: #80aac0;      /* Farbe der Original-Knöpfe */
  --fw-blue-d: #4f7f99;
  --navy: #003366;          /* aus start_home.html */
  --font: Verdana, Geneva, Tahoma, Arial, Helvetica, sans-serif;
  --comic: "Comic Sans MS", "FW Comic", "Chalkboard SE", cursive;
}
* { box-sizing: border-box; }
html { scrollbar-color: #0000ff #ffffff; }   /* SCROLLBAR-ARROW-COLOR #0000ff wie im Original */
body { margin: 0; font: bold 13px/1.45 var(--font); color: #000; background: #fff; }
a { color: #000; }
a:visited { color: #000; }
a:hover { color: var(--fw-blue-d); }
img { display: block; border: 0; }
h1 { font-size: 22px; text-align: center; margin: 0 0 12px; }
h2 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 4px; z-index: 50; background: #fff; padding: 6px 10px; border: 1px solid #000; }
.skip:focus { left: 4px; }
:focus-visible { outline: 2px dotted #0000ff; outline-offset: 2px; }
.center { text-align: center; }
.normal { font-weight: normal; }
.small { font-size: 11px; }
.grey { color: #808080; }

/* ---------- Frames-Raster ---------- */
.fw { display: grid; min-height: 100vh; grid-template: "top top top" 117px "left main right" 1fr / 160px minmax(0, 1fr) 177px; }

.top {   /* start_top.html */
  grid-area: top; position: relative; display: block;
  background: #fff url(../bilder/titel.jpg) 0 0 no-repeat;
}
.top .home { position: absolute; left: 0; top: 0; width: 640px; height: 117px; }   /* Logo-Bereich klickbar */
.top .corner { position: absolute; right: 14px; top: 10px; display: flex; align-items: center; gap: 10px; }
.top .clock { text-align: right; font: bold 11px/1.35 var(--font); color: #000; }
.top .clock strong { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.top .erde { width: 40px; height: 40px; }

.left {  /* navi.html */
  grid-area: left; background: #fff url(../bilder/navileer.jpg) 0 0 repeat-y; overflow: hidden; padding-bottom: 20px;
}
.left ul { list-style: none; margin: 0; padding: 0; }
.left li { width: 160px; height: 35px; overflow: hidden; }
.nb { display: block; width: 233px; height: 35px; position: relative; }
.nb img { position: absolute; left: 0; top: 0; width: 233px; height: 35px; }
.nb .on { opacity: 0; }
.nb:hover .on, .nb:focus-visible .on, .nb[aria-current="page"] .on { opacity: 1; }   /* MM_swapImage */
.nb:hover .off, .nb:focus-visible .off, .nb[aria-current="page"] .off { opacity: 0; }

main {   /* mainFrame mit background.jpg (BGPROPERTIES=fixed) */
  grid-area: main; padding: 26px 22px 40px;
  background: #fff url(../bilder/background.jpg) 160px 117px no-repeat fixed;
}

.right { /* home_navi.html */
  grid-area: right; padding: 0 0 20px 10px;
  background: url(../bilder/navi2hint.jpg) 0 0 no-repeat,
    linear-gradient(90deg, #fff 0 24px, #f6fafd 48px, #e2ebf2 72px, #b9d4dd 96px, #9bbccf 120px, #86afc5 144px, #80aac0 160px);
}
.right ul { list-style: none; margin: 0; padding: 0; }
.right li { margin: 0; }
.mm { /* Minimenü-Knopf 103×21, nachgezeichnet im Stil der Originalknöpfe */
  display: flex; align-items: center; width: 103px; height: 21px; margin: 0 0 1px; padding: 0 0 0 8px; text-decoration: none;
  font: italic 900 11px/1 var(--comic); letter-spacing: .04em; text-transform: uppercase; color: #1d1d1d;
  background: linear-gradient(180deg, #e9f2f7 0%, #a9c8d8 50%, #80aac0 51%, #9cbfd1 100%);
  border: 1px solid #4f7f99; border-radius: 0 10px 10px 0;
  box-shadow: 2px 2px 2px rgba(0,0,0,.35); text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.mm:hover, .mm:focus-visible { background: linear-gradient(180deg, #fff 0%, #d3e5ee 50%, #b2cfde 51%, #cde1eb 100%); color: #000; }
.mm.off { color: #6d7f88; background: #eef3f6; border-style: dashed; box-shadow: none; pointer-events: none; text-decoration: line-through; }
.right h2 { font: bold 10px var(--font); color: #000; margin: 14px 0 4px; text-transform: uppercase; letter-spacing: .08em; }

.foot { text-align: center; font-size: 10px; color: #808080; margin-top: 30px; }

/* ---------- Bausteine aus den Originalseiten ---------- */
.linie { width: min(484px, 100%); height: 13px; margin: 14px auto; display: flex; align-items: center; }   /* numern/linie.gif */
.linie::before { content: ""; flex: 1; height: 3px; background: linear-gradient(90deg, transparent, var(--fw-blue) 15%, var(--fw-blue-d) 50%, var(--fw-blue) 85%, transparent); border-radius: 2px; }
.wrap { max-width: 607px; margin: 0 auto; }           /* table width="607" */
.news { width: 100%; max-width: 640px; margin: 0 auto; }
.news article { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 0; }
.news h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.news time { font-size: 11px; color: #000; white-space: nowrap; }
.news p { grid-column: 1 / -1; margin: 2px 0 0; font-weight: normal; }
.news .more { grid-column: 1 / -1; justify-self: end; }
.weiter { display: inline-block; width: 73px; height: 21px; position: relative; }          /* buttonz/weiter1/2.jpg */
.weiter img { position: absolute; inset: 0; }
.weiter .on { opacity: 0; }
.weiter:hover .on, .weiter:focus-visible .on { opacity: 1; }
.pfeile { display: flex; justify-content: center; gap: 24px; align-items: center; margin-top: 10px; font-size: 12px; }
.pfeile a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pfeile a::before, .pfeile a.vor::after { /* numern/zurueck.gif / weiter.gif (33×33), nachgezeichnet */
  content: "◄"; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #dceaf2 0 15%, var(--fw-blue) 55%, var(--fw-blue-d) 100%); border: 2px solid #1d1d1d;
  box-shadow: 1px 2px 2px rgba(0,0,0,.35);
}
.pfeile a.vor::before { content: none; }
.pfeile a.vor::after { content: "►"; }

.box { background: rgba(255,255,255,.85); border: 1px solid var(--fw-blue); padding: 12px 14px; margin: 0 0 14px; }
.btn { display: inline-block; font: 12px var(--font); color: #000; background: #ece9d8; border: 2px outset #f4f2e8; padding: 3px 12px; cursor: pointer; text-decoration: none; }
.btn:active { border-style: inset; }
.btn.alt, .btn.pink { background: #ece9d8; }
.btn[disabled] { color: #888; }
input[type=text], input[type=search] { font: 13px var(--font); padding: 3px 5px; border: 2px inset #d4d0c8; background: #fff; color: #000; width: 100%; }
label.field { display: block; font-size: 12px; }
label.field input { margin-top: 2px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 170px; }
.row > .btn { flex: 0 0 auto; }

/* Eliza: Ausgabe wie die alte TEXTAREA */
.eliza-tab { width: 100%; max-width: 560px; margin: 0 auto; }
.chat-log { height: 150px; overflow-y: auto; background: #fff; border: 2px inset #d4d0c8; padding: 4px 6px; font: 13px/1.4 "Courier New", Courier, monospace; text-align: left; }
.msg { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { text-transform: uppercase; }      /* Eliza schrieb in Grossbuchstaben */
.msg.me { color: #555; }
.msg.me::before { content: "> "; }
.msg.typing::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-form { display: flex; gap: 6px; margin-top: 6px; }
.chat-form input { flex: 1; }
.eliza-bild { margin: 14px auto 0; width: 200px; height: auto; }

/* Quiz, Geschichte, Wetter, Suchen */
.quiz-progress { height: 10px; border: 1px solid var(--fw-blue-d); background: #fff; margin-bottom: 12px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--fw-blue); transition: width .3s; }
.q-num { font-size: 11px; color: #808080; }
.q-text { font-size: 15px; margin: 4px 0 12px; }
.feedback { margin-top: 10px; padding: 6px 8px; border: 1px solid; }
.feedback.ok { background: #efffef; border-color: #090; color: #060; }
.feedback.no { background: #fff0f0; border-color: #c00; color: #900; }
.feedback span { display: block; font-weight: normal; color: #000; }
.result { text-align: center; }
.result .score { font: bold 40px var(--comic); color: var(--fw-blue-d); }
.result .iq { font-size: 16px; margin: 4px 0; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.story p { font-weight: normal; }
.story .scene { min-height: 110px; }
.badge { display: block; font-size: 10px; color: #808080; text-transform: uppercase; margin-bottom: 4px; }
.wx-now { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; }
.wx-icon { font-size: 48px; line-height: 1; }
.wx-temp { font: bold 40px var(--comic); line-height: 1; }
.wx-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 12px; }
.wx-day { text-align: center; border: 1px solid var(--fw-blue); background: #fff; padding: 4px 2px; font-size: 11px; }
.wx-day b { display: block; }
.wx-day .e { font-size: 20px; line-height: 1.4; }
.wx-day .mn { color: #808080; }
.muted { color: #808080; }
.chips { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 6px; }
.chips button { font: bold 11px var(--font); padding: 1px 7px; background: #fff; border: 1px solid var(--fw-blue-d); cursor: pointer; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: -1px; position: relative; }
.tabs button { font: bold 12px var(--font); padding: 4px 10px; background: #e6eff4; border: 1px solid var(--fw-blue-d); border-bottom: 0; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; padding-bottom: 5px; }
.panel { border: 1px solid var(--fw-blue-d); background: #fff; padding: 12px; }
.panel[hidden] { display: none; }
.engines { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }

/* Downloads / Fun-Listen */
.liste { width: 100%; border-collapse: collapse; }
.liste td { padding: 8px 6px; vertical-align: top; border-bottom: 1px dotted var(--fw-blue-d); }
.liste .titel { font-size: 14px; }
.liste .size { white-space: nowrap; text-align: right; font-size: 11px; }
.liste p { margin: 2px 0 0; font-weight: normal; }
.weg { color: #a00; font-size: 11px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 1px 12px; margin: 8px 0 0; font-size: 12px; }
.facts dd { margin: 0; font-weight: normal; }

/* ---------- Handy: Frames werden zu Leisten ---------- */
@media (max-width: 900px) {
  .fw { grid-template: "top" 80px "left" auto "main" 1fr "right" auto / minmax(0, 1fr); }
  .fw > * { min-width: 0; }
  .top { background-size: auto 140px; background-position: -10px -6px; }
  .top .home { width: 100%; height: 80px; }
  .top .corner { display: none; }
  .left { background: #fff; padding: 4px 0; border-bottom: 1px solid #c7d9e3; }
  .left ul { display: flex; flex-wrap: wrap; }
  .left li { width: 155px; background: url(../bilder/navileer.jpg) 0 0 repeat-y; }
  main { background-attachment: scroll; background-position: center top; padding: 18px 12px 30px; }
  .right { background: #eef4f7; padding: 10px; }
  .right ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .right h2 { width: 100%; }
  .wx-days { grid-template-columns: repeat(4, 1fr); }
}
