/* Eumelnetwork — Allrounder-Style nachgebaut für Hugo */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Verdana, Helvetica, Sans-Serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: #61C4E8;
  color: #333;
}
a, a:link, a:visited, a:active { color: #111849; text-decoration: none; }
a:hover { text-decoration: underline; }

#wrapper {
  max-width: 1180px;
  margin: 10px auto 0;
  background-color: #EFEFEF;
  border: 1px solid #FFF;
  padding: 10px;
}

/* Header */
#header_container { margin-bottom: 8px; }
#header {
  background-color: #383838;
  border: 1px solid #000;
  padding: 14px 20px;
  overflow: hidden;
}
#logo { width: auto; overflow: hidden; }
#logo a.medialogo { display: block; line-height: 0; }
#logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Topmenu */
#topmenu {
  background: #313131;
  border: 1px solid #444;
  padding: 4px 8px;
  margin-top: 4px;
  font-size: 14px;
}
#topmenu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
#topmenu li a {
  color: #ddd;
  display: inline-block;
  padding: 8px 16px;
  border-right: 1px solid #444;
}
#topmenu li a:hover { background: #222; color: #fff; text-decoration: none; }

/* Topmenu "Mehr" collapse */
#topmenu li.topmenu-more { position: relative; }
#topmenu li.topmenu-more details > summary {
  color: #ddd;
  padding: 8px 16px;
  border-right: 1px solid #444;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
#topmenu li.topmenu-more details > summary::-webkit-details-marker { display: none; }
#topmenu li.topmenu-more details > summary:hover { background: #222; color: #fff; }
#topmenu li.topmenu-more details[open] > summary { background: #222; color: #fff; }
#topmenu li.topmenu-more ul.topmenu-more-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #313131;
  border: 1px solid #444;
  border-top: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 220px;
  flex-direction: column;
}
#topmenu li.topmenu-more ul.topmenu-more-list li a {
  border-right: none;
  border-bottom: 1px solid #444;
  display: block;
  white-space: nowrap;
}
#topmenu li.topmenu-more ul.topmenu-more-list li:last-child a { border-bottom: none; }

/* Subhead / Breadcrumbs */
#subhead {
  background-color: #F9F9F9;
  border: 1px solid #FFF;
  padding: 8px 14px;
  margin-bottom: 8px;
  font-size: 13px;
}
.breadcrumb { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: #888; }
.breadcrumb li:last-child::after { content: ""; }

/* Container layout — single column (Sidebars entfernt) */
#container {
  display: block;
}
#content_outmiddle { width: 100%; }
.clr { clear: both; }

/* Main content */
#maincontent {
  background-color: #F9F9F9;
  border: 3px double #E9E9E9;
  padding: 16px 20px;
}
.item-page, .category-list, .blog-featured {
  background-color: #FFF;
  border: 1px solid #E9E9E9;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.page-header h1, .page-header h2 { color: #484848; margin: 0 0 10px; }
.page-header h1 { font-size: 1.8em; }
.page-header h2 { font-size: 1.4em; }
.item-title { margin: 0 0 8px; font-size: 1.45em; }
.article-info { font-size: 12px; color: #888; margin: 0 0 12px; }
.article-info dt { display: none; }
.article-info dd { display: inline; margin: 0 8px 0 0; }
.content-body { font-size: 16px; line-height: 1.6; }
.content-body p { margin: 0 0 0.9em; }
.content-body img { max-width: 100%; height: auto; }
.content-body table { max-width: 100%; }
.content-body h2 { font-size: 1.3em; }
.content-body h3 { font-size: 1.15em; }

/* Module boxes (sidebar) */
.module-outer, .module-outer_menu {
  background-color: #FFF;
  border: 1px solid #DDD;
  margin-bottom: 10px;
}
.moduleh3 {
  margin: 0;
  padding: 8px 12px;
  background-color: #383838;
  color: #DDD;
  border-bottom: 1px solid #555;
  font-size: 14px;
  font-weight: bold;
}
.module .lvround-inner, .module_menu .lvround-inner {
  padding: 10px 12px;
  background-color: #F9F9F9;
  font-size: 14px;
}
.module ul, .module_menu ul { list-style: none; margin: 0; padding: 0; }
.module_menu li a, .module li a {
  display: block;
  padding: 6px 0;
  color: #333;
  border-bottom: 1px dotted #CCC;
}
.module_menu li.current.active a, .module_menu li.current a { color: #000; font-weight: bold; }

/* Latest articles list (homepage) */
.latest-articles { list-style: none; padding: 0; }
.latest-articles li { padding: 8px 0; border-bottom: 1px dotted #ddd; }
.latest-articles h3 { margin: 0; font-size: 1.05em; }

/* Category list */
.category-articles { list-style: none; padding: 0; }
.category-articles li { padding: 10px 0; border-bottom: 1px dotted #DDD; }
.category-articles h2 { margin: 0; font-size: 1.15em; }
.subcategories { list-style: square inside; }

/* Footer */
#foot_container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px 16px;
}
#subfoot {
  background-color: #313131;
  color: #5B6C71;
  text-align: center;
  padding: 8px;
  border-top: 1px solid #FFF;
  font-size: 13px;
}
#footer {
  background-color: #222;
  color: #5B6C71;
  border: 1px solid #444;
  padding: 12px;
  text-align: center;
  font-size: 13px;
}
#footer a, #footer #gotop { color: #fff; }
.footer-bottom { font-size: 12px; }
.footer-bottom span { display: inline-block; margin: 0 12px; }

.tags { margin-top: 14px; font-size: 12px; }
.tag { display: inline-block; background: #eee; padding: 3px 8px; margin: 0 4px 4px 0; border-radius: 3px; }

/* Home page tiles */
.home-intro .lead {
  font-size: 17px;
  color: #555;
  margin: 8px 0 24px 0;
}
.section-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0 32px 0;
}
.section-tiles .tile {
  display: block;
  padding: 14px 16px;
  background: #f4f4f4;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.section-tiles .tile:hover {
  background: #e8e8e8;
  border-color: #888;
  text-decoration: none;
}
.section-tiles .tile h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #2a4d6e;
}
.section-tiles .tile p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}
.home-recent, .home-external {
  margin: 24px 0;
}
.home-recent h2, .home-external h2 {
  font-size: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}
.home-recent ul, .home-external ul {
  list-style: none;
  padding-left: 0;
}
.home-recent li, .home-external li {
  padding: 4px 0;
}
.home-recent small {
  color: #888;
  font-size: 12px;
  margin-left: 8px;
}

.home-disclaimer {
  margin: 32px 0 8px;
  padding: 14px 18px;
  background: #f4f4f0;
  border-left: 4px solid #888;
  font-size: 13px;
  color: #555;
  line-height: 1.55;
}
.home-disclaimer h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
  margin: 0 0 6px;
  border: none;
  padding: 0;
}
.home-disclaimer p { margin: 0; }

/* Gallery shortcode */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.gallery-item {
  display: block;
  background: #FFF;
  border: 1px solid #DDD;
  padding: 4px;
  text-align: center;
  font-size: 11px;
  color: #666;
  text-decoration: none;
  transition: box-shadow .15s;
}
.gallery-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  text-decoration: none;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 4px;
}
.gallery-caption {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  background: #222;
}
.lightbox-caption {
  color: #eee;
  font-size: 0.9em;
  margin-top: 8px;
  text-align: center;
  font-family: monospace;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 28px;
  line-height: 1;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox-close { top: 16px; right: 16px; font-size: 32px; }
.lightbox-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-close { width: 40px; height: 40px; font-size: 26px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 22px; }
}
