html {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}a {
  display: inline-block;
  text-decoration: none;
}a.button {
  padding: 0.5rem 1rem;
  background: #121212;
  color: #fafafa;
  text-align: center;
}a.button.primary {
  background: #36bae6;
  color: #e0e5eb;
}/* Header */
header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 3.5rem;
  width: 100%;
  background: transparent;
}header .container {
  position: absolute;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  top: 0;
  left: 0;
  -webkit-transform: translateX(0);
          transform: translateX(0);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 100%;
  max-width: 100vw;
  padding: 0 1.5rem;
  margin: 0 auto;
  border-bottom: 1px solid none;
  background: transparent;
}header .container > .logo {
  height: 1rem;
  padding: 1.25rem 0;
}input.hamburger-button {
  display: none;
}input.hamburger-button ~ label {
  position: relative;
  padding: 0.25rem;
  width: 1.5rem;
  height: 1.25rem;
}input.hamburger-button ~ label > div,
input.hamburger-button ~ label > div::before,
input.hamburger-button ~ label > div::after {
  content: "";
  position: absolute;
  top: 0.825rem;
  height: 0.125rem;
  width: 1.5rem;
  opacity: 1;
  background: #121212;
  -webkit-transition: 0.14s ease-in-out;
  transition: 0.14s ease-in-out;
}input.hamburger-button ~ label > div::before {
  top: -0.5rem;
}input.hamburger-button ~ label > div::after {
  top: 0.5rem;
}header .container .hamburger-button:checked ~ label > div {
  width: 0;
  background: rgba(18, 18, 18, 0);
}header .container .hamburger-button:checked ~ label > div::before {
  -webkit-transform: rotateZ(45deg);
          transform: rotateZ(45deg);
  top: -0rem;
}header .container .hamburger-button:checked ~ label > div::after {
  -webkit-transform: rotateZ(-45deg);
          transform: rotateZ(-45deg);
  top: -0rem;
}header .container .hamburger-button:checked ~ .menu {
  left: 0;
  -webkit-transform: translateX(0);
          transform: translateX(0);
}header .container .menu {
  position: absolute;
  z-index: -1;
  top: 3.5rem;
  -webkit-transform: translateX(calc(-100vw - 3rem));
          transform: translateX(calc(-100vw - 3rem));
  display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: repeat(2, -webkit-max-content);
      grid-template-rows: repeat(2, max-content);
  width: 100%;
  background: #fafafa;
  -webkit-transition: 0.22s ease-in-out;
  transition: 0.22s ease-in-out;
}/* ← HIER war das Problem: fehlende Trennung + falsche Verschachtelung */header .container .menu nav ul > li > a {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 100%;
  padding: 1rem 1.5rem;
  text-align: left;
  color: #121212;
  -webkit-transition: 0.14s ease-in-out;
  transition: 0.14s ease-in-out;
}header .container .menu nav ul > li > a:hover {
  color: white;
  background: #1f408f;
}header .container .menu div.buttons {
  grid-area: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 0.5rem 1rem;
  border-top: 1px solid #e0e5eb;
  background: #fafafa;
}header .container .menu div.buttons > * {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: -webkit-min-content;
  min-width: -moz-min-content;
  min-width: min-content;
  margin: 0.5rem;
}  /* Donation Banner – next to logo on wide screens / below on small screens */
.donate-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #5d4037;
  text-align: center;
}.donate-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #ffe0b2, #ffcc80);
}.donate-link {
  color: #5d4037;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}.donate-heart {
  font-size: 1.4em;
  color: #e91e63;
  animation: heart-pulse 2s infinite;
}.donate-banner strong {
  color: #d32f2f;
  font-weight: 700;
}/* Heartbeat animation */
@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}/* Desktop: place next to the logo (on the right) */
@media (min-width: 768px) {
  #cpg_logo_block_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }  #cpg_logo_block_logo {
    flex-shrink: 0;
  }  .donate-banner {
    margin-left: auto;           /* pushes it to the right */
    margin-right: 20px;
    min-width: 280px;
    white-space: nowrap;
  }
}/* Mobile: place below logo + menu button (second row) */
@media (max-width: 767px) {
  #cpg_logo_block_inner {
    flex-direction: column;
    align-items: center;
  }  .donate-banner {
    margin-top: 12px;
    margin-bottom: 8px;
    width: 90%;
    max-width: 380px;
    font-size: 0.95rem;
    padding: 10px 14px;
  }
}

/* Logo-Bereich immer horizontal ausrichten */
#cpg_logo_block_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  position: relative;
  padding: 10px 20px;
  box-sizing: border-box;
}/* Logo bleibt links */
#cpg_logo_block_logo {
  flex-shrink: 0;
  margin-right: 10px;
}/* Donate-Banner – flexibel dazwischen */
.donate-banner {
  flex-grow: 1;
  text-align: center;
  margin: 0 15px;
  margin-right: 10px;
  white-space: nowrap;
}/* Menü-Button – IMMER ganz oben rechts, fixiert in einer Zeile mit Logo */
.menu-section {
  position: absolute;
  top: 4px;
  right: 10px;
  z-index: 100;
}.jm-menu-btn {
  padding: 12px;
  border-radius: 12px !important;
  background: transparent;
  border: none;
  cursor: pointer;
}/* Auf kleinen Screens: Menü-Button bleibt trotzdem oben rechts */
@media (max-width: 767px) {
  #cpg_logo_block_inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }  #cpg_logo_block_logo {
    margin-right: 0;
    margin-bottom: 10px;
  }  .donate-banner {
    order: 2;
    width: 90%;
    margin: 10px auto;
  }  /* Menü-Button bleibt oben rechts – unabhängig vom Rest */
  .menu-section {
    position: absolute;
    top: 10px;
    right: 10px;
  }
}/* WICHTIG: Menü aus dem normalen Flow nehmen + ganz oben liegen */
.jmenu {
  position: relative;   /* Eltern für absolute/fixed Kinder */
}.jm-collapse {
  /* !!! Das fehlt dir fast sicher !!! */
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 30, 40, 0.98);   /* dunkler Hintergrund für Kontrast */
  z-index: 9999;                        /* sehr hoch! */
  display: none;                        /* standardmäßig zu */
  overflow-y: auto;
  padding: 80px 20px 40px 20px;         /* Platz für Header + Scroll */
  box-sizing: border-box;
}/* Wenn Checkbox angehakt → Menü sichtbar */
#menu-btn:checked + .jm-menu-btn + .jm-close-btn + .jm-collapse,
#menu-btn:checked ~ .jm-collapse {        /* ~ weil dazwischen label ist */
  display: block !important;
}/* Optional: Animation beim Öffnen */
#menu-btn:checked ~ .jm-collapse {
  animation: fadeIn 0.3s ease;
}@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}/* Hamburger & Close-Button etwas höher z-index */
.jm-menu-btn, .jm-close-btn {
  z-index: 10000;
  position: relative;
}/* Menü-Items hübscher machen (optional) */
.jm-collapse ul {
  list-style: none;
  padding: 0;
  margin: 0;
}.jm-collapse li a {
  display: block;
  color: #49535c;
  font-size: 1.25rem;
  padding: 16px 24px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}.jm-collapse li a:hover {
  background: rgba(255,255,255,0.08);
}


/* Responsive Thumbnails: Auf schmalen Screens 1-spaltig (Stack) */
@media screen and (max-width: 640px) {  /* Tabelle → Block-Layout */
  table.maintable,
  table.maintable tr,
  table.maintable td {
      display: block !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
  }  /* Jede Thumbnail-Zelle */
  table.maintable td {
      margin-bottom: 24px;           /* Abstand zwischen den einzelnen Thumbnails – hier kannst du spielen: 16–32px */
      padding: 0 !important;
      text-align: center;
      border: none !important;
  }  
  
  /* Das eigentliche Thumbnail-Bild größer machen */
  table.maintable td img,
  table.maintable td a img {
      max-width: 90% !important;     /* 90–100% – je nachdem wie viel Rand du willst */
      width: 90% !important;         /* erzwingt fast volle Breite */
      height: auto !important;
      display: block;
      margin: 0 auto 12px auto;      /* Abstand Bild → Text darunter */
      border-radius: 6px;            /* optional: leichte Rundung */
      box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* optional: leichter Schatten */
  }  /* Texte unter dem Bild (Titel, Dateiname, Kommentare, Stats) */
  .thumb_caption,
  .thumb_filename,
  .thumb_title,
  .thumb_num_comments,
  .album_stat {
      padding: 0 10px;
      margin: 6px 0 2px 0;
      font-size: 1rem;               /* 1rem = normale Textgröße, ggf. 0.95rem oder 1.05rem testen */
      line-height: 1.4;
      text-align: center;
  }  /* Weniger Padding um die gesamte Thumbnails-Box */
  .thumbnails {
      padding: 12px 8px !important;  /* kleiner als vorher */
      margin: 0 !important;
  }  /* Optional: Album-Überschriften etwas größer / klarer */
  .catrow td, .catrow_noalb td {
      font-size: 1.1rem !important;
      padding: 12px 8px !important;
  }
}
@media screen and (max-width: 768px) {
  table.maintable td img,
  table.maintable td a img {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 0 10px 0;
      border-radius: 0;              /* keine Rundung = maximal nutzbare Breite */
  }  table.maintable td {
      margin-bottom: 20px;
  }  .thumb_caption,
  .thumb_title {
      font-size: 1.05rem;
      font-weight: 600;
      padding: 0 12px;
  }  .thumbnails {
      padding: 0 !important;
  }
}
@media screen and (max-width: 380px) {
  .thumbnails table.maintable {
      display: grid !important;
      grid-template-columns: 1fr !important;   /* nur 1 Spalte */
      gap: 20px !important;
  }  .thumbnails table.maintable tr {
      display: contents !important;   /* tr unsichtbar machen */
  }  .thumbnails table.maintable td {
      display: block !important;
  }
} 

/* Verhindert Stauchen der Thumbnails */
 table.maintable td img,
 table.maintable td a img {
     width: auto !important;                /* Breite nicht mehr 100% erzwingen */
     max-width: 100% !important;            /* passt sich der Zelle an, wird aber nicht breiter */
     height: auto !important;               /* wichtig: Höhe bleibt proportional */
     object-fit: contain;                   /* oder cover – contain ist meist schöner */
     display: block;
     margin: 0 auto 12px auto;              /* zentriert */
 } /* Zelle darf nicht schmaler als das Bild werden */
 table.maintable td {
     min-width: 240px !important;           /* ← wichtigster Fix: Mindestbreite setzen */
     width: auto !important;                /* erlaubt natürliche Breite */
     max-width: 100% !important;
     margin: 0 auto 28px auto;              /* zentriert die ganze Zelle */
     text-align: center;
 } /* Optional: Gesamte Thumbnails-Box zentrieren */
 .thumbnails {
     display: flex;
     flex-direction: column;
     align-items: center;
     padding: 12px 8px !important;
 }

