/* The sidebar menu */
.sidebar {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 999; /* Stay on top */
  top: 0;
  right: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  /*transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #4faba2;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #4faba2;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #4faba2;
}

.custom-select-wrapper {
  position: relative;
  width: 88%;               /* wie vorher */
}

#produkt-filter {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid #ccc;
  background: #2f3c42;
  z-index: 10;
}

.dropdown-list.hidden {
  display: none;
}

.dropdown-item {
  padding: 6px 8px;
  cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item.selected {
  background: #556b76;
}

.selections {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.selections .tag {
  background: #e0e0e0;
  padding: 2px 6px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9em;
}

.selections .tag .remove {
  cursor: pointer;
  font-weight: bold;
}


#submit3{
position: relative;
    top: 10px;
}

#popuptitel{
    background-color: #213432;
    position: relative;
    top: -15px;
    left: -15px;
    width: 280px;
    height: 26px;
    text-align: center;
}

input.popuptext{
    font-family: 'Courier Prime', sans-serif;
    padding: 5px;
    font-size: 50px;
    width: 250px;
    background-color: #a7e1db;
    border-radius: 3px;
    border: 1px solid #5897fb;
    color: #2f3c42;
}



.prozentbild{
position:absolute;	
	left:5px;
	z-index:-1;
}

span{
	font-size:14px;
}
.menutag{
position: relative;
    left: 12px;	
}

.checkbox{
	    position: relative;
	top: 3;
}

.chosen-container{
	width:86% !important;
}

.seitentext{
margin: 5 20 5 20;	
}

/* The sidebar links */
.sidebartitel {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
	position:absolute;
	top:-4px;
}

/* When you mouse over the navigation links, change their color */
.sidebar a:hover {
  color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

/* The button used to open the sidebar */
.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #111;
  color: white;
  padding: 10px 15px;
  border: none;
	position:fixed;
	right:-5;
	z-index:1;
	border-top-left-radius: 20%;
	border-bottom-left-radius: 20%;
	opacity:0.5;
	
}

.openbtn:hover {
  background-color: #444;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s; /* If you want a transition effect */
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidebar {padding-top: 15px;}
  .sidebar a {font-size: 18px;}
}

@viewport {
  min-width: 350px;
  max-width: 350px;
}
table{
	border-collapse:collapse;
	left:70px;
}

.hintergrund{
	opacity:0.3
}

.essenheute{
background-color:#ee524f;	
}

.essensliste{
position:absolute;	
	margin-top:-26px;
	margin-left:16px;
}

input[type="range"].vertikal {
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* WebKit */
    width: 10px;
    height: 64px;
    background-image: repeating-linear-gradient(0deg, white, white 8%, black 8%, black 9%);
	position:absolute;
	left:19px;
}

td.innen{
    
	text-align: center;
	width:48px;
	height:48px;
	vertical-align:middle;
}



.heute{
  color:turquoise;
}

.aktiv{
    text-align: center;
	width:46px;
	height:46px;	
	vertical-align:middle;
	background-color:#ee524f;
	border-radius:15%;
	line-height: 2.8;
}

.loeschen{
    text-align: center;
	width:46px;
	height:46px;	
	vertical-align:middle;
	background-color:orange;
	border-radius:15%;
	line-height: 2.8;
}

.archivieren{
    text-align: center;
	width:46px;
	height:46px;	
	vertical-align:middle;
	background-color:#4bc44b;
	border-radius:15%;
	line-height: 2.8;
}

.inaktiv{
    text-align: center;
	width:46px;
	height:46px;	
	vertical-align:middle;
	background-color:white;
	border-radius:15%;
	line-height: 2.8;
}

.loeschen:nth-child(2n) {
      animation-name: keyframes11;
      animation-iteration-count: infinite;
      transform-origin: 50% 10%;
    }

     .loeschen:nth-child(2n-1) {
      animation-name: keyframes21;
      animation-iteration-count: infinite;
      animation-direction: alternate;
      transform-origin: 30% 5%;
    }

.archivieren:nth-child(2n) {
      animation-name: keyframes11;
      animation-iteration-count: infinite;
      transform-origin: 50% 10%;
    }

     .archivieren:nth-child(2n-1) {
      animation-name: keyframes21;
      animation-iteration-count: infinite;
      animation-direction: alternate;
      transform-origin: 30% 5%;
    }



td.kw{
	font-size: 10px;
}


form {
	display:flex }

#submit{
position: relative;
    top: 10px;
  left:-25px;
}

#cancel{
position: relative;
    top: 10px; 
}

#submit2{
position: relative;
    top: 26px;
    left: 7px;
}

#cancel2{
position: relative;
    top: -15px;
    left: -27px;
}

.submitadd{
position: relative;
    top: 9px;
    left: 23px;	
}

.canceladd{
position: relative;
    top: -29px;
    left: -11px;
}

.submitdelete{
    position: relative;
    top: 0px;
    left: 0px;
    height: auto;
    width: 60;	
}

.canceldelete{
position: relative;
    top: -102px;
    left: 81px;
    width: 20;
    height: auto;
}

header{
    position: fixed;
    left: 0;
    top: -22px;
    width: 100%;
	z-index:999;
	text-align:center;
}

main{
	position:relative;
	top:50px;
}

.shop{
width:27px;	
	height:27px;
	border-style:solid;
	border-width:1px;
	margin-right:5px;
	background-color: white;
	margin-left:1px;
	
	
}

.popup{
display: none;
	position: fixed;
	top: 30%;
	left:50%;
	width:250px;	
	background-color:#4faba2;	
	border-style:solid;
	z-index:9999;
	padding:15px;
transform: translate(-50%, -50%);
	
}

.popuptitel{
    background-color: #213432;
    position: relative;
    top: -15px;
    left: -15px;
    width: 280px;
    height: 26px;
}

.popupsubtitel{
	position: relative;
    left: -15px;
    top: -15px;
    text-align: center;
}


#produkt2{
    background-color: #213432;
    position: relative;
    top: -15px;
    left: -15px;
    width: 280px;
    height: 26px;
}

#hersteller2{
	position: relative;
    left: -15px;
    top: -15px;
    text-align: center;
}

#einheit2{
	position: relative;
}

.shopliste{
    display: none;
    flex-wrap: wrap;
    position: absolute;
    top: 31px;
    left: 1px;
    z-index: 999;
    background-color: white;
}

.shoplistepopup{
    display: flex;
    flex-wrap: wrap;    
	position:relative;
    z-index: 999;
    background-color: #4faba2;
	width:250px;
	left:-16px;
}

.shopimgcontainer{
width:70px;
	height:70px;
}

.shopimgcontainerpopup{
width:50px;
	height:50px;
}

.shopimg{
	margin: 10px;
}

.shopimgpopup{
	margin: 10px;
	width:auto;
	height:28px;
}

input.field{
	font-family: 'Oswald', sans-serif;
    padding: 5px;
    font-size: 50px;
    width: 210px;
    position: relative;
    left:-8px;
    top: -11px;
	background-color: #a7e1db;
	border-radius: 3px;
    border: 1px solid #5897fb;
	color:#2f3c42;
}

input.fieldbetrag{
	font-family: 'Courier Prime', sans-serif;
    padding: 5px;
    font-size: 50px;
    width: 210px;
    position: relative;
    left:-25px;
    top: -11px;
	background-color: #a7e1db;
	border-radius: 3px;
    border: 1px solid #5897fb;
	color:#2f3c42;
}

input.fieldbetrag2{
	font-family: 'Courier Prime', sans-serif;
    padding: 5px;
    font-size: 50px;
    width: 210px;
    position: relative;
    left: -3px;
    top: 1px;
    background-color: #a7e1db;
    border-radius: 3px;
    border: 1px solid #5897fb;
    color: #2f3c42;
}

input.gramm{
    font-family: 'Courier Prime', sans-serif;
    padding: 5px;
    font-size: 25px;
    width: 92px;
    position: relative;
    left: -3px;
    top: 1px;
    background-color: #ffc55b;
    border-radius: 0;
    border: 1px solid #bf7e04;
    color: #2f3c42;
    text-align: center;	
}

output{
position: absolute;
    top: 30px;
    left: 16px;
    text-align: center;
}

input.fieldsmaller{
	font-family: 'Oswald', sans-serif;
    padding: 5px;
    font-size: 50px;
    width: 180px;
    position: relative;
    left:15px;
    top: -11px;
	background-color: #a7e1db;
	border-radius: 3px;
    border: 1px solid #5897fb;
	color:#2f3c42;
}

div.sticky-top {
position:-webkit-sticky;
	position: sticky;
	top: 0;
	left:0;
	background-color:#564146;
}

.summini {
    position: relative;
    left: 14px;
    top: -33;
    width: 50px;
}

.navbar{
background-color: #564146;
  overflow: hidden;
  position: fixed;
  bottom: 0;
	width:100%;
  left:0px;
	z-index:999;
}

.navbar a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
	
}



.summe {
    float: left;
    display: block;
    color: #564146;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    background-color: #ddd;
    width: 57px;
    max-height: 25px;
    right: 0;
    position: absolute;
}


/* Change the color of links on hover */
.navbar a:hover {
  background-color: #ddd;
  color: black;
}

/* Add a color to the active/current link */
.navbar a.active {
  background-color: #4CAF50;
  color: white;
}

#box {
    
	background-color: #ee524f;
    width: 115px;
    height: 115;
	padding-top: 5;
	margin: 2 2 2 2;
	position: relative;
	overflow:hidden;
	    box-shadow: 0px 0px 0px 1px black inset
}

.box {
    
	background-color: #ee524f;
    width: 115px;
    height: 115;
	padding-top: 5;
	margin: 2 2 2 2;
	position: relative;
	overflow:hidden;
	    box-shadow: 0px 0px 0px 1px black inset
}

#box2 {
    
	background-color: #4FABA2;
    width: 115px;
    height: 115;
	padding-top: 5;
	margin: 2 2 2 2;
	position: relative;
	overflow:hidden;
	    box-shadow: 0px 0px 0px 1px black inset
}

#box3 {
    
	background-color: #ffa500;
    width: 115px;
    height: 55;
	padding-top: 5;
	margin: 2 2 2 2;
	position: relative;
	overflow:hidden;
	    box-shadow: 0px 0px 0px 1px black inset
}

#box4 {
    
	background-color: #ffa500;
    width: 115px;
    height: 115;
	padding-top: 5;
	margin: 2 2 2 2;
	position: relative;
	overflow:hidden;
	    box-shadow: 0px 0px 0px 1px black inset

}


 .icon:nth-child(2n) {
      animation-name: keyframes1;
      animation-iteration-count: infinite;
      transform-origin: 50% 10%;
    }

     .icon:nth-child(2n-1) {
      animation-name: keyframes2;
      animation-iteration-count: infinite;
      animation-direction: alternate;
      transform-origin: 30% 5%;
    }

@keyframes keyframes11 {
      0% {
        transform: rotate(-1deg);
        animation-timing-function: ease-in;
      }

      50% {
        transform: rotate(1.5deg);
        animation-timing-function: ease-out;
      }
    }

    @keyframes keyframes21 {
      0% {
        transform: rotate(3deg);
        animation-timing-function: ease-in;
      }

      50% {
        transform: rotate(-2.5deg);
        animation-timing-function: ease-out;
      }
    }



 @keyframes keyframes1 {
      0% {
        transform: rotate(-1deg);
        animation-timing-function: ease-in;
      }

      50% {
        transform: rotate(1.5deg);
        animation-timing-function: ease-out;
      }
    }

    @keyframes keyframes2 {
      0% {
        transform: rotate(1deg);
        animation-timing-function: ease-in;
      }

      50% {
        transform: rotate(-1.5deg);
        animation-timing-function: ease-out;
      }
    }

a {
  color: white;
  text-decoration: none;
}

#name {
	font-size: 14pt;
	text-align: center;
}

#hersteller {
	font-size: 11pt;
	text-align: center;
}

#menge {
	font-size: 11pt;
	line-height: 1.5;
	text-align: center;
	bottom:3;
	position:absolute;
	right:3;
	background-color:#a10000;
	border-radius:50%;
	width:22px
}

#mengegramm {
    font-size: 11pt;
    line-height: 1.5;
    text-align: center;
    bottom: 3;
    position: absolute;
    right: 3;
    background-color: #20a71d;
    border-radius: 25%;
    width: 43px;
}

#mengencontainer{
position:absolute;
	bottom:10;	
left:12%;
	display:flex;
}

#menge2 {
	
	font-size: 14pt;
	line-height: 1.5;
	text-align: center;
	color:#564146;
	border-radius:50%;
	width:30px
}

#einheit {
	font-size: 8pt;
	text-align: center;
}

#preise {
	font-size: 8pt;
	text-align: justify;
	padding: 0 0 0 5;
	position: absolute;
	bottom: 2;
}

.preiseA {
	font-size: 8pt;
	text-align: justify;
	padding: 0 0 0 5;
	position: absolute;
	bottom: 2;
	left:26px;
	
}

.prozent {
	font-size: 11pt;
	text-align: justify;
	padding: 0 0 0 5;
	position: absolute;
	bottom: 2;
	left:2;
	background-color:red;
	width:18px;
	z-index:1;
	text-shadow: 1px 1px 0px black;
}



.prozentU {
	font-size: 11pt;
	text-align: justify;
	padding: 0 0 0 5;
	position: absolute;
	bottom: 2;
	background-color:#253c3a;
	width:18px;
}

/* Ersetze Deinen Flex-Container durch dieses Grid */
#container, .ccliste {
  display: grid;
  /* jede Spalte so breit wie nötig, aber min. 120px */
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));

}


body{
	background-color: #2f3c42;
	color: white;
	font-family: 'Oswald', sans-serif;
	-webkit-touch-callout: none;
	-webkit-user-select: none; /* Disable selection/copy in UIWebView */    
}

/* Für die bereits existierende Box-Gruppe (gekaufte) */
#container {
  display: flex;
  flex-wrap: wrap;        /* Zeilenumbruch, falls zu viele Boxen */
  justify-content: flex-start;
}



/* Optional: Wenn Du den Link-Container etwas einheitlicher stylen willst */
.editablelink, .togglelink {
  text-decoration: none;  /* Entfernt Unterstreichung */
  flex: 0 1 auto;         /* Item darf schrumpfen oder wachsen */
}

/* ungekaufte Produkte (urspr. .cc) */
#container-unbought {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start; /* oder center */
}

/* gekaufte Produkte (urspr. #container) */
#container-bought {
  display: flex;          /* oder grid, je nach Wunsch */
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
  /* Spinner und Status-Overlay */
  #ajax-status {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    align-items: center;
    z-index: 1000;
  }
  #ajax-status .spinner {
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    margin-right: 8px;
  }
  @keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  #ajax-status .checkmark {
    font-size: 16px;
    margin-right: 8px;
  }
