/* === BASIS === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}


/* === HEADER & NAVIGATION === */
header {
  background-color: #ffffff;
  color: black;
  padding: 0.3em 2em;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

header.menu-open {
  box-shadow: none;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5em;
  display: flex;
  align-items: center;
  transition: opacity 0.5s ease;
}

.logo img {
  height: 80px;
  margin: 0;
  padding: 0;
}

.burger-menu {
  display: none;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 1002;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-right: 20px;
}

.nav-links a {
  color: black;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  font-weight: bold;
}


/* === HERO / TITELBILD === */
#title-photo {
  text-align: center;
}

.title-photo-container {
  position: relative;
  text-align: center;
  height: 100vh;
  overflow: hidden;
}

.title-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  display: block;
}

.title-photo-container figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.4;
  padding: 0 1rem;
}

.title-photo-container.hide {
  opacity: 0;
}

.scroll-down {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: white;
  text-decoration: none;
  animation: bounce 2s infinite;
  z-index: 2;
  opacity: 0.95;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-7px);
  }
}


/* === ALLGEMEINE SECTIONS === */
section {
  padding: 2em 9vw;
  scroll-margin-top: 80px;
}

section h2 {
  position: relative;
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 1.5em;
  font-weight: bold;
  color: #333;
}

section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #1A808B;
  margin: 0.5em auto 0;
  border-radius: 2px;
}


/* === ÜBER UNS / PORTRAITS === */
.portrait-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-right: 20px;
}

.text-container {
  flex: 1;
}

.text-container p {
  margin: 0;
}


/* === Layout: 2 kleinere Cards nebeneinander === */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 3em 0;
}
.column {               /* zwei pro Reihe, etwas schmaler */
  flex: 0 1 40%;
  max-width: 40%;
}

/* Card */
.service-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 2em 1em;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: transform .3s ease;
  font-size: .95em;
}
.service-card:hover { transform: translateY(-5px); }

.service-card .icon { width: 100px; margin-bottom: 1em; }
.service-card h3 { margin-top: .5em; font-size: 1.3em; color: #333; }

/* Liste mit Häkchen */
.checklist { list-style: none; padding: 0; margin: 0; display: inline-block; text-align: left; }
.checklist li {
  position: relative;
  display: block;
  margin: .3em 0;
  padding-left: 1.2em;
}
.checklist li::before {
  content: "✔";
  position: absolute;   /* <— wichtig */
  left: 0;
  color: green;
}

/* Optional: auf kleinen Screens 1 pro Reihe */
@media (max-width: 800px) {
  .column { flex: 1 1 100%; max-width: 520px; }
}

/* === TEAM === */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10em;
  max-width: 900px;
  margin: 0 auto;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 300px;
  max-width: 300px;
  text-align: center;
}

.team-member .portrait {
  width: 180px;
  height: 180px;
  border-radius: 0%;
  object-fit: cover;
  margin-bottom: 1em;
  border: 1px solid #ccc;
}

.team-member h3 {
  margin: 0.2em 0;
  font-size: 1.2em;
  color: #222;
}

.team-member p,
.team-member a {
  margin: 0.2em 0;
  font-size: 0.95em;
  color: #444;
  line-height: 1.5em;
  text-decoration: none;
}

.team-member a:hover {
  text-decoration: underline;
}

.team-member.single {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  gap: 2em;
}

.team-member.single .text-container {
  text-align: left;
}
/* === KONTAKT === */
#kontakt {
  padding: 3em 9vw;
  background-color: #f9f9f9;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1em;
  row-gap: 2em;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info,
.contact-map {
  flex: 1 1 45%;
  font-size: 1em;
  line-height: 1.6;
  text-align: left;
}

.contact-info a {
  color: #333;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}
/* === PROJECTS === */
#projects {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

#projects h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.project-item:hover img {
  filter: blur(4px);
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.project-item:hover .overlay {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  border-radius: 0px;
  cursor: zoom-out;
}

/* === FOOTER === */
.footer-pro {
  background-color: #1A808B;
  color: white;
  padding: 3em 2em 2em;
  font-size: 0.95em;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 4em;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 220px;
}

.footer-column h4 {
  margin-bottom: 0.8em;
  font-size: 1.05em;
  font-weight: bold;
}

.footer-column a,
.footer-links a {
  color: #cdd9f2;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-column a:hover,
.footer-links a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5em;
}

.footer-logo {
  width: 120px;
  margin-bottom: 1em;
}

.footer-line {
  border: 0;
  height: 1px;
  background-color: #cfd8e1;
  margin: 2em 0 1em;
  opacity: 0.3;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8em;
  font-size: 0.85em;
  margin-top: 1.5em;
  color: #e0e6f0;
  opacity: 0.85;
}

.footer-bottom > * {
  padding: 0 0.7em;
}

.footer-bottom > *:not(:first-child)::before {
  content: "|";
  position: absolute;
  left: 0;
  color: #ffffff;
  opacity: 0.9;
  font-weight: 400;
}

.footer-bottom a {
  color: #e0e6f0;
  text-decoration: none;
  position: relative;
  padding: 0 0.5em;
}

.footer-bottom a:hover {
  text-decoration: underline;
}


/* === RESPONSIVE === */
@media only screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background: #ffffff;
    padding: 2em 1em;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .burger-menu {
    display: block;
  }

  .title-photo-container {
    height: 70vh;
  }

  .title-photo-container figcaption {
    font-size: 1.6rem;
  }

  .scroll-down {
    font-size: 2.5rem;
    top: 90%;
  }

  .columns {
    flex-direction: column;
  }

  .column {
    flex: 1 1 100%;
  }

  .team-member.single {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-member.single .text-container {
    text-align: center;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .contact-map {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-grid {
    flex-direction: column;
    gap: 1.5em;
    padding: 1em;
  }

  .footer-column {
    flex: 1 1 0px;
    margin-bottom: 0;
  }

  .footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.5em;
  }

  .footer-links li {
    margin: 0.3em 0;
  }

  .footer-column p,
  .footer-column a {
    margin: 0;
    padding: 0;
    line-height: 1.4;
  }

  .footer-column > p:not(:last-child) {
    margin-bottom: 0.3em;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5em;
    text-align: center;
    margin-top: 1em;
  }
}

@media only screen and (min-width: 769px) {
  .footer-links a {
    margin-right: 20pt;
  }
}