/* Fun-World v2 – Neuauflage. Aufbau & Look wie das Original (fun_php, 2005). */
[hidden] { display: none !important; }
:root {
  --blau: #386CA5;
  --kopf-h: 140px;
  --navi-b: 180px;
  --schrift: Verdana, Arial, Helvetica, sans-serif;
}
@font-face {
  font-family: "XBox";
  src: url("../fonts/xbox.ttf") format("truetype");
  font-display: swap;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 13px/1.3 var(--schrift); color: #000; background: #fff; }
img { border: 0; }
a { color: #000; font-weight: bold; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px dashed var(--blau); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: 6px; }
.skip:focus { left: 4px; }

.seite {
  display: grid;
  grid-template-columns: var(--navi-b) minmax(0, 1fr);
  grid-template-rows: var(--kopf-h) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}

/* ---------- Kopf ---------- */
.kopf { grid-column: 1 / -1; position: relative; background: url("../../images/top.jpg") no-repeat 0 0; }
.kopf-logo { position: absolute; left: 0; top: 0; width: 600px; height: 112px; }
.home { position: absolute; top: 120px; left: 89px; line-height: 0; transition: transform .12s; }
.home:hover, .home:focus-visible { transform: scale(1.15); }
.kopf-rechts { position: absolute; right: 2px; top: 2px; display: flex; align-items: flex-start; gap: 4px; }
.kb { border: 0; padding: 0; background: none; cursor: pointer; line-height: 0; transition: transform .12s, filter .12s; }
.kb:hover, .kb:focus-visible { transform: translateY(1px); filter: brightness(1.12) drop-shadow(0 1px 2px rgba(56,108,165,.5)); }
.uhr { display: inline-flex; line-height: 0; margin-top: 2px; }
.geheim { position: absolute; top: 40px; left: 493px; line-height: 0; }

/* ---------- Navigation ---------- */
.navi {
  background: url("../../images/navi.jpg") repeat;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
  padding-bottom: 10px;
}
.nb-liste { list-style: none; margin: 0; padding: 0; }
.nb-liste li { height: 35px; }
/* Ersetzt den alten PHP/GD-Buttongenerator: Hintergrundbild + Schrift + Icon beim Drüberfahren */
.nb {
  position: relative; display: block; width: 180px; height: 35px;
  background: url("../../images/buttongenerator/button_1.jpg") no-repeat;
  color: #fff; text-decoration: none !important; font-weight: normal;
}
.nb-t {
  position: absolute; left: 49px; top: 9px; max-width: 124px;
  font: 10.5px/1 "XBox", var(--schrift); text-transform: lowercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 1px rgba(0,0,0,.15);
}
.nb-ic { position: absolute; left: 14px; top: 4px; visibility: hidden; border-radius: 50%; }
.nb:hover, .nb:focus-visible { background-image: url("../../images/buttongenerator/button_2.jpg"); outline-offset: -3px; }
.nb:hover .nb-t, .nb:focus-visible .nb-t { left: 53px; top: 11px; }
.nb:hover .nb-ic, .nb:focus-visible .nb-ic { visibility: visible; }

/* Shoutbox */
.shout-form { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 4px 3px; width: 152px; }
.shout-form input[type=text], .shout-form textarea {
  width: 145px; font: 13px var(--schrift); padding: 1px 3px; border: 1px solid #767676; background: #fff;
}
.shout-form textarea { height: 36px; resize: vertical; }
.shout-hp { position: absolute; left: -5000px; }
.senden { border: 0; padding: 0; background: none; cursor: pointer; line-height: 0; transition: filter .12s, transform .12s; }
.senden:hover, .senden:focus-visible { filter: brightness(1.12); }
.senden:active { transform: translateY(1px); }
.senden:disabled { opacity: .6; cursor: wait; }
.shout-meldung { margin: 0; min-height: 0; font: bold 11px var(--schrift); color: #b00; text-align: center; }
.shout-meldung:empty { display: none; }
.shoutbox {
  width: 144px; height: 144px; margin: 0 0 0 4px; overflow: auto; background: #fff;
  border: 2px inset #ccc; padding: 8px 8px;
  font: bold 12px/1.25 var(--schrift); color: #000; overflow-wrap: anywhere;
}
.shoutbox p { margin: 0 0 1.25em; }
.shoutbox .leer { font-weight: normal; color: #555; }

/* ---------- Inhalt ---------- */
.inhalt {
  overflow: auto; outline: none;
  background: url("../../images/bg.gif") no-repeat center;
  padding: 4px 8px 30px;
}
.willkommen { text-align: center; margin-top: 16px; font-family: var(--schrift); }
.willkommen b { font-size: 16px; }
.klein { font-size: 10px; }
.gross { font-size: 16px; }
.alter .knopf { margin: 4px; }

.streifen { overflow-x: auto; overflow-y: hidden; padding: 2px 0 6px; scrollbar-color: var(--blau) transparent; }
.streifen ul { list-style: none; display: flex; gap: 14px; margin: 0 auto; padding: 0 10px; width: max-content; }
.streifen li { text-align: center; width: 125px; flex: none; }
.streifen a { display: block; color: #000; }
.streifen img { display: block; width: 125px; height: 99px; object-fit: cover; transition: transform .15s, box-shadow .15s; }
.streifen b { display: block; margin-top: 2px; font-size: 13px; line-height: 1.15; }
.streifen a:hover img, .streifen a:focus-visible img { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.streifen li.aktiv img { outline: 3px solid var(--blau); outline-offset: 1px; }

.anzeige { text-align: center; margin-top: 10px; scroll-margin-top: 10px; }
.foto { max-width: min(100%, 500px); max-height: 400px; height: auto; width: auto; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.spiel-box { margin: 0 auto; max-width: 100%; background: #000; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.spiel-box:fullscreen { width: 100vw !important; height: 100vh; max-width: none; aspect-ratio: auto !important; }
.spiel-leiste { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 8px; }
.swf { position: relative; }
.swf-fehler { color: #fff; padding: 20px; }
.knopf {
  display: inline-block; cursor: pointer; border: 1px solid var(--blau); background: #fff;
  color: var(--blau); padding: 3px 10px; border-radius: 3px; font: bold 13px var(--schrift); text-decoration: none !important;
}
.knopf:hover, .knopf:focus-visible { background: var(--blau); color: #fff; }

/* Popups (Empfehlen / Favoriten) */
.dlg {
  border: 2px solid var(--blau); border-radius: 6px; padding: 14px 20px 16px; max-width: min(460px, 94vw);
  color: var(--blau); font: bold 13px/1.4 var(--schrift);
  background: #fff url("../../images/background.jpg") center / cover;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.dlg::backdrop { background: rgba(20,40,70,.45); }
.dlg h2 { font-size: 15px; margin: 0 0 8px; }
.dlg p, .dlg ol { font-weight: normal; color: #223; }
.dlg ol { padding-left: 18px; }
.dlg-x { position: absolute; right: 8px; top: 4px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--blau); cursor: pointer; }
.dlg .adresse { width: 100%; }
.taste { text-align: center; font-size: 18px; }
kbd { display: inline-block; border: 1px solid #889; border-bottom-width: 3px; border-radius: 4px; padding: 2px 8px; background: #fff; font: bold 15px var(--schrift); color: #223; }
.share { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 4px; }
.share-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--blau); border-radius: 4px;
  background: #fff; color: var(--blau); font: bold 13px var(--schrift); cursor: pointer; text-align: left;
  transition: background .12s, color .12s, transform .12s;
}
.share-btn:hover, .share-btn:focus-visible { background: var(--blau); color: #fff; text-decoration: none; transform: translateY(-1px); }
.share-btn .ic { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; font-size: 14px; flex: none; }
.ic-wa { background: #25D366; color: #fff; }
.ic-tg { background: #229ED9; color: #fff; font-size: 12px; }
.ic-fb { background: #1877F2; color: #fff; font-family: Arial, sans-serif; }
.ic-x { background: #000; color: #fff; }
.share-status { min-height: 1.4em; font-weight: bold !important; color: var(--blau) !important; margin: 6px 0 0; }
.knopf + .share-status, .dlg .knopf { margin-top: 4px; }

@media (max-width: 640px) {
  .seite { grid-template-columns: 1fr; grid-template-rows: 112px auto minmax(0, 1fr); }
  .kopf { background-size: auto 150px; }
  .home { top: 86px; left: 10px; }
  .uhr { display: none; }
  .geheim { display: none; }
  .navi { overflow-x: auto; overflow-y: hidden; display: flex; flex-direction: column; }
  .nb-liste { display: flex; }
  .nb-liste li { flex: none; }
  .shout-form, .shoutbox { display: none; }
  .share { grid-template-columns: 1fr; }
}
