/* CSS Document */
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Header / Hamburger */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.hamburger {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Nav menu hidden initially */
/* Nav menu hidden initially (rechts außerhalb) */
nav {
  position: fixed;
  top: 0;
  right: -200px; /* versteckt rechts */
  width: 200px;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s ease; /* smooth ausfahren */
  z-index: 1000;
}

/* Menü sichtbar wenn aktiv */
nav.active {
  right: 0; /* fährt rein von rechts */
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  margin: 15px 0;
}

/* Show nav on hover */
.hamburger:hover + nav,
nav:hover {
  right: 0;
}

/* Hero section with slider */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero img.logo {
  width: 150px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.5rem;
}

/* Background slider */
.hero::before {
  content: "";
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  background-image: url('images/hero1.jpg');
  background-size: cover;
  background-position: center;
  animation: slide 15s infinite;
  z-index: -1;
}

@keyframes slide {
  0% {background-image: url('images/hero1.jpg');}
  33% {background-image: url('images/hero2.jpg');}
  66% {background-image: url('images/hero6b.jpg');}
  100% {background-image: url('images/hero1.jpg');}
}

/* Sections with different colors */
.section-portfolio {background: #1abc9c; padding: 100px 20px; color:#fff;}

/* About-Sektion Layout */
.section-about {
  background: #3498db; /* eigene Farbe der Sektion */
  color: #fff;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-container {
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.about-text {
  flex: 1 1 400px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.ueber-foto {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}
.section-leistungen {background: #9b59b6; padding: 100px 20px; color:#fff;}
/* Kontakt-Sektion Layout */
.section-kontakt {
  background: #e74c3c;
  color: #fff;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.kontakt-container {
  max-width: 700px;
  width: 100%;
}

.hero-contact {
  margin-top: 30px;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-form input,
.hero-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
}

.hero-form button {
  padding: 12px 20px;
  border: none;
  background: #fff;
  color: #e74c3c;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  align-self: flex-end;
}

.checkbox-row {
  font-size: 0.9rem;
  line-height: 1.4;
}

.hp-field {
  display: none; /* Honeypot unsichtbar */
}

h2 {text-align: center; margin-bottom: 40px;}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
  justify-items: center;
}

.portfolio-grid img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  border-radius:5px;
  border: none;
}

form button {
  padding: 10px 20px;
  border:none;
  background:#fff;
  color:#000;
  cursor:pointer;
  border-radius:5px;
}

footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: #fff;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}