/* Fun-World – Neuauflage. Farben & Masse wie das Original (2008). */
[hidden] { display: none !important; }
:root {
  --blau: #386CA5;
  --hell: #eef3f9;
  --kopf-h: 129px;
  --navi-b: 153px;
  --schrift: Verdana, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: bold 13px/1.25 var(--schrift);
  color: var(--blau);
  background: #fff;
  display: grid;
  grid-template-columns: var(--navi-b) minmax(0, 1fr);
  grid-template-rows: var(--kopf-h) minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
img { border: 0; }
a { color: var(--blau); text-decoration: none; }
a:hover, a:focus-visible { color: var(--blau); 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; }

/* ---------- Kopf (früher top.html) ---------- */
.kopf {
  grid-column: 1 / -1;
  position: relative;
  background: #fff url("../../bilder/top.jpg") no-repeat 0 0;
  overflow: hidden;
}
.kopf-logo { position: absolute; left: 0; top: 0; width: 600px; height: 110px; }
body.laedt .inhalt { cursor: progress; opacity: .85; transition: opacity .15s .1s; }
.kopf-buttons {
  position: absolute; right: 2px; top: 2px;
  display: flex; gap: 4px; align-items: flex-start;
}
.kopf-buttons button {
  border: 0; padding: 0; margin: 0; background: none; cursor: pointer; line-height: 0;
  transition: transform .12s ease, filter .12s ease;
}
.kopf-buttons button:hover, .kopf-buttons button:focus-visible {
  transform: translateY(1px); filter: brightness(1.12) drop-shadow(0 1px 2px rgba(56,108,165,.45));
}
.kopf-buttons button:active { transform: translateY(2px); }

/* ---------- Navigation (früher navi.html) ---------- */
.navi {
  grid-row: 2 / span 2;
  background: url("../../bilder/navi.jpg") repeat;
  overflow: hidden;
  padding-top: 28px;
}
.navi ul { list-style: none; margin: 0; padding: 0; }
.navi li { height: 35px; }
.navbtn { position: relative; display: block; width: 233px; height: 35px; line-height: 0; }
.navbtn img { position: absolute; left: 0; top: 0; }
.navbtn .h { visibility: hidden; }
.navbtn:hover .h, .navbtn:focus-visible .h { visibility: visible; }
.navbtn:hover .n, .navbtn:focus-visible .n { visibility: hidden; }
.navbtn:focus-visible { outline-offset: -3px; }
.navi-dance { display: block; margin: 18px 0 0 87px; }
.navi-sound { width: 75px; height: 13px; margin: 6px 0 0 83px; }
.navi-sound .swf { width: 100%; height: 100%; }

/* ---------- Inhalt (früher Frame "main") ---------- */
.inhalt {
  overflow: auto;
  background: #fff url("../../bilder/background.jpg") no-repeat 0 0;
  padding: 2px 0 30px;
  scrollbar-color: var(--blau) #fff;
  outline: none;
}
.inhalt::-webkit-scrollbar { width: 16px; height: 16px; }
.inhalt::-webkit-scrollbar-track { background: #fff; }
.inhalt::-webkit-scrollbar-thumb { background: #fff; border: 2px solid var(--blau); border-radius: 2px; }
.inhalt::-webkit-scrollbar-thumb:hover { background: var(--hell); }

.titel { font-size: 13px; margin: 0 0 0 0; padding: 4px 2px; font-weight: bold; }
.titel::before, .untertitel::before { content: "..:: "; }
.untertitel { font-size: 13px; margin: 14px auto 10px; width: 79%; font-weight: bold; }
.mitte { width: 82%; margin: 0 auto; text-align: center; }
.links-text { width: 78%; margin: 0 auto; }
.klein { font-size: 11px; font-weight: normal; }

/* Fusszeile mit Copyright + Besucherzähler */
.fuss {
  display: flex; justify-content: center; align-items: center; gap: 10px 26px; flex-wrap: wrap;
  padding: 6px 12px 8px; font-size: 11px; color: var(--blau); background: #fff;
}
.zaehler { display: inline-flex; align-items: center; gap: 7px; }
.z-label { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.z-ziffern { display: inline-flex; line-height: 0; }

/* Links */
.linkliste { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 24px; margin: 36px 16px; }
.linkkarte {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr auto; column-gap: 14px; row-gap: 6px;
  padding: 18px 20px; border: 2px solid var(--blau); border-radius: 8px; background: rgba(255,255,255,.9);
  box-shadow: 0 3px 10px rgba(56,108,165,.18); color: var(--blau); text-decoration: none !important;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.linkkarte:hover, .linkkarte:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(56,108,165,.3); background: #fff; }
.linkkarte.leer { opacity: .75; cursor: default; }
.linkkarte.leer:hover { transform: none; }
.lk-icon { grid-row: 1 / span 3; font-size: 40px; line-height: 1; }
.lk-titel { font-size: 15px; }
.lk-text { font-weight: normal; color: #223; font-size: 12px; line-height: 1.45; }
.lk-url { font-size: 11px; color: #5a7fa8; }

/* Monitor-Rahmen */
.monitor-reihe {
  display: grid;
  grid-template-columns: repeat(5, 180px);
  justify-content: center;
  gap: 4px 4px;
  margin: 0 auto 6px;
}
.monitor-reihe.viele { grid-template-columns: repeat(auto-fill, 180px); max-width: 940px; }
.monitor { margin: 0; text-align: center; padding: 2px 0 6px; }
.monitor-frame { display: inline-flex; flex-direction: column; line-height: 0; }
.monitor-row { display: flex; }
.monitor-row a { display: block; line-height: 0; }
.monitor-screen { width: 100px; height: 75px; object-fit: cover; background: #000; transition: filter .15s; }
.monitor a:hover .monitor-screen, .monitor a:focus-visible .monitor-screen { filter: brightness(1.15) saturate(1.1); }
.monitor figcaption { margin-top: 4px; }

/* Galerie */
.galerie { text-align: center; font-size: 18px; padding-top: 8px; }
.galerie form { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.galerie input[type=number] { width: 4em; }
.galerie .blaettern { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin: 14px 8px 10px; }
.galerie .blaettern a, .galerie .blaettern span { margin: 0 3px; }
.galerie .aktuell { color: #000; }
.galerie img.foto { max-width: calc(100% - 16px); height: auto; }

/* Spiele */
.spiel { text-align: center; padding: 8px 8px 0; }
.spiel-box {
  margin: 8px auto; max-width: 100%; background: #000;
  border: 2px solid var(--blau); box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.spiel-box:fullscreen { border: 0; width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto !important; }
.spiel-leiste { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.swf { position: relative; }
.swf-fehler { color: #fff; padding: 20px; font-size: 13px; }

/* Knöpfe & Formulare */
button, input, textarea, select { font: inherit; color: inherit; }
.knopf, .galerie button {
  display: inline-block; cursor: pointer; border: 1px solid var(--blau); background: #fff;
  color: var(--blau); padding: 3px 10px; border-radius: 3px; font-weight: bold;
}
.knopf:hover, .galerie button:hover { background: var(--blau); color: #fff; text-decoration: none; }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=number], input[type=password], textarea {
  border: 1px solid var(--blau); background: rgba(255,255,255,.9); padding: 3px 5px; font-weight: normal; color: #000;
}

/* Gästebuch */
.gb { width: 82%; max-width: 720px; margin: 0 auto; }
.gb-form { display: grid; grid-template-columns: 110px 1fr; gap: 6px 8px; align-items: start; margin: 10px 0 20px; }
.gb-form label { padding-top: 4px; }
.gb-form textarea { min-height: 110px; resize: vertical; }
.gb-form .voll { grid-column: 2; }
.gb-hp { position: absolute; left: -5000px; }
.gb-eintrag { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--blau); margin-bottom: 8px; background: rgba(255,255,255,.85); }
.gb-meta { background: var(--blau); color: #fff; padding: 6px 8px; font-size: 11px; }
.gb-meta a { color: #fff; }
.gb-text { padding: 6px 10px; font-weight: normal; color: #000; overflow-wrap: anywhere; }
.meldung { padding: 6px 10px; border: 1px solid var(--blau); background: #fff; margin: 8px 0; }
.meldung.fehler { border-color: #b00; color: #b00; }
.seiten { text-align: center; margin: 10px 0; }
.seiten a, .seiten b { margin: 0 4px; }

/* Suche */
.suche { width: 82%; max-width: 760px; margin: 0 auto; }
.suche input[type=search] { width: 100%; font-size: 15px; padding: 6px 8px; }
.treffer { list-style: none; padding: 0; columns: 2 240px; }
.treffer li { padding: 2px 0; break-inside: avoid; }
.treffer small { font-weight: normal; color: #555; }

/* Wetter Uesslingen */
.station {
  max-width: 640px; margin: 26px auto; padding: 0 16px 20px; text-align: center;
  background: rgba(255,255,255,.88); border: 2px solid var(--blau); border-radius: 10px;
  box-shadow: 0 4px 16px rgba(56,108,165,.2); overflow: hidden;
}
.st-kopf { display: block; margin: 0 -16px 14px; padding: 12px 16px; background: var(--blau); color: #fff !important; text-decoration: none !important; }
.st-kopf:hover { background: #2d5a8c; }
.st-name { display: block; font-size: 17px; }
.st-live { font-size: 11px; color: #9fe39f; margin-left: 6px; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.st-ort { display: block; font-size: 11px; font-weight: normal; opacity: .9; margin-top: 2px; }
.st-werte { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.st-temp { font-size: 54px; line-height: 1; letter-spacing: -1px; }
.st-temp small { font-size: 22px; }
.st-kacheln { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 8px; margin: 0; }
.st-kacheln div { background: #f2f6fb; border: 1px solid #c8d8ea; border-radius: 6px; padding: 7px 10px; text-align: left; }
.st-kacheln dt { font-size: 10px; font-weight: normal; color: #557; }
.st-kacheln dd { margin: 2px 0 0; font-size: 15px; }
.st-stand { font-size: 11px; font-weight: normal; color: #557; margin: 14px 0 10px; }
.st-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.st-links a { padding: 5px 10px; border: 1px solid #c8d8ea; border-radius: 14px; background: #fff; font-size: 12px; text-decoration: none; transition: background .12s, color .12s; }
.st-links a:hover, .st-links a:focus-visible { background: var(--blau); color: #fff; }
.st-besuch { font-size: 14px; padding: 7px 16px; }

/* Popups */
.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("../../bilder/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; }

/* Kleine Bildschirme */
@media (max-width: 640px) {
  body { grid-template-columns: 1fr; grid-template-rows: 112px auto minmax(0, 1fr) auto; }
  .navi { grid-row: auto; }
  .kopf { background-size: auto 150px; }
  .navi { padding: 0; overflow-x: auto; }
  .navi ul { display: flex; }
  .navi li { width: 150px; flex: none; overflow: hidden; }
  .navi-dance { display: none; }
  .navi-sound { margin: 4px 0 4px 8px; }
  .monitor-reihe { grid-template-columns: repeat(auto-fill, 150px); }
  .gb-eintrag { grid-template-columns: 1fr; }
  .gb-form { grid-template-columns: 1fr; }
  .gb-form .voll { grid-column: 1; }
  .share { grid-template-columns: 1fr; }
}
