/* ===== Programmspezifische Stile ===== */
.link, a.link { color: #0645ad; text-decoration: underline; cursor: pointer; }
.green { color: #007600; }
.loading { padding: 40px; text-align: center; font-size: 30px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Item-Kachel (Pixel-Optik) */
.mcitem { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 4px; line-height: 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 35%, #fff), color-mix(in srgb, var(--c) 70%, #333));
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.35), inset -3px -3px 0 rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.3); image-rendering: pixelated; }

/* ---------- Browser ---------- */
.browser { display: flex; flex-direction: column; height: 100%; }
.addrbar { display: flex; align-items: center; gap: 6px; padding: 2px 6px; background: var(--face); border-bottom: 1px solid #c5c2b2; flex: none; }
.addr { flex: 1; display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #7f9db9; padding: 1px 4px; }
.addr input { border: 0 !important; flex: 1; padding: 2px; }
.browser .page { flex: 1; overflow: auto; background: #fff; position: relative; font-size: 12px; font-family: Arial, Helvetica, sans-serif; }
.ie-err { padding: 24px 40px; max-width: 700px; font-family: Tahoma; }
.ie-err h1 { font-size: 18px; color: #000; }

/* Portal */
.portal { min-height: 100%; background: #f4f7fc; display: flex; flex-direction: column; }
.p-head { display: flex; align-items: center; gap: 30px; padding: 16px 24px; background: #fff; border-bottom: 1px solid #c8d4e8; flex-wrap: wrap; }
.p-logo { font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: bold; letter-spacing: -1px; }
.p-search { display: flex; gap: 6px; flex: 1; max-width: 480px; }
.p-search input { flex: 1; font-size: 13px; padding: 5px; }
.p-cols { display: flex; gap: 16px; padding: 16px 24px; flex-wrap: wrap; }
.p-main { flex: 2; min-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.p-side { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 14px; }
.p-box { background: #fff; border: 1px solid #c8d4e8; border-radius: 4px; padding: 12px 14px; }
.p-box h3 { margin: -12px -14px 10px; padding: 6px 12px; background: linear-gradient(#e6eefb, #cfdcf3); color: #1b3f8b; font-size: 13px; border-bottom: 1px solid #c8d4e8; }
.p-box a { display: block; color: #0645ad; cursor: pointer; margin: 3px 0; text-decoration: underline; }
.p-hero { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, #fff, #e3f0d9); }
.p-hero .cube { width: 90px; height: 90px; flex: none; }
.p-hero h2 { margin: 0 0 6px; color: #1f5f1f; }
.news { border-bottom: 1px dashed #c8d4e8; padding: 6px 0; }
.news:last-child { border: 0; }
.news p { margin: 3px 0 0; }
.p-foot { margin-top: auto; text-align: center; padding: 14px; color: #666; font-size: 11px; }
.counter { font-family: "Courier New", monospace; background: #000; color: #0f0; padding: 1px 4px; }
.p-results { padding: 16px 24px; max-width: 700px; }
.p-hit { margin-bottom: 14px; }
.p-hit a { color: #1a0dab; font-size: 15px; text-decoration: underline; cursor: pointer; }
.p-hit .url { color: #006621; }

/* Shop (eigenes Design: Dunkelgrün / Gold) */
.shop { min-height: 100%; background: #eef0ea; display: flex; flex-direction: column; }
.shop-head { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: #1e3a1e; color: #fff; flex-wrap: wrap; }
.shop-logo { font-family: "Trebuchet MS", sans-serif; font-size: 24px; font-weight: bold; cursor: pointer; color: #fff; letter-spacing: -.5px; }
.shop-logo small { color: #f5c542; font-size: 14px; }
.shop-logo::after { content: ''; display: block; height: 3px; width: 70%; margin-top: -2px; background: #f5c542; border-radius: 0 0 50% 50%; }
.shop-search { flex: 1; display: flex; min-width: 220px; border-radius: 4px; overflow: hidden; }
.shop-search select { border: 0; background: #e6e6e6; padding: 6px; }
.shop-search input { flex: 1; border: 0 !important; padding: 7px; font-size: 13px; }
.shop-search button { border: 0; background: #f5c542; padding: 0 12px; cursor: pointer; font-size: 15px; }
.shop-search button:hover { background: #e9b52c; }
.shop-acc, .shop-cart { cursor: pointer; padding: 4px 6px; border: 1px solid transparent; border-radius: 2px; line-height: 1.2; }
.shop-acc:hover, .shop-cart:hover { border-color: #fff; }
.shop-acc small { display: block; font-size: 11px; color: #ccc; }
.shop-cart { display: flex; align-items: flex-end; gap: 3px; font-size: 22px; position: relative; }
.shop-cart b { font-size: 13px; }
.shop-cart .cnt { position: absolute; left: 13px; top: -2px; color: #f5c542; font-size: 13px; font-weight: bold; }
.shop-nav { display: flex; gap: 2px; padding: 4px 10px; background: #2e5a2e; flex-wrap: wrap; }
.shop-nav a { color: #fff; padding: 4px 8px; cursor: pointer; border: 1px solid transparent; font-size: 12px; }
.shop-nav a:hover { border-color: #fff; }
.shop-main { padding: 14px 18px; flex: 1; }
.shop-banner { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-radius: 6px; color: #fff; margin-bottom: 8px;
  background: linear-gradient(120deg, #2e7d32, #4caf50 55%, #8bc34a), #2e7d32; box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); }
.shop-banner h2 { margin: 0 0 6px; font-size: 22px; text-shadow: 1px 1px 2px rgba(0,0,0,.35); }
.shop-banner p { margin: 0; opacity: .95; }
.shop-banner .bn-ico { font-size: 60px; filter: drop-shadow(2px 3px 2px rgba(0,0,0,.35)); }
.sh-h { font-size: 17px; margin: 18px 0 8px; display: flex; align-items: baseline; gap: 12px; }
.sh-h .more { font-size: 12px; font-weight: normal; color: #2e7d32; cursor: pointer; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pcard { background: #fff; padding: 12px; border-radius: 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 1px solid #dde2d6; transition: box-shadow .12s; }
.pcard:hover { box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pcard:hover .pname { color: #c45500; text-decoration: underline; }
.pname { font-size: 13px; color: #0f1111; margin-top: 6px; }
.pcat { font-size: 11px; color: #777; }
.pprice { color: #b12704; font-size: 13px; font-weight: bold; }
.pprice.big { font-size: 18px; }
.pstars { color: #f5a623; font-size: 12px; }
.pdetail { display: flex; gap: 22px; flex-wrap: wrap; background: #fff; padding: 18px; border-radius: 4px; }
.pd-img { flex: none; }
.pd-info { flex: 1; min-width: 220px; }
.pd-info h1 { font-size: 22px; margin: 4px 0; font-weight: normal; }
.pd-info .crumb a { color: #2e7d32; cursor: pointer; font-size: 12px; }
.pd-info hr { border: 0; border-top: 1px solid #ddd; }
.feat { padding-left: 18px; }
.pd-buy { width: 220px; border: 1px solid #ddd; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-self: flex-start; }
.pd-buy .btn { padding: 7px; border-radius: 14px; }
.qbtns { display: flex; gap: 4px; flex-wrap: wrap; }
.cartbox { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.cartlist { flex: 1; min-width: 300px; background: #fff; padding: 8px 16px; border-radius: 4px; }
.cline { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.cline .row { margin-top: 4px; }
.cartsum { width: 240px; background: #fff; padding: 14px; border-radius: 4px; display: flex; flex-direction: column; gap: 8px; }
.checkout { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.co-main { flex: 1; min-width: 320px; background: #fff; padding: 14px; border-radius: 4px; }
.co-side { width: 240px; background: #fff; padding: 14px; border-radius: 4px; border: 1px solid #ddd; }
.thanks { background: #fff; padding: 30px; border-radius: 6px; text-align: center; }
.shop-foot { background: #1e3a1e; color: #ccc; text-align: center; font-size: 11px; }
.shop-foot div { background: #2e5a2e; color: #fff; padding: 10px; cursor: pointer; }
.shop-foot p { padding: 12px; margin: 0; }

/* ---------- Explorer ---------- */
.explorer { display: flex; flex-direction: column; height: 100%; }
.ex-main { background: #fff; overflow: auto; outline: none; align-content: flex-start; }
.ex-main.icons { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
.ex-item { width: 86px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border: 1px solid transparent; cursor: default; text-align: center; }
.ex-item .big { font-size: 34px; line-height: 40px; }
.ex-item .nm { word-break: break-word; line-height: 13px; padding: 0 2px; }
.ex-item.sel .nm { background: var(--sel); color: #fff; }
.ex-item.sel .big { filter: brightness(.75) sepia(.6) hue-rotate(180deg); }
.ex-item.drop, tr.drop td { background: #cfe0ff; outline: 1px dashed var(--sel); }
.ex-item.drive { flex-direction: row; width: 260px; text-align: left; gap: 10px; }
.ex-item.drive.sel { background: #d6e4fb; border-color: #9cb7e5; }
.ex-group { width: 100%; font-weight: bold; color: #1c3a91; border-bottom: 1px solid; border-image: linear-gradient(90deg, #7ba2e7, transparent) 1; padding: 6px 0 2px; margin-top: 6px; }
.ex-main.details tr.sel td { background: var(--sel); color: #fff; }

/* ---------- Postfach ---------- */
.mailapp { display: flex; flex-direction: column; height: 100%; }
.mleft { width: 200px; flex: none; display: flex; flex-direction: column; border-right: 1px solid #c5c2b2; background: #fff; }
.mleft .list { border: 0; }
.mleft .folders { flex: none; }
.mhead { padding: 4px 6px; background: linear-gradient(#fff, #e6e3d3); border-top: 1px solid #c5c2b2; border-bottom: 1px solid #c5c2b2; font-weight: bold; }
.mlist { height: 42%; overflow: auto; background: #fff; border-bottom: 4px solid var(--face); }
.mprev { flex: 1; overflow: auto; background: #fff; display: flex; flex-direction: column; }
.mhdr { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: linear-gradient(#f5f8fe, #e3ebf9); border-bottom: 1px solid #c8d4e8; }
.msubj { font-weight: bold; font-size: 13px; margin-bottom: 2px; }
.mtext { padding: 12px; white-space: pre-wrap; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.45; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c33; flex: none; }
.pdot.online { background: #2fbf2f; } .pdot.away { background: #f2b200; } .pdot.dnd { background: #e23c3c; }
.compose { display: flex; flex-direction: column; height: 100%; }
.cfields { padding: 6px; display: flex; flex-direction: column; gap: 4px; background: var(--face); }
.cfields label { width: 60px; text-align: right; }
.tobox { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; padding: 2px; min-height: 22px; }
.tobox input { border: 0 !important; flex: 1; min-width: 80px; }
.chip { background: #dfe8fb; border: 1px solid #9cb7e5; border-radius: 10px; padding: 1px 6px; cursor: pointer; }
.chip b { color: #a33; }
.suggest { position: relative; margin: -4px 6px 0 72px; background: #fff; border: 1px solid #7f9db9; box-shadow: 2px 2px 4px rgba(0,0,0,.25); z-index: 3; max-height: 180px; overflow: auto; }
.suggest .li { padding: 3px 6px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.suggest .li:hover { background: var(--sel); color: #fff; }
.mbody { border: 0; border-top: 1px solid #c5c2b2; padding: 8px; font-family: Arial, sans-serif; font-size: 13px; resize: none; }

/* ---------- BlockQ ---------- */
.bq { display: flex; flex-direction: column; height: 100%; background: #fff; }
.bq-head { display: flex; gap: 8px; align-items: center; padding: 8px; background: linear-gradient(#eaf6e3, #c9e8b8); border-bottom: 1px solid #9fcf86; }
.bq-st { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.bq-search { padding: 4px; } .bq-search input { width: 100%; }
.bq-list { flex: 1; overflow: auto; }
.bq-g { padding: 4px 6px; font-weight: bold; color: #2a6b16; cursor: pointer; background: #f3f9ef; border-bottom: 1px solid #e0eed8; }
.bq-c { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 14px; cursor: default; }
.bq-c:hover { background: #eef7e8; }
.bq-c.sel { background: var(--sel); color: #fff; }
.bq-new { animation: flash2 1s steps(1) infinite; }
@keyframes flash2 { 50% { opacity: 0; } }
.bq-foot { display: flex; justify-content: space-between; border-top: 1px solid #c5c2b2; background: var(--face); padding: 2px; }
.flower { flex: none; vertical-align: middle; }
.chatwin { display: flex; flex-direction: column; height: 100%; background: #fff; }
.chead { display: flex; gap: 8px; align-items: center; padding: 6px 8px; background: linear-gradient(#eaf6e3, #c9e8b8); border-bottom: 1px solid #9fcf86; }
.clog { flex: 1; overflow: auto; padding: 6px 10px; font-family: Arial, sans-serif; font-size: 13px; }
.cday { text-align: center; color: #999; font-size: 11px; margin: 6px 0; }
.cmsg { margin: 4px 0; }
.cwho { color: #c33; font-weight: bold; font-size: 12px; }
.cwho span { font-weight: normal; color: #999; }
.cmsg.me .cwho { color: #2a5bd7; }
.ctext { padding-left: 8px; word-wrap: break-word; }
.ctyping { height: 16px; padding: 0 10px; font-style: italic; }
.cinput { border-top: 1px solid #c5c2b2; background: var(--face); padding: 4px; }
.cinput textarea { resize: none; font-family: Arial, sans-serif; font-size: 13px; }
.emos { display: flex; gap: 2px; margin-bottom: 3px; }
.emos span { cursor: pointer; font-size: 15px; padding: 0 2px; border-radius: 3px; }
.emos span:hover { background: #fff; }

/* ---------- Bestellungen ---------- */
.ordersapp .olist { width: 300px; flex: none; border-width: 0 1px 0 0; }
.ocard { align-items: flex-start !important; border-bottom: 1px solid #eee; padding: 6px !important; white-space: normal !important; }
.ocard.sel .muted { color: #dde; }
.odetail { overflow: auto; background: #fcfcfe; }
.otl { display: flex; align-items: center; padding: 8px 0; }
.ots { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #888; min-width: 74px; }
.ots i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #bbb; display: flex; align-items: center; justify-content: center; font-style: normal; background: #fff; }
.ots.done { color: #2e7d32; } .ots.done i { border-color: #2e7d32; background: #2e7d32; color: #fff; }
.ots.cur i { box-shadow: 0 0 0 4px rgba(46,125,50,.25); }
.otl-line { flex: 1; height: 2px; background: #bbb; margin-bottom: 16px; }
.obad { color: #a33; font-weight: bold; }
.offerbox { border: 2px solid #f2a516; border-radius: 6px; background: #fff8e6; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.offerbox .oh { font-weight: bold; color: #8a5a00; }
.ot { white-space: pre-wrap; font-family: Arial, sans-serif; font-size: 13px; }
.oitem { display: flex; gap: 6px; align-items: center; margin: 3px 0; }
.olog { margin: 2px 0; }
code.mcname { background: #eef; padding: 1px 5px; border: 1px solid #ccd; font-size: 12px; }

/* ---------- Notepad ---------- */
.notepad textarea { border: 0; resize: none; font-family: "Lucida Console", "Courier New", monospace; font-size: 13px; padding: 4px; white-space: pre-wrap; outline: none; }

/* ---------- Paint ---------- */
.paint { display: flex; flex-direction: column; height: 100%; outline: none; }
.ptools { width: 58px; flex: none; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 2px; padding: 4px; background: var(--face); border-right: 1px solid #c5c2b2; }
.ptools .tool { justify-content: center; padding: 3px; font-size: 14px; border: 1px solid #c3c3c3; background: #f5f4ee; }
.psizes { grid-column: span 2; margin-top: 6px; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; padding: 3px; display: flex; flex-direction: column; gap: 3px; }
.psizes:empty { display: none; }
.psz { display: flex; align-items: center; gap: 3px; padding: 2px; cursor: pointer; font-size: 9px; }
.psz i { flex: 1; background: #000; }
.psz.on { background: var(--sel); color: #fff; } .psz.on i { background: #fff; }
.pcanvas-wrap { overflow: auto; background: #808080; padding: 6px; }
.pstage { position: relative; box-shadow: 2px 2px 3px rgba(0,0,0,.4); }
.pstage canvas { position: absolute; left: 0; top: 0; image-rendering: pixelated; }
.pstage .po { touch-action: none; }
.pstage.grid16::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(0,0,0,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.15) 1px, transparent 1px); background-size: 16px 16px; }
.ppal { display: flex; gap: 6px; align-items: center; padding: 4px; background: var(--face); border-top: 1px solid #c5c2b2; }
.pcur { width: 32px; height: 32px; position: relative; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; flex: none; }
.pcur span { position: absolute; width: 15px; height: 15px; border: 1px solid #808080; }
.pcur .c1 { left: 4px; top: 4px; z-index: 1; } .pcur .c2 { right: 4px; bottom: 4px; }
.pcols { display: grid; grid-template-rows: repeat(2, 15px); grid-auto-flow: column; gap: 1px; }
.pcols span { width: 15px; height: 15px; border: 1px solid; border-color: #808080 #fff #fff #808080; cursor: pointer; }
.pcustom { width: 32px; height: 28px; padding: 0; border: 1px solid #808080; }

/* ---------- Minesweeper ---------- */
.mines { background: #c0c0c0; padding: 6px; border: 3px solid; border-color: #fff #808080 #808080 #fff; margin: 2px; display: inline-flex; flex-direction: column; gap: 6px; user-select: none; }
.mhead { display: flex; justify-content: space-between; align-items: center; padding: 4px; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.lcd { background: #000; color: #f00; font-family: "Courier New", monospace; font-weight: bold; font-size: 20px; padding: 0 3px; letter-spacing: 1px; }
.face { width: 28px; height: 28px; font-size: 16px; padding: 0; border: 2px solid; border-color: #fff #808080 #808080 #fff; background: #c0c0c0; cursor: pointer; }
.face:active { border-color: #808080 #fff #fff #808080; }
.mgrid { display: grid; border: 3px solid; border-color: #808080 #fff #fff #808080; }
.mc { width: 16px; height: 16px; border: 2px solid; border-color: #fff #808080 #808080 #fff; background: #c0c0c0; font-size: 10px; font-weight: bold; display: flex; align-items: center; justify-content: center; font-family: Tahoma; line-height: 1; }
.mc.open { border: 0; border-left: 1px solid #808080; border-top: 1px solid #808080; }
.mc.boom { background: #f00; }
.mc[data-n="1"] { color: #00f; } .mc[data-n="2"] { color: #008000; } .mc[data-n="3"] { color: #f00; } .mc[data-n="4"] { color: #000080; }
.mc[data-n="5"] { color: #800000; } .mc[data-n="6"] { color: #008080; } .mc[data-n="7"] { color: #000; } .mc[data-n="8"] { color: #808080; }

/* ---------- Snake ---------- */
.snake { outline: none; }
.snake canvas { border: 3px solid; border-color: #808080 #fff #fff #808080; image-rendering: pixelated; max-width: 100%; }
.snake .touch { display: none; }
@media (pointer: coarse) { .snake .touch { display: flex; } }

/* ---------- Rechner ---------- */
.calc { padding: 8px; display: flex; flex-direction: column; gap: 6px; outline: none; }
.calc .disp { text-align: right; font-size: 15px; padding: 4px; }
.cg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.cg .btn { min-width: 0; padding: 5px 0; color: #00f; }
.cg .btn.op { color: #f00; } .cg .btn.mem { color: #a00; }

/* ---------- Eingabeaufforderung ---------- */
.cmd { background: #000; color: #c0c0c0; font-family: "Lucida Console", "Courier New", monospace; font-size: 13px; padding: 4px; height: 100%; overflow: auto; outline: none; }
.cmd .out { white-space: pre-wrap; word-break: break-all; }
.cmd .line { display: flex; }
.cmd .line input { flex: 1; background: transparent; border: 0 !important; color: inherit; font: inherit; padding: 0; caret-color: currentColor; }

/* ---------- Bildanzeige ---------- */
.iv { background: #fff; overflow: auto; display: flex; align-items: center; justify-content: center; }
.iv img { image-rendering: pixelated; box-shadow: 0 0 4px rgba(0,0,0,.3); }
.iv img.fit { max-width: 95%; max-height: 95%; }

/* ---------- Anzeige ---------- */
.monitor { align-self: center; width: 180px; height: 140px; background: linear-gradient(#e8e8e8, #c8c8c8); border-radius: 8px 8px 2px 2px; padding: 12px; position: relative; box-shadow: inset 0 0 0 1px #999; }
.monitor::after { content: ''; position: absolute; left: 60px; right: 60px; bottom: -14px; height: 14px; background: linear-gradient(#ccc, #999); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.monitor .screen { width: 100%; height: 100%; border: 1px solid #555; background-size: cover !important; image-rendering: pixelated; }

/* ---------- Hilfe ---------- */
.helpc { display: flex; flex-direction: column; height: 100%; background: #fff; }
.hh { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: linear-gradient(90deg, #1c5fd8, #6aa7ff); color: #fff; }
.hh > span { font-size: 34px; }
.hh b { font-size: 16px; font-family: var(--font-title); }
.hb { padding: 6px 22px 20px; overflow: auto; font-size: 12px; line-height: 1.5; }
.hb h3 { color: #1c3a91; margin: 16px 0 4px; font-size: 13px; }
.hb a { color: #0645ad; text-decoration: underline; cursor: pointer; }
