:root {
  --black: #1d1d1d;
  --white: #fffdfd;
  --lightgray: #e8e7e7;
  --lightgrayhover: #cbcaca;
  --verylightgray: #f4f4f4;
  --midgray: #9b9b9b;
  --red: #cb2030;
  --red2: #e60000;
  --red3: #ff5f57;
  --orange: #dd702a;
  --mainblue: #013042;
  --mainbluelight: #055879;
  --yellow: #fac800;
  --yellow2: #eebc27;
  --yellow3: #ffcc02;
  --green: #11a244;
}

@font-face {
  font-family: "Evolve Regular";
  font-display: swap;
  src: url("./fonts/evolve_regular/made_evolve_sans_regular-webfont.eot");
  src: url("./fonts/evolve_regular/made_evolve_sans_regular-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("./fonts/evolve_regular/made_evolve_sans_regular-webfont.woff")
      format("woff"),
    url("./fonts/evolve_regular/made_evolve_sans_regular-webfont.ttf")
      format("truetype"),
    url("./fonts/evolve_regular/made_evolve_sans_regular-webfont.svg#webfont")
      format("svg");
}

@font-face {
  font-family: "Evolve Medium";
  font-display: swap;
  src: url("./fonts/evolve_medium/made_evolve_sans_medium-webfont.eot");
  src: url("./fonts/evolve_medium/made_evolve_sans_medium-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("./fonts/evolve_medium/made_evolve_sans_medium-webfont.woff")
      format("woff"),
    url("./fonts/evolve_medium/made_evolve_sans_medium-webfont.ttf")
      format("truetype"),
    url("./fonts/evolve_medium/made_evolve_sans_medium-webfont.svg#webfont")
      format("svg");
}

@font-face {
  font-family: "Evolve Bold";
  font-display: swap;
  src: url("./fonts/evolve_bold/made_evolve_sans_bold-webfont.eot");
  src: url("./fonts/evolve_bold/made_evolve_sans_bold-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("./fonts/evolve_bold/made_evolve_sans_bold-webfont.woff") format("woff"),
    url("./fonts/evolve_bold/made_evolve_sans_bold-webfont.ttf")
      format("truetype"),
    url("./fonts/evolve_bold/made_evolve_sans_bold-webfont.svg#webfont")
      format("svg");
}

@font-face {
  font-family: "Evolve EVO Regular";
  font-display: swap;
  src: url("./fonts/evolve_evo_regular/made_evolve_sans_regular_evo-webfont.eot");
  src: url("./fonts/evolve_evo_regular/made_evolve_sans_regular_evo-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("./fonts/evolve_evo_regular/made_evolve_sans_regular_evo-webfont.woff")
      format("woff"),
    url("./fonts/evolve_evo_regular/made_evolve_sans_regular_evo-webfont.ttf")
      format("truetype"),
    url("./fonts/evolve_evo_regular/made_evolve_sans_regular_evo-webfont.svg#webfont")
      format("svg");
}

@font-face {
  font-family: "Evolve EVO Bold";
  font-display: swap;
  src: url("./fonts/evolve_evo_bold/made_evolve_sans_bold_evo-webfont.eot");
  src: url("./fonts/evolve_evo_bold/made_evolve_sans_bold_evo-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("./fonts/evolve_evo_bold/made_evolve_sans_bold_evo-webfont.woff")
      format("woff"),
    url("./fonts/evolve_evo_bold/made_evolve_sans_bold_evo-webfont.ttf")
      format("truetype"),
    url("./fonts/evolve_evo_bold/made_evolve_sans_bold_evo-webfont.svg#webfont")
      format("svg");
}

@font-face {
  font-family: "Evolve EVO Medium";
  font-display: swap;
  src: url("./fonts/evolve_evo_medium/made_evolve_sans_medium_evo-webfont.eot");
  src: url("./fonts/evolve_evo_medium/made_evolve_sans_medium_evo-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("./fonts/evolve_evo_medium/made_evolve_sans_medium_evo-webfont.woff")
      format("woff"),
    url("./fonts/evolve_evo_medium/made_evolve_sans_medium_evo-webfont.ttf")
      format("truetype"),
    url("./fonts/evolve_evo_medium/made_evolve_sans_medium_evo-webfont.svg#webfont")
      format("svg");
}

[type="file"] {
  height: 0;
  overflow: hidden;
  width: 0;
}

[type="file"] + label {
  background: var(--lightgray);
  border: none;
  border-radius: 5px;
  color: var(--black);
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  margin-bottom: 1rem;
  outline: none;
  padding: 1rem 50px;
  position: relative;
  transition: all 0.3s;
  vertical-align: middle;
}
[type="file"] + label:hover {
  background-color: var(--lightgrayhover);
}

i {
  font-size: 1.8rem;
}

i.mini {
  font-size: 1.2rem;
}

i.big-icon {
  font-size: 2.8rem;
}

p.collection-count-overlay {
  position: absolute;

  font-size: 3rem;
  font-family: "OSWALD";
  letter-spacing: 1px;

  color: var(--white);
  padding: 0;
}

.popup-overlay {
  display: none;

  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  z-index: 1001;
  -moz-opacity: 0.8;
  opacity: 0.8;
  filter: alpha(opacity=80);
}
.popup-screen {
  width: auto;
  max-width: 30em;

  margin-left: 5vw;
  margin-right: 5vw;
  top: 5vw;
  bottom: 5vw;

  display: none;
  flex-direction: column;
  justify-content: space-between;

  position: fixed;
  box-sizing: border-box;

  padding: 2em;
  background-color: var(--white);
  z-index: 1002;
  overflow: auto;
}

body {
  background: var(--white);
  color: var(--black);

  margin: 0;
  min-height: 100vh;

  position: relative;

  line-height: 1.5;
  font-family: "Inter";

  font-size: 1rem;
  letter-spacing: 0.3px;
}

::selection {
  background: var(--yellow3);
  color: var(--black);
}

img.demo {
  padding: 0;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.menu {
  padding: 0;
  padding-bottom: 1em;
  padding-top: 1.5em;
}

.centerimage {
  display: block;
  width: 50%;
  height: 50%;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
}

hr {
  border: 0;
  height: 1px;
  background-color: var(--lightgrayhover);
}

/*Dicke header*/
h1 {
  margin: 0;

  font-family: "Evolve Bold";
  font-size: 2.4rem;
  font-weight: normal;

  padding: 0;
}

h2 {
  margin: 0;
  padding: 0;

  font-family: "Evolve Bold";
  font-size: 2.5rem;
  font-weight: normal;
}

/*Einfache Header groß und klein*/
h3 {
  margin: 0;
  padding: 0;

  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Oswald";
  font-size: 2.2rem;
  font-weight: normal;
}

h4 {
  margin: 0;
  padding: 0;

  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Oswald";
  font-size: 1.8rem;
  font-weight: normal;
}

/*Größerer text*/
h5 {
  margin: 0;
  padding: 0;

  font-family: "Inter";
  font-size: 1.4rem;
  font-weight: normal;
}

h6 {
  margin: 0;
  padding: 0;

  font-family: "Inter";
  font-size: 1.1rem;
  font-weight: normal;
}

.bold {
  font-size: 1.25rem;
  font-family: "Evolve Bold";
}

a {
  font-size: 0.8rem;
}

a.easylink {
  font-size: 1rem;
}

a.header {
  font-size: 1.8rem;
}

a.special:link {
  color: var(--black);
  background-color: transparent;
  text-decoration: none;
}

a.special:visited {
  color: var(--black);
  background-color: transparent;
  text-decoration: none;
}

a.special:hover {
  color: var(--mainbluelight);
  background-color: transparent;
  text-decoration: none;
}

a.white:link {
  color: var(--white);
  background-color: transparent;
  text-decoration: none;
}

a.white:visited {
  color: var(--white);
  background-color: transparent;
  text-decoration: none;
}

a.midgray:link {
  color: var(--midgray);
  background-color: transparent;
  text-decoration: none;
}

a.midgray:visited {
  color: var(--midgray);
  background-color: transparent;
  text-decoration: none;
}

.red {
  color: var(--red);
}

.green {
  color: var(--green);
}

.yellow2 {
  color: var(--yellow2);
}

.mainblue {
  color: var(--mainblue);
}

.mainbluelight {
  color: var(--mainbluelight);
}

.orange {
  color: var(--orange);
}

.lightgrayhover {
  color: var(--lightgrayhover);
}

.midgray {
  color: var(--midgray);
}

.white {
  color: var(--white);
}

a.ingredient:link {
  color: var(--mainbluelight);
  background-color: transparent;
  text-decoration: none;
}

a.ingredient:visited {
  color: var(--mainbluelight);
  background-color: transparent;
  text-decoration: none;
}

a.easylink:link {
  color: var(--mainbluelight);
  background-color: transparent;
  text-decoration: none;
}

a.easylink:visited {
  color: var(--mainbluelight);
  background-color: transparent;
  text-decoration: none;
}

a:link {
  color: var(--black);
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: var(--black);
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: var(--black);
  background-color: transparent;
}

details.content-menu-right {
  float: right;
}

details.content-menu-right summary {
  text-align: right;
  padding-bottom: 0.5em;
  color: var(--mainbluelight);
  font-size: 16px;
}

details.content-menu-right a {
  float: right;
  font-size: 14px;
}

p.tinyp {
  margin: 0;
  font-size: 0.9rem;
}

div.note {
  overflow-wrap: anywhere;
  background: var(--verylightgray);
  padding: 1em;
  border-left: solid 7px var(--midgray);
}

div.note-red {
  background: var(--verylightgray);
  padding: 1em;
  border-left: solid 7px var(--red);
}

div.content-main {
  max-width: 60em;

  padding-top: 7em;
  padding-left: 3em;
  padding-right: 3em;
  padding-bottom: 5em;

  margin-left: auto;
  margin-right: auto;
}

div.content-wrapper {
  padding-bottom: 1.6em;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

div.last {
  padding-bottom: 0;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

div.content-left {
  float: left;
  margin: 0;
  width: 60%;
}

div.content-right {
  float: right;
  margin: 0;
  width: 33%;
}

div.content-right-list {
  float: right;
  justify-content: flex-end;
  margin: 0;
  width: auto;
}

div.header-wrapper-desktop {
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding-top: 3.5em;
  padding-bottom: 3.5em;
}

div.header-mobile {
  display: none;
  overflow: hidden;
  background-color: var(--mainblue);

  width: 100%;
  padding: 0;
  height: 4.2em;
  margin: 0;
  margin-bottom: 1.8em;

  justify-content: center;
  align-items: center;
}

div.header-name {
  float: left;
  margin: 0;
}

div.header-menu {
  float: right;
  margin: 0;
}

div.offline-bar {
  height: 2em;
  background: var(--red);
  display: none;
  justify-content: center;
  align-items: center;
  color: var(--white);
}


div.action-bar-rezepte {
  background: var(--yellow);
  display: none;
  color: var(--black);
  height: 4.2em; 
  padding: 0; 
  align-items: center; 
  justify-content: space-evenly;
}

div.action-bar-sammlung {
  background: var(--yellow);
  display: none;
  color: var(--black);
  height: 4.2em; 
  padding: 0; 
  align-items: center; 
  justify-content: space-evenly;
}

article {
  padding-bottom: 2em;
}

img.panel-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: -1;
}

div.panel-image-wrapper {
  width: 22.5%;
  padding-left: 1.25%;
  padding-right: 1.25%;
}

div.panel-image-wrapper-half {
  width: 46%;
  padding-left: 2%;
  padding-right: 2%;
}

div.panel-image-container {
  position: relative;
  height: 23em;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  box-shadow: 0 -2em 2em 0 rgb(0 0 0 / 30%) inset;
  z-index: 1;
}

div.panel-image-container-empty {
  position: relative;
  height: 23em;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--lightgray);
}

div.panel-image-collection {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-bottom: 2em;
}

div.darken {
  background: #0000007a;
  width: 100%;
  height: 100%;
  position: absolute;
}

div.header-desktop {
  display: flex;
  position: fixed;
  z-index: 2;
  flex-direction: column;
  width: 100%;
  margin-bottom: 2em;
}

div.header-desktop-bar {
  display: flex;
  height: 4em;
  align-items: center;
  justify-content: space-between;
  background-color: var(--mainblue);
}

div.footer-info {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;

  position: absolute;
  bottom: 0;

  height: auto;
  line-height: 2.4em;
  width: 100%;
  padding: 0;
  margin: 0;
  padding-bottom: 2em;
}

div.deco-bar-blue-footer {
  display: flex;
  align-items: center;

  position: absolute;
  bottom: 0;

  height: 5em;
  line-height: 2.4em;
  width: 100%;
  background-color: var(--mainblue);
  padding: 0;
  margin: 0;
}

div.footer-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  z-index: 1;

  left: 0;
  bottom: 0;
  width: 100%;
  background-color: var(--mainblue);
  /*
  color: var(--white);
  text-align: center;
  justify-content: space-evenly;
  */
}

a.footer-mobile-item {
  display: flex;
  width: 25%;
  height: 100%;
  align-content: center;
  align-items: center;
  flex-direction: column;
  justify-content: space-evenly;
  font-size: 0.7rem;
}

a.footer-mobile-item i {
  font-size: 1.6rem;
}

table.simple td {
  padding: 3px;
}

.tdsmall {
  width: 5%;
}
.tdbig {
  width: 95%;
}

details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

.text-classic {
  text-indent: 20px;
  padding: 0;
  width: 100%;
  height: 3em;
  margin: 0;
  margin-bottom: 0.8em;

  font-size: 16px;
  font-family: inherit;

  border: solid;
  border-width: 2px;
  border-color: var(--black);
  border-radius: 0;
  box-sizing: border-box;
}

.textarea-classic {
  padding: 1em;
  width: 100%;
  min-height: 5em;
  height: 5em;

  margin: 0;
  margin-bottom: 0.8em;
  resize: vertical;

  font-size: 16px;
  font-family: inherit;

  border: solid;
  border-width: 2px;
  border-color: var(--black);
  border-radius: 0;
  box-sizing: border-box;
}

.btn-classic {
  display: flex;
  vertical-align: middle;
  align-items: center;
  justify-content: space-evenly;

  min-width: 10em;
  width: fit-content;
  height: 3em;
  min-height: 3em;

  background: var(--verylightgray);
  color: var(--black);

  font-size: 16px;
  font-family: inherit;

  cursor: pointer;
  transition: 0.3s;

  padding: 1em;
  border: solid;
  border-width: 2px;
  border-color: var(--black);
  border-radius: 0.3em;
  box-sizing: border-box;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-red:disabled {
  background: var(--verylightgray);
  color: var(--black);
  border-color: var(--red);
  pointer-events: none; 
  cursor: default;
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-highlight {
  background: var(--mainbluelight);
  color: var(--white);
  border-color: var(--mainbluelight);
}

/*shoppinglist-------------------------------------------------------------------------------------------------------------*/

ul.shoppinglist {
  margin: 0;
  padding: 0;
  position: relative; /* anchor for .leaving items */
}

ul.shoppinglist li {
  cursor: pointer;
  position: relative;
  padding: 12px 8px 12px 12px;
  list-style-type: none;
  /*background: var(--lightgray);*/
  border-bottom: 1px solid var(--midgray);
  font-size: 1.1rem;
  transition: 0.2s;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* only on devices with a real pointer, otherwise the grey stays after a tap on phones */
@media (hover: hover) {
  ul.shoppinglist li:hover {
    background: var(--lightgray);
  }
}

textarea:focus,
input:focus {
  outline: none;
}

input.bordered-classic-utility {
  text-indent: 20px;
  padding: 0;
  width: 100%;
  height: 3em;
  margin: 0;

  font-size: 18px;
  font-family: inherit;

  border: solid;
  border-width: 2px;
  border-right-width: 1px;
  border-color: var(--mainblue);
  border-radius: 0;
  box-sizing: border-box;
}

input.bordered-classic {
  border: solid;
  border-width: 1px;
}

.btn-input-utility {
  display: flex;
  vertical-align: middle;
  align-items: center;
  justify-content: space-evenly;

  width: 3em;
  white-space: nowrap;
  height: 3em;

  background: var(--mainblue);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;

  border: solid;
  border-width: 2px;
  border-left-width: 1px;
  border-color: var(--mainblue);
  border-radius: 0;
  box-sizing: border-box;
}

.addBtn:hover {
  background-color: var(--mainbluelight);
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  input[type="checkbox"],
  input[type="radio"] {
    --active: #275efe;
    --active-inner: #fff;
    --focus: 2px rgba(39, 94, 254, 0.3);
    --border: #bbc1e1;
    --border-hover: #275efe;
    --background: #fff;
    --disabled: #f6f8ff;
    --disabled-inner: #e1e6f9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
  }
  input[type="checkbox"]:after,
  input[type="radio"]:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease),
      opacity var(--d-o, 0.2s);
  }
  input[type="checkbox"]:checked,
  input[type="radio"]:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: 0.3s;
    --d-t: 0.6s;
    --d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
  }
  input[type="checkbox"]:disabled,
  input[type="radio"]:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
  }
  input[type="checkbox"]:disabled:checked,
  input[type="radio"]:disabled:checked {
    --b: var(--disabled-inner);
    --bc: var(--border);
  }
  input[type="checkbox"]:disabled + label,
  input[type="radio"]:disabled + label {
    cursor: not-allowed;
  }
  input[type="checkbox"]:hover:not(:checked):not(:disabled),
  input[type="radio"]:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
  }
  input[type="checkbox"]:focus,
  input[type="radio"]:focus {
    box-shadow: 0 0 0 var(--focus);
  }
  input[type="checkbox"]:not(.switch),
  input[type="radio"]:not(.switch) {
    width: 21px;
  }
  input[type="checkbox"]:not(.switch):after,
  input[type="radio"]:not(.switch):after {
    opacity: var(--o, 0);
  }
  input[type="checkbox"]:not(.switch):checked,
  input[type="radio"]:not(.switch):checked {
    --o: 1;
  }
  input[type="checkbox"] + label,
  input[type="radio"] + label {
    font-size: 14px;
    line-height: 21px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    margin-left: 0.8em;
  }

  input[type="checkbox"]:not(.switch) {
    border-radius: 4px;
  }

  input[type="checkbox"]:not(.switch):after {
    width: 3px;
    height: 7px;
    border: 2px solid var(--active-inner);
    border-top: 0;
    border-left: 0;
    left: 7px;
    top: 4px;
    transform: rotate(var(--r, 20deg));
  }

  input[type="checkbox"]:not(.switch):checked {
    --r: 43deg;
  }
  input[type="checkbox"].switch {
    width: 38px;
    border-radius: 4px;
  }
  input[type="checkbox"].switch:after {
    left: 2px;
    top: 2px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: var(--ab, var(--border));
    transform: translateX(var(--x, 0));
  }
  input[type="checkbox"].switch:checked {
    --ab: var(--active-inner);
    --x: 17px;
  }
  input[type="checkbox"].switch:disabled:not(:checked):after {
    opacity: 0.6;
  }

  input[type="radio"] {
    border-radius: 50%;
  }
  input[type="radio"]:after {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--active-inner);
    opacity: 0;
    transform: scale(var(--s, 0.7));
  }
  input[type="radio"]:checked {
    --s: 0.5;
  }
}

span.counter-minus,
span.counter-plus {
  cursor: pointer;
  width: 0.8em;
  height: 0.8em;
  background: var(--mainbluelight);
  color: var(--white);
  border-radius: 4px;
  padding: 4px;
  border: 0;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  line-height: 80%;
}

input.counter-input {
  height: 2em;
  width: 2em;
  text-align: center;
  font-size: 1.2rem;
  background: transparent;
  border: 0px solid #ddd;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  padding: 0;
}

@media only screen and (max-width: 40em) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.8rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  h5 {
    font-size: 1.3rem;
  }

  h6 {
    font-size: 0.9rem;
  }

  p.tinyp {
    margin: 0;
    font-size: 0.8rem;
  }

  .tdsmall {
    width: 10%;
  }
  .tdbig {
    width: 90%;
  }

  .btn-mobile-wide {
    width: 100%;
  }

  /*Soll mobil etwas kompakter sein, deswegen kleiner*/
  div.content-wrapper {
    padding-bottom: 1.2em;
  }

  div.footer-info {
    padding-bottom: 6em;
  }

  div.footer-mobile {
    display: flex;
  }

  div.header-wrapper-desktop {
    display: none;
  }

  div.header-mobile {
    display: flex;
    justify-content: space-between;
  }

  div.header-desktop {
    display: none;
  }

  div.deco-bar-blue-footer {
    display: none;
  }

  details.content-menu-right {
    float: left;
  }

  details.content-menu-right summary {
    text-align: left;
    padding-top: 0.5em;
  }

  details.content-menu-right a {
    float: left;
  }

  div.content-left {
    padding-top: 1.6em;
    float: none;
    width: 100%;
  }

  div.content-right {
    padding-top: 1.6em;
    float: none;
    width: 100%;
  }

  div.content-right-list {
    padding-top: 0.8em;
    float: none;
    justify-content: flex-start;
    width: 100%;
  }

  div.header-name {
    float: none;
    width: 100%;
    text-align: center;
  }

  div.header-menu {
    float: none;
    width: 100%;
  }

  div.content-main {
    padding-top: 0;
    padding-left: 4vw;
    padding-right: 4vw;
    padding-bottom: 40vw;
  }

  .centerimage {
    width: 80%;
    height: 80%;
  }

  div.panel-image-wrapper {
    width: 46%;
    padding-left: 2%;
    padding-right: 2%;
  }

  div.panel-image-wrapper-half {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  div.panel-image-container {
    height: 28vh;
    box-shadow: 0 -2em 2em 0 rgb(0 0 0 / 30%) inset;
  }

  div.panel-image-container-empty {
    height: 28vh;
  }

  div.panel-image-wrapper-half.panel-image-container {
    height: 18em;
  }

  div.panel-image-wrapper-half.panel-image-container-empty {
    height: 18em;
  }
}

@media only screen and (max-height: 80vh) {
  div.footer-mobile {
    display: none;
  }
}

/* Placeholder while (lazy) images load on slow connections: the area is visible immediately
   and the page does not jump. Width/height attributes come from recipeImageTag(). */
img.panel-image {
  background-color: #e8e4e1;
}

/* Ingredient linked to another recipe (rezept_editor.php chip, rezept.php link icon) */
.ingredient-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2em 0.6em;
  border-radius: 1em;
  background-color: #e8e4e1;
  font-size: 0.9em;
}
.ingredient-link-button,
.ingredient-link-remove,
.ingredient-recipe-link {
  cursor: pointer;
}
/* long recipe names must not widen the column (all rows share the table layout) */
.ingredient-link-chip span[id^="linkname"] {
  max-width: 10em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media only screen and (max-width: 40em) {
  /* phone: linked recipe only as book icon + x (name in the tooltip), narrower amount/unit columns */
  .ingredient-link-chip span[id^="linkname"],
  .ingredient-link-head-text {
    display: none;
  }
  .ingredient-link-chip {
    padding: 0.3em 0.5em;
    gap: 0.5em;
  }
  /* the global text indent (20px) eats most of these narrow fields */
  #ingredients input[id^="quantity"] {
    width: 4.2em !important;
    text-indent: 0 !important;
    padding-left: 6px !important;
    padding-right: 2px !important;
  }
  #ingredients select[id^="unit"] {
    width: 4.6em !important;
    text-indent: 2px !important;
  }
  #ingredients input[id^="ingredient"] {
    text-indent: 0 !important;
    padding-left: 8px !important;
  }
}

/* ---------- Live shopping list (includes/js/einkaufsliste/functions.inc.js) ---------- */

ul.shoppinglist li {
  transition: background-color 0.2s, color 0.3s, transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--white); /* items slide over each other while reordering */
}
ul.shoppinglist li[style*="transform"] {
  z-index: 1;
}

/* strike-through drawn from left to right over the text */
ul.shoppinglist li .item-text {
  position: relative;
}
ul.shoppinglist li .item-text::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
ul.shoppinglist li.checked {
  color: var(--lightgrayhover);
}
ul.shoppinglist li.checked .item-text::after {
  transform: scaleX(1);
}

/* changed on another device: short yellow highlight */
ul.shoppinglist li.flash {
  animation: list-flash 1.6s ease-out;
}
@keyframes list-flash {
  0%,
  30% {
    background-color: rgba(250, 200, 0, 0.35);
  }
  100% {
    background-color: transparent;
  }
}

/* just checked on this device: appears at the top of the checked section, strike drawn there */
ul.shoppinglist li.just-checked {
  animation: list-just-checked 0.45s ease-out;
}
ul.shoppinglist li.just-checked .item-text::after {
  animation: list-strike 0.35s ease-out;
}
@keyframes list-just-checked {
  from {
    color: var(--black);
    background-color: var(--verylightgray);
  }
}
@keyframes list-strike {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

ul.shoppinglist li.entering {
  animation: list-enter 0.35s ease-out;
}
@keyframes list-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* removed for good (checked > 1 h ago or deleted): fade out in place, the rest slides up */
ul.shoppinglist li.leaving {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  animation: list-leave 0.4s ease-in forwards;
}
@keyframes list-leave {
  to {
    opacity: 0;
    transform: translateX(24px);
  }
}

/* list name and "Bearbeiten" in one row above the input field (no divider line, no stacked wrappers) */
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding-bottom: 1em !important; /* .content-wrapper would otherwise override the spacing */
}
.list-header > .content-wrapper {
  width: auto;
  padding: 0 !important;
  margin: 0;
}
.list-title {
  margin: 0;
  overflow-wrap: anywhere;
}

/* sort toggle + sync status */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  flex-wrap: wrap;
  padding-bottom: 0.6em;
}
.list-toolbar .list-sync-status {
  margin-left: auto;
}
.list-sort {
  display: inline-flex;
  border: 1px solid var(--mainblue);
  border-radius: 2em;
  overflow: hidden;
}
.list-sort-option {
  border: none;
  background: transparent;
  color: var(--mainblue);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55em 1em;
  min-height: 2.6em; /* comfortable touch target */
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.list-sort-option.active {
  background: var(--mainblue);
  color: var(--white);
}
/* "Zusammenfassen" toggle, same look as one segment of the sort toggle */
.list-group-toggle {
  border: 1px solid var(--mainblue);
  border-radius: 2em;
  background: transparent;
  color: var(--mainblue);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55em 1em;
  min-height: 2.6em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.list-group-toggle.active {
  background: var(--mainblue);
  color: var(--white);
}
.list-group-toggle i {
  font-size: 0.85em;
  margin-right: 0.25em;
}

/* number of entries behind a grouped row */
ul.shoppinglist li .item-count {
  margin-left: 0.6em;
  font-size: 0.75rem;
  color: var(--midgray);
  white-space: nowrap;
}
ul.shoppinglist li .item-count:empty {
  display: none;
}

.list-sync-status {
  font-size: 0.8rem;
  color: var(--midgray);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.list-sync-status::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--midgray);
}
.list-sync-status.live::before {
  background: var(--green);
}
.list-sync-status.pending::before {
  background: var(--yellow);
}
.list-sync-status.offline {
  color: var(--orange);
}
.list-sync-status.offline::before {
  background: var(--orange);
}
/* recipes without open items left on the list */
.list-recipe {
  transition: opacity 0.3s;
}
.list-recipe.done {
  opacity: 0.35;
  pointer-events: none;
}

.list-sort-option i {
  font-size: 0.85em;
  margin-right: 0.25em;
}

@media only screen and (max-width: 40em) {
  /* phone: smaller title, pencil without label, controls as icons in one row, status as a dot */
  .list-title {
    font-size: 1.7rem;
  }
  .list-edit {
    padding: 0.6em !important; /* comfortable touch target for the icon */
  }
  .list-label {
    display: none;
  }
  .list-header {
    padding-bottom: 0.6em !important;
  }
  table.list-add {
    padding-bottom: 0.5em !important;
  }
  /* field and "+" button exactly the same height (box-sizing differs between them) */
  table.list-add input.bordered-classic-utility {
    height: 44px;
    box-sizing: border-box;
    font-size: 16px; /* 16px keeps iOS from zooming into the field */
  }
  table.list-add .btn-input-utility {
    height: 44px;
    width: 44px;
    box-sizing: border-box;
  }
  .list-toolbar {
    flex-wrap: nowrap;
    gap: 0.5em;
    padding-bottom: 0.4em;
  }
  .list-sort-option,
  .list-group-toggle {
    min-height: 2.4em;
    min-width: 2.8em;
    padding: 0.4em 0.8em;
  }
  .list-sort-option i,
  .list-group-toggle i {
    margin-right: 0;
  }
  /* "Live" only as a green dot; offline / pending keep their (short) text */
  .list-sync-status {
    margin-left: auto;
    font-size: 0.75rem;
    text-align: right;
  }
  .list-sync-status.live {
    font-size: 0;
  }
  .list-sync-status::before {
    width: 8px;
    height: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  ul.shoppinglist li,
  ul.shoppinglist li .item-text::after {
    transition: none;
  }
}

/* ---------- Statistics panel on profile.php (includes/php/misc/stats_view.inc.php) ---------- */

.stats {
  --stats-ramp-0: #efefef;
  --stats-ramp-1: #c6d8e0;
  --stats-ramp-2: #8bb0c1;
  --stats-ramp-3: #43778e;
  --stats-ramp-4: var(--mainblue);
  --stats-rest: var(--lightgrayhover);
  padding-bottom: 2em;
}
.stats h5 {
  margin: 0 0 0.3em 0;
}
.stats-sub {
  margin: 0 0 0.8em 0;
  font-size: 0.85rem;
  color: var(--midgray);
}
.stats-sub strong {
  color: var(--black);
  font-weight: 600;
}
.stats-empty {
  color: var(--midgray);
}
.stats-section-title {
  margin-top: 1.5em;
}

/* key figures */
.stats-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8em;
  margin-bottom: 1em;
}
.stats-tile {
  display: flex;
  flex-direction: column;
  padding: 0.9em 1em;
  border: 1px solid var(--lightgray);
  border-radius: 12px;
}
.stats-tile i {
  color: var(--mainbluelight);
  font-size: 0.9rem;
  margin-bottom: 0.5em;
}
.stats-tile-value {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--black);
}
.stats-tile-label {
  font-size: 0.8rem;
  color: var(--midgray);
  margin-top: 0.2em;
}

/* cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19em, 1fr));
  gap: 0.8em;
}
.stats-card {
  border: 1px solid var(--lightgray);
  border-radius: 12px;
  padding: 1em 1.1em;
  min-width: 0;
}
.stats-card-wide {
  grid-column: 1 / -1;
}

/* heatmap weekday x hour */
.stats-heatmap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stats-heat-row {
  display: flex;
  gap: 2px;
  align-items: center;
}
.stats-heat-day {
  flex: 0 0 2em;
  font-size: 0.75rem;
  color: var(--midgray);
}
.stats-heat-cell {
  flex: 1;
  height: 1.2em;
  border-radius: 3px;
  background: var(--stats-ramp-0);
  min-width: 0;
}
.stats-heat-cell.lvl1 { background: var(--stats-ramp-1); }
.stats-heat-cell.lvl2 { background: var(--stats-ramp-2); }
.stats-heat-cell.lvl3 { background: var(--stats-ramp-3); }
.stats-heat-cell.lvl4 { background: var(--stats-ramp-4); }
.stats-heat-cell.stats-hover {
  outline: 2px solid var(--black);
  outline-offset: 1px;
}
.stats-heat-hour {
  flex: 1;
  font-size: 0.7rem;
  color: var(--midgray);
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}
.stats-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 0.6em;
  font-size: 0.75rem;
  color: var(--midgray);
}
.stats-legend .stats-heat-cell {
  flex: 0 0 1em;
  height: 1em;
}

/* columns: trips per month. The bar height is a percentage of .stats-col-plot only, so labels
   never squeeze the bars (they used to shrink to the same height in a flex column). */
.stats-columns {
  display: flex;
  gap: 2px;
  padding-top: 1.4em; /* room for the value above the highest bar */
}
.stats-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  cursor: default;
  outline: none;
}
.stats-col-plot {
  width: 100%;
  height: 8em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid var(--lightgray);
}
.stats-col-bar {
  position: relative;
  width: 100%;
  max-width: 24px;
  min-height: 2px;
  background: var(--stats-ramp-4);
  border-radius: 4px 4px 0 0;
}
.stats-col-bar.current {
  background: var(--stats-ramp-2);
}
.stats-col.stats-hover .stats-col-bar,
.stats-col:focus-visible .stats-col-bar {
  background: var(--mainbluelight);
}
.stats-col-value {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 2px;
  font-size: 0.7rem;
  color: var(--black);
  white-space: nowrap;
}
.stats-col-label {
  font-size: 0.7rem;
  color: var(--midgray);
  margin-top: 0.3em;
}

/* horizontal bars (top products, rankings) */
.stats-bars {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stats-bars li {
  display: grid;
  grid-template-columns: minmax(5.5em, 38%) 1fr auto;
  align-items: center;
  gap: 0.6em;
  padding: 0.25em 0.2em;
  border-radius: 6px;
  font-size: 0.9rem;
}
.stats-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-bar-track {
  height: 0.7em;
  min-width: 0;
}
.stats-bar-fill {
  display: block;
  height: 100%;
  background: var(--stats-ramp-4);
  border-radius: 0 4px 4px 0;
}
.stats-bar-value {
  font-variant-numeric: tabular-nums;
  color: var(--black);
  font-size: 0.85rem;
  text-align: right;
}
/* facts, records, ranked recipes, chips */
.stats-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45em 1em;
  margin: 0 0 0.8em 0;
  font-size: 0.9rem;
}
.stats-facts dt {
  color: var(--midgray);
}
.stats-facts dd {
  margin: 0;
  text-align: right;
}
/* long values (recipe names) get their own line */
.stats-facts dt.wide,
.stats-facts dd.wide {
  grid-column: 1 / -1;
  text-align: left;
}
.stats-facts dd.wide {
  margin-top: -0.3em;
}
.stats-records {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stats-records li {
  padding: 0.35em 0;
  border-bottom: 1px solid var(--lightgray);
}
.stats-records li:last-child {
  border-bottom: none;
}
.stats-record-value {
  font-size: 1.25rem;
  font-weight: 600;
  margin-right: 0.3em;
}
.stats-ranked {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stats-ranked li {
  display: grid;
  grid-template-columns: 1.6em 1fr auto;
  gap: 0.5em;
  align-items: baseline;
  padding: 0.35em 0;
  font-size: 0.9rem;
}
.stats-rank {
  color: var(--midgray);
}
.stats-ranked-value {
  font-variant-numeric: tabular-nums;
}
.stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}
.stats-chip {
  padding: 0.3em 0.7em;
  border-radius: 1em;
  background: var(--verylightgray);
  font-size: 0.85rem;
}
.stats-chip span {
  color: var(--midgray);
  margin-left: 0.2em;
}

/* tooltip */
.stats-tooltip {
  position: absolute;
  z-index: 1000;
  max-width: 16em;
  padding: 0.45em 0.7em;
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  font-size: 0.8rem;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media only screen and (max-width: 64em) {
  .stats-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 40em) {
  .stats-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-tile-value {
    font-size: 1.4rem;
  }
  .stats-heat-cell {
    height: 1em;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Recipe import via AI (rezept_import.pop.php) ---------- */
.recipe-import-step {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  margin: 0.4em 0 0.7em 0;
}
.recipe-import-step p {
  margin: 0;
  line-height: 1.5;
}
.recipe-import-num {
  flex: 0 0 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--mainblue);
  color: var(--white);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15em;
}
/* full width, icon and text centred on one line (btn-classic is a flex box) */
.recipe-import-copy,
.recipe-import-submit {
  width: 100%;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 1.2em;
}
.recipe-import-copy i {
  font-size: 0.95em;
}
.recipe-import-copy.copied {
  border-color: var(--green);
  color: var(--green);
}
.recipe-import-form {
  display: flex;
  flex-direction: column;
}
.recipe-import-submit {
  margin-top: 0.8em;
  margin-bottom: 0;
}
/* the manifest stays in the DOM for the copy fallback, but invisible */
.recipe-import-manifest {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.recipe-import-paste {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  min-height: 10em;
}
.recipe-import-error {
  color: var(--red);
  margin: 0.6em 0 0;
  font-size: 0.9rem;
}
.recipe-import-error:empty {
  display: none;
}

.recipe-source {
  margin: 0;
  font-size: 0.85rem;
  color: var(--midgray);
}

/* additions by the AI during import, marked "[KI: ...]" in recipe steps */
.ai-note {
  color: var(--mainbluelight);
  font-style: italic;
}

/* words in recipe steps that are likely ingredients (misc/ingredient_words.inc.php), for a quick overview:
   marked like a soft pill in the brand colour so they stand out when scanning the steps */
.ingredient-word {
  color: var(--mainblue);
  background: #d9e7ee;
  padding: 0.05em 0.3em;
  border-radius: 0.35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* recipe search results on rezepte.php (search_rezepte in includes/js/rezept/functions.inc.js) */
.recipe-search-results {
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid var(--lightgray);
  border-radius: 10px;
  margin-bottom: 1em;
  padding: 0.3em;
  -webkit-overflow-scrolling: touch;
}
.recipe-search-summary {
  margin: 0.3em 0.5em 0.4em 0.5em;
  font-size: 0.8rem;
  color: var(--midgray);
}
.recipe-search-result {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.4em 0.5em;
  border-radius: 8px;
  color: var(--black);
  text-decoration: none;
}
.recipe-search-result:hover,
.recipe-search-result:focus-visible {
  background: var(--verylightgray);
}
.recipe-search-thumb {
  flex: 0 0 2.8em;
  width: 2.8em;
  height: 2.8em;
  border-radius: 6px;
  object-fit: cover;
  background: var(--lightgray);
}
.recipe-search-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.recipe-search-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recipe-search-hint {
  font-size: 0.8rem;
  color: var(--midgray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* rezepte.php has its own clear button, hide the browser's built-in one of type="search" */
#searchstring::-webkit-search-cancel-button,
#searchstring::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
