:root {
  --dunkelblau: #0d1b2a;
  --hellblau: #1b6ca8;
  --grau: #f5f5f5;
  --text: #e6e6e6;
  --akzent: #1976d2;
  --max-width: 1200px;
  --transition: 0.3s ease;
  --font-main: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(180deg, var(--dunkelblau) 0%, #1e2e47 100%);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header --- */
header {
  background: var(--dunkelblau);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--hellblau);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-text span {
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--hellblau);
  transition: width var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover,
.logo-link:focus {
  opacity: 0.9;
}

/* --- Hero-Bereich (Startseite) --- */
.hero {
  background: url("bilder/home.jpg") center/cover no-repeat;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: var(--hellblau);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background var(--transition);
  font-weight: 600;
}

.btn:hover,
.btn:focus {
  background: var(--akzent);
  outline: none;
}

/* --- Hauptinhalt --- */
.content {
  flex: 1;
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 1rem 2rem;
}

.content h1,
.content h2 {
  color: white;
  margin-bottom: 1rem;
  text-align: center;
}

.content p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #dbe2ef;
  line-height: 1.6;
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --- Kontaktseite --- */
.kontakt-page h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.kontakt-page .intro-text {
  text-align: center;
  color: #cfd8e3;
  margin-bottom: 2rem;
}

.kontakt-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
  padding: 1rem;
}

.kontakt-person {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kontakt-person:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.kontakt-person h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.kontakt-person .rolle {
  color: #b0c7e8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.kontakt-details {
  text-align: center;
  margin: 1rem 0;
}

.kontakt-details p {
  margin: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.kontakt-details a {
  color: #a9c6ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.kontakt-details a:hover {
  color: #fff;
}

.kontakt-person .btn.small {
  background: var(--hellblau);
  color: #fff;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
}

.kontakt-person .btn.small:hover {
  background: var(--akzent);
  transform: scale(1.03);
}

/* Responsive Optimierung */
@media (max-width: 600px) {
  .kontakt-details {
    text-align: center;
  }
}


/* Responsive */
@media (max-width: 600px) {
  .kontakt-header {
    flex-direction: column;
  }
  .kontakt-details {
    text-align: center;
  }
}

/* Mobilfreundlich */
@media (max-width: 600px) {
  .kontakt-person {
    padding: 1rem;
  }
}
/* Icons */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: middle;
}

.icon.mail::before {
  content: "✉️";
}

.icon.phone::before {
  content: "📞";
}


/* Mobile */
@media (max-width: 768px) {
  .kontakt-container {
    flex-direction: column;
  }
}


/* --- Galerie (Referenzen) --- */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.galerie-item {
  overflow: hidden;
  border-radius: 8px;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  cursor: pointer;
}

.galerie-item img:hover {
  transform: scale(1.05);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav .prev,
.lightbox-nav .next {
  color: white;
  font-size: 2rem;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

/* --- Leistungsseite --- */
.intro-text {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #dbe2ef;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 2rem; /*  Abstand zum Text darüber */
}

.leistung {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.leistung:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.leistung img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.leistung h2 {
  color: var(--hellblau);
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
}

.leistung p {
  color: #cfd8dc;
  padding: 0 1rem 1.5rem;
  flex: 1;
  font-size: 0.95rem;
}

.referenz-link {
  text-align: center;
  margin-top: 3rem;
}

.referenz-link p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}


/* --- Fokus- und Tastaturfreundlichkeit --- */
a:focus,
button:focus {
  outline: 2px solid var(--hellblau);
  outline-offset: 2px;
}

/* --- Responsivität --- */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .kontakt-info {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Mobile Navigation / Hamburger Menü --- */
.menu-toggle {
  background: none;
  border: 2px solid var(--hellblau);
  color: var(--hellblau);
  font-size: 1.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  transition: all var(--transition);
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: var(--hellblau);
  color: white;
  outline: none;
}

.nav-menu {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
  }

  .nav-menu.open {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  nav a {
    padding: 0.5rem 1rem;
    text-align: center;
    display: block;
    width: 100%;
  }
}

/* --- Impressum & Datenschutz --- */
.content section {
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.content section h2 {
  color: var(--hellblau);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.content section p,
.content section ul {
  color: #e0e5f1;
  line-height: 1.6;
}

.content ul {
  list-style: inside;
  padding-left: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, rgba(0,0,20,0.8), rgba(0,0,30,0.95));
  color: #dce4ef;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

/* Linke Spalte (Logo) */
.footer-logo {
  text-align: left;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 0.3rem;
}

.footer-logo p {
  margin: 0;
}

/* Mittlere Spalte (Links) */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-links li {
  display: inline-block;
  margin: 0 0.6rem;
}

.footer-links a {
  color: #a9c6ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Rechte Spalte (Copyright) */
.footer-copy {
  text-align: right;
  font-size: 0.85rem;
  color: #a9b4c9;
}

.footer-copy p {
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo,
  .footer-copy {
    text-align: center;
  }

  .footer-links li {
    display: block;
    margin: 0.4rem 0;
  }

  .footer-copy {
    margin-top: 1rem;
  }
}
