@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

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

html, body {
  height: 100%;
}


body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

html {
  font-size: 20px; /* base size for desktop */
}

/* Improve image visibility on medium screens */
@media (max-width: 1200px) {
  .main-header {
    background-position: center top;
  }

  /* Target the Leistungen page only */
  .leistungen-page .section {
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem 1rem;
    flex-direction: column !important;
    box-sizing: border-box;
  }

  .leistungen-page .section > div {
    width: 100%;
  }

  .leistungen-page .constrained-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
  }

  .leistungen-page p,
  .leistungen-page li {
    font-size: 1rem;
    line-height: 1.6;
  }

  .leistungen-page .section-heading {
    font-size: clamp(1.2rem, 5vw, 2rem);
    white-space: nowrap;
    text-align: center;
  }

  /* Uber uns page only */
  .ueberuns-page .uber-uns {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 1rem;
    box-sizing: border-box;
  }

  .ueberuns-page .uber-uns-intro,
  .ueberuns-page .constrained-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .ueberuns-page .section-heading-uu {
    font-size: clamp(1.2rem, 5vw, 2rem);
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ueberuns-page p,
  .ueberuns-page li {
    font-size: 1rem;
    line-height: 1.6;
  }

  .ueberuns-page .section-heading-uu {
    font-size: clamp(1.2rem, 5vw, 2rem);
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Kontakt box page only */
  .kontakt-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    background-color: #f5f5f5;
    border-radius: 8px;  
    max-height: 17em;
    align-items: start;
    justify-items: start;
  }

  .kontakt-box h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
  }
  
  .kontakt-box p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .kontakt-icons-row {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.2rem;
    margin-top: 0.5rem;
  }
  
  .kontakt-icon-item {
    display: flex;
    align-items: center;       /* ✅ align icon/text on same line */
    justify-content: flex-start;
    gap: 0.3rem;
    font-size: 0.95rem;
    padding: 0;
    margin: 0;
    width: 100%;               /* ✅ use full width to avoid indentation */
    box-sizing: border-box;
  }
    
  .kontakt-icon-item img {
    width: 14px;
    height: auto;
    display: inline-block;
    margin: 0;                 /* ✅ remove any default spacing */
    padding: 0;
  }
}

@media (min-width: 993px) {
  .hamburger {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    gap: 1.2rem;
    align-items: center;
  }

  .nav-btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: background 0.2s ease;
    color: white;
  }

  .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .nav-inner {
    padding: 0.5rem 2rem;
  }

  .email-btn-single-line {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .kontakt-box .kontakt-icons-row {
    gap: 0.3rem; /* reduces vertical spacing */
  }
}

@media (max-width: 992px) {
  .main-header {
    background-position: center 20%;
  }

  .team-preview .team-section-content > div[data-aos="zoom-in"] {
    width: 300px !important;
  }

  .team-preview img {
    height: 240px !important; /* reduce image height */
  }

  .team-preview .email-btn-single-line {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .team-preview .team-section-content > div[data-aos="zoom-in"] div {
    padding: 1rem !important;
    min-height: 190px !important;
  }

  html {
    font-size: 18px;
  }

  .logo {
    height: 140px !important;
  }

  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
  }

  .nav-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
  }

  .nav-inner {
    flex-direction: row;              /* keep logo left, nav right */
    justify-content: space-between;  /* space between logo and nav */
    align-items: center;
    padding: 0.5rem 1rem;
  }

  /* Target the Leistungen page only */
  .leistungen-page .section {
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem 1rem;
    flex-direction: column !important;
    box-sizing: border-box;
  }

  .leistungen-page .section > div {
    width: 100%;
  }

  .leistungen-page .constrained-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
  }

  .leistungen-page p,
  .leistungen-page li {
    font-size: 1rem;
    line-height: 1.6;
  } 

  .leistungen-page .section-heading {
    font-size: clamp(1.2rem, 5vw, 2rem);
    white-space: nowrap;
    text-align: center;
  }

  .team-text h2 {
    font-size: min(5vw, 1.2rem);
    white-space: nowrap;        
    overflow: visible;        
  }

  .email-btn-single-line {
    white-space: nowrap;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links {
    align-items: flex-start !important;
  }

  .footer-links > div {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .footer-links a img {
    margin-top: 0.4rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .logo {
    height: 100px !important;
  }

  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }

  .main-header {
    background-position: center 20%;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
  }

  .nav-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
  }

  .nav-inner {
    flex-direction: row;              /* keep logo left, nav right */
    justify-content: space-between;  /* space between logo and nav */
    align-items: center;
    padding: 0.5rem 1rem;
  }

  /* Target the Leistungen page only */
  .leistungen-page .section {
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem 1rem;
    flex-direction: column !important;
    box-sizing: border-box;
  }

  .leistungen-page .section > div {
    width: 100%;
  }

  .leistungen-page .constrained-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
  }

  .leistungen-page p,
  .leistungen-page li {
    font-size: 1rem;
    line-height: 1.6;
  } 

  .leistungen-page .section-heading {
    font-size: clamp(1.2rem, 5vw, 2rem);
    white-space: nowrap;
    text-align: center;
  }

  .team-text h2 {
    font-size: min(3.5vw, 0.75rem);
    white-space: nowrap;        
    overflow: visible;        
  }
}

@media (max-width: 470px) {
  html {
    font-size: 12px;
  }

  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }

  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .main-header {
    min-height: 40vh;
    background-position: center 20%;
  }

  .nav-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
  }

  .logo {
    height: 80px !important;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
  }

  .nav-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
  }

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

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.4;
    display: block;
    margin: 0 auto;
  }

  .section {
    padding: 1rem;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
  }

  .section > div {
    width: 100%;
  }

  .section h3 {
    font-size: 1.1rem;
  }
  
  .team-text h2 {
    font-size: min(5vw, 1.2rem);
    white-space: nowrap;        
    overflow: visible;        
  }

  .section p {
    font-size: 0.9rem;
  }

  .kontakt-box {
    padding: 1rem;
  }

  .carousel-track {
    gap: 5px;
  }

  .carousel-image {
    width: 90vw;
    height: auto;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }

  /* Target the Leistungen page only */
  .leistungen-page .section {
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem 1rem;
    flex-direction: column !important;
    box-sizing: border-box;
  }

  .leistungen-page .section > div {
    width: 100%;
  }

  .leistungen-page .constrained-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
  }

  .leistungen-page p,
  .leistungen-page li {
    font-size: 1rem;
    line-height: 1.6;
  } 
}


/* Ensure hero image adapts to text content height */
.main-header {
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  padding-bottom: 4rem;
  padding-top: 100px;
}

.hero-content {
  padding-top: 6rem;
  padding-bottom: 6rem;
  margin: 0 auto;
}

/* Default (fallback) */
.main-header {
  position: relative;
  background: url('../img/backgrounds/backgorund_new.jpg') no-repeat center center;
  background-size: cover;
  height: 45vh;
  min-height: 350px;
  max-height: 450px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 1600px) {
  .header-section {
    height: 40vh;
  }
}

/* Kontakt page */
.kontakt-page .main-header {
  background-image: url('../img/backgrounds/backgorund_new.jpg');
  min-height: 45vh;
  background-position: center 30%;
}

/* Leistungen page */
.leistungen-page .main-header {
  background-image: url('../img/leistungen/fassade.JPG');
  min-height: 45vh;
  background-position: center center;
}

/* Über uns page */
.ueberuns-page .main-header {
  background-image: url('../img/backgrounds/backgorund_new_2.jpg');
  min-height: 45vh;
  background-position: center 40%;
}

/* Default adjustments for mobile */
@media (max-width: 768px) {
  .main-header {
    min-height: 65vh;
    background-position: center top;
  }
}

/* ================================== HEADER + HERO ================================== */
.main-header {
  position: relative;
  background: url('../img/backgrounds/index_photo_2.jpg') no-repeat center center;
  background-size: cover;
  min-height: 70vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.kontakt-main {
  background: #ffffff;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.kontakt-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1100px;
  width: 100%;
}

.kontakt-box,
.kontakt-map {
  flex: 1 1 500px;
  max-width: 500px;
  width: 100%;
}

.kontakt-box {
  background-color: #eeeeee;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.kontakt-map iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 100%;
  aspect-ratio: 1 / 1;
}


/* Sticky dark background on scroll */
.main-header.scrolled .nav-inner {
  background-color: #313131;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  border-bottom: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Navigation Bar */
.nav-inner {
  position: fixed;
  display: flex;
  top: 0;
  width: 100%;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 10;
  border-bottom: 1px solid white;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-inner.hide {
  transform: translateY(-100%);
}

.nav-inner.sticky-dark {
  background-color: #2e2e2e !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid white;
}

.logo {
  height: 185px;
  width: auto;
  z-index: 11;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline;
}

.nav-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  color: white;
  background-color: transparent;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.nav-btn:hover,
.nav-btn.active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Hero Text */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 8rem;
  text-align: left;
  max-width: 1000px;
  margin: 3rem auto 2rem 4rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #f0f0f0;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(127, 122, 122, 0.6);
  z-index: 1;
  pointer-events: none;
}

/* Dynamic overlay (used if JS-enabled gradient) */
#heroOverlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, rgba(153, 0, 0, 0.7) 50%, rgba(255, 255, 255, 0.3) 50%);
  transition: background 0.3s ease;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.6rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn.primary {
  background-color: #1c1c1c;
  color: white;
}

.btn.primary:hover {
  background-color: #1c1c1c;
}

.btn.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn.secondary:hover {
  background-color: white;
  color: #1c1c1c;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 1px;
}

/* Ensure hamburger lines change if desired (optional) */
.hamburger.open span {
  background-color: #fff;
}

/* Add transition for better UX */
.nav-inner {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger span {
  transition: all 0.3s ease;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #2e2e2e;
  padding: 2rem 1rem;
  z-index: 1005;
  text-align: center;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid white;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-overlay.active {
  display: block;
  pointer-events: auto;
}

.mobile-nav-overlay.slide-down {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-overlay.slide-up {
  transform: translateY(-100%);
  opacity: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  margin: 1.2rem 0;
}

.mobile-nav ul li a {
  color: #ffffff;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.mobile-nav ul li a:hover {
  color: rgb(202, 202, 202);
  transform: translateY(-4px) scale(1.05);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* ====================================== MAIN ====================================== */
main {
  padding: 2rem;
  flex: 1;
}

.main-white {
  background-color: white;
  color: #111;
  padding: 2rem;
}

  /* Schnelleinstieg */
.quick-access {
    background: #f1f2f3;
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .quick-access h2 {
    font-size: 2rem;
    color: #000000;
    margin-bottom: 2rem;
  }
  
  /* Search bar */
  .search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    border: 1px solid #000000;
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    background: white;
  }
  
  .search-box img {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    opacity: 0.5;
  }
  
  .search-box input {
    border: none;
    outline: none;
    font-size: 1rem;
    width: 100%;
    padding: 0.5rem;
    color: #333;
  }
  
  /* Tags / Links */
  .tags-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
  }
  
  .tags-wrapper p {
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
  }
  
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .tags a {
    border: 1px solid #000000;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #000000;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
  }
  
  .tags a:hover {
    background: #000000;
    color: white;
  }

  /* Search Section */

  #resultsList li {
    list-style: none;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  #resultsList h3 {
    font-size: 1.1rem;
    font-weight: bold;
  }
  #resultsList p {
    font-size: 0.95rem;
    color: #555;
  }  

 /* Leistungen Section */
.services {
  background-color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.services-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.services-intro h2 {
  font-size: 2rem;
  color: #000000;
  margin-bottom: 1rem;
}

.services-intro p {
  font-size: 1rem;
  color: #333;
}

/* Grid layout for cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
}


.service-entry {
  width: 100%;
  max-width: 100%; /* allow image/text to fill container */
  text-align: center;
  transition: transform 0.3s ease;

}

.service-entry img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-entry a {
  text-decoration: none;
  color: black;
}

.service-entry h3 {
  margin-top: 0.8rem;
  color: black;
  font-size: 1.2rem;
  font-weight: bold;
}

.service-entry p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: #444;
}

.service-static-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem 0;
  justify-items: center;
}

.service-static-grid .service-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
}

.service-static-grid .service-entry img {
  width: 100%;
  max-width: 420px;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.service-static-grid h3 {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: black;
}

.service-static-grid p {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.3rem;
}

.image-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto; /* center it */
}

.image-wrapper img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.service-inner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-inner h3 {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: black;
}

.service-inner p {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.3rem;
}


/* Responsive fallback */
@media (max-width: 991px) {
  .service-static-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    height: auto;
  }
}
@media (max-width: 600px) {
  .service-static-grid {
    grid-template-columns: 1fr;
  }

  .service-static-grid .service-entry img {
    max-width: 100%;
    height: auto;
  }
}  

  /* Leistugen */

  .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin-top: 2rem;
  }
  
  .service-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 260px;
  }
  
  .service-entry img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .service-entry h3 {
    margin-top: 0.8rem;
    color: black;
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .service-entry p {
    margin-top: 0.3rem;
    font-size: 0.95rem;
    color: #444;
  }
  
  .weiter-button-wrapper {
    margin-top: 3rem;
    text-align: center;
  }
  
  .btn.weiter-button {
    background-color: #d72226;
    color: white;
    border-radius: 40px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
  }
  
  .btn.weiter-button:hover {
    background-color: #b71c1c;
  }

/* Uber uns */

.uber-uns-intro h2 {
  font-size: 2rem;
  color: #000000;
  text-align: center;
  margin-bottom: 2rem;
}

.section-divider {
  width: 75%;
  height: 3px;
  background-color: #d72226;
  border: none;
  margin: 1rem auto 2rem;
}

.uber-uns-intro p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.highlight {
  color: #d72226;
  font-weight: 500;
}

.two-column-team {
  background-color: #f4f4f4;
  padding: 4rem 2rem;
  color: #111;
  position: relative;
}

.team-preview {
  background-color: #f4f4f4;
  padding: 4rem 2rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.team-section-content {
  max-width: 800px;
  margin: 0 auto;
}

.team-section-content p {
  font-size: 1rem;
  color: #333;
  margin-top: 1rem;
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
  align-items: flex-start;
  max-width: 1300px;
  margin: 0 auto;            
  padding: 2rem;      
  width: 100%;          
  box-sizing: border-box;
  align-items: flex-start;
}


.team-text {
  flex: 1 1 60%;
  max-width: 600px;
  text-align: left;
}

.team-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #000;
}

.team-text p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.team-grid {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
}

.team-member {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  gap: 1.25rem;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-member a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  max-width: 150px;
  aspect-ratio: 1 / 1;
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.fallback-photo {
  background-color: #e5e7eb;
  padding: 0.75rem;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.member-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.member-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
}

.member-info p {
  margin: 0.2rem 0 0 0;
  font-size: 0.875rem;
  color: #555;
}

.team-logo-overlay {
  align-self: flex-end;
  max-width: 420px; 
  opacity: 0.7;
  margin-top: -1rem;
  margin-right: 0;     
  align-self: center;
  transform: translateY(1rem);
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
  .team-container {
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 1rem;
  }

  .team-text, .team-grid {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }

  .team-text {
    text-align: left;
  }

  .team-member {
    justify-content: center;
  }

  .member-info {
    text-align: center;
  }
}

/* Kontakt - Index */
.kontakt {
  position: relative;
  z-index: 1;
}    

.kontakt-aligned {
  background: #ffffff;
  text-align: center;
  padding: 0rem 2rem 6rem;
}

.kontakt-aligned h2 {
  font-size: 2rem;
  color: #000000;
  margin-bottom: 1.5rem;
}

.kontakt-aligned p {
  font-size: 1rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.kontakt-cta {
  margin-top: 2rem;
}

.kontakt-cta .cta-text {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 4rem;
  color: #111;
}

.btn.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-bottom: 4rem;
}

/* EINDRÜCKE */

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-image {
  width: 400px;
  height: 350px;
  scroll-snap-align: center;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px linear-gradient(to right, #282626, #d72226);
  transition: opacity 0.3s ease-in-out;
}

.carousel-image.side {
  opacity: 0.7;
}

.carousel-image.center {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

@media (max-width: 900px) {
  .carousel-image {
    width: 400px;
    height: 350px;
  }

  .carousel-btn {
    font-size: 1.8rem;
  }
}  
  
/* ==================================== LEISTUNGEN ==================================== */

.section {
  display: flex;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  position: relative;
}

.section img {
  transition: transform 0.3s ease;
}

.section img:hover {
  transform: scale(1.03);
}

.section-light {
  background-color: white;
}

.section-dark {
  background-color: #f7f7f7;
}

.section > div:first-child {
  flex: 0 0 320px; /* Fixed width */
  height: 250px;   /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.section > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.section > div:last-child {
  flex: 2;
}

.section-header {
  max-width: 75%;
  margin: 0 auto;
  text-align: center;
}

.section-heading {
  font-size: 2rem;
  color: #000000;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 100%;
  height: 3px;
  background-color: #d72226;
  border: none;
  margin: 1rem auto 1rem;
}

.cta-contact {
  background: white;
  color: #111; /* dark grey text */
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 0.5rem;
  border-top: none;
  margin-bottom: 6rem;
}

.cta-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #111;
}

.cta-wrapper p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #444;
}

.btn-cta {
  background-color: #d72226;
  color: white;
  font-weight: bold;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease-in-out;
}

.btn-cta:hover {
  background-color: #b71c1c;
  transform: translateY(-2px);
}

.video-image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.section-image {
  width: 100%;
  height: auto;
  display: block;
}

.video-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ▶️ Play Arrow Button */
.video-trigger {
  position: absolute;
  top: 50%;
  left: 3%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
}
.video-trigger:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Video Overlay */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* dimmed grey */
  backdrop-filter: blur(2px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.video-overlay.active {
  display: flex;
}

.video-content {
  position: relative;
  width: 75vw;
  max-height: 75vh;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.video-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ❌ Close Button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: white;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
}

/* ==================================== UBER UNS ==================================== */


.constrained-text {
  max-width: 75%;
  margin: 0 auto;
  text-align: left;
}

.section-heading-uu {
  font-size: 2rem;
  color: #000000;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-divider-uu {
  width: 75%;
  height: 3px;
  background-color: #d72226;
  border: none;
  margin: 1rem auto 2rem;
}


/* ==================================== KONTAKT ==================================== */

/* Kontakt Main Section */
.kontakt-main {
  background: #ffffff;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

/* Kontakt form */
.kontakt-form-container {
  width: 100%;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.kontakt-form-container h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.kontakt-form-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-row input,
.form-row textarea {
  flex: 1;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.form-row textarea {
  width: 100%;
  height: 120px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.checkbox-row label {
  font-size: 0.9rem;
}

.spam-row {
  align-items: center;
  gap: 1rem;
}

.spam-row label {
  font-weight: bold;
}

.kontakt-form-container .btn {
  width: fit-content;
  background-color: #d72226;
  color: white;
  font-weight: bold;
  padding: 0.7rem 2rem;
  border-radius: 40px;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Inline feedback message */
.form-msg {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
.form-msg.success { color: #2e7d32; }
.form-msg.error   { color: #d72226; }

/* Improve checkbox label wrapping on narrow screens */
.checkbox-row label a { color: #d72226; text-decoration: underline; }

/* Responsive tweak: stacked fields under 480px */
@media (max-width: 480px) {
  .form-row input { flex: 1 1 100%; }
}

/* Container for Box and Map */
.kontakt-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
  align-items: stretch;
}

.kontakt-box,
.kontakt-map {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.kontakt-main {
  background: #ffffff;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

/* Kontakt Box */
.kontakt-box {
  background-color: #eeeeee;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

/* Icons inside Box */
.kontakt-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
  align-items: center;
}

.kontakt-icon-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  color: #111;
}

.kontakt-icon-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Map Styling */
.kontakt-map {
  flex: 1;
  min-width: 300px;
  height: auto;
  max-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.kontakt-map iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Fix */
@media (max-width: 900px) {
  .kontakt-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .kontakt-map {
    width: 100%;
    max-height: none;
  }

  .kontakt-icons-row {
    flex-direction: column;
    gap: 0.8rem;
  }

  .kontakt-box {
    margin: 0 1rem;
  }
}

/*COOKIES*/

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1c1c1c;
  color: white;
  z-index: 9999;
  padding: 1rem 2rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  display: none;
  font-family: inherit;
}

.cookie-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-banner-content a {
  color: #d72226;
  font-weight: bold;
  text-decoration: underline;
}

.cookie-accept-btn {
  background-color: #d72226;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-accept-btn:hover {
  background-color: #b71c1c;
}


/* ==================================== FOOTER ==================================== */
footer,
.footer-gradient {
  background: linear-gradient(to right, #282626, #d72226);
  color: white;
  padding: 2rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-left,
.footer-right {
  text-align: left;
}

.footer-links a {
  color: white;
  margin-right: 1rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ==================================== RESPONSIVE ==================================== */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }


  .kontakt-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .hero-content {
    margin-left: 0;
    padding: 2rem;
  }
}

@media (max-width: 1024px) {
  .section {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
  }

  .section > div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
  }

  .section h3,
  .section p {
    text-align: left;
    word-break: break-word;
  }

  .section p {
    padding-right: 0;
    margin-bottom: 2rem;
  }
}

.section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* DATENSCHUTZ*/

.privacy-content {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}
.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
  color: #222;
  margin-top: 1rem;
}

.privacy-content h2 {
  font-size: 1.25rem;
}

.privacy-content h3 {
  font-size: 1.15rem;
}

.privacy-content h4 {
  font-size: 1rem;
}