:root{
  --blue: #1A1A5E;
  --green: #4CAF50;
  --muted: #6b6b6b;
  --bg: #f5f5f5;
  --max-width: 1180px;
  --radius: 10px;
  --gap: 20px;
}

*{box-sizing:border-box}
body{
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  margin:0; background:var(--bg); color:#111; line-height:1.5;
}
.container{max-width:var(--max-width);margin:0 auto;padding:0 18px}

/* Header */
.site-header{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:80}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
#site-logo{height:64px;display:block}

/* Nav */
.main-nav{display:flex;gap:18px;align-items:center}
.main-nav a{color:var(--blue);text-decoration:none;font-weight:600}
.btn{display:inline-block;padding:8px 12px;border-radius:8px;border:2px solid transparent;font-weight:700}
.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.btn.ghost{background:transparent;color:var(--blue);border-color:var(--blue)}

/* Burger for mobile */
.burger{display:none;background:transparent;border:0;cursor:pointer;padding:6px}
.burger span{display:block;width:26px;height:3px;background:var(--blue);margin:4px 0;border-radius:2px}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh; /* gesamte Höhe des Viewports */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-image: url("images/hero-bg.jpg"); /* 🔹 Pfad zu deinem Bild */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* nicht fixiert – moderner Effekt */
  text-align: left;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* dunkler Overlay für Textlesbarkeit */
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  padding: 0 20px;
}

.hero-text {
  flex: 1;
  min-width: 260px;
}

.hero h1 {
  color: #fff;
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 20px;
  color: #f5f5f5;
  margin-bottom: 24px;
}

.hero-cta .btn {
  margin-right: 10px;
}

.contact-short {
  list-style: none;
  margin-top: 16px;
  padding: 0;
  display: flex;
  gap: 16px;
  color: #eaeaea;
  flex-wrap: wrap;
}

/* 📱 Mobile Anpassung */
@media (max-width: 980px) {
  .hero {
    text-align: center;
    background-attachment: scroll;
    padding: 100px 0;
  }
  .hero-inner {
    flex-direction: column;
    padding: 0 18px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
  .contact-short {
    justify-content: center;
  }
}

/* cards */
.section{padding:48px 0}
.section.alt{background:transparent}
.cards{display:flex;gap:20px;flex-wrap:wrap}
.card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 8px 24px rgba(3,19,38,0.06);min-width:260px;flex:1;transition:transform .22s ease}
.card:hover{transform:translateY(-6px)}
.card img{width:100%;height:180px;object-fit:cover}
.card-body{padding:16px}

/* about layout */
.about-grid{display:grid;grid-template-columns:1fr 420px;gap:24px;align-items:center}
.about-grid img{width:100%;border-radius:10px;box-shadow:0 8px 20px rgba(0,0,0,0.06)}

/* contact */
.contact-grid{display:grid;grid-template-columns:1fr 360px;gap:22px;align-items:start}
.form{background:#fff;padding:20px;border-radius:var(--radius);box-shadow:0 8px 24px rgba(3,19,38,0.06)}
.form label{display:block;margin-top:10px;font-weight:600;color:#222}
.form input,.form textarea{width:100%;padding:10px;margin-top:8px;border:1px solid #e6e6e6;border-radius:8px}
.form button{margin-top:12px}
.side-info{background:#fff;padding:20px;border-radius:10px;box-shadow:0 8px 24px rgba(3,19,38,0.04)}

/* footer */
.site-footer{padding:18px 0;background:var(--blue);color:#fff;text-align:center;margin-top:36px;border-radius:6px}

/* responsive */
@media (max-width:980px){
  .about-grid{grid-template-columns:1fr}
  .hero-inner{flex-direction:column;text-align:center}
  .hero-image img{max-width:80%}
  .contact-grid{grid-template-columns:1fr}
  .main-nav{display:none}
  .burger{display:block}
  #site-logo{height:56px}
}

@media (max-width:520px){
  .hero h1{font-size:26px}
  .card img{height:160px}
  #site-logo{height:48px}
}

/* ========== SIDEBAR NAVIGATION (MOBILE) ========== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%; /* Start: außerhalb des Bildschirms */
  width: 260px;
  height: 100%;
  background: var(--blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  gap: 20px;
  padding-left: 20px;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  transition: right 0.4s ease;
  z-index: 99;
}

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--green);
}

/* Sichtbar, wenn aktiv */
.mobile-nav.open {
  right: 0;
}

/* Dunkler Overlay bei geöffnetem Menü */
body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}

/* Burger-Animation (optional, schöner Effekt) */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
.burger span {
  transition: all 0.3s ease;
}
/* ========== CLOSE BUTTON (X) ========== */
.close-nav {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 120;
}

.close-nav:hover {
  color: var(--green);
}

/* ✅ Formular-Meldungen */
.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  display: none; /* Standard: ausgeblendet */
}

.form-status.success {
  display: block;
  background: #e7f9ed;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  display: block;
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c6cb;
}

/* ===== HERO CONTACT INFO (schöner Stil) ===== */
.contact-short {
  list-style: none;
  margin-top: 18px;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  color: #f5f5f5;
  font-size: 16px;
}

.contact-short li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.contact-short a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-short a:hover {
  color: var(--green);
  transform: translateY(-2px);
}

.contact-short li::before {
  content: "•";
  color: var(--green);
  font-weight: bold;
  margin-right: 6px;
}

/* 📱 Mobil schön untereinander */
@media (max-width: 700px) {
  .contact-short {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
  }
  .contact-short li::before {
    display: none;
  }
}

/* ===== HERO BUTTONS ===== */
.hero-cta a {
  text-decoration: none !important;
  display: inline-block;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

/* Primary Button */
.btn.primary {
  background-color: #1a237e;
  color: #fff;
  border: none;
}

.btn.primary:hover {
  background-color: var(--green);
  transform: translateY(-2px);
}

/* Ghost Button */
.btn.ghost {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn.ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== HERO CONTACT INFO ===== */
.contact-short {
  list-style: none;
  margin-top: 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  color: #f5f5f5;
  font-size: 16px;
  font-weight: 400;
}

.contact-short li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-short a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-short a:hover {
  color: #a5d6a7;
  transform: translateY(-2px);
}

/* 📱 Mobile Optimierung */
@media (max-width: 700px) {
  .contact-short {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.form-message {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.form-message.success {
  background-color: #d0f8ce;
  color: #2e7d32;
  border: 1px solid #66bb6a;
}

.form-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ✅ HERO Kontaktinformationen – mobile Ansicht verbessert */
@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding: 100px 0 120px; /* mehr Platz nach unten */
    display: block;
    text-align: center;
  }

  .hero-inner {
    padding: 0 18px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.5;
  }

  /* 🔹 Kontaktinfos unter Buttons */
  .contact-short {
    flex-direction: column;
    align-items: flex-end;  /* rechtsbündig */
    text-align: left;
    gap: 10px;
    font-size: 15px;
    width: 100%;
  }

  .contact-short li {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .contact-short a {
    display: inline-block;
    color: #f5f5f5;
    text-decoration: none;
    word-break: break-word;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #0e0f4b;
  color: #fff;
  padding: 60px 20px 30px;
  font-size: 15px;
  line-height: 1.6;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer a {
  color: #e4e4ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-logo img {
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 14px;
  color: #ccc;
}

.footer-bottom a {
  color: #b6b6ff;
}
.footer-bottom a:hover {
  color: #fff;
}