@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
  }

  .main-nav.is-open {
    display: flex;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}

.modal.is-open {
  display: block;
}



/* === Grundlayout === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background: #fff;
}

/* Header / Logo / Navigation */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #111;
  color: #fff;
}

.logo-wrap img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Hamburger Button */
.nav-toggle {
  display: none; /* wird auf Mobile eingeblendet */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hamburger -> X-Icon */
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Container / Sections */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 1.5rem 1rem;
  margin: 0 auto;
}

.section {
  padding-block: 1.5rem;
}

.section-alt {
  background: #f7f7f7;
}

/* Hero */
.hero picture,
.hero img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.hero-text {
  padding: 1.5rem 1rem 0;
  text-align: center;
}

/* Grid & Cards */
.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;       /* sorgt für einheitliche Höhe */
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* alle Bilder gleich groß / beschnitten */
  display: block;
}

.card-body {
  padding: 0.75rem 1rem 1rem;
}

/* Kontakt-Layout & Formular */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #4ea3ff;
  box-shadow: 0 0 0 2px rgba(78,163,255,0.25);
}

.form-row-inline {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-row-inline input[type="checkbox"] {
  margin-top: 0.2rem;
}

.btn-primary {
  display: inline-block;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  background: #4ea3ff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: #88c7ff;
}

.btn-primary:active {
  transform: translateY(1px);
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

/* Map */
.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Logo-Slider */
.logo-slider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.logo-slider-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  flex: 1 1 auto;
}

.logo-slider-track {
  display: flex;
}

.logo-slide {
  flex: 0 0 calc(25% - 0.75rem);
  max-width: calc(25% - 0.75rem);
  height: 70px;
  margin-right: 0.75rem;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-slide img {
  max-width: 80%;
  max-height: 60%;
  object-fit: contain;
  display: block;
}

.logo-slider-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s.ease, border-color 0.2s ease;
}

.logo-slider-btn:hover {
  background: #f3f3f3;
  border-color: #999;
}

@media (max-width: 900px) {
  .logo-slide {
    flex: 0 0 calc(33.333% - 0.75rem);
    max-width: calc(33.333% - 0.75rem);
  }
}

@media (max-width: 600px) {
  .logo-slide {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    height: 60px;
  }
}

/* Footer / Link-Buttons */
.site-footer {
  background: #111;
  color: #ddd;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #ddd;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.link-button:hover {
  text-decoration: underline;
}

/* Cookie-Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.9);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.9rem;
}

.cookie-link {
  color: #4ea3ff;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.cookie-button {
  border: none;
  background: #4ea3ff;
  color: #000;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  flex: 0 0 auto;
}

.cookie-button:hover {
  background: #88c7ff;
}

/* Modals / Lightbox */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.modal-dialog {
  position: relative;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  margin: 5vh auto 0;
  padding: 1.5rem;
  background: #fff;
  border-radius: 6px;
  overflow-y: auto;
}

.modal-dialog h2 {
  margin-top: 0;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Utility */
.hidden {
  display: none !important;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    display: none; /* initial: versteckt */
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.5rem 0;
  }
}


/* Hero kleine Version für Unterseiten */
.hero-small {
  background: #111;
  color: #fff;
}

.hero-small .container {
  padding: 2.5rem 1rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.5rem 0;
  }
}
