/* Grundlegende Reset-Einstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  


  /* Open Sans Regular */
/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Open_Sans/open-sans-v40-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/Open_Sans/open-sans-v40-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/Open_Sans/open-sans-v40-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/Open_Sans/open-sans-v40-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: url('/fonts/Open_Sans/open-sans-v40-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 800;
  src: url('/fonts/Open_Sans/open-sans-v40-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

  body {
    font-family: 'Open Sans','Arial', sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;

  }
  #map{
    height: 600px;
    width: 100%;
    z-index:1;
  } 
  h1, h2, h3 {
    font-family: 'Open Sans','Arial', sans-serif;
    color: #3e4a59;
  }
  h2{
    font-size:16px;
  } 
    h2{
    font-size:16px;
  } 
  .price{
    font-weight: bold;
    font-size: 18px;
  } 
  .buy-btn{
    padding: 15px 10px;
    background-color: #fddf00;
    color: #000;
    border-radius: 10px;
    font-weight: bold;
    display: inline-block;
  } 
  .buy-btn:hover{
    background-color: #dfc501;
    color: #000;
    text-decoration: underline;
  } 
  .buy-btn-mobile{
    display: none;
  } 
  /* Hauptfarbe */
  :root {
    --primary-color: #007bff;
    --secondary-color: #f15c56;  /* Sanftes Rot/Orange für Akzente */
    --background-color: #f4f6f9;
    --text-color: #333;
    --footer-bg-color:#367da8;
    --link-hover-color: #0056b3;
  }
  .product-img{
    float: left;
    max-width: 250px;
    margin-right: 20px;
  } 
  a {
    text-decoration: none;
    color: var(--primary-color);
  }
  
  a:hover {
    color: var(--link-hover-color);
  }/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: var(--footer-bg-color);
    color: white;
    padding: 10px 0;
    z-index: 11;
  }
  .logo img, .sidebar-logo img {
    max-height: 50px; /* Maximale Höhe des Logos */
    width: auto;
    margin-top: 10px;
  }

  .sidebar-logo img {
    max-height: 40px; 
  } 
  .logo a{
    color: #fff;
    font-size: 20px;
    font-weight: bold;
  } 
 
  main{
    margin-top:50px;
  } 
  

  main{
    
min-height:100vh;    

  } 
  .page{
    width:100%;
    background-color: #fff;
    max-width:1200px;
    margin:auto;
    padding: 30px;
    padding-bottom: 55px;
    min-height: 600px;
  }  

  .book-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
 
}
.book {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 10px;
  width: 200px;
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.book img {
  width: 150px;
  height: 220px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.book-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;        /* Ermöglicht mehrzeilige Darstellung */
  -webkit-line-clamp: 3;      /* Begrenzung auf 3 Zeilen */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;    /* Zeigt '...' an, wenn der Text zu lang ist */
  line-height: 1.4;
}

.book-description {
  font-size: 14px;
  color: #777;
  line-height: 1.4;
  height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 5px;
}

.book-description.no-description {
  color: #999;
  font-style: italic;
}

@media (max-width: 600px) {
  .page{ 
 padding: 15px;
  } 
  .buy-btn-mobile{
    display: block;
    text-align: center;
    margin: 10px 0;
  } 
  .product-img{
    float: left;
    max-width: 150px;
    margin-right: 20px;
  } 
  .logo img{
    max-height: 40px;

  } 
    .book {
        width: 140px;
        margin:10px 2px;
    }

    .book img {
        width: 120px;
        height: 180px;
    }
}
  /* Hero-Bereich */
  .hero {
    background-image: url('/hero.jpg'); /* Hier kannst du das große Bild einsetzen */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
  }
  
  
  .hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 80% der Bildschirmhöhe */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Hintergrundbild */
.hero picture img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Overlay für bessere Lesbarkeit */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

/* Text-Styling */
.hero-text {
    position: relative;
    z-index: 1; /* Über das Overlay legen */
    max-width: 800px;
    padding: 20px;
  
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0;
    color: #fff;
}

.hero-text p {
    font-size: 1.5rem;
    margin-top: 10px;
    color: #fff;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 1.2rem; }
}

  .hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
  }
  
  .hero p {
    font-size: 2.5em;
    margin-bottom: 20px;
  }
  
  .hero .cta-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
  }
  
  .hero .cta-btn:hover {
    background-color: var(--secondary-color);
  }
  
  
  /* Responsivität */
  @media (max-width: 768px) {
    header .main-nav ul {
        display: none;
      }
    
      header .main-nav.open > ul {
        display: block;
      }
      .hamburger {
        display: flex;
      }
    
      .hero h1 {
        font-size: 2.5em;
      }
    
      .hero p {
        font-size: 1.2em;
      }
    
      .hero .cta-btn {
        padding: 10px 20px;
        font-size: 1em;
      }
    } 


  /* Footer */
  footer {
    background-color: var(--footer-bg-color);
    color: white;
    padding: 20px 0;
    text-align: center;
  }
  
  footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
  }
  
  /* 404 Fehler-Seite */
  .error-page {
    text-align: center;
    margin-top: 50px;
  }
  
  .error-page h1 {
    font-size: 3em;
    color: var(--primary-color);
  }
  
  .error-page p {
    font-size: 1.2em;
    color: #555;
  }



/* news */
.post-container{
  display: inline-block;
} 
.post {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.3s;
  margin: 20px;
  width: 45%;
  float: left;
  height:450px;
  max-height: 450px;
}

.post:hover {
  transform: scale(1.05);
}
.post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-content {
  padding: 15px;
}
.post-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}
.post-excerpt {
  font-size: 14px;
  color: #555;
  overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #007bff;
  text-decoration: none;
}
@media (max-width: 800px) {
  .post {
    width: initial;
  } 
  .post-excerpt {
    -webkit-line-clamp: 4;
  } 
} 
  /* navigation */





/* Navigation Bar Styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--footer-bg-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 99;
}

/* Navbar Container */
nav .navbar {
  height: 100%;
  max-width: 1250px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  padding: 0 50px;
}

/* Logo Styling */
.navbar .logo a {
  font-size: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* Navigation Links Styling */
nav .navbar .nav-links {
  height: 100%;
  line-height: 50px;
}

/* Links Container */
nav .navbar .links {
  display: flex;
}

/* Individual Links */
nav .navbar .links li {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0 14px;
}

/* Links Anchor Tag Styling */
nav .navbar .links li a {
  height: 100%;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

/* Submenu Arrow Hover Effect */
.links li:hover .htmlcss-arrow,
.links li:hover .js-arrow {
  transform: rotate(180deg);
}

/* Arrow Icon Styling */
nav .navbar .links li .arrow {
  height: 100%;
  width: 22px;
  line-height: 50px;
  text-align: center;
  display: inline-block;
  color: #fff;
  transition: all 0.3s ease;
}

/* Submenu Styling */
nav .navbar .links li .sub-menu {
  position: absolute;
  top: 50px;
  left: 0;
  line-height: 40px;
  background: var(--footer-bg-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 4px 4px;
  display: none;
  z-index: 2;
}

/* Show Submenu on Hover */
nav .navbar .links li:hover .htmlCss-sub-menu,
nav .navbar .links li:hover .js-sub-menu {
  display: block;
}

/* Submenu List Item Styling */
.navbar .links li .sub-menu li {
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Submenu Anchor Styling */
.navbar .links li .sub-menu a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

/* More Submenu Arrow */
.navbar .links li .sub-menu .more-arrow {
  line-height: 40px;
}

/* More Submenu Container */
.navbar .links li .htmlCss-more-sub-menu {
  /* Extra space for future styling */
}

/* More Submenu Display */
.navbar .links li .sub-menu .more-sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  border-radius: 0 4px 4px 4px;
  z-index: 1;
  display: none;
}

/* Show More Submenu on Hover */
.links li .sub-menu .more:hover .more-sub-menu {
  display: block;
}

.search{
  position: relative;
  height: 40px;
  width: 300px;
  margin: auto;
} 

/* Search Box Styling */
.navbar .search-box {
  position: relative;
  height: 40px;
  width: 40px;
}

/* Search Icon */
.navbar .search-box i {
  position: absolute;
  height: 100%;
  width: 100%;
  line-height: 40px;
  text-align: center;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Search Input Box Styling */
.navbar .search-box .input-box {
  position: absolute;
  right: calc(100% - 40px);
  top: 80px;
  height: 60px;
  width: 300px;
  background: var(--footer-bg-color);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

/* Show Search Input on Click */
.navbar.showInput .search-box .input-box {
  top: 55px;
  opacity: 1;
  pointer-events: auto;

  display: flex;
    align-items: center;
  
}

/* Arrow Box Above Search */
.search-box .input-box::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  background: var(--footer-bg-color);
  right: 10px;
  top: -6px;
  transform: rotate(45deg);
}

/* Search Input Field */
.search-box .input-box input, .search input {
  position: absolute;
  top: 12px;
  left: 10px;
  border-radius: 4px;

  height: 35px;
  width: 250px;
  outline: none;
  padding: 0 15px;
  font-size: 16px;
  border: none;



  border: none;
  outline: none;
  padding: 10px;
  font-size: 16px;
  flex: 1;
  border-radius: 25px 0 0 25px;
}
.search input {
border: 1px solid var(--footer-bg-color);
} 
.search-btn {
  background: #007BFF;
  border: none;
  padding: 8px 15px;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index:1;
  position: absolute;
    right: 10px;
    top: 12px;
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

.search-btn:hover {
  background: #0056b3;
}

/* Sidebar Menu */
.navbar .nav-links .sidebar-logo {
  display: none;
}

/* Mobile Menu Icon */
.navbar .bx-menu {
  display: none;
}

/* Media Queries */

/* Tablet View (Max-width: 920px) */
@media (max-width: 920px) {
  nav .navbar {
    max-width: 100%;
    padding: 0 25px;
  }

  nav .navbar .logo a {
    font-size: 27px;
  }

  nav .navbar .links li {
    padding: 0 10px;
    white-space: nowrap;
  }

  nav .navbar .links li a {
    font-size: 15px;
  }
}

/* Mobile View (Max-width: 800px) */
@media (max-width: 800px) {
  nav .navbar .links li:hover .htmlCss-sub-menu,
nav .navbar .links li:hover .js-sub-menu {
  display: none;
}
  /* Show Mobile Menu Icon */
  .navbar .bx-menu {
    display: block;
  }

  /* Mobile Navigation Links */
  nav .navbar .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    max-width: 270px;
    width: 100%;
    background: var(--footer-bg-color);
    line-height: 40px;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    z-index: 1000;
  }

  /* Sidebar Logo */
  .navbar .nav-links .sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-logo .logo-name {
    font-size: 25px;
    color: #fff;
  }

  .sidebar-logo i,
  .navbar .bx-menu {
    font-size: 25px;
    color: #fff;
  }

  /* Display Links in Block */
  nav .navbar .links {
    display: block;
    margin-top: 20px;
  }

  /* Submenu Styling for Mobile */
  nav .navbar .links li .sub-menu {
    top: 6cqmax;
    box-shadow: none;
    display: none;
  }
  .navbar .links li .sub-menu li{
    border:0;
  } 

  .navbar .links li .sub-menu .more-sub-menu {
    position: relative;
    left: 0;
  }

  /* Disable Arrow Rotation on Mobile */
  .links li:hover .htmlcss-arrow,
  .links li:hover .js-arrow {
    transform: rotate(0deg);
  }

  .navbar .nav-links.show1 .links .htmlCss-sub-menu,
  .navbar .nav-links.show3 .links .js-sub-menu,
  .navbar .nav-links.show2 .links .more .more-sub-menu {
    display: block;
  }

  /* Arrow Rotation for Open Menus */
  .navbar .nav-links.show1 .links .htmlcss-arrow,
  .navbar .nav-links.show3 .links .js-arrow {
    transform: rotate(180deg);
  }

  .navbar .nav-links.show2 .links .more-arrow {
    transform: rotate(90deg);
  }
}

/* Small Mobile View (Max-width: 370px) */
@media (max-width: 370px) {
  nav .navbar .nav-links {
    max-width: 100%;
  }
}
  

/* slider */




/* cookie */

.cookie-container{
  width: 100%;
  display: none;
  }
  
  
  .cookie-information-click{
  font-size:14px;
  text-decoration: underline;
  margin: 5px 0;
  cursor:pointer;
  }
  .cookie-information{
  display: none;
      font-size: 12px;
      line-height:12px;
      word-break: break-word;
  }
  
  .close {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    opacity: 0.3;
    cursor: pointer;
  }
  .close:hover {
    opacity: 1;
  }
  .close:before, .close:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: #333;
  }
  .close:before {
    transform: rotate(45deg);
  }
  .close:after {
    transform: rotate(-45deg);
  }
  .cookie-box,.modal{
  background-color:#fff;
  padding:5px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index:9999;
  width: 300px;
  line-height: 24px;
  text-align: center;
      border-radius: 5px;
          overflow: auto;
      max-height: 400px;
      max-width: 95%;
  
  }
  .modal{
  padding-top:25px;
  width: 400px;
  }
  .cookie-bg{
  background: rgba(0,0,0,.6);
      width: 100%;
      height: 100%;
      z-index: 9998;
      position: absolute;
      top: 0;
  }
  
  .cookie-box button{
      background: #f7f7f7;
      border-radius: 4px;
      color: #555;
          display: block;
      width: 100%;
      height: 40px;
      border: 0;
      cursor: pointer;
      margin: 10px 0;
  }
  
  .cookie-box button:hover{
  background: #e6e6e6;
  }
  
  
  
  .cookie-box .cookie-allow{
      background: #28a745;
      border-radius: 4px;
      color: #fff;
  
  }
  .cookie-box  .cookie-allow:hover{
  background:#30c553;
  }