:root {
  --h-nav-mobile: 3.5rem;
  /* Adjust this to match your nav height */
  --border-radius: 0.2rem;
  --home-bg-color: #f2f3f3;
  --orange: #f39617;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "IBM Plex Sans", sans-serif;
}

/* Enable scroll snapping on the body */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-y: hidden scroll;
  /* Force scrollbar to avoid layout shifts */
}

/*Nur für Screenreader sichtbar (Barrierefreiheit)*/
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only.focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 1rem;
  clip: auto;
  white-space: normal;
  background: #000;
  color: #fff;
  padding: 0.5rem;
  z-index: 9999;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #565656;
  color: white;
  padding: 1rem;
  z-index: 9999;
  display: none;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
}

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

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-content a {
  color: white;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.cookie-btn.accept {
  background: var(--orange);
  color: white;
}

.cookie-btn.reject {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.cookie-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.4;
  color: #333;
}

/* Sections (snap targets) */
.section {
  height: calc(90vh - var(--h-nav-mobile));
  /* Subtract nav height */
  width: 100vw;
  /* scroll-snap-align: start; */
  /* scroll-snap-stop: always; */
  display: flex;
  flex-direction: column;
  /* justify-content: center;
  align-items: center; */
  padding-top: 0;
  margin-top: 0;
  text-align: center;
  position: relative;
}

/* Disable snapping on footer */
.footer {
  scroll-snap-align: none;
  height: auto !important;
  /* Override 100vh if needed */
}

/* Navigation Bar (unchanged) */
/* .navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--h-nav-mobile); 
  background: #2c3e50;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  } */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--h-nav-mobile);
  background-color: #ffffff;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ... (rest of your existing CSS) ... */

.navbar-brand {
  align-items: center;
  display: inline;
}

.navbar-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* .logo img {
    height: 2rem;
} */
.logo {
  height: 2rem;
  /* Fixed height matching your design */
  display: flex;
  /* Ensures proper image alignment */
  padding-right: 0.3rem;
}

.logo img {
  height: 100%;
  width: auto;
  /* Maintain aspect ratio */
  filter: opacity(87%);
}

.brand-label {
  font-weight: bold;
  white-space: nowrap;
  font-weight: 00;
}

@media (max-width: 368px) {
  .brand-label {
    display: none;
  }
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
}

.navbar-links a {
  color: grey;
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
}

.navbar-links a span {
  position: relative;
  width: 5px;
  object-fit: contain;
}

.navbar-links a:hover {
  color: black;
  font-weight: 500;
}

#language {
  width: 24px;
  filter: opacity(60%) grayscale(100%);
}

#language:hover {
  filter: opacity(100%);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: grey;
  font-size: 1.5rem;
  cursor: pointer;
}

/*--------------------------------------------*/

/* Navigation anpassen */
.navbar-links a[href="#chatbot"] {
  display: none;
  /* Chatbot-Link verstecken */
}

.navbar-links a[href="#faq"] {
  display: block;
  /* FAQ-Link anzeigen */
}

#home {
  display: flex;
  flex-direction: column;
  background: var(--home-bg-color);
  height: max-content;
}

.home-content {
  display: flex;
  flex-direction: column;
  /* 📱 Mobile: Stack */
  align-items: center;
  width: 100%;
  gap: 2rem;
  margin-bottom: 0;
}

.video-content {
  width: 100%;
  max-width: 600px;
}

.video-content video {
  width: 100%;
  height: auto;
}

.text-content {
  text-align: center;
  max-width: 600px;
  margin: 2rem 1.5rem 3rem 1.5rem;
}

h1 {
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  line-height: 0.9;
}

/* Buttons */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: max-content;
  min-width: clamp(176px, 50%, 300px);
  max-width: 50%;
  justify-content: center;
  justify-self: center;
}

.button {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  transition: background 0.3s;
  min-width: fit-content;
}

/* Metallic button style */
.metallic-btn {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #ced4da;
  color: #333;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.08);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  border-radius: var(--border-radius);
}

.metallic-btn:hover {
  background: linear-gradient(180deg, #f1f3f5 0%, #dee2e6 100%);
  color: #333;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 3px 5px rgba(0, 0, 0, 0.1);
}

.metallic-btn:active {
  background: linear-gradient(180deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Tablet/Desktop Layout (Side-by-side) */
@media (min-width: 970px) {
  .home-content {
    flex-direction: row;
    /* 💻 Desktop: Side-by-side */
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 0 auto 18rem auto;
    padding: 0 1rem 0 1rem;
  }

  .video-content {
    flex: 0 0 60%;
  }

  /*    .video-content video{
      border-right: 1px solid rgb(156, 156, 156);
    } */

  .text-content {
    flex: 0 0 40%;
    text-align: left;
  }

  .text-content h1 {
    font-size: clamp(3rem, 4vw, 4rem);
    margin: 5rem 0 1rem 0;

    padding: 3rem 0 2rem 0;
  }

  #call-to-action {
    text-align: left;
    /* margin-bottom: 1rem; */
  }

  .button-group {
    width: 50%;
    justify-self: left;
  }
}

@media (min-width: 1200px) {
  h1 {
    hyphens: none;
  }
}

/* About Section Layout */
#about {
  display: flex;
  flex-direction: column;
  /* Default: Mobile first (vertical) */
  overflow: hidden;
  background-color: whitesmoke;
  height: max-content;
  justify-content: flex-start;
  align-items: stretch;
}

.about-image,
.about-text {
  width: 100%;
  /* Full width on mobile */
}

.about-image {
  height: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.about-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--title-accent);
}

.about-text p {
  line-height: 1.6;
  font-size: clamp(1rem, 2vw, 1.1rem);
  text-align: justify;
  max-width: 70%;
}

/* 3. Carousel Block */
/* Brand Carousel Container */
/* Add to styles.css */
.about-carousel {
  width: 100%;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
  background-color: white;
  font-style: italic;
}

.brand-carousel {
  display: flex;
  width: max-content;
  /* Key change - allows horizontal scrolling */
  animation: scroll 20s linear infinite;
  gap: 2rem;
  padding: 1rem 0;
}

.brand-carousel img {
  height: 1.5rem;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s;
  overflow: clip;
}

.brand-carousel img:hover {
  filter: grayscale(0);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

#carousel-toggle {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.paused {
  animation-play-state: paused !important;
}

/* Desktop Layout */
@media (min-width: 768px) {
  #about {
    flex-direction: row;
    /* Side-by-side */
    flex-wrap: wrap;
    align-items: center;
  }

  .about-image {
    flex: 1 1 20%;
    /* 50% width */
    height: 80vh;
    justify-content: right;
  }

  .about-image img {
    height: 100%;
    width: auto;
    max-width: 50vw;
  }

  .about-text {
    flex: 1 1 80%;
    /* 45% width */
    text-align: left;
    padding: 2rem;
    max-width: 60%;
  }

  .about-carousel {
    flex: 1 1 100%;
    /* Full width below */
  }
}

/* Standort Section */
#location {
  background: var(--home-bg-color);
  min-height: 80vh;
}

.map-container {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  height: 60vh;
  border: 2px solid;
  /* Required for border-image to apply */
  border-image: linear-gradient(180deg, #e0e0e0, #bababa, #e0e0e0);
  border-image-slice: 1;
}

.map-frame {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
}

.fallback-content {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.fallback-content i {
  color: var(--title-accent);
  margin-right: 0.5rem;
}

.fallback-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #3498db;
  color: white;
  border-radius: var(--border-radius);
  text-decoration: none;
}

.opening-hours {
  width: fit-content;
  margin: auto;
  hyphens: manual;
}

.opening-hours ul {
  text-align: left;
  list-style: none;
  hyphens: manual;
}

.italic {
  font-style: italic;
  padding-left: 1rem;
}

/*POST Section*/
#post {
  height: max-content;
}

.post-container {
  margin: 3rem auto;
  width: 70%;
  background-color: #292521;
  color: white;
  text-align: left;
  padding: 2rem 2rem;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
}

.post-container a {
  color: var(--orange);
}

.post-tip h3 {
  padding-bottom: 0.6rem;
}

.post-image {
  display: flex;
  justify-content: center;
  height: 25vh;
}

.post-image img {
  height: 100%;
  transition: opacity 2s ease-in-out;
}

@media (min-width: 768px) {
  .post-container {
    flex-direction: row;
    width: 66%;
  }

  .post-tip {
    flex: 0 0 70%;
  }

  .post-image {
    flex: 0 0 30%;
  }
}

/* FAQ Section */
/* FAQ Section */
#faq {
  background: var(--home-bg-color);
  padding: 2rem 1rem;
  height: max-content;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.faq-item {
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 2rem 1rem 1.2rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.25);
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  transition: max-height 0.3s ease;
  padding-right: 3rem;
}

.faq-answer p {
  padding: 0rem 2rem 1.2rem 1.2rem;
  margin: 0;
  color: darkslategrey;
  line-height: 1.6;
  text-align: justify;
}

/* Active state */
.faq-item.active .faq-question {
  background: rgba(255, 255, 255, 0.25);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  /* Adjust based on content */
}

/* Responsive */
@media (max-width: 768px) {
  .faq-question {
    font-size: 1rem;
    padding: 1rem;
  }

  .faq-answer p {
    padding: 1rem;
  }
}

/* Footer */
.footer {
  background: #292521;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer a {
  color: var(--orange);
  text-decoration: none;
}

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

.footer-links {
  margin: 1rem 0;
}

.footer-links span {
  margin: 0 0.5rem;
  color: #999;
}

.footer-credits {
  font-size: 0.8rem;
  color: #bbb;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--h-nav-mobile);
    left: 0;
    width: 100%;
    background: whitesmoke;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

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

  .hamburger {
    display: block;
  }
}

/*------------------------------------------------------------*/
/*------------------------------------------------------------*/
/*KONTAKT.HTML*/
/*------------------------------------------------------------*/
/* Contact Page Specific Styles */

.contact-main {
  padding-top: var(--h-nav-mobile);
  background-color: whitesmoke;
  padding-bottom: 5rem;
}

.contact-hero,
.alternative-contact-suggestions {
  text-align: center;
  padding: 5rem 1rem;
}

.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-description {
  margin-bottom: 2rem;
  color: grey;
}

/* Form Styles */
.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

textarea {
  resize: none;
}

.error-message {
  color: var(--orange);
  font-size: 0.8rem;
  display: none;
  margin-top: 0.3rem;
}

input:invalid,
textarea:invalid {
  border-color: var(--orange);
}

/* File Upload */
.file-upload {
  border: 2px dashed #ddd;
  padding: 1.5rem;
  text-align: center;
  border-radius: 4px;
}

.upload-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: gray;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  margin: 1rem auto;
}

.drag-drop-area {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 4px;
}

.file-preview {
  margin-top: 1rem;
  display: none;
}

.preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: #f1f1f1;
  margin-top: 0.5rem;
}

.remove-file {
  color: var(--orange);
  cursor: pointer;
}

/* Submit Button */
.submit-btn {
  padding: 1rem 2rem;
  font-weight: 400;
  font-size: inherit;
  cursor: pointer;
  transition: background 0.3s;
}

.alternative-contact-suggestions .button-group {
  justify-self: center;
  max-width: 40%;
}

.alternative-contact-suggestions .button-group .button {
  min-width: fit-content;
  justify-content: center;
}

/*------ DATENSCHUTZ.HTML--------*/
.legal-main {
  max-width: 800px;
  margin: var(--h-nav-mobile) auto;
  padding: 2rem;
  line-height: 1.6;
  background-color: whitesmoke;
  text-align: justify;
}

.legal-main p {
  margin-bottom: 1rem;
}

.legal-main ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-main ul li {
  margin-bottom: 0.5rem;
}

.legal-main h2 {
  font-size: large;
  word-break: break-all;
}