:root {
  --primary-color: #1f4fa2;
  --light-accent: #3b6cc0;
  --dark-accent: #2f5fae;
  --text-light: #ffffff;
  --text-dark: #212529;
  --text-gray: #e5e5e5;
  --card-bg: rgba(255, 255, 255, 0.95);
}

body {
  font-family: sans-serif;
  padding: 2rem;
  background-color: var(--primary-color);
}

button {
  padding: 0.5rem 1rem;
  background-color: #1f4fa2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);  /* Blaue Hintergrundfarbe */
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--dark-accent);  /* Dunkler bei Hover */
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #1f4fa2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*====================================================================================
									Logo / Bilder
====================================================================================*/
.logo {
  height: 80px;
}

/*====================================================================================
									Links
====================================================================================*/
a {
  color: var(--text-light);
  text-decoration: underline;
}
a:hover {
  color: #ffc107;
}
a:visited {
  color: var(--text-gray);
}

/*====================================================================================
									Navigation / Header / footer
====================================================================================*/
.navbar-custom,
.footer-custom {
  background-color: var(--dark-accent);
  border-radius: 20px;
}

/*====================================================================================
									Hero-Bereich
====================================================================================*/
.hero {
  background-color: var(--light-accent);
  color: var(--text-light);
  padding: 5rem 0;
  text-align: center;
  border-radius: 20px;
}
.hero h1,
.hero p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/*====================================================================================
									Info-Seiten
====================================================================================*/
.infos {
  background-color: var(--light-accent);
  color: var(--text-light);
  padding: 5rem 0;
  text-align: left;
  border-radius: 20px;
}

/*====================================================================================
									Services-Bereich
====================================================================================*/
.services-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 2rem;
  text-align: center;
  border-radius: 20px;
}

/*====================================================================================
									Card-Bereich
====================================================================================*/
.card {
  background-color: var(--light-accent); /* heller Hintergrund mit leichtem Kontrast */
  color: var(--text-light); /* dunkler Text für Lesbarkeit */
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15); /* Schatten für Tiefe */
  padding: 2rem;
  backdrop-filter: blur(4px);
  text-align: center;
}
.card-dark {
  background-color: var(--dark-accent); /* heller Hintergrund mit leichtem Kontrast */
  color: var(--text-gray); /* dunkler Text für Lesbarkeit */
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15); /* Schatten für Tiefe */
  padding: 2rem;
  backdrop-filter: blur(4px);
  text-align: center;
}
.card:hover {
  transform: translateY(-5px);
}
.card-title {
	font-weight: 700;
	color: var(--text-light);
	text-align: center;
}
.card-title-dark {
	font-weight: 700;
	color: var(--text-gray);
	text-align: center;
}

/*====================================================================================
									Responsive Design
====================================================================================*/
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
    text-align: center;
  }
}

/*====================================================================================
									Kontaktformular
====================================================================================*/
.hidden-field {
  display: none;
}
.popup {
      position: fixed;
      top: 20px;
      right: 20px;
      background-color: var(--card-bg);
      color: var(--text-dark);
      border: 1px solid var(--dark-accent);
      padding: 1rem;
      border-radius: 12px;
      box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
      z-index: 9999;
      font-weight: bold;
}

/*====================================================================================
                                    Readonly-Felder
====================================================================================*/
input[readonly],
textarea[readonly],
select[disabled] {
  background-color: var(--text-gray);   /* grauer Hintergrund */
  color: var(--text-dark);              /* dunkler Text */
  cursor: not-allowed;                  /* Mauszeiger zeigt "nicht erlaubt" */
  opacity: 0.9;                         /* leicht abgedunkelt */
}

/*====================================================================================
                                    Galerie-Bilder (HueForge)
====================================================================================*/
.gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Abstand zwischen den Paaren */
}

.gallery-pair {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.image-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  text-align: center;
}

.img-grid {
  height: 100%;       /* volle Höhe innerhalb der Spalte */
  width: 100%;         /* volle Breite innerhalb der Spalte */
  object-fit: cover;   /* Bild wird zugeschnitten */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Responsive: auf Mobilgeräten untereinander */
@media (max-width: 768px) {
  .gallery-pair {
    flex-direction: column;
  }
}

.image-block:fullscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000; /* Hintergrund im Vollbild schwarz */
}

.image-block:fullscreen .image-title {
  color: #fff; /* Titel im Vollbild weiß */
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.image-block:fullscreen img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

/* Lizenz-Bild Standard (Desktop) */
.license-img {
  width: 50%;          /* Desktop: halbe Breite */
  display: block;
  margin: 0 auto;      /* zentrieren */
}

/* Mobilgeräte: volle Breite */
@media (max-width: 768px) {
  .license-img {
    width: 100%;
  }