/* ---------- Reset & Basics ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid #eee;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo span {
  font-weight: 300;
  display: block;
  font-size: 12px;
  letter-spacing: 3px;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: #1a1a1a;
}

/* ---------- Gallery Grid (4 Quadrate, je 300x300px) ---------- */
.gallery-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 40px 0;
}

.quadrat {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  background: #ddd;
  flex: 0 0 auto;
}

.quadrat .slide {
  position: absolute;
  inset: 0;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.quadrat .slide.active {
  opacity: 1;
}

/* ---------- CTA Row ---------- */
.cta-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: #eee;
}

.cta-box {
  position: relative;
  background-color: #333;
  background-size: cover;
  background-position: center;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}

.cta-box:hover::before {
  background: rgba(0, 0, 0, 0.15);
}

.cta-box h2 {
  position: relative;
  z-index: 1;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}

/* ---------- Unterseiten (Team, Büro, Jobs, Kontakt, Impressum, Datenschutz) ---------- */
.page {
  display: none;
}

.page.active {
  display: block;
}

#team, #buero, #schwerpunkte, #jobs, #kontakt, #impressum, #datenschutz {
  padding: 60px 20px;
}

/* fertige Bild-Quadrate (Team, Büro, Schwerpunkte, Jobs, Kontakt) - 1:1 wie auf der Startseite */
.tile-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.tile {
  width: 300px;
  height: 300px;
  object-fit: cover;
  display: block;
}

.info-box {
  width: 300px;
  min-height: 300px;
  margin: 0 auto;
  background-color: #e3e3e3;
  background-image: url('images/quadrat_hellgrau.png');
  background-size: cover;
  background-position: center;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.info-box h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.info-box p,
.info-box .info-list li {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.info-box .info-list {
  text-align: left;
}

.info-box-img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
}

/* breitere Variante für lange Texte (Impressum, Datenschutz) */
.info-box.wide {
  width: 100%;
  max-width: 720px;
  min-height: 0;
  text-align: left;
  align-items: stretch;
  background-color: #e3e3e3;
}

.info-box.wide h2 {
  text-align: center;
}

.info-box.wide h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 24px 0 8px;
}

.info-box.wide h3:first-of-type {
  margin-top: 8px;
}

.info-box.wide p {
  text-align: left;
}

.legal-note {
  margin-top: 24px;
  font-size: 12px;
  font-style: italic;
  color: #666;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 40px;
  text-align: center;
  font-size: 13px;
  color: #777;
  border-top: 1px solid #eee;
}

.site-footer .credit {
  margin: 6px 0;
}

.footer-nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 100;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 13px;
  max-width: 600px;
}

.cookie-buttons button {
  padding: 8px 18px;
  margin-left: 10px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 1px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-buttons button:hover {
  background: #fff;
  color: #1a1a1a;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .main-nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  .quadrat,
  .tile {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .info-box.wide {
    max-width: 100%;
  }
}
