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

body {
  font-family: "Arial Narrow", Arial, sans-serif;
  background-color: #fff;
  color: #576065;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAFIE EINHEITLICH */
.bbt-title,
.bbt-headline {
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 800;
  color: #00609d;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.bbt-title {
  margin-top: 64px;
}

.bbt-headline {
  font-size: 32px;
}

.bbt-service, .bbt-body, .impressum-text p,
.services-content div, .gallery-content {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #576065;
  margin-bottom: .75em;
}

/* HERO HEADER LAYOUT */
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: min(80vw, 1400px);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
}

.lang-btn {
  margin-right: 64px;
  padding: 0.32em 1.2em;
  border: none;
  border-radius: 8px;
  background: #ededed;
  color: #424245;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.lang-btn:hover,
.lang-btn:focus {
  background: #dbdbdb;
  color: #232325;
  outline: none;
}

/* Mobil: Logo links, Button rechts */
@media (max-width: 768px) {
  .hero-header {
    flex-direction: row-reverse;
    justify-content: flex-end;
    padding: 1.5rem 1rem;
  }

  .bbt-title {
    display: none;
  }

  .hero-actions {
    width: 100%;
    justify-content: space-between;
  }

  .lang-btn {
    margin: 0 0 0 16px;
    padding: 0.25em 0.9em;
    font-size: 0.98rem;
    order: 2;
  }

  .logo-container {
    order: 1;
  }

  .logo-container img {
    max-width: 120px;
  }
}

/* Responsiv: Logo und Button kleiner/nebeneinander auf Mobil */
@media (max-width: 768px) {
  .hero-header {
    max-width: 95vw;
    padding: 0 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  .bbt-title {
    display: none;
  }
  .hero-actions {
    flex-direction: row;
  }
  .lang-btn {
    margin-right: 0;
    font-size: 0.98rem;
    padding: 0.25em 0.9em;
  }
  .logo-container img {
    max-width: 120px;
  }
}


.bbt-title {
  flex: 1;
  text-align: left;
  margin-bottom: 0;
}

.logo-container {
  width: 225px;
  height: 100px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo-container img {
  max-width: 225px;
  max-height: 100px;
  width: auto;
  height: auto;
  display: block;
}

/* RESPONSIVE HERO HEADER - MOBIL: Text ausblenden, Logo links */
@media (max-width: 768px) {
  .hero-header {
    justify-content: flex-start;
    padding: 1.5rem 1rem 1.5rem 1rem;
  }
  .bbt-title {
    display: none;
  }
  .logo-container {
    justify-content: flex-start;
    width: auto;
    height: auto;
  }
  .logo-container img {
    max-width: 150px;
  }
}

/* MAIN CONTENT LAYOUT */
.main-content-section {
  background: #fff;
  padding: 4rem 0;
  border-top: 1px solid #f5f5f7;
}
.main-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: min(80vw, 1400px);
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: center;   /* <-- Diese Zeile sorgt für vertikale Zentrierung */
}

.gallery-content,
.services-content {
  align-self: center;    /* Falls eines der Elemente naturgemäß höher ist */
}

@media (max-width: 1024px) {
  .main-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 95vw;
    padding: 0 1rem;
  }
  .gallery-content,
  .services-content {
    text-align: left;
  }
}

.gallery-content {
  text-align: left;
  margin-top: 32px;
}

.slideshow-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 1.5rem;
}
.slideshow {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #f5f5f7;
  display: block;
  /* Entferne explizite height-Angaben, falls gesetzt */
  height: auto;
  min-height: 0;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SLIDESHOW STEUERUNG */
.nav-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.94);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transform: translateY(-50%);
  transition: background .3s, transform .3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.nav-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.nav-arrow.prev { left: 14px; }
.nav-arrow.next { right: 14px; }
.nav-arrow svg {
  width: 16px;
  height: 16px;
  fill: #1d1d1f;
}

.slide-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1rem;
}
.pagination-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #86868b;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s;
}
.pagination-dot.active {
  background-color: #1d1d1f;
  opacity: 1;
  transform: scale(1.22);
}

/* SERVICES */
.services-content {
  text-align: left;
}
@media (max-width: 1024px) {
  .services-content {
    text-align: left;
  }
}

/* IMPRESSUM */
.impressum-content {
  max-width: min(80vw,1400px);
  margin: 256px auto 0px;
  padding: 0 1.5rem;
  padding-bottom: 4rem;
}

.impressum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  text-align: left;
}

.impressum-col {
  text-align: left;
}

.impressum-col h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: .8em;
}

.impressum-col p {
  margin-bottom: .7em;
  color: #576065;
}

.impressum-contact-table {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.1em 1em;
  margin-bottom: 1.2em;
}

.impressum-row {
  display: contents; /* child elements define the grid items */
}

.impressum-label {
  color: #576065;
  text-align: left;
  white-space: nowrap;
}

.impressum-value {
  text-align: left;
  color: #576065;
  word-break: break-all;
}

.impressum-value a {
  white-space: nowrap;
}

@media (max-width: 500px) {
  .impressum-contact-table {
    grid-template-columns: 100px 1fr;
    font-size: 1rem;
  }
}

.impressum-contact-table a,
.impressum-contact-table a:visited {
  color: inherit;          /* Gleiche Farbe wie normaler Text */
  text-decoration: none;   /* Keine Unterstreichung */
  border: none;            /* Kein zusätzlicher Rahmen */
  background: none;
  font-weight: inherit;
  transition: none;
}

.impressum-contact-table a:hover,
.impressum-contact-table a:active {
  color: inherit;
  text-decoration: none;
  background: none;
}


/* Für Mobilgeräte untereinander anordnen */
@media (max-width: 1024px) {
  .impressum-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 95vw;
    padding: 0 2rem;
  }
  .impressum-content {
    max-width: none;
    margin: 0;
    padding: 0;
  }
}

/* FOOTER */
.footer {
  background: #ffffff;
  border-top: 1px solid #e8e8ed;
  padding: 2rem 0;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
}
.footer a, .language-switcher {
  font-size: 16px;
  color: #00609d;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
.footer a:hover, .language-switcher:hover {
  color: #193b64;
}

/* Accessibility link coloring in impressum */
.impressum-text a {
  color: #00609d !important;
  text-decoration: underline;
}

/* UTILITIES */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}
.lazy-load.loaded {
  opacity: 1;
}
.lazy-load.loading {
  background: #e8e8ed;
  background-image: linear-gradient(90deg, #f5f5f7 0px, #e8e8ed 40px, #f5f5f7 80px);
  background-size: 300px;
  animation: loading-shimmer 1.5s infinite linear;
}
@keyframes loading-shimmer {
  0%   { background-position: -300px 0; }
  100% { background-position: 300px 0; }
}

/* Mobile padding for containers */
@media (max-width: 430px) {
  .hero-header, .main-content-grid, .impressum-content, .impressum-grid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}