:root {
  --bg: #f8f7f4;
  --text: #222;
  --line: #ddd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.35)),
              url('../images/kubus28a-titelbild.jpg') center/cover;
  display: flex;
  align-items: end;
}

.wrap {
  width: min(92%, 1200px);
  margin: auto;
}

.hero .wrap {
  padding-bottom: 8rem;
  color: #fff;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1;
}

h2 {
  font-size: clamp(1.5rem, 8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 2rem;
}

section {
  padding: 3rem 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}



.buttons.portale {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.buttons.portale a {
    display: block;
    background: #3f516b;
    color: #FFF;
    text-decoration: none;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 1px;
    transition: all 1s ease;
    border: 2px solid white;
    border-radius: 5px;
}

.buttons.portale :hover {
    background: #000;
    color: white;
    border-color: white;
}

/* Bildergalerie ab hier */

 /* Galerie-Stil */
        .gallery {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 20px 0;
        }
        .gallery img {
            width: 140px;
            height: 140px;
            object-fit: cover;
            cursor: pointer;
            border-radius: 5px;
            transition: transform 0.2s;
            filter: grayscale(80%);
        }
        .gallery img:hover {
            transform: scale(1.05);
            filter: grayscale(50%);
        }

        /* Lightbox-Stil */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .lightbox-content {
            max-width: 90%;
            max-height: 90%;
            text-align: center;
        }
        .lightbox img {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 5px;
        }
        .lightbox-nav {
            color: white;
            font-size: 30px;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            user-select: none;
        }
        .lightbox-prev {
            left: 20px;
        }
        .lightbox-next {
            right: 20px;
        }
        .lightbox-close {
            color: white;
            font-size: 30px;
            position: absolute;
            top: 20px;
            right: 20px;
            cursor: pointer;
        }

/* Ende Bildergalerie */