

/* --- Mobile Navigation --- */

/* --- Hamburger --- */
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  position: fixed;
  top: 10px;
  right: 15px;
  z-index: 10001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  margin: 5px auto;
  background: #e69400;
  transition: all 0.3s ease;
}

/* Animation zum "X" */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Overlay-Menü --- */
#mobile-menu {
  display: block !important;
  position: fixed;
  right: 0;
  top: 50px;
  width: 80%;
  height: calc(100vh - 50px);

  border-bottom-left-radius: 10px;

  background: #000000ee;
  color: #000;
  overflow-y: auto;
   -webkit-overflow-scrolling: touch; /* sanftes Scrollen auf iOS */
  z-index: 10000;
  padding: 12px 20px 80px;

  /* Startzustand (geschlossen) */
  transform: translateX(100%) translateZ(0);
  opacity: 0.5;
  pointer-events: none;

  transition:
    transform 0.2s ease-in-out,
    opacity 0.2s ease-in-out;

  will-change: transform, opacity;
  backface-visibility: hidden;
}

#mobile-menu #navi {
  border-top: 1px solid #e69400;
  padding-top: 20px;
  margin-top: 12px;
}

#toggle-bar {
  display: flex;
}

#switcher-mobile {
  display: flex;
  position: relative;
  width: auto;
  height: auto;
  padding: 2px;
}

#switcher-mobile a {
  position: relative;
  right: auto;
  width: auto;
  border: 2px solid #e69400;
  border-radius: 4px;
  padding: 0.3em;
  background: none;
  color: #e69400;
  font-size: 1rem;
  text-decoration: none;
}

#switcher-mobile a:hover {
  background: #e69600 !important;
  color: #000;
}

#mobile-menu .language-switch {
  position: absolute;
  top: 12px;
  right: 20px;
  display: flex;
  flex-direction: row;
  justify-content: right;
  padding: 0 0 12px 0;
  gap: 6px;
}

#mobile-menu .lang-btn {
  border: 2px solid #e69400;
  border-radius: 4px;
  padding: 0.3em;
  background: none;
  color: #e69400;
  font-size: 1rem;
  font-family: grad, Georgia, "Times New Roman", Times, serif;
}

#mobile-menu::after {
  content: "";
  display: block;
  height: 150px; /* 👈 gewünschter Abstand unten */
  flex-shrink: 0;
}

body.menu-open {
  overflow: hidden;
  height: 100vh;
}


/* --- geöffneter Zustand --- */
#mobile-menu.open {
  transform: translateX(0) translateZ(0);
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-menu li {
  padding: 0;
}

#mobile-menu li a {
  font-size: 1.2rem;
  margin: 0;
  padding: 0px 12px;
  color: #000;
  text-decoration: none;
}

#mobile-menu .submenu a {
  font-size: 1rem;
  margin: 0;
  padding: 0px 12px;
  color: #eeebd8ce;
  /* color: #eeebd8; */
}

#mobile-menu li ul {
  display: none;
  padding-left: 15px;
}

#mobile-menu li.open > ul {
  display: block;
}

#mobile-menu li.open > ul {
  display: block;
}


/* --- Mobile Accordion Overrides --- */
#mobile-menu ul.drop {
  display: block;               /* wir verstecken per max-height, nicht per display:none */
  max-height: 0;                /* Startzustand: unsichtbar */
  overflow: hidden;             /* verhindert „Überlauf“ beim Zuklappen */
  opacity: 0;                   /* weiches Ein-/Ausblenden */
  transform: scaleY(0.95);      /* kleiner Start, wirkt natürlicher */
  transform-origin: top;
  transition:
    max-height 0.3s ease-in-out,
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

#mobile-menu li.first {
 margin: 0px 0 30px 0;
}


#mobile-menu .submenu {
  display: block;
  width: 100%;
  max-width: 90%;
  margin: 14px 0 0px 0;
}

#mobile-menu li.open > ul.drop {
   max-height: 800px;            /* groß genug für längste Liste */
  opacity: 1;
  transform: scaleY(1);
}

#mobile-menu .submenu > a {
  display: block;
  position: relative;
  width: 100%;
}

/* --- Pfeile nur bei Hauptpunkten mit Untermenü (.first) --- */
#mobile-menu li.first > a {
  position: relative;
  display: block;
  text-align: left;
  padding-right: 24px; /* Platz für Pfeil */
  color: #e69400;
}

/* Der Pfeil selbst */
#mobile-menu li.first > a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid #e69400;
  border-bottom: 2px solid #e69400;
  transform: translateY(-50%) rotate(135deg); /* Pfeil nach rechts */
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
  opacity: 0.8;
}

/* Wenn das Akkordeon offen ist -> Pfeil nach unten gedreht */
#mobile-menu li.first.open > a::after {
  transform: translateY(-50%) rotate(45deg); /* Pfeil nach unten */
  opacity: 1;
}



/* --- End of Mobile Navigation --- */


@media only screen and (max-device-width: 1025px)
{

  *, *::before, *::after {
    box-sizing: border-box;
  }

  html, body {
    height: 100%;
    margin: 0;
  }

  body {
    background: #2a2a2a url('pic/backpattern.gif') repeat;
    background-attachment: scroll;
  }

  h1 {
    font-size: 1.5rem;
  }

  h1, h2 {
	  font-weight: normal;
    line-height: 100%;
  }
  #rubrik h1 {
    height: 100%;
    margin: 0;
    border-bottom: 0;
    display: flex;
    align-items: center;
  }

  #standard {
    width: 100%;
  }

  #standard section, #standard_noimg section {
   width: auto;
    margin: 0 12px;
  }

  header#top {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center; 
   
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1000;
  }

  header#top a {
    width: 128px;
    height: 34px;
    margin: 0px 12px;
  }

  header#top h1 {
    position: relative;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: auto;
  }
  header#top h1.logo_lib {
    position: relative;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: auto;
  }
  header#top h2 {
    display: flex;
    width: fit-content;
    margin: 0 50px 0 0;
    top: auto;
    bottom: auto !important;
    font-size: 0.9rem;
  }
  #h2_lib {
    font-size: 1.2rem !important;
  }

  #fb_lang, #fb_lang_re, #sublogo {
    display: none;
  }

  #switcher {
    display: none;
  }

  .language-select {
    height: 32px;
    top: 0;
    left: 0;
    right: auto;
    display: flex;
    gap: 8px;
  }

  .de {
    width: 36px;
    height: 100%;
    padding: 0;
    margin: 0 !important;
  }

   .en {
    width: 36px;
    padding: 0;
    margin: 0 !important;
  }

  .language-selet li {
    margin: 0 !important;
  }

  .language-select li a {
    width: 36px;
    height: 32px;
    padding: 0 !important;
    z-index: 50 !important;
  }

  .language-select li.de a {
    background: #00000011;
  }
 .language-select li.en a {
    background: #00000011;
  }
 

  .vm {
    border: 2px solid #e69400;
    border-radius: 6px;
  }

  .vm #rental,
  .vm #rental-mobile {
    background: #e69400 !important;
    padding: 1px 8px;
    color: #000;
    z-index: 50;
  }

  .vm #library,
  .vm #library-mobile {
    background: none !important;
    color: #e69400;
    border: none;
    margin-left: -8px;
    padding: 3px 8px 1px 20px;
    z-index: 49;
  }

  .vm #library:hover,
  .vm #library-mobile:hover {
    background: #e69600 !important;
    color: #000;
  }

   .vm-bib {
    border: 2px solid #e69400;
    border-radius: 6px;
  }

  .vm-bib #rental,
  .vm-bib #rental-mobile {
    background: none !important;
    margin-right: -8px;
    padding: 3px 20px 1px 8px;
    border: none;
    color: #e69400;
    z-index: 50;
  }

  .vm-bib #library,
  .vm-bib #library-mobile {
    background: #e69400 !important;
    color: #000;
    padding: 1px 8px;
    
    z-index: 49;
  }

  .vm-bib #rental:hover,
  .vm-bib #rental-mobile:hover {
    background: #e69600 !important;
    color: #000;
  }

  #navigation {
    display: none;
  }

  .hamburger {
    display: block;
  }


  main {
    background: none;
    box-sizing: border-box;
    left: 0;
    margin: 60px 0 0 0;
    width: 100%;
    
    display: flex;
    flex-direction: column;
  }

  main header {
    width: 100%;
    margin-bottom: 0px;
    margin-top: 0px;
    display: flex;
    justify-content: flex-end;
  }

  #firstpage {
    width: 100%;
    background-size: 100%;
    margin: -30px auto 0 auto;
    padding: 150px 0 0 0;
  }

  #startseite {
    width: 95%;
    box-sizing: border-box;
  }

  main #rubrik {
    width: 90%;
    height: 35px;
    left: auto;
    right: 0;
    border-bottom: 2px solid #e69400;
  }
  main #unterrubrik {
    width: 90%;
    left: auto;
    right: 0;
  }

  main #artikel_verleih {
    width: 100%;
    padding-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: space-evenly;
  }

  ul#artikel_verleih_wide {
    width: 100%;
    padding: 40px 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 40px 36px;
    justify-content: center;
    box-sizing: border-box;
  }

  main #artikel_verleih li {
    margin: 10px 0;
  }

  ul#artikel_verleih_wide li {
    flex: 1 1 320px;
    width: auto;
    max-width: 371px;
    margin: 0;
  }

  #artikel_verleih_wide IMG {
    height: auto;
    width: 100%;
  }

  #artikel_verleih_wide .list_item_sub {
    width: 100%;
  }

  main #infotext {
    width: 95%;
    background-color: #666;
    margin-top: 30px;
    padding: 20px 20px;
    box-sizing: border-box;
    border-radius: 10px;
  }

  main .news-single article {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
  }


  #next_page_link {
    z-index: 100;
  }

  #previous_page_link {
    z-index: 100;
  }

  #rightpager a {
    position: fixed;
    top: 50%;
    right: 2px;
    border-radius: 8px;
    background: url(pic/pfeile.svg) no-repeat -53px 2px;
    background-color: #0003;
  }

  #leftpager a {
    position: fixed;
    top: 50%;
    left: 2px;
    border-radius: 8px;
    background: url(pic/pfeile.svg) no-repeat 3px 0px;
    background-color: #0003;
  }

  #rightpager a:hover {
    background: url(pic/pfeile.svg) no-repeat -53px 0px;
    background-color: #0003;
    border: 2px solid;
  }


  #leftpager a:hover{
	  background: url(pic/pfeile.svg) no-repeat 3px -2px;
    background-color: #0003;
    border: 2px solid;
  }


  main #article_container {
    width: 100%;
    height: auto !important;
    margin-bottom: 10px;
    border: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  #article_quer {
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
  }

  main .mediaelement-image {
    width: auto;
    box-sizing: border-box;
    margin: 0;
    height: auto;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    order: 1;
  }

  #article_quer .mediaelement-image {
    padding: 0 16px;
  }

  main .mediaelement-image img {
    width: 186px;
    height: auto;
    border-radius: 8px;
  }

  #article_quer .mediaelement-image img {
    width: 100%;
    max-width: 400px;
  }

  .news-img-caption {
    display: none;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    margin-left: 2px;
  }

  #article_container .news-img-caption {
    display: none;
  }

  main #preiscenter {
    position: relative;
    right: auto;
    width: auto;
    padding: 0px 10px 0 12px;
    order: 2;
    box-sizing: border-box;
  }

  #article_quer #preiscenter {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 10px;
    width: 100%;
  }

  main #leihpreise {
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  #article_quer ul#leihpreise {
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5%;
  }

  ul#leihpreise li {
    width: 80px;
    aspect-ratio: 1;
    height: auto;
    margin-right: 0;
    max-width: none;
  }

  #article_quer ul#leihpreise li {
     width: 80px;
    aspect-ratio: 1;
    height: auto;
    margin-right: 0;
    margin-bottom: 0;
    max-width: 110px;
  }

  .gesamtpreis {
    width: auto;
    font-size: 1.8em;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    left: 50%;
    transform: translateX(-50%);
  }

  #detailtext {
    margin: 0;
    width: 100%;
    height: auto;
    order: 3;
    padding: 16px;
  }

  #detailtext_quer {
    margin: 0;
    width: auto;
    height: auto;
    order: 3;
    padding: 0 16px;
    margin-top: 0px;
  }

  .innerhead {
    border-top-left-radius: 10px;
    padding: 10px 10px 10px 16px;
  }

  .innerhead h1 {
    font-size: 1.5rem;
  }

  #detailtext .innerhead H1 {
    text-align: center;
  }

  #detailtext_quer .innerhead {
    padding: 0;
  }

  #detailtext_quer .innerhead h1 {
    text-align: center;
    border-top-left-radius: 10px;
    padding: 15px;
  }

  #detailtext .innertext {
    font-size: 0.9rem;
  }

  #detailtext_quer .innertext {
    font-size: 0.9rem;
  }

  .innertext {
    height: auto;
    border-bottom-left-radius: 10px;
    padding: 15px;
  }

  #detailtext .innertext {
    padding: 5px 15px;
    min-height: 10px;
  }
  #detailtext .innertext ul {
    margin: 0 0 13px 0;
  }

  #rentnow {
    order: 5;
  }

  #rentnow_q {
    order: 5;
  }

  #rentnow a {
    width: auto;
    padding: 0.5em;
    position: relative;
    margin-top: 10px;
    height: inherit;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    top: auto;
    z-index: 100;
  }

  #rentnow_q a {
    width: auto;
    padding: 0.5em;
    position: relative;
    margin-top: 30px;
    height: inherit;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
    top: auto;
    z-index: 100;
  }

  .news-backlink-wrap {
    width: auto;
    position: absolute;
    top: 0px;
    left: 12px;
    margin: 0;
  }

  .news-backlink-wrap a {
    font-size: 0.8rem;
    border: solid 1px;
  }

  .artikel_single li:first-child {
    /* width: 200px; */
  }

  #standard{
    margin: -40px auto 0 auto;
  }

  img.\31 img {
    width: 100%;
    height: auto;
    margin-top: -40px;
  }

  #standard_noimg {
    width: 100%;
  }

  /* Tabelle gezielt ansprechen */

  /* Erste Spalte: fix ca. 200px */
  #preisliste th:first-child,
  #preisliste td:first-child {
    width: 200px !important;
    max-width: 200px;
    white-space: normal;   /* Mehrzeiliger Text erlaubt */
  }

  /* Alle anderen Spalten: Auto, damit flexibel */
  #preisliste th:not(:first-child),
  #preisliste td:not(:first-child) {
    width: auto;
    max-width: none;
  }

  /* Zeilenhöhe dynamisch: kein fixes height */
  #preisliste tr {
    height: auto;
  }

  .akt_p {
    width: 100%;
  }
  .aktuelles_img {
    float: none;
    margin: 10px;
    text-align: center;
}


  footer {
    width: 95%;
    height: auto;
    margin: 0px auto;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  footer ul {
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  footer ul li {
    border: 0;
  }

  /* ------------- Bibliothek -------------- */

  #aboutpage {
    box-sizing: border-box;
	  width: 100%;
	  margin: 0 auto;
	  padding: 0 16px;
	  height: auto;
  }
  #eyecatcher {
	  position: absolute;
	  top: 0;
	  width: 100%;
	  padding: 0;
	  margin: 0;
	  float: none;
  }
  #aditional_content{
	  width: 100%;
	  height: auto;
	  position: relative;
	  display: block;
	  z-index: 10;
  }
  #about {
    box-sizing: border-box;
	  width: 100%;
	  margin: 0 auto;
	  padding: 15px 20px;
	  background-color: #cecdc5;
	
	  -webkit-box-shadow: -1px -3px 23px -6px rgba(0,0,0,0.61);
	  -moz-box-shadow: -1px -3px 23px -6px rgba(0,0,0,0.61);
	  box-shadow: -1px -3px 23px -6px rgba(0,0,0,0.61);
  }
  #hersteller {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding-inline-start: 0px;
    padding: 20px 8px;
    margin-block-start: 1rem;
    margin-block-end: 0;
    box-sizing: border-box;
  }

  #hersteller li {
    width: 110px;
    height: 110px;
    margin: 0 0 50px 0;
  }

  #hersteller li a {
    width: 100%;
    height: 100%;
  }

  #hersteller img {
    width: 80px;
    height: auto;
    max-height: 80px;
    apect-ratio: 1;
  }

  .manufacturer {
    width: 100%;
    font-size: 0.9rem;
    margin-top: 10px;
  }
  h2.newskat {
    width: 100%;
    margin: 30px 12px 0px 12px;
    padding: 0.3em;
  }

  ul#archive_nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 12px auto 0 auto;
    padding: 12px;
    justify-content: center;
  }

  .news-search-form {
    position: relative;
    margin: 0 16px;
    left: 0;
    top: 0;
  }

  h1#studiomagazin {
    width: 70%;
    height: auto;
    background-size: 250px 85px;
    margin: 0 auto;
    font-size: 5rem;
  }

  #archive_nav li {
    margin: 0px;
    width: 155px;
  }

  ul.artikel_archiv {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 12px auto 0 auto;
    padding: 8px;
    gap: 8px;
    justify-content: center;
  }

  ul.artikel_archiv li {
    margin-right: 0;
    margin-bottom: 25px;
  }

  .artikel_archiv .archiv_thumb {
    margin-bottom: 10px;
    border-radius: 6px;
  }
  .artikel_archiv .list_item_archiv_sub {
    width: 171px;
  }
  .mediaelement-pdf {
    margin-right: 0;
  }


 /* --- Mietpreisliste: Responsive Darstellung --- */

  #mietpreise {
    width: 100%;
    max-width: 100%;
    padding: 20px 0 40px 12px;
  }

  /* Horizontal scrollen, aber Artikel und Zwischentitel bleiben sichtbar */
  #preisliste {
    --mietpreise-name-width: 180px;
    --mietpreise-price-width: 96px;
    --mietpreise-table-width: 660px;
    border-top-right-radius: 0 !important;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    display: block;
  }

  #preisliste > li {
    display: block;
    min-width: var(--mietpreise-table-width);
    border-bottom: 0;
  }

  #preisliste .wochentage,
  #preisliste .artikel_single {
    width: var(--mietpreise-table-width);
    min-width: var(--mietpreise-table-width);
    height: auto;
    display: grid;
    grid-template-columns: var(--mietpreise-name-width) repeat(5, var(--mietpreise-price-width));
  }

  #preisliste .wochentage li,
  #preisliste .artikel_single li {
    float: none;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 38px;
    padding: 7px 10px;
    display: block;
    white-space: nowrap;
    box-sizing: border-box;
  }

  #preisliste .wochentage li:nth-child(4) {
    white-space: normal;
    line-height: 1.05;
  }

  #preisliste .artikel_single li:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    clear: none;
    width: auto;
    white-space: normal;
    overflow-wrap: break-word;
    background-color: #eeebd8;
    box-shadow: 2px 0 0 rgba(0, 0, 0, 0.35);
  }

  #preisliste .artikelgruppe {
    position: sticky;
    left: 0;
    z-index: 5;
    width: calc(100vw - 12px);
    max-width: var(--mietpreise-table-width);
    min-width: 0;
    box-sizing: border-box;
  }

  #preisliste::-webkit-scrollbar {
    height: 6px;
  }

  #preisliste::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
  }

  #mwst {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  main #downloadbereich {
    width: auto;
    max-width: calc(100% - 24px);
    margin: 30px auto 20px auto;
    padding: 0;
    box-sizing: border-box;
  }

}
/* End of media query 1024px */
