/* ---- styles ---- */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh; 
  font-family: Arial, sans-serif;
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
}

body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto; 
  width: 100%;
}

/* ---- Header ---- */
header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 40px;
  flex-wrap: wrap;
  background: #fff;
  flex-shrink: 0; 
}

.logo-container {
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.subtitle {
  color: #555;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* navi */
nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 5px;
}

nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  padding: 5px 10px;
}

nav a.active {
  font-weight: 700;
}

#lang-toggle, .back-btn {
  cursor: pointer;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-weight: bold;
}

.back-btn {
  background: none;
  border: 1px solid #111;
  color: #111;
  transition: all 0.2s;
}

.back-btn:hover {
  background: #111;
  color: #fff;
}

/* ---- gallery (masonry) ---- */
#gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1200px;
  margin: 20px auto;
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  padding: 0 20px; 
}

.item .content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item img, .item video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* tags without # */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  color: white;
  user-select: none;
  transition: 0.2s;
}
.tags span:hover { opacity: 0.8; }

#modal-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
#modal-tags span { padding: 3px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 500; color: white; cursor: pointer; }

/* ---- modal ---- */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.modal img, .modal video {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ---- contacts ---- */
.contact-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.contact-links a {
  display: inline-block;
  margin: 10px;
  padding: 10px 15px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* === Legal Pages (Impressum, Datenschutz) === */
.legal-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  flex: 1 0 auto; 
  width: 100%;
  box-sizing: border-box;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-page p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

/* === Show More Button === */
.show-more-container {
  text-align: center;
  margin: 30px 0 50px 0;
  flex-shrink: 0;
}

.show-more-btn {
  background: #111;
  color: #fff;
  border: 2px solid #111;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  background: #fff;
  color: #111;
}

/* === Site Map / Footer Links === */
.site-map {
  background: #f5f5f5;
  padding: 15px 20px;
  margin-top: 30px;
  border-top: 1px solid #ddd;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.site-map-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  color: #666;
  font-size: 11px;
  text-align: center;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.site-map {
  flex-shrink: 0;
}

/* --- mobi adapt --- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }

  nav {
    padding-top: 0;
  }

  #gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
  }
  
  .site-map-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #gallery {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
}

/* ============================================
   SEO: Visuell versteckt, für Suchmaschinen
   Folgende Klasse ans Ende von style.css anhängen
   ============================================ */
.seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
