/* Modernes Stylesheet – bildet das bisherige Layout (Design 3006 / Farbe 8) 1:1 nach. */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  color: #fff;
  text-align: left;
  background: #000;
  -webkit-text-size-adjust: 100%;
}
#wallpaper {
  position: fixed; inset: 0; z-index: -1;
  background: url(../designs/design3006/color8/wallpaper/wallpaper.jpg) 0 0 / 100% 100% no-repeat;
}
#top { display: block; height: 0; line-height: 0; font-size: 0; }
a, a:visited { color: #fff; text-decoration: underline; }

#wrap {
  width: max-content;
  margin: 0 auto;
  padding: 19px;
  display: grid;
  grid-template-columns: 169px 648px;
  grid-template-rows: 76px auto;
  gap: 19px;
}
header { display: contents; }
.box_bg  { background-image: url(../designs/design3006/color8/images/content_bg.png); }
.head_bg { background-image: url(../designs/design3006/color8/images/head_bg.png); }
.logo { height: 76px; display: flex; align-items: center; justify-content: center; }
.slogan { height: 76px; }
.slogan img { display: block; }

#menu { align-self: start; }
.menuitem { margin-bottom: 5px; }
.menuitem img { border: 0; display: block; }
.mi { position: relative; display: block; width: 169px; }
.mi .hov { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.mi:hover .hov, .mi:focus-visible .hov { opacity: 1; }

#content_wrap { min-width: 0; }
#content { padding: 10px 22px; }
body.albumpage #wrap { grid-template-columns: 169px 658px; }
#content p { margin: 1em 0; }
.text { padding: 1px 0; }
#totop { float: right; margin: 0 20px 20px 0; text-decoration: none; }
#content_wrap::after { content: ""; display: block; clear: both; }

/* Fotoalbum */
.albumtitle { font-size: 14px; font-weight: normal; margin: 0; }
.album { display: grid; grid-template-columns: 305px 1fr; }
.photo { margin: 0; width: 301px; padding-top: 4px; }
.photo:nth-child(odd) { margin-left: -1px; }
.album.plain { grid-template-columns: 306px 1fr; }
.album.plain .photo:nth-child(odd) { margin-left: 0; }
.album.plain .pic { margin-left: 3px; }
.pic { width: 290px; height: 290px; display: flex; align-items: center; justify-content: center; }
.pic img { max-width: 100%; max-height: 100%; display: block; }
/* Bilderrahmen (8 Teilbilder) */
.frame { display: grid; grid-template-columns: 10px 290px 10px; grid-template-rows: 10px 290px 10px; width: 310px; }
.frame i { display: block; background-repeat: no-repeat; background-size: 100% 100%; }
.frame .tl { background-image: url(../ce_photo/STRATO_8/e37cf1/rahmen8_l_o_ecke.png); }
.frame .t  { background-image: url(../ce_photo/STRATO_8/e37cf1/rahmen8_o_gerade.png); }
.frame .tr { background-image: url(../ce_photo/STRATO_8/e37cf1/rahmen8_r_o_ecke.png); }
.frame .l  { background-image: url(../ce_photo/STRATO_8/e37cf1/rahmen8_l_gerade.png); }
.frame .r  { background-image: url(../ce_photo/STRATO_8/e37cf1/rahmen8_r_gerade.png); }
.frame .bl { background-image: url(../ce_photo/STRATO_8/e37cf1/rahmen8_l_u_ecke.png); }
.frame .b  { background-image: url(../ce_photo/STRATO_8/e37cf1/rahmen8_u_gerade.png); }
.frame .br { background-image: url(../ce_photo/STRATO_8/e37cf1/rahmen8_r_u_ecke.png); }
.photo figcaption { overflow: hidden; overflow-wrap: break-word; width: 301px; }
.pagernav { display: flex; justify-content: space-between; margin-top: 4px; margin-bottom: 3px; }
.pagernav span:first-child { padding-left: 3px; }
.pagernav span:last-child { padding-right: 3px; }

audio { display: none; }

/* Mobile / kleine Fenster: gleiche Optik, nur einspaltig */
@media (max-width: 900px) {
  #wrap { width: 100%; grid-template-columns: 1fr; grid-template-rows: auto; padding: 10px; gap: 10px; }
  .logo { display: none; }
  .slogan { overflow: hidden; }
  .slogan img { max-width: 100%; height: auto; }
  #menu { display: flex; flex-wrap: wrap; gap: 5px; }
  .menuitem { margin: 0; }
  #content { padding: 10px 12px; }
  body.albumpage #wrap { grid-template-columns: 1fr; }
  .album { grid-template-columns: repeat(auto-fit, minmax(301px, 1fr)); justify-items: center; }
  .photo { max-width: 100%; }
  #content img { max-width: 100%; height: auto; }
}
