html {
    --lumo-primary-color: #1e3a8a;
    --lumo-primary-text-color: #1e3a8a;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

body {
    background-color: #f3f4f6;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    max-width: 100vw; /* Begrenzt Breite auf Viewport */
}

/* --- Header / Navbar --- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: var(--lumo-space-m) 0;
}

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

.logo-text {
    font-size: var(--lumo-font-size-xl);
    margin: 0;
    color: var(--lumo-header-text-color);
}

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

.nav-link {
    color: var(--lumo-secondary-text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--lumo-primary-text-color);
}

.burger-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://www.onlinehaendler-news.de/fileadmin/import/lwb/shutterstock_576817807.jpg') no-repeat center center/cover;
    color: white;
    min-height: 80vh;
    padding: var(--lumo-space-xl);
    text-align: center;
}

.hero-headline {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-subline {
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.btn-primary {
    background-color: #1e3a8a;
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    padding: 1rem 2.5rem;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: var(--lumo-space-l);
}

.btn-primary:hover {
    background-color: #1c4566;
    transform: translateY(-2px);
}

/* --- Offers Section --- */
.offers-section {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: var(--lumo-box-shadow-s);
    padding: 4rem 2rem;
    margin: 2rem auto 2rem auto; /* Negative Margin entfernt */
    max-width: 1200px;
    position: relative;
    z-index: 10;
}

.offer-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.offer-card {
    background-color: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--lumo-box-shadow-xs);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: left;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- About Us Section --- */
.about-us-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 4rem 2rem;
    background-color: #f9fafb;
    border-radius: 1.5rem;
}

.about-us-image {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: var(--lumo-box-shadow-l);
}

/* --- Contact Section --- */
.contact-section {
     padding: 4rem 2rem;
     max-width: 1200px;
     margin: 2rem auto;
}

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
}

.contact-info-box {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 1rem;
}

.contact-info-box input,
.contact-info-box textarea,
.contact-info-box select {
    width: 100%;
    box-sizing: border-box;
}

.phone-number {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--lumo-primary-color);
}

.contact-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.contact-link-row a {
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
}

/* --- Newsfeed Section --- */
.newsfeed-section {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f8fafc;
    padding: 24px 0;
    z-index: 10;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 32px;
    min-height: 260px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.news-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-radius: 12px;
    background: white;
    display: inline-block;
    width: 320px;
    min-height: 220px;
    margin-right: 16px;
    vertical-align: top;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.news-card:hover {
    box-shadow: 0 4px 16px rgba(30,58,138,0.12);
    transform: translateY(-2px) scale(1.02);
}

.news-card:first-child {
    margin-left: 8px;
}

.news-card:last-child {
    margin-right: 8px;
}


/* --- Footer --- */
.app-footer {
    background-color: #111827;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* --- Drawer Menu --- */
.drawer-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.2);
  z-index: 2000;
  display: none;
  transition: opacity 0.3s;
}
.drawer-overlay[style*="display: block"] {
  display: block !important;
  opacity: 1;
}
.drawer-menu {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.08);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideInDrawer 0.3s ease;
}
@keyframes slideInDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@media (min-width: 701px) {
  .drawer-overlay {
    display: none !important;
  }
}

/* --- Responsive adjustments --- */
@media (max-width: 1024px) {
    .about-us-section, .contact-columns {
        grid-template-columns: 1fr;
    }
    .about-us-image {
      order: -1; /* Move image to top on mobile */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* A proper implementation would use a DrawerToggle */
    }
    .hero-headline {
        font-size: 2.5rem;
    }
    .hero-subline {
        font-size: 1.2rem;
    }
    .offer-cards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
  .nav-links {
    display: none !important;
  }
  .burger-menu-btn {
    display: block !important;
  }
}

.dynamic-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: transform 0.3s, opacity 0.3s;
  transform: translateY(0);
  opacity: 1;
}
.dynamic-header.hide-on-scroll {
  transform: translateY(-100%);
  opacity: 0;
}

/* NewsFeedSection abgerundete Ecken */
.section-rounded {
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Mobile Optimierung für Newsfeed */
@media (max-width: 700px) {
  /* Verstecke die Pfeil-Buttons auf mobilen Geräten */
  .newsfeed-nav-button {
    display: none;
  }

  .section-rounded {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .newsfeed-section {
    padding: 16px 0;
    min-height: auto;
    width: 100vw;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
  }

  .newsfeed-section::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .news-card {
    width: calc(100vw - 32px);
    min-width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-right: 0;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .news-card:first-child {
    margin-left: 16px;
  }

  .news-card:not(:last-child) {
    margin-right: 16px;
  }

  .news-card:last-child {
    margin-right: 16px;
  }
}

@media (max-width: 600px) {
  .section-rounded {
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 0.5rem;
    margin: 0.5rem 0;
  }
  .news-feed-title {
    font-size: 1.1rem;
  }
  .news-feed-content {
    font-size: 0.95rem;
  }
}
