/*  style.css – mobile-first, modernes Design  */
/* ========================================== */

@charset "UTF-8";
:root {
  /* Farbpalette */
  --brand-100: #e4e3ff;
  --brand-300: #9b9aff;
  --brand-500: #553cff;     /* Haupt-Violett */
  --brand-700: #3520cc;
  --brand-900: #1b1099;
  --grey-50:   #f7f7f7;
  --grey-200:  #e5e5e5;
  --grey-400:  #bfbfbf;
  --grey-800:  #3a3a3a;
  --black:     #000;

  /* Typografie  */
  --font-sans:  'Inter', 'Segoe UI', Arial, sans-serif;
  --fs-h1:      clamp(1.75rem, 5vw + .5rem, 2.5rem);
  --fs-h2:      clamp(1.35rem, 4vw + .25rem, 1.9rem);
  --fs-base:    clamp(0.9rem, 2.5vw, 1.05rem);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--grey-800);
  background: var(--grey-50);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* ---------- Helfer ---------- */
.container {
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.pageCenter {
  width: 100%;
  margin-inline: auto;
}

.fullWidth1 {
  background: #ffffff;      /* rein weiß */
}

.fullWidth2 {
  background: #fff7f7;      /* deutlich dunkleres hellgrau */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none; /* entfernt jegliche Rahmen um Bilder */
}

hr {
  border: 0;
  border-top: 3px solid var(--brand-500);
  margin-block: 1.25rem;
  opacity: .25;
}

h1 {
  font-size: var(--fs-h1);
  margin-bottom: .5rem;
  color: var(--brand-900);
  text-align: center;
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: .5rem;
  color: var(--brand-700);
}

p {
  margin-bottom: 1rem;
}

/* ---------- Navigation ---------- */
.header-wrapper {
  width: 100%;
  background-color: rgb(229, 229, 229)
}

.navbar {
  background-color: rgb(229, 229, 229) !important;
  padding: 0 1rem;
  box-shadow: 0 2px 4px rgb(0 0 0 /.12);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 52px; /* Default mobile height */
}

/* Überschreibt Bootstrap-Padding bei .navbar-brand */
.navbar-brand {
  padding: 0 !important;
  margin: 0 !important;
}

.navbar-brand img {
  height: 52px;
  padding: 0 !important;
  margin: 0 !important;
}

.navbar-toggler {
  border: none;
}

.navbar-dark .navbar-nav {
  display: flex;
  align-items: stretch; /* damit Links volle Höhe ausfüllen */
}

.navbar-dark .navbar-nav .nav-link {
  color: #fff;
  padding: 0 1.25rem !important;
  display: flex;
  align-items: center;
  height: 100%;
  border-radius: 0;
  transition: background .25s;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus,
.navbar-dark .nav-link.active {
  background: var(--brand-700);
}

/* Kontaktinfo bleibt sichtbar, wird aber bei sehr kleinen Bildschirmen ausgeblendet */
#kontaktTop {
  color: #050000;
  margin-left: 1rem;
  font-size: .75rem;
  line-height: 1.3;
}

/* ---------- Figure / Produkte ---------- */
.imageWrapper {
  padding: .75rem;
  display: flex;
}

.figure-flex {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--grey-200);
  border: 1px solid var(--grey-400);
  border-radius: .5rem;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}

.figure-flex:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgb(0 0 0 /.08);
}

/* Button in figure ohne zusätzlichen Rand */
.figure-flex button {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
}

/* Bild wird von der übergeordneten figure abgerundet (overflow: hidden) */
.figure-flex img {
  width: 100%;
  display: block;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Linie zwischen Bild und Text */
.figure-flex figcaption {
  border-top: 1px solid var(--grey-400);
  font-size: .875rem;
  padding: .5rem;
  color: var(--grey-800);
  flex-shrink: 0;
}

/* ---------- Carousel ---------- */
.carousel-item {
  border-radius: .75rem;
  overflow: hidden;
}

.carousel-inner img {
  object-fit: cover;
  height: 360px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* ---------- Modale ---------- */
.modal-content {
  border-radius: .75rem;
}

#modalD2 .modal-header {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

#modalD2 h4 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--brand-700);
}

#modalD2 .modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 1rem;
}

#scrollDownBtn {
  background: var(--brand-300);
  border: none;
  color: #fff;
  font-size: .85rem;
}

#scrollDownBtn:hover {
  background: var(--brand-500);
}

#acceptPrivacyBtn {
  display: none;
}

#modalD2 .modal-footer {
  border-top: 1px solid var(--grey-200);
}

/* ---------- Footer-Buttons (Impressum & Datenschutzerklärung) ---------- */
/* weniger auffällig: gleiche Farbe wie Produktkarten-Hintergrund */
a.impressum_datenschutz {
  background: var(--grey-200);
  color: var(--grey-800) !important;
  padding: .9rem 1rem !important;
  text-align: center;
  border: 1px solid var(--grey-400);
  border-radius: .4rem;
  display: block;
  transition: background .25s;
}

a.impressum_datenschutz:hover {
  background: var(--grey-200);
}

/* ---------- Zusätzliche Stile ---------- */
/* Hero-Center: Padding-Top eingefügt, um Abstand wie bei "Produkte" und "Kontakt" zu erzielen */
.hero-center {
  padding-top: 1.25rem; /* entspricht dem Abstand über Überschriften in anderen Sektionen */
}

/* "Über uns"-Container: Padding oben */
.ueber-container {
  padding-top: 30px;
}

/* Weitere Produkte-Absatz, linksbündig */
.left-text {
  text-align: left;
}

/* Kontakt-Infos: größere Schrift */
.contact-info {
  font-size: 18px;
}

/* Reihen mit Abstand oben (Produkte) */
.mt-15 {
  margin-top: 15px;
}

/* ---------- Media-Queries ---------- */
/* sehr schmale Geräte (< 576px) */
@media (max-width: 5px) {
  /* Logo etwas verkleinern */
  .navbar-brand img {
    height: 40px;
  }
  /* Kontaktinfo ausblenden */
  #kontaktTop {
    display: True;
  }
  /* Navbar enger, Padding etwas reduzieren */
  .navbar {
    padding: .2rem .5rem;
    min-height: 52px;
  }
  /* Links füllen mobile-Höhe */
  .navbar-dark .navbar-nav .nav-link {
    height: 52px !important;
    line-height: 52px !important;
  }
  /* Hero etwas näher rücken */
  .hero-center {
    padding-top: 1rem;
  }
}

/* ≥ 576 px ------------------------------------------------ */
@media (min-width: 6px) {
  #kontaktTop {
    font-size: .8rem;
  }
}

/* ≥ 768 px ------------------------------------------------ */
@media (min-width: 768px) {
  /* Navbar im Desktop-Modus (ab md) höher setzen */
  .navbar {
    min-height: 100px !important;
    padding: 0 1rem;
  }
  .navbar-brand img {
    height: 100px;
  }
  /* Links füllen die volle Höhe und sind vertikal zentriert */
  .navbar-dark .navbar-nav .nav-link {
    height: 100px !important;
    line-height: 100px !important;
    padding: 0 1.25rem !important;
  }
  #kontaktTop {
    font-size: .9rem;
  }
  .imageWrapper {
    padding: 1rem;
  }
  .figure-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .figure-flex figcaption {
    min-height: 80px;
  }
}

/* ≥ 1300 px ---------------------------------------------- */
/* zentriert auf ~70 % Breite, damit Bilder nicht zu groß werden */
@media (min-width: 1300px) {
  .pageCenter {
    width: 70%;
  }
  h1 {
    font-size: 2.75rem;
  }
  h2 {
    font-size: 2.1rem;
  }
}

/* ===  NAVBAR-Feinschliff ======================================= */

/* 1) Logo niemals abrunden */
#logo img {
  border-radius: 0 !important;
}

/* 2) Links sollen dieselbe Höhe wie das Logo haben */
.navbar-dark .navbar-nav {
  align-items: stretch; /* Flex-Kinder füllen Höhe */
}

.navbar-dark .nav-link {
  height: 100% !important;
  line-height: inherit;
  display: flex;
  align-items: center;
  padding: 0 1.25rem !important;
}

/* ==================================================================== */
/*  MOBILE NAVBAR – Lücke + Streifen entfernen                          */
/* ==================================================================== */

/* 1) Keine Außenabstände (killt die 6-px-Margin) */
.fixed-top > div {
  margin: 0 !important;
}

/* 2) Höhe an Logo/Link-Größe angleichen – Mobile = 52 px */
.fixed-top > div {
  height: 52px !important; /* exakt Logo-Höhe */
}

/* ≥ 768 px: Navbar-Höhe auf 100 px */
@media (min-width: 768px) {
  .fixed-top > div {
    height: 100px !important;
  }
}

/* 1) Spacer (#top), Höhe angepasst */
#top {
  height: 100px;
}

/* 2) Nächste .fullWidth1-Sektion: Padding entfernt, damit Hero direkt ansetzt */
#top + .fullWidth1 {
  padding-top: 0;
}

/* Desktop (ab md): ebenso kein zusätzliches Padding */
@media (min-width: 768px) {
  #top + .fullWidth1 {
    padding-top: 0;
  }
}

/* 0. Die Navbar richtet sich in ihrer Höhe künftig nur nach dem Logo */
.navbar {
  min-height: 52px !important; /* Default = Mobile */
}

/* 3. Spacer hinter der fixen Navbar anpassen (kein #top-Patch mehr nötig) */
.fixed-top > div {
  height: auto !important;
} /* Höhe kommt jetzt von .navbar */


/* 1) Give all “.scroll” links the default blue background */
.navbar-dark .nav-link.scroll {
  background-color: #393186;
}

/* 2) Override just the “Willkommen” link (#test) to be red on load */
#test {
  background-color: #e31e25;
}

#my_navbar {
  padding-left: 0px;
  padding-right: 0px;
}

/* Default: scale images by width and let height be automatic (no cropping) */
.carousel-inner img {
  width: 100%;
  height: auto;
  object-fit: contain; /* ensure the entire image is visible */
}


/* 1) On small (collapsed) screens, the navbar is 52px tall, so #top should be 52px */
#top {
  height: 52px;
}

/* 2) Once you hit the breakpoint where the navbar grows to 100px, bump #top up to 100px */
@media (min-width: 768px) {
  #top {
    height: 100px;
  }
}


/* Remove any right padding/margin on narrow (xs) devices */
@media (max-width: 575px) {
  /* Zero out Bootstrap’s container‐padding on both sides */
  .fullWidth1,
  .fullWidth2,
  .pageCenter {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Also ensure any rows/cols don’t reintroduce horizontal gutters */
  /* .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  } */
}

/* ==================================================================== */
/*  COLLAPSED MENU UNTER DEM NAVBAR ANZEIGEN (MOBILE)                   */
/* ==================================================================== */

/* On screens below the md breakpoint, position the collapsed menu below the navbar */
@media (max-width: 767.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .navbar-collapse .navbar-nav .nav-item {
    width: 100%;
  }

  /* default link color = orange */
  .navbar-collapse .navbar-nav .nav-link {
    padding: 1rem;
    height: auto !important;
    line-height: normal !important;
    background-color: rgb(229, 229, 229) !important;
    color: black !important;
    transition: color .2s;
  }

  /* on hover, change to dark gray */
  .navbar-collapse .navbar-nav .nav-link:hover {
    color: #e31e25 !important;
  }
}

/* ==================================================================== */
/*  Make the hamburger icon solid black                                  */
/* ==================================================================== */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;utf8,\
<svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'>\
  <path stroke='black' stroke-width='2' stroke-linecap='round' \
        stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/>\
</svg>") !important;
}

/* ==================================================================== */
/*  Buttons "Impressum" & "Datenschutzerklärung" untereinander (Mobil)   */
/* ==================================================================== */
@media (max-width: 575px) {
  .col-6.mx-auto {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Abstand zwischen den beiden Buttons */
  .col-6.mx-auto:not(:last-child) {
    margin-bottom: 0.5rem;
  }
}

/* =======================
   Limit navbar width & center to match other content
   ======================= */

/* On very large screens (≥1300px), .pageCenter is 70% wide and centered. */
@media (min-width: 1300px) {
  .navbar {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* On medium–large screens (768px–1199.98px), .pageCenter is up to 1300px wide. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .navbar {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* On smaller screens (<768px), navbar stays full‐width. */
@media (max-width: 767.98px) {
  .navbar {
    max-width: 100%;
    margin: 0;
  }
}
