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

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.referenz-galerie {
  padding: 20px;
  gap: 20px;
}

/* Navigation */
nav {
  background-color: #000099;
  padding: 15px;
  text-align: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

nav a:hover {
  color: #ff9900;
}

/* Header */
header {
  background-image: url("../img/fliese_header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 60px 20px;
  text-align: center;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* Überschriften */
h2 {
  font-size: 2em;
  margin: 40px auto 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  max-width: 1200px;
}

/* Leistungen */
.leistungen {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.leistungen div {
  flex: 1 1 300px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Referenzen */
.referenz-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

.img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  background-color: #f0f0f0;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.img-container:hover img {
  transform: scale(1.05);
}

.overlay-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 153, 0.9);
  color: white;
  padding: 12px;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-container:hover .overlay-text {
  opacity: 1;
}

/* Kontaktbuttons */
.kontakt-buttons {
  text-align: center;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.kontakt-buttons .btn {
  background-color: #e60000;
  color: white;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.kontakt-buttons .btn:hover {
  background-color: #ff9900;
  color: black;
}

/* Formular (falls später wieder aktiviert) */
form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

form input[type="submit"] {
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
}

form input[type="submit"]:hover {
  background-color: #ffcc00;
  color: black;
}

/* Footer */
footer {
  background-color: #000099;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}

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

/* Seitenheader (Unterseiten) */
.page-header {
  background-color: #444;
  color: white;
  text-align: center;
  padding: 60px 20px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* Zurück-Button */
.zurueck-button {
  text-align: center;
  margin: 40px 0 20px;
}

.zurueck-button a {
  background-color: #333;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
  display: inline-block;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.zurueck-button a:hover {
  background-color: #ff9900;
  color: #000;
}

/* Cookie-Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #222;
  color: white;
  padding: 15px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  flex-wrap: wrap;
  gap: 10px;
}

#cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
}

#cookie-banner a {
  color: #ffcc00;
  text-decoration: underline;
}

#cookie-banner button {
  background-color: #ffcc00;
  border: none;
  color: black;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

#cookie-banner button:hover {
  background-color: #e6b800;
}

/* Scroll-to-Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background-color: #333;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #ffcc00;
  color: black;
}
.hidden-lightbox {
  display: none;
}

/* Projektübersicht (alle Projekte) */

.projekt-übersicht {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.projekt-karte {
  width: 360px; /* vorher 300px */
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.projekt-karte:hover {
  transform: scale(1.04);
}

.projekt-karte img {
  width: 100%;
  height: 240px; /* vorher 200px */
  object-fit: cover;
  display: block;
}

.projekt-karte .info {
  padding: 18px;
  font-size: 1rem; /* vorher 0.95rem */
  color: #333;
}

.projekt-karte .info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem; /* vorher 1.05rem */
  color: #111;
}
.logo {
  height: 60px;
  margin-bottom: 10px;
}
.header-logo {
  max-width: 200px; /* vorher 240px */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}
@media screen and (max-width: 1024px) {
  header, .page-header {
    padding: 40px 15px;
  }

  h2 {
    font-size: 1.6em;
    padding: 0 10px;
  }

  .leistungen {
    flex-direction: column;
    padding: 0 10px;
  }

  .kontakt-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .img-container {
    height: auto;
  }

  .overlay-text {
    font-size: 0.9rem;
    padding: 8px;
  }

  nav a {
    display: inline-block;
    margin: 5px;
    font-size: 0.95rem;
  }

  .referenz-galerie {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .projekt-karte {
    width: 100%;
  }

  .container {
    padding: 0 10px;
  }
}

@media screen and (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }

  nav {
    padding: 10px;
  }

  .kontakt-buttons {
    flex-direction: column;
  }

  footer {
    font-size: 0.8rem;
    padding: 20px 10px;
  }

  footer a {
    display: block;
    margin: 5px 0;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-header p {
    font-size: 1rem;
  }
}
/* GLightbox Titel und Beschreibung farblich und fett anpassen */
.glightbox-title {
  color: #002288 !important; /* dunkler Blauton passend zum Logo */
  font-weight: bold !important;
  font-size: 1.2rem;
}

.glightbox-desc {
  color: #002288 !important;
  font-weight: bold !important;
  font-size: 1rem;
}
.glightbox-clean .gdesc-inner,
.glightbox-clean .gtitle {
  color: #002288 !important; /* dunkler Blauton passend zum Logo */
  font-weight: bold !important;
  font-size: 1.2rem !important;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5); /* leichte Kontrastverbesserung */
}
/* GLightbox Titel */
.glightbox-clean .gslide-title {
  color: #002288 !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.4);
}

/* GLightbox Beschreibung */
.glightbox-clean .gdesc-inner {
  color: #002288 !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}
.container p,
.leistungen p,
.projekt-karte .info {
  text-align: justify;
  hyphens: auto;
  line-height: 1.7;
}
#ueberuns p {
  text-align: justify;
  hyphens: auto;
  line-height: 1.7;
}
#ueberuns {
  margin-bottom: 40px;
}






