/* Reproduces the look of the original site: the left navigation column that
   used to be a frame, the yellow section bars, and the black photo albums. */

body {
  margin: 0;
  background: #fff;
  color: #000;
  font: 16px/1.2 "Times New Roman", Times, serif;
}

img { border: 0; }

/* Was <FRAMESET COLS="150,100%">. */
.frame { display: flex; align-items: stretch; min-height: 100vh; }

.leftbar {
  flex: 0 0 150px;
  background: #33ccff url("../Linksback.jpg");
  padding: 96px 0 0 8px;
}
.leftbar a { display: block; margin-bottom: 33px; }

.content { flex: 1 1 auto; padding: 8px; min-width: 0; }

/* On a phone the 150px column would leave nothing for the content. */
@media (max-width: 700px) {
  .frame { display: block; }
  .leftbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px;
  }
  .leftbar a { margin-bottom: 0; }
}

/* The header sat in a 732px table, so it is not centred on the whole page. */
.head { width: 732px; max-width: 100%; }

.title { text-align: center; font-size: 32px; font-weight: bold; margin: 16px 0; }
.subtitle { text-align: center; font-size: 24px; font-weight: bold; margin: 16px 0; }

/* The yellow band with the red section heading. */
.bar { background: yellow; margin: 16px 0; }
.bar span {
  display: inline-block;
  width: 37%;
  margin-left: 2%;
  text-align: center;
  color: red;
  font-size: 32px;
  font-weight: bold;
}

.text-block { width: 550px; max-width: 100%; }

.text { width: 550px; max-width: 100%; font-family: Arial, Helvetica, sans-serif; }
.text p { margin: 0 0 12px; }

hr { margin: 16px 0; }

.note { font-size: 13px; }
.arial { font-family: Arial, Helvetica, sans-serif; }

.head-block { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.head-block .addr { width: 178px; font-weight: bold; }

.pair { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }

table.kontakt { border-collapse: collapse; width: 417px; max-width: 100%; background: #66ffff; }
table.kontakt td, table.kontakt th {
  border: 1px solid #808080;
  padding: 2px 4px;
  font-size: 18px;
  font-weight: normal;
  text-align: center;
}
table.kontakt th { background: #ffff66; }
table.kontakt tr + tr th { background: yellow; }

/* Belegungsplan. The 1px gaps show the gray backing, as the old CELLSPACING did. */
.plan { background: #666; display: inline-block; padding: 1px; margin: 8px 0; max-width: 100%; }
.plan-scroll { overflow-x: auto; }
.plan-title { background: #ccc; text-align: center; font-weight: bold; padding: 2px; margin-bottom: 1px; }
.plan-note {
  background: #ddd;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px;
  margin-bottom: 1px;
  font: bold 13px/1.3 Arial, Helvetica, sans-serif;
}
.plan-note .txt { max-width: 450px; }
.plan-legend { font-weight: normal; font-size: 13px; }
.plan-legend div { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.plan-legend i { display: block; width: 13px; height: 13px; font-style: normal; }
.plan-row { display: grid; grid-template-columns: 84px repeat(31, 14px); gap: 1px; margin-bottom: 1px; }
.plan-row > * { font: bold 10px/14px Arial, Helvetica, sans-serif; height: 14px; }
.plan-row .month { background: #eee; font-weight: normal; padding-left: 2px; }
.plan-row .num { text-align: center; }
.plan-row .frei { background: lime; }
.plan-row .belegt { background: red; }
.plan-row .none { background: gray; }

/* Photo grids. The house gallery keeps the old 115px thumbnails, the class
   albums the 200px ones on black. */
.grid { display: grid; gap: 2px; padding: 0; margin: 16px 0; list-style: none; }
.grid a { display: block; }
.grid img { display: block; }

/* Was a fixed five-column table; the thumbnails keep their own proportions. */
.grid-haus { grid-template-columns: repeat(5, 115px); width: 607px; max-width: 100%; }
.grid-haus li { display: flex; align-items: center; justify-content: center; }

body.album { background: #000; color: #fff; font-family: Verdana, Arial, Helvetica, sans-serif; }
body.album h4 { color: #fff; text-align: center; font-size: 16px; margin: 16px 0; }
body.album .wrap { padding: 8px; }
.grid-album { grid-template-columns: repeat(var(--cols, 5), 200px); gap: 8px; justify-content: center; }
.grid-album img { width: 200px; height: 200px; }
.grid-album a { text-decoration: none; text-align: center; font-size: 10px; }

/* eos overview page. */
body.eos { font-family: Verdana, Arial, Helvetica, sans-serif; }
body.eos .wrap { padding: 8px; }
body.eos h4 { text-align: center; font-size: 16px; margin: 16px 0; }
.eos-block { text-align: center; font-size: 13px; }
.eos-block a { text-decoration: none; }
.eos-caption { font-size: 10px; }
.eos-links { font-size: 13px; }
.eos-links a { text-decoration: none; display: block; }

/* Opens a photo in place of the per-photo pages the albums used to have. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 96px); object-fit: contain; }
.lightbox figcaption {
  color: #fff;
  font: 10px Verdana, Arial, Helvetica, sans-serif;
  padding: 8px;
  text-align: center;
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  font-size: 24px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; }
