/* ===== Variablen ===== */
:root {
  --primary: #C9E7EF;  /* sanftes Babyblau */
  --dark: #6497b1;     /* dunkles Blau */
  --light: #ffffff;
  --gray: #f5f5f5;
  --accent: #FF8C42;   /* Akzentfarbe für Buttons */
}

/* ===== Smooth Scrolling ===== */
html { scroll-behavior: smooth; }

/* ===== BODY ===== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #e9ecef;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}
h1, h2, h3, nav a, .btn { 
  font-family: 'Poppins', Arial, sans-serif; 
  font-weight: 600; 
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, var(--dark), #5a8aa3);
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  animation: fadeInDown 0.8s ease;
}
header::before, header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  z-index: 0;
}
header::before { width: 350px; height: 350px; top: -150px; left: -100px; }
header::after { width: 200px; height: 200px; bottom: -80px; right: -80px; }
@keyframes float { 0%{transform:translateY(0)}50%{transform:translateY(-20px)}100%{transform:translateY(0)} }
header::before { animation: float 8s ease-in-out infinite; }
header::after { animation: float 10s ease-in-out infinite reverse; }
header img.logo, header h1, header p, header nav { position: relative; z-index: 1; }
header img.logo {
  max-width: 120px;
  filter: drop-shadow(0 4px 10px rgba(201,231,239,0.4));
  transition: transform 0.4s ease, filter 0.4s ease;
}
header img.logo:hover { transform: scale(1.1) rotate(5deg); filter: drop-shadow(0 8px 20px rgba(201,231,239,0.6)); }
header h1 { margin: 1rem 0 0.3rem; font-size: 2.5rem; color: var(--primary); }
header p { color: #fff; font-size: 1.1rem; }

/* ===== NAVIGATION ===== */
nav {
  margin-top: 1rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
nav a {
  color: var(--light);
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  padding-bottom: 5px;
  font-size: 1rem;
  white-space: nowrap;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: all 0.4s ease;
}
nav a:hover { color: var(--primary); transform: translateY(-2px); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--primary); }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 2001;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== SOCIAL ===== */
header .social { margin-top: .5rem; }
header .social img { width: 30px; height: 30px; transition: transform 0.4s ease, filter 0.3s ease; }
header .social img:hover { transform: scale(1.3) rotate(10deg); }

/* ===== MAIN / SECTIONS ===== */
main { max-width:1200px; margin:2rem auto; display:flex; flex-direction:column; gap:4rem; }
section {
  padding:3rem 2rem;
  border-radius:20px;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
  transition: transform .3s ease, box-shadow .3s ease, opacity .6s ease;
  opacity: 0; transform: translateY(20px);
}
section.fade-in { opacity: 1; transform: translateY(0); }
section:hover { transform: translateY(-5px); box-shadow:0 8px 25px rgba(0,0,0,0.1); }
section:nth-child(even){ background: var(--light); }
section:nth-child(odd){ background: #f5f7fa; }
h2 { text-align:center; color:var(--dark); margin-bottom:2rem; font-size:2rem; }

/* ===== FILTER ===== */
.category-filter { text-align:center; margin:2rem 0; display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.filter-btn {
  padding:.8rem 1.5rem;
  background: var(--light);
  border:2px solid var(--primary);
  border-radius:25px;
  cursor:pointer;
  font-weight:bold;
  color:var(--dark);
  transition:all .3s ease;
}
.filter-btn:hover, .filter-btn.active { background:var(--primary); color:var(--dark); transform:scale(1.05); }

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:20px; max-width:1000px; margin:0 auto; }
.portfolio-grid img {
  width:100%; height:250px; object-fit:cover;
  border-radius:12px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  transition: all .3s ease; cursor:pointer;
}
.portfolio-grid img:hover { transform:scale(1.1) translateY(-10px); box-shadow:0 15px 35px rgba(0,0,0,0.25); }

/* ===== SERVICES ===== */
.service { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:2rem; }
.service-item {
  background:var(--light); padding:2rem;
  border-radius:16px; text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
  transition:all .3s ease;
}
.service-item:hover { transform:translateY(-10px) scale(1.03); }

/* ===== TESTIMONIALS ===== */
#testimonials { background:var(--light); }
.testimonials-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:2rem; margin-top:2rem; }
.testimonial-card {
  background:#f5f7fa;
  padding:2rem; border-radius:16px;
  text-align:center;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  transition:all .3s ease;
}
.testimonial-card:hover { transform:translateY(-10px) scale(1.03); }
.stars { font-size:1.5rem; margin-bottom:1rem; color:#ffd700; }

/* ===== FORMULAR ===== */
form { display:flex; flex-direction:column; gap:1rem; }
input,textarea {
  padding:.8rem; border-radius:8px; border:1px solid #ccc;
  transition:all .3s ease; font-size: 1rem;
}
input:focus,textarea:focus { outline:none; border-color:var(--primary); box-shadow:0 0 10px rgba(201,231,239,0.3); }
form button {
  background: var(--accent); color: #fff; border: none;
  padding: 0.8rem 1.2rem; border-radius: 8px;
  font-weight: 600; cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
form button:hover { background: #e67c36; transform: translateY(-2px); }
#contact { max-width: 600px; margin: 3rem auto; padding: 2rem; background: var(--light); border-radius: 12px; }
#contact .checkbox { font-size: 0.9rem; line-height: 1.4; }

/* ===== FOOTER ===== */
footer { text-align:center; padding:1.5rem; background:#1e1e1e; color:#e0e0e0; border-radius:30px 30px 0 0; }
footer a { color: var(--primary); text-decoration: none; transition: color 0.3s ease, transform 0.3s ease; }
footer a:hover { color: #ffffff; transform: translateY(-2px); }

/* ===== LIGHTBOX ===== */
.lightbox {
  display:none; position:fixed; z-index:1000; inset:0;
  background:rgba(0,0,0,0.95);
  justify-content:center; align-items:center;
}
.lightbox img {
  max-width:90%; max-height:90%;
  border-radius:12px;
  box-shadow:0 10px 50px rgba(201,231,239,0.3);
}

/* ===== SCROLL TO TOP ===== */
#scrollTopBtn {
  position:fixed; bottom:30px; right:30px; width:50px; height:50px;
  background:var(--primary); color:var(--dark); border:none; border-radius:50%;
  font-size:1.5rem; cursor:pointer; opacity:0; visibility:hidden; transition:all .3s ease; z-index:998;
}
#scrollTopBtn.show { opacity:1; visibility:visible; }

/* ===== PROGRESS BAR ===== */
#progress-bar {
  position:fixed; top:0; left:0; width:0%; height:4px;
  background:linear-gradient(90deg, var(--primary), #00d4ff);
  z-index:9999; transition:width .1s ease;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position:fixed; bottom:-200px; left:50%; transform:translateX(-50%);
  background:var(--dark); color:var(--light);
  padding:1.5rem 2rem; border-radius:15px;
  box-shadow:0 -5px 20px rgba(0,0,0,0.3);
  z-index:9998; max-width:600px; width:90%; transition:bottom .5s ease;
}
#cookie-banner.show { bottom:20px; }

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 20px;
    gap: 1.5rem;
    font-size: 1.2rem;
    transition: left 0.3s ease;
    z-index: 2000;
  }
  nav.active { left: 0; }
  nav a { display: block; width: 100%; font-size: 1.2rem; }
  .hamburger { display: flex; }
}

/* ===== RECHT (Impressum etc.) ===== */
.legal-container {
  max-width: 900px; margin: 3rem auto; padding: 2rem;
  background: var(--light); border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  line-height: 1.8; animation: fadeInUp 0.8s ease;
}
.legal-container h2 {
  color: var(--dark); margin-top: 2rem; font-size: 1.6rem;
  border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px;
}
.legal-container p, .legal-container ul { margin: 1rem 0; color: #444; }
.legal-container ul { list-style: disc; padding-left: 1.5rem; }
.legal-container a { color: var(--dark); font-weight: bold; text-decoration: none; border-bottom: 1px dashed var(--primary); transition: all 0.3s ease; }
.legal-container a:hover { color: var(--primary); border-bottom: 1px solid var(--dark); }

/* ===== HERO, SERVICES, WORKFLOW, CTA ===== */
.hero { text-align: center; padding: 4rem 2rem; background: var(--primary); color: var(--dark); }
.services { padding: 3rem 2rem; background: var(--gray); }
.service-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s; }
.card:hover { transform: translateY(-5px); }
.workflow, .cta { padding: 3rem 2rem; text-align: center; }
.workflow ol { list-style-position: inside; padding: 0; margin: 0 auto; display: inline-block; text-align: left; }
.workflow li { margin: 0.8rem 0; font-size: 1.1rem; }
.workflow li::marker { color: var(--dark); font-weight: bold; font-size: 1.2rem; }

/* ===== Keyframes ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
