/* ======================
   GLOBAL
   ====================== */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #B9D6E8 !important; /* Muted Baby Blue (wichtig) */
  color: #111;
  -moz-osx-font-smoothing: grayscale;
}

/* ======================
   LAYOUT
   ====================== */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden; /* verhindert body-scroll */
}

/* Spalte 1: Navigation */

.start-links {
font-family: "Liberation Serif", serif;
  width: 20%;
  min-width: 170px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-title {
  font-style: italic;
  font-size: 1.1rem;
}
.start-links .link, .start-links a.link {
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  color: inherit;
  font-size: 1.1rem;
  padding: 1px 0;
  transition: transform .12s;
}
.start-links .link:hover {
  transform: translateX(4px);
}

/* Spalte 2: Mitte (Info / Kategorien) */
.dynamic-area {
  width: 30%;
  padding: 20px;
  overflow-y: auto; /* nur diese Spalte scrollt */
}
.dynamic-area p { line-height: 1; margin: 0 10 10px 0; }

.info-block {
  font-family: serif;
  font-size: 1.1rem;
}

/* Spalte 3: Preview (Text oben + scrollbare Bilder) */
.preview-area {
  width: 50%;
  padding: 20px;
  overflow-y: auto; /* nur diese Spalte scrollt */
  display: flex;
  flex-direction: column;
}
/* preview header / beschreibung */
.preview-desc {
  font-size: 10pt;
  margin-bottom: 10px;
  line-height: 1;
}

/* Bilderliste (vertikal) */
.preview-images {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Einzelne Bildkarte */
.img-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff0; /* transparent fallback */
}
.img-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: none;
}

/* hover-meta: sehr klein, unten am Bild, nur sichtbar bei hover */
.img-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  padding: 6px 8px;
  font-size: 0.68rem;
  line-height: 1;
  color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.45);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity .18s, transform .18s;
  text-align: left;
}

/* sichtbarkeit bei hover */
.img-card:hover .img-meta {
  opacity: 1;
  transform: translateY(0);
}

/* Categories und Projektlist Styling (Accordion) */
.category {
  cursor: pointer;
  padding: 8px 0;
  margin-top: 8px;
}
.project-list {
  margin: 3px 0 14px 10px;
  display: none;
}
.project-item, a.project-item {
  cursor: pointer;
  padding: 6px 0;
  font-size: 0.98rem;
}
.project-item:hover {transform: translateX(6px); }

/* responsive adjustments (kleine Bildschirme) */
@media (max-width: 900px) {
  .layout { flex-direction: column; height: auto; }
  .start-links { width: 100%; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.04); }
  .dynamic-area, .preview-area { width: 100%; height: auto; min-height: 200px; }
}

/* ======================
   FOOTER
   ====================== */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px 12px;
  font-size: 0.75rem;
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
  font-family: "Liberation Serif", Georgia, "Times New Roman", serif;
}

.footer-links a {
  text-decoration: none;
  color: #111;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 0.6;
}

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }
}

/* ----------------- LEGAL POPUP ----------------- */
.legal-button {
  font-size: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  color: #111;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.85;
}
.legal-button:hover { opacity: 0.6; }

.legal-box {
  position: fixed;
  bottom: 30px;
  right: 10px;
  width: 300px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 3px;
  display: none;
  z-index: 1200;
}
.legal-box a { color: #003; }
.legal-box p { margin: 0 0 8px 0; line-height: 1.3; }

