/* Bangkok 2000/2001 – Aussehen wie das Original (styles.css + BODY BGCOLOR="#FBE7BD" text="#A00000", Design: Chris). */
html[data-sprache="de"] [lang="en"], html[data-sprache="en"] [lang="de"] { display: none !important; }
body { margin: 0; background: #FBE7BD; color: #A00000; font: 13px Verdana, Arial, sans-serif; }
.seite { max-width: 640px; margin: 0 auto; padding: 0 8px 2em; text-align: center; }
a { text-decoration: none; font-weight: bold; color: #A00000; }
a:hover { color: red; }
p { font-size: 13px; color: #A00000; }
h1 { font-size: large; font-weight: normal; font-family: Verdana, sans-serif; color: #A00000; margin: 1.2em 0 .6em; }
h1 small { font-size: 13px; }
h2 { font-size: small; font-weight: bold; color: #A00000; margin: 2em 0 .5em; }
h2.leer { font-weight: normal; opacity: .6; }
.small { font-size: 11px; }

/* Kopf wie auf jeder Originalseite: Wächterfigur – Schriftzug – Wächterfigur */
.kopf { display: flex; justify-content: center; align-items: flex-start; }
.kopf img { display: block; max-width: 100%; height: auto; }
.kopf .figur { width: 20.6%; } .kopf .mitte { width: 58.3%; } .kopf .schriftzug { width: 100%; }
a.kopf, a.kopf:hover { color: inherit; }
.sprachen { margin: 1em 0 .2em; }
.sprachen button { background: none; border: none; padding: 0 6px; cursor: pointer; opacity: .45; }
.sprachen button.an { opacity: 1; }
.sprachen img { display: block; }
.menue { margin: .4em 0 1.2em; }
.menue a.aktiv { color: red; }
.blaettern { margin: 1.2em 0; }

/* Tageszusammenfassung wie zusafa.pl */
table.tag { width: 100%; border-collapse: collapse; text-align: left; }
table.tag td { vertical-align: top; padding: 4px; }
table.tag td.beschriftung { width: 120px; text-align: right; }
table.tag td.beschriftung p { margin: .9em 0 .3em; }
.text { font-size: 13px; text-align: justify; line-height: 1.45; margin: .9em 0; overflow-wrap: anywhere; }
.text img { max-width: 100%; height: auto; }
.text table { margin: .5em 0; }
.wetterbild { width: 48px; height: auto; }

/* Monat */
table.kalender { margin: 0 auto; border-collapse: separate; border-spacing: 3px; }
table.kalender th { font-size: 11px; padding: 2px 4px; }
table.kalender td { width: 82px; height: 58px; vertical-align: top; text-align: left; border: 1px solid #E3C88F; padding: 3px; }
table.kalender td:empty { border: none; }
table.kalender td.voll { background: #FDF0D2; }
table.kalender td.voll:hover { border-color: #A00000; }
table.kalender td.voll a { display: block; height: 100%; }
table.kalender td.leer { opacity: .45; }
table.kalender .wetterbild { width: 34px; display: block; margin: 3px auto 0; }

/* Start, Galerien, Suche */
table.start { margin: 0 auto; } table.start td { padding: 5px; text-align: center; }
table.galerien { margin: 0 auto; text-align: left; }
table.galerien td { padding: 4px 8px; vertical-align: middle; }
table.galerien td.vorschau img { width: 80px; height: 60px; object-fit: cover; display: block; border: 1px solid #A00000; }
/* wie die Original-Galerieseiten: kleine Vorschau (64×48) mit Dateinamen darunter, 5 pro Reihe */
.raster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 4px; max-width: 520px; margin: 0 auto; }
.raster a { font-size: 13px; }
.raster img { width: 64px; height: 48px; object-fit: cover; display: block; margin: 0 auto 1px; }
@media (max-width: 480px) { .raster { grid-template-columns: repeat(3, 1fr); } table.tag td.beschriftung { width: 70px; }
  table.kalender td { width: auto; height: 44px; } table.kalender .wetterbild { width: 24px; } }
#suchfeld { font: 13px Verdana, sans-serif; color: #A00000; background: #FFF8E8; border: 1px solid #A00000; padding: 4px 6px; max-width: 100%; }
table.treffer { text-align: left; width: 100%; } table.treffer td { padding: 6px 4px; vertical-align: top; }
table.treffer td:first-child { white-space: nowrap; text-align: right; width: 120px; }
mark { background: #FFE27A; color: #A00000; }

/* Vollbild (Galerien und Bilder in den Einträgen) */
.text img { cursor: zoom-in; }
#vollbild { position: fixed; inset: 0; z-index: 20; display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(30, 8, 0, .95); touch-action: pan-y; user-select: none; }
#vollbild.offen { display: flex; }
#vollbild .buehne { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; min-height: 0; }
#vollbild img { max-width: 96vw; max-height: calc(100vh - 5.5rem); border: 2px solid #FBE7BD; box-shadow: 0 6px 30px rgba(0,0,0,.6);
  transition: opacity .15s; }
#vollbild img.laedt { opacity: .6; }
#vollbild button { position: absolute; background: rgba(251, 231, 189, .12); border: none; color: #FBE7BD; cursor: pointer;
  font: bold 2rem Verdana, sans-serif; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
#vollbild button:hover { background: rgba(251, 231, 189, .3); }
#vollbild .zu { top: .6rem; right: .6rem; font-size: 1.6rem; }
#vollbild .vor { left: .6rem; top: 50%; transform: translateY(-50%); } #vollbild .nach { right: .6rem; top: 50%; transform: translateY(-50%); }
#vollbild .leiste { color: #FBE7BD; font-size: 13px; padding: .6rem 1rem .9rem; text-align: center; max-width: 90vw; }
#vollbild .leiste a { color: #FBE7BD; margin-left: .8em; font-weight: normal; text-decoration: underline; }
#vollbild .weiter { color: #FFE27A; }
@media (max-width: 600px) { #vollbild .vor, #vollbild .nach { display: none; } }
