:root {
  --bg:             #fff;
  --text:           #1d1d1f;
  --accent:         #00FFD0;
  --accent-dark:    #22336B;
  --radius:         1.5rem;
  --font:           'Inter', sans-serif;
  --transition:     0.3s;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* BODY */
body {
  font-family: var(--font);
  color: var(--text);
  background: url("/img/background.jpg") center center / cover no-repeat fixed;
  background-color: var(--bg);
  position: relative;
}

/* Overlay für Lesbarkeit */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(2px);
  z-index: -1;
  pointer-events: none;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  border-bottom: 1px solid #e4e7ec;
  transition: background 0.25s;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.18s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(.38,1.04,.34,.93);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* HERO SECTION */
.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}
.hero .container {
  max-width: 670px;
  padding: 2rem;
}
.hero h1 {
  font-size: 3.3rem;
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 6px 24px rgba(0,0,0,0.14);
  animation: fadeInUp 1.2s 0.1s both;
}
.hero p {
  margin-top: 1.1rem;
  font-size: 1.22rem;
  color: #e6f3fc;
  letter-spacing: -0.5px;
  animation: fadeInUp 1.3s 0.35s both;
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(24px);}
  to { opacity:1; transform:none;}
}
.btn-outline {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 0.95rem 2.15rem;
  border: 2px solid #fff;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 2px 12px rgba(0,255,208,0.12);
  transition: background 0.22s, color 0.18s, box-shadow 0.18s;
}
.btn-outline:hover {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 8px 32px #00FFD0AA;
}

/* SECTION SPACING */
section {
  padding: 6rem 0 3rem 0;
}
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* SERVICES CARDS */
/* SERVICES GRID / CARDS OPTIMIERT */
.grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2.4rem;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1100px;
  padding: 2rem 0 2rem 0;
}

.card {
  min-width: 300px;
  max-width: 350px;
  flex: 1 1 320px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.99);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0,0,0,0.09);
  border: 1px solid #eef2fa;
  transition: box-shadow 0.19s, transform 0.17s, background 0.13s;
  padding: 0;
}

.card:hover {
  box-shadow: 0 20px 60px #00FFD022, 0 2px 8px #22336B11;
  transform: translateY(-7px) scale(1.035);
  background: #f6fcfa;
  text-decoration: none;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eef2fa;
}

.card-content {
  padding: 1.6rem 1.2rem 1.2rem 1.2rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-content h3 {
  color: var(--accent-dark);
  margin-bottom: 0.6rem;
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.2;
}

.card-content p {
  color: #22336B;
  font-size: 1.05rem;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.45;
  margin: 0;
}

/* Responsive: Mobile / Tablet */
@media (max-width: 900px) {
  .grid {
    flex-direction: column;
    gap: 1.3rem;
    align-items: center;
    max-width: 98vw;
    padding: 1.2rem 0;
  }
  .card {
    max-width: 98vw;
    min-width: 0;
  }
  .card img {
    height: 150px;
  }
  .card-content {
    padding: 1rem 0.8rem 0.8rem 0.8rem;
  }
}

/* SHOWCASE SECTION & IMAGES (optional, falls du Projekte zeigen willst) */
.showcase-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1rem 2rem 1rem;
  background: transparent;
}
.showcase-card {
  background: #fff;
  border-radius: 1.8rem;
  box-shadow: 0 10px 36px rgba(0,0,0,0.11), 0 2px 4px rgba(0,255,208,0.07);
  max-width: 800px;
  padding: 2.7rem 2.3rem 2rem 2.3rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.8rem;
}
.showcase-imgs img {
  max-width: 180px;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(34,51,107,0.10);
  transition: transform 0.3s;
}
.showcase-imgs img:hover {
  transform: scale(1.055);
}

/* SECTION TITLES & SUBTITLES */
.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #22336B;
  margin-top: 3.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.section-subtitle {
  text-align: center;
  font-size: 1.13rem;
  color: #39415d;
  margin-bottom: 2.4rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
  line-height: 1.55;
}
/* TESTIMONIALS */
.testimonials {
  margin: 5rem 0 3rem 0;
}
.testimonials-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #22336B;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto;
}
.testimonial-card {
  position: relative;
  background: rgba(255,255,255,0.99);
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(0,255,208,0.11);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  border: 1px solid #f0f4f9;
  overflow: visible;
  transition: box-shadow 0.19s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 18px 58px rgba(0,255,208,0.12);
  transform: translateY(-6px) scale(1.04);
}
.testimonial-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 12px #00FFD044;
  margin-top: -32px;
  border: 3px solid #fff;
}
.testimonial-content {
  flex: 1;
}
.testimonial-stars {
  color: #FFD700;
  font-size: 1.14rem;
  margin-bottom: 0.2rem;
}
.testimonial-text {
  font-size: 1.09rem;
  color: #22336B;
  margin-bottom: 0.7rem;
  line-height: 1.55;
  font-style: italic;
}
.testimonial-name {
  font-weight: 700;
  color: #22336B;
  font-size: 1.02rem;
}
.testimonial-name span {
  color: #888;
  font-weight: 400;
  margin-left: 0.35rem;
  font-size: 0.98rem;
}

/* CONTACT-BOX */
.contact-box {
  background: rgba(255,255,255,0.98);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(34,51,107,0.14);
  max-width: 380px;
  margin: 0 auto;
  padding: 2.3rem 1.7rem 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-form label {
  font-weight: 500;
  font-size: 1rem;
  color: #22336B;
  margin-bottom: 0.2rem;
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
}
.contact-form input,
.contact-form textarea {
  padding: 0.68rem 1.05rem;
  border: 1px solid #cdd7e6;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #f7f9fc;
  color: #22336B;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  outline: none;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00FFD0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,255,208,0.08);
}
.contact-form textarea {
  min-height: 75px;
  max-height: 200px;
  resize: vertical;
}

/* CTA BUTTON */
.cta {
  background: linear-gradient(90deg, #00FFD0 0%, #28d3e4 100%);
  color: #22336B;
  font-weight: 600;
  padding: 0.82rem 1.45rem;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background 0.17s, transform 0.16s, box-shadow 0.18s;
  width: auto;
  align-self: flex-end;
  font-size: 1.1rem;
  margin-top: 0.7rem;
  box-shadow: 0 2px 10px rgba(0,255,208,0.08);
}
.cta:hover {
  background: linear-gradient(90deg, #00e5ba 0%, #44e0ea 100%);
  color: #22336B;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 32px #00FFD088;
}

/* FEHLERMELDUNGEN */
.errors {
  background: #ffe6e6;
  border: 1px solid #ffcccc;
  color: #900;
  padding: 1rem;
  border-radius: var(--radius);
  list-style: none;
  margin-bottom: 2rem;
  font-size: 1.08rem;
  box-shadow: 0 1px 8px #fd9797cc;
}

/* FOOTER */
footer {
  background: #22336B;
  color: #fff;
  padding: 2.2rem 0 1.4rem 0;
  text-align: center;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
}
footer a {
  color: #00FFD0;
  text-decoration: underline;
  margin: 0 0.7rem;
}
footer .social {
  margin-top: 0.6rem;
}
footer .social a {
  display: inline-block;
  margin: 0 0.18rem;
  font-size: 1.25rem;
  color: #00FFD0;
  transition: color 0.18s;
}
footer .social a:hover {
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  section { padding: 4.2rem 0; }
  .showcase-row { flex-direction: column; gap: 1rem;}
  .showcase-imgs { justify-content: center; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: 2.1rem; }
  .container, .contact-box { padding-left: 1rem; padding-right: 1rem; }
  .contact-box { padding: 1.1rem 0.5rem 1.3rem 0.5rem; max-width: 98vw; }
  .section-title { font-size: 1.45rem; }
  .section-subtitle { font-size: 1rem; max-width: 95vw; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
  .testimonial-avatar { margin-bottom: 0.2rem; }
}
/* Kontakt + Testimonials Wrapper nebeneinander */
#contact .contact-testimonials-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
  flex-wrap: wrap; /* bei kleinen Bildschirmen umschalten */
}

#contact .contact-box-wrapper,
#contact .testimonials-wrapper {
  flex: 1 1 450px;
  min-width: 300px; /* Mindestbreite */
}

/* Testimonials als vertikale Spalte */
#contact .testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* Testimonials Karten Design */
#contact .testimonial-card {
  background: rgba(255,255,255,0.99);
  border-radius: 1.2rem;
  box-shadow: 0 10px 36px rgba(0,0,0,0.11);
  padding: 1.6rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

#contact .testimonial-text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: #22336B;
}

#contact .testimonial-name {
  font-weight: 700;
  color: #22336B;
  font-size: 0.95rem;
  text-align: right;
}

/* Kontaktbox Styling */
#contact .contact-box {
  background: rgba(255,255,255,0.99);
  border-radius: 1.2rem;
  box-shadow: 0 10px 36px rgba(0,0,0,0.11);
  padding: 2.3rem 1.7rem 1.8rem 1.7rem;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

/* Responsive Anpassungen für Kontakt und Testimonials */
@media (max-width: 900px) {
  #contact .contact-testimonials-wrapper {
    flex-direction: column;
    gap: 2.5rem;
  }
  #contact .contact-box-wrapper,
  #contact .testimonials-wrapper {
    max-width: 98vw;
  }
}
