@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --bg: #f4f6f8;
  --text: #222;
  --card: #ffffff;
  --accent: #457b9d;
}

body.dark {
  --bg: #121212;
  --text: #eaeaea;
  --card: #1e1e1e;
  --accent: #64b5f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--card);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.navbar a {
  margin-right: 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.navbar button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Blog */
.post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 2rem;
}

.date {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

/* Galerie */
.gallery {
  column-count: 3;
  column-gap: 1rem;
}

.gallery img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .gallery {
    column-count: 1;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 800px) {
  .post {
    grid-template-columns: 1fr;
  }
}

/* Lightbox Overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1000;
  cursor: zoom-out;
}

/* Aktiv */
.lightbox.show {
  opacity: 1;
  pointer-events: all;
}

/* Bild */
.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 16px;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox.show .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

/* Close Button */
.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s;
}

.lightbox .close:hover {
  transform: scale(1.15);
}

.lightbox-info {
  position: absolute;
  bottom: 40px;
  text-align: center;
  color: white;
}

.lightbox-info h3 {
  font-size: 1.3rem;
}

.lightbox-info p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Navigation */
.lightbox .nav {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }