:root {
  --primary: #1f6fe0;
  --secondary: #4fc3f7;
  --background: #f5f7fa;
  --light: #1f6fe0;
  --text: #1a1a1a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
main {
  padding-top: 0.5rem;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;   /* erlaubt vertikales Scrollen */
  overflow-y: visible;  /* 👈 SEHR wichtig */
}
body {
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: white;
  height: 72px;
  padding: 0 2rem;

  display: grid;
  grid-template-columns: 1fr auto 1fr; /* 👈 SYMMETRIE */
  align-items: center;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

header img {
  height: 72px;
  justify-self: start;
}
nav {
  display: flex;
  justify-content: center; /* 👈 echte Mitte */
  align-items: center;
  gap: 48px;
  justify-self: center;
}
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1;
  margin: 0;
}

nav a:hover {
  color: var(--primary);
}


.hero {
  position: relative;
  margin-top: -72px;
  height: 120vh;
  padding-top: calc(72px + 4rem);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  padding-left: 6vw;
  text-align: left;

  background-image: url("../img/background5.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content {
  max-width: 900px;
  
}


.hero h1 {
  font-size: 3.6rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 700px;
  font-size: 1.8rem;
}
.hero-title {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  max-width: 720px;
  opacity: 0.95;
  line-height: 1.1;
  color: white;
  margin-bottom: 1rem;
}

.hero-subline {
  font-size: 1.6rem;
  color: white;
  max-width: 720px;
  margin-bottom: 2rem;
}

.hero-title .highlight {
  color: var(--secondary); /* dein helles Blau/Türkis */
}

.text-outline {
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}
.no-outline {
  text-shadow: none;
}
.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  min-height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
}

.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* =========================
   Footer
   ========================= */

.footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  padding: 3rem 2rem;

  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 260px;
}

.footer-nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* =========================
   Kontaktseite
   ========================= */

.contact {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.contact-wrapper {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.contact-text {
  margin-bottom: 2.5rem;
}

.contact-text h1 {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

.contact-text p {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,111,224,0.15);
}

.contact-form .button {
  margin-top: 1rem;
  align-self: flex-start;
}
/* =========================
   Mobile Optimierung
   ========================= */
@media (max-width: 768px) {

  header {
    height: auto;
    padding: 0.75rem 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
  }

  header img {
    height: 42px;
    margin-bottom: 0.5rem;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 1rem;
    white-space: nowrap;
  }

  .hero {
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
   .hero-title {
    font-size: 2.2rem;
  }

  .hero-subline {
    font-size: 1.05rem;
  }
  .hero-content {
    padding-left: 0;
    text-align: center;
  }
  .button {
    align-self: center;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  footer {
    font-size: 0.8rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: auto;
  }

  .footer-nav,
  .footer-legal {
    align-items: center;
  }

  form input,
  form textarea {
    width: 100%;
  }

  .contact-wrapper {
    padding: 2rem 1.5rem;
  }

  .contact-text h1 {
    font-size: 2.1rem;
  }

  .contact-text p {
    font-size: 1.05rem;
  }

  .contact-form .button {
    width: 100%;
    text-align: center;
  }
}
