* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

:root {
  --primary-color: #007acc;
  --secondary-color: #12224c;
  --text-color: #333;
  --section-padding: 60px 20px;

  --about-bg: #a7e2fc;
  --about-text: #12224c;

  --resume-bg: #ece393;
  --resume-text: #5c3010;

  --projekte-bg: #bfecd3;
  --projekte-text: #1e5631;

  --contact-bg: #fbecd6;
  --contact-text: #b34420;
}

body {
  color: var(--text-color);
  background-color: #c9bda7; /* Fallback, bis das Hintergrundbild geladen ist */
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Background Image: Adobe Stock #583049231
       URL: https://stock.adobe.com/ch_de/583049231
       Lizenz: Adobe Stock Standard License
       Kostenlos: 2026 */
  background-image: url("../images/site/hintergrundbild_v_1.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: grayscale(0%);
  opacity: 0.3; /* ← je kleiner, desto mehr Farbe sieht man*/
  z-index: -1;
}

header {
  background-color: transparent; /* transparent damit BG sichtbar */
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--secondary-color); /* Farbe jetzt auf nav */
  padding: 0.8rem 1.5rem;
  border-radius: 0 0 4px 4px; /* unten abgerundet wie Tango */
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007acc;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
}

section {
  padding: var(--section-padding);
  max-width: 1200px;
  margin: 0 auto 30px auto;
  scroll-margin-top: 80px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

/* Individuelle Farben für jeden Bereich */
#about {
  background-color: var(--about-bg);
  color: var(--about-text);
  margin-top: 90px;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: start;
}
#about h1,
#about h2,
#about h3,
#about h4 {
  color: var(--about-text);
}

#resume {
  background-color: var(--resume-bg);
  color: var(--resume-text);
}
#resume h1,
#resume h2,
#resume h3,
#resume h4 {
  color: var(--resume-text);
}

#projekte {
  background-color: var(--projekte-bg);
  color: var(--projekte-text);
}
#projekte h1,
#projekte h2,
#projekte h3,
#projekte h4 {
  color: var(--projekte-text);
}

#contact {
  background-color: var(--contact-bg);
  color: var(--contact-text);
}
#contact h1,
#contact h2,
#contact h3,
#contact h4 {
  color: var(--contact-text);
}

.profile-image {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.profile-image img {
  max-width: 100%;
  border-radius: 3%;
  box-shadow: 0 0 0.9rem rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 2;
  min-width: 300px;
}

/* Basis-Galerie-Stil */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.gallery figure {
  text-align: center;
}

/* Zwei Spalten für Jahreszeiten */
.gallery-seasons figure {
  flex: 1 1 45%; /* zwei Bilder pro Zeile */
}

/* Eine Spalte für Porträts */
.gallery-portraits figure {
  flex: 1 1 100%; /* ein Bild pro Zeile */
}

/* Gemeinsame Bild-Stile */
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  box-shadow: 0 0.13rem 0.5rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

h1,
h2,
h3,
h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

figcaption {
  font-size: 1rem;
  color: inherit;
  opacity: 0.9;
  margin-top: 0.5rem;
  font-style: italic;
  text-align: left;
}

p {
  margin-bottom: 1rem;
}

/* Letztes Element in jeder Sektion: kein margin unten */
section > *:last-child,
section > *:last-child > *:last-child {
  margin-bottom: 0;
}

.resume-content {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.resume-content p {
  margin-bottom: 1.5rem;
}

.date-box {
  background-color: rgb(250, 58, 106);
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 0.3rem;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
}

.projekt {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 6px solid var(--primary-color);
}

.projekt:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.projekt-bild {
  margin: 1.5rem 0;
  overflow: hidden;
  padding: 0.7rem;
}

.projekt-bild img {
  max-width: 65%;
  max-height: 50vh;
  width: auto;
  height: auto;
  border-radius: 0.6rem;
  border: #2c3e50 0.2rem solid;
  transition: transform 0.3s ease-in-out;
}

.projekt-bild img:hover {
  transform: scale(1.03);
}

.projekt-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.projekt-links .button-projekt {
  background-color: #007acc;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  transition: background-color 0.2s ease;
}

.projekt-links .button-projekt:hover {
  background-color: #005fa3;
}

.resume-image {
  margin-top: 2rem;
  text-align: left;
}

.resume-image img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 0.5rem;
}

form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input,
textarea {
  padding: 0.8rem;
  border: 0.06rem solid #ddd;
  border-radius: 0.3rem;
  font-size: 1rem;
}

button {
  background-color: #007acc;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.3rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #005fa3;
}

.form-group.honeypot {
  display: none; /* Versteckt das Honeypot-Feld */
}

.map-container,
.video-container {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  margin: 2rem 0;
}

.map-container iframe,
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  background-color: transparent;
  color: white;
  padding: 0;
  margin-top: 0;
}

footer p {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 4px 4px 0 0;
  text-align: center;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: var(--secondary-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 0.6rem 0.6rem rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-links a {
    display: block; /*volle Breite*/
    padding: 0.8rem 1.5rem; /*grosses Tipp-Ziel*/
    transition:
      background-color 0.3s,
      color 0.3s;
  }

  .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
  }

  #about {
    flex-direction: column;
  }

  .profile-image,
  .about-content,
  .gallery figure {
    flex: 1 1 100%;
  }

  /* Ergänzt für bessere mobile Ansicht */
  .projekt-bild img {
    width: auto;
    max-width: 100%;
  }
}
