/* Responsive, klares Design in Corporate-Blau (#0d3b66) */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Poppins', Arial, sans-serif; color:#1f2937; background:#f7f9fb; line-height:1.5; }

/* Header */
.site-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:0.6rem 1rem; background:#0d3b66; color:#fff; position:sticky; top:0; z-index:10; }
.brand { display:flex; align-items:center; gap:0.75rem; }
.logo-header { height:54px; width:auto; display:block; }
.site-nav a { color:#fff; text-decoration:none; padding:0.4rem 0.6rem; border-radius:8px; }
.site-nav a:hover, .site-nav a.active { background:rgba(255,255,255,0.15); }

/* Layout */
.container { width:min(1100px, 92%); margin-inline:auto; padding:1rem 0 2rem; }
.hero { padding:3rem 0; text-align:center; }
.hero h1 { font-size:clamp(1.4rem, 2.5vw + 1rem, 2.4rem); margin:0 0 0.5rem; }
.btn { display:inline-block; border:none; border-radius:10px; padding:0.7rem 1rem; background:#0d3b66; color:#fff; font-weight:600; text-decoration:none; cursor:pointer; box-shadow:0 6px 16px rgba(13,59,102,0.25); }
.btn:hover { filter:brightness(1.1); }

.features { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); }
.feature-card { background:#fff; border-radius:14px; padding:1rem; box-shadow:0 4px 16px rgba(0,0,0,0.06); }

/* Gallery */
.gallery { display:grid; gap:1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin:1rem 0 2rem; }
.card { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 8px 24px rgba(0,0,0,0.07); }
.card img { width:100%; height:240px; object-fit:cover; display:block; }
.card figcaption { font-size:0.8rem; color:#6b7280; padding:0.4rem 0.6rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Upload Form */
.upload-form { background:#fff; padding:1rem; border-radius:14px; box-shadow:0 8px 24px rgba(0,0,0,0.07); display:grid; gap:0.8rem; margin:1rem 0 2rem; }
.upload-form .grid { display:grid; gap:0.8rem; grid-template-columns:1fr 1fr; }
.upload-form label { display:grid; gap:0.25rem; font-weight:600; }
.upload-form input[type="text"], .upload-form input[type="password"], .upload-form input[type="file"] { padding:0.6rem; border:1px solid #e5e7eb; border-radius:10px; background:#fafafa; }
.hint { color:#6b7280; font-size:0.9rem; }

/* Kontaktformular auf jeder Seite */
/* Floating Kontakt Button */
.floating-contact {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #1d3557;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  z-index: 999999;
  overflow: hidden;
}

.floating-contact .icon-mail {
  width: 26px;
  height: 26px;
  stroke: white;
  transition: transform 0.25s ease;
}

.floating-contact .contact-label {
  position: absolute;
  right: 65px;
  opacity: 0;
  background: #1d3557;
  color: #fff;
  padding: 8px 14px;
  border-radius: 25px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateX(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  font-size: 14px;
}

/* Hover Animation */
.floating-contact:hover {
  background: #2a486e;
  transform: translateY(-2px);
}

.floating-contact:hover .icon-mail {
  transform: scale(1.1);
}

.floating-contact:hover .contact-label {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile: Nur Icon */
@media (max-width: 700px) {
  .floating-contact {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }

  .floating-contact .contact-label {
    display: none;
  }
}

/* Kundenstimmen */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.testimonial-text {
  font-style: italic;
  color: #333;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: #1d3557;
  font-size: 0.95rem;
}
/* Kundenstimmen Startseite index.html */
.trust-section {
  background: #f4f6f8;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 12px;
  margin: 2rem 0;
}
.trust-section h2 {
  color: #1d3557;
  margin-bottom: 1rem;
}
.trust-slider blockquote {
  margin: 0 auto 1.2rem;
  max-width: 500px;
  font-style: italic;
  color: #333;
}
.trust-slider footer {
  font-weight: 600;
  color: #1d3557;
  margin-top: 0.5rem;
}
.trust-link {
  color: #1d3557;
  text-decoration: none;
  font-weight: 600;
}
.trust-link:hover {
  text-decoration: underline;
}

/* Vertrauensbalken */
.top-trust-banner {
  background: #1d3557; /* Dunkelblau passend zum CI */
  color: #fff;
  text-align: center;
  font-weight: 500;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border-bottom: 3px solid #457b9d; /* feiner Kontraststreifen */
}

/* Option: fixiert oben beim Scrollen */
@media (min-width: 768px) {
  .top-trust-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}

/* Auf Mobilgeräten etwas kleiner */
@media (max-width: 600px) {
  .top-trust-banner {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}

/* Sanftes Einblenden & dezentes Aufleuchten für den Vertrauensbalken */
.top-trust-banner {
  animation: fadeInBanner 1.6s ease-out 0.5s both, pulseGlow 4s ease-in-out infinite;
}

@keyframes fadeInBanner {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  }
}

/* Mobile Optimierung für den Vertrauensbalken */
@media (max-width: 600px) {
  .top-trust-banner {
    font-size: 0.8rem;
    padding: 0.45rem 0.5rem;
    line-height: 1.2;
    letter-spacing: 0;
    border-bottom: 2px solid #457b9d;
  }

  /* Verhindert, dass der Balken zu hoch wirkt oder Text umbrechen muss */
  .top-trust-banner strong {
    display: block;
    font-weight: 600;
  }

  /* Animation leicht abgeschwächt für mobile Performance */
  @keyframes pulseGlow {
    0%, 100% {
      box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
      box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    }
  }
}
/* 🔹 Einheitliches Raster für gemischte Hoch-/Querformate */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery .card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  aspect-ratio: 1 / 1; /* quadratische Fläche – gleichmäßige Darstellung */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery .card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 kein Leerraum mehr */
  object-position: center;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery .card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* 🔹 Lightbox Individualisierung im Fenster-auf-Maß-Stil */
.glightbox-clean .gcontainer {
  background-color: rgba(14, 52, 89, 0.95);
  backdrop-filter: blur(5px);
}

.glightbox-clean .gslide-title {
  color: #fff !important;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.glightbox-clean .gclose {
  background: #0e3459 !important;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  right: 15px;
  top: 15px;
  transition: background 0.3s ease;
}

.glightbox-clean .gclose:hover {
  background: #1a4979 !important;
}

.glightbox-clean .gclose svg {
  stroke: #fff !important;
  width: 22px;
  height: 22px;
}

/* Pfeile (nächste/vorherige) */
.glightbox-clean .gnext, 
.glightbox-clean .gprev {
  background-color: #0e3459 !important;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  transition: background 0.3s ease;
}

.glightbox-clean .gnext:hover, 
.glightbox-clean .gprev:hover {
  background-color: #1a4979 !important;
}

/* Sanfter Zoom-In Effekt beim Öffnen */
.glightbox-container img.gslide-image {
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
}
/* 🔹 Kontaktformular-Styling */
.contact-form {
  max-width: 650px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: #0e3459;
  display: block;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.7rem;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1a4979;
  outline: none;
}

.contact-form .btn {
  align-self: flex-start;
  background-color: #0e3459;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #1a4979;
}

.alert.success {
  background: #e6f9ea;
  border-left: 4px solid #28a745;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.alert.error {
  background: #fdecea;
  border-left: 4px solid #e74c3c;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.hidden-field {
  display: none !important;
}

/* Footer */
.site-footer { background:#0d3b66; color:#fff; padding:1.2rem 1rem; margin-top:2rem; }
.footer-inner { width:min(1100px, 92%); margin-inline:auto; text-align:center; }
.site-footer a { color:#fff; text-decoration:underline; }

/* Small screens */
@media (max-width: 700px) {
  .upload-form .grid { grid-template-columns:1fr; }
  .card img { height:200px; }
}
