/* ============================= */
/* Global Styles                 */
/* ============================= */

section {
  scroll-margin-top: var(--header-h);
}

#home,
#about,
#services,
#why,
#contact {
  scroll-margin-top: var(--header-h);
}

:root {
  --brand: #000080;
  --brand-2: #0055aa;
  --text: #333;
  --header-h: 80px; /* echte Headerhöhe */
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ============================= */
/* Header                        */
/* ============================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  height: var(--header-h);
}

.header-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: var(--header-h);
    right: 10px;
    flex-direction: column;
    background: #fff;
    width: 250px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}

.nav-links a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color .25s;
}

.nav-links a:hover {
  color: var(--brand-2);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 3001; /* Damit er über allem liegt */
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background: var(--brand);
  border-radius: 2px;
  display: block;
}

/* Nur bei Mobile sichtbar */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h, 80px);
    right: 0;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    width: min(85vw, 280px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    z-index: 3000;
  }

  .nav-links.active {
    display: flex;
  }
}


/* ============================= */
/* Hero (rechts Bild, links Text)*/
/* ============================= */
.hero {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}


.hero-text {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* gekacheltes Logo als dezentes Overlay, diagonal */
.hero-text::before {
  content: "";
  position: absolute;
  /* etwas größer als der Block, damit beim Rotieren keine Ecken sichtbar werden */
  top: -20%;
  left: -20%;
  right: -20%;
  bottom: -20%;
  background-image: url("images/logo.png");
  background-repeat: repeat;
  background-size: 160px auto;
  opacity: 0.06;
  transform: rotate(-28deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 0;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-text .btn {
  padding: 12px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background .25s;
  width: fit-content;
}

.hero-text .btn:hover {
  background: var(--brand-2);
}

.hero-img {
  flex: 1;
  background: url('images/main.png') center/cover no-repeat;
}

/* ============================= */
/* Über uns                      */
/* ============================= */
.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--brand);
}

.about-text p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================= */
/* Sections allgemein            */
/* ============================= */
.section-light {
  background: #fff;
  padding: 100px 0;
}

.section-colored {
  background: #f7fafd;
  padding: 100px 0;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--brand);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col img {
  width: 100%;
  border-radius: 10px;
}

/* ============================= */
/* Leistungen                    */
/* ============================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.service-item {
  background: #fff;
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.service-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* ============================= */
/* Warum wir                     */
/* ============================= */
.why-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.why-text {
  flex: 1;
}

.why-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.why-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.why-list li {
  font-size: 1.05rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-list li::before {
  content: "✔";
  color: var(--brand);
  font-weight: bold;
}

.why-text .closing {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--brand);
}

.why-img {
  flex: 1;
}

.why-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* ============================= */
/* Kontaktbereich                */
/* ============================= */
.contact-section {
  background: var(--brand);
  color: #fff;
  padding: 100px 5% 120px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.contact-details li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.contact-details a {
  color: #fff;
  text-decoration: underline;
}

.contact-info .trust {
  margin-top: 30px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* Formular */
.contact-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0,0,0,.15);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 15px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* WICHTIG: Checkbox + Text */
.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
  flex-wrap: wrap;
}

.contact-form .consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-form .consent span {
  display: inline-block;
  max-width: 100%;
  color: #333;
  word-wrap: break-word;
}

.contact-form .consent a {
  color: var(--brand);
}

.contact-form button {
  padding: 15px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.contact-form button:hover {
  background: var(--brand-2);
}

/* ============================= */
/* Footer                        */
/* ============================= */
footer {
  color: var(--brand);
  font-weight: 900;
  background-color: #fff;
  text-align: center;
  padding: 22px 0;
}

/* ============================= */
/* Cookie Banner                 */
/* ============================= */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  display: none;
  gap: 14px;
  align-items: center;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: .95rem;
}

.cookie-banner a {
  color: var(--brand);
  text-decoration: underline;
}

.cookie-banner .actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.cookie-banner button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #d7dbe2;
  background: #fff;
  cursor: pointer;
}

.cookie-banner .accept {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ============================= */
/* Modal Styles                  */
/* ============================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 4000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  max-width: 700px;
  width: 100%;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: var(--brand);
}

.modal-content p,
.modal-content ul {
  margin-bottom: 15px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

.modal-close:hover {
  color: var(--brand);
}

/* ============================= */
/* Responsive                    */
/* ============================= */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
  }

  .hero-text {
    padding: 40px 20px;
    text-align: center;
  }

  .hero-text .btn {
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-img {
    width: 100%;
    min-height: 360px;
  }

  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-text {
    padding: 40px 20px;
  }

  .about-img img {
    max-height: 360px;
    object-fit: cover;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .why-container {
    flex-direction: column;
    text-align: center;
  }

  .why-img {
    margin-top: 30px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-info h2 {
    font-size: 2rem;
  }

  .contact-form-wrapper {
    padding: 30px;
  }

  .contact-form .consent {
    flex-direction: row;
    text-align: left;
  }
}

/* ============================= */
/* Buttons                       */
/* ============================= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--brand-2);
}
