@charset "UTF-8";
/* -------------------------------------------------------------------------------------------------
   Variables
------------------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------------------
   Imports
------------------------------------------------------------------------------------------------- */
.list {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
  gap: 10px 0;
}

.list__item {
  font-size: clamp(16px, 1.87vw, 21px);
  width: 100%;
  padding-left: 1.2em;
  display: flex;
  align-items: center;
  position: relative;
  will-change: transform;
}

.drag-handle {
  position: absolute;
  left: 0;
  width: 1em;
  height: 1.5em;
  display: flex;
  justify-content: left;
  align-items: center;
}

.drag-handle::before {
  content: "⠿";
  font-size: 1.2em;
}

.list__item.is-idle .drag-handle {
  cursor: grab;
}

.list__item.is-idle {
  transition: 0.25s ease transform;
}

.list__item.is-draggable,
.list__item.is-draggable .drag-handle {
  cursor: grabbing;
}

.list__item.is-draggable {
  z-index: 10;
}

/* -------------------------------------------------------------------------------------------------
   Variables
------------------------------------------------------------------------------------------------- */
/* 768px */
/* 1024px */
/* 1025px */
/* 1280px */
/* 1440px */
/* 1680px */
/* -------------------------------------------------------------------------------------------------
   Mixins
------------------------------------------------------------------------------------------------- */
body {
  background: #fff;
  color: #202023;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

p, input, textarea, td, button, a, select {
  margin: 0;
  font-size: clamp(16px, 1.87vw, 21px);
  line-height: 1.5;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: clamp(16px, 1.87vw, 21px);
}

strong, b {
  font-weight: 700;
}

a {
  color: #202023;
  text-decoration: none;
  outline: 0;
  transition: background 0.4s ease, color 0.2s ease;
}

button {
  transition: background 0.4s ease, color 0.2s ease;
}

input:not([type=checkbox]), textarea, select {
  width: 100%;
  padding: 0.5em 1em;
  border: 1px solid #DCDAD5;
  border-radius: 5px;
  background-color: #FCFCFB;
  line-height: 1;
}

textarea {
  padding: 2vw;
}

/* -------------------------------------------------------------------------------------------------
   Helper
------------------------------------------------------------------------------------------------- */
.bg-grey {
  background-color: #F6F5F2;
}

.bg-white {
  background-color: #FCFCFB;
}

.readingwidth {
  max-width: 1024px;
  margin: 0 auto;
  padding-right: 1.82292vw;
  padding-left: 1.82292vw;
}

.recipewrap {
  padding: 50px 3vw;
}
@media only screen and (min-width: 500px) {
  .recipewrap {
    border-radius: 50px;
    padding: 50px clamp(20px, 5vw, 60px) 50px;
    margin-top: 5vw;
    margin-bottom: 3vw;
  }
}

.mt-s {
  margin-top: 1.5vw;
}

.mb-s {
  margin-bottom: 1.5vw;
}

.mt-m {
  margin-top: 3vw;
}

.mb-m {
  margin-bottom: 3vw;
}

.mb-l {
  margin-bottom: 20px;
}

.mt-l {
  margin-top: 20px;
}

.mt-xl {
  margin-top: 5vw;
}

.pb-s {
  padding-bottom: 1vw;
}

.pb-l {
  padding-bottom: 4vw;
}

.pt-l {
  padding-top: 4vw;
}

.relative {
  position: relative;
}

.width-100 {
  width: 100%;
}

.centered {
  text-align: center;
}

.left {
  text-align: left;
}

/* -------------------------------------------------------------------------------------------------
   Base
------------------------------------------------------------------------------------------------- */
body, input, textarea {
  font-family: "europa", Arial, sans-serif;
  font-weight: 400;
  font-variant-ligatures: no-common-ligatures;
  -webkit-font-feature-settings: "liga" 0, "clig" 0, "ss01" 1;
  -moz-font-feature-settings: "liga" 0, "clig" 0, "ss01" 1;
  font-feature-settings: "liga" 0, "clig" 0, "ss01" 1;
}

h2 {
  margin-bottom: 40px;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1em;
}

h3 {
  margin-bottom: 1em;
  font-weight: 700;
  font-size: calc(1.2*clamp(16px, 1.87vw, 21px));
  line-height: 1em;
}

#page {
  padding: 0;
}
@media only screen and (min-width: 500px) {
  #page {
    padding: 0 6vw;
  }
}

.hidden {
  display: none;
}

.bottom-line {
  padding-bottom: 0.5em;
  border-bottom: 1px solid #E8E4D9;
}

#logo-wrap {
  padding: 2em 1em;
}

a#logo {
  display: inline-block;
  width: 7em;
}

/* -------------------------------------------------------------------------------------------------
   Filter
------------------------------------------------------------------------------------------------- */
#filter {
  padding: 30px 0.3em 0 0.3em;
}

#filter ul {
  flex-flow: wrap;
}

#filter a {
  display: inline-block;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 50px;
  background-color: rgba(232, 228, 217, 0.6);
  margin: calc(2px + 0.2vw);
}

#filter a:hover {
  background-color: #E8E4D9;
}

#filter a.selected {
  background-color: #5AC78C;
  color: #fff;
}

/* -------------------------------------------------------------------------------------------------
   Settings-Button
------------------------------------------------------------------------------------------------- */
#settings {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* -------------------------------------------------------------------------------------------------
   Menu
------------------------------------------------------------------------------------------------- */
#menu {
  padding-top: 60px;
}
@media screen and (min-width: 48em) {
  #menu {
    padding-top: 100px;
  }
}

/* -------------------------------------------------------------------
   Cells
------------------------------------------------------------------- */
.grid-container {
  padding-right: 1.82292vw;
  padding-left: 1.82292vw;
  max-width: 100%;
}

.grid-container:not(.full) > .grid-padding-x {
  margin-right: -1.82292vw;
  margin-left: -1.82292vw;
}

.grid-padding-x > .cell {
  padding-left: 1.82292vw;
  padding-right: 1.82292vw;
}

/* -------------------------------------------------------------------
   Category
------------------------------------------------------------------- */
#menu .category {
  margin-bottom: 80px;
}

/* -------------------------------------------------------------------
   List Items
------------------------------------------------------------------- */
@media screen and (min-width: 48em) {
  #menu ul {
    columns: 2;
  }
}
@media screen and (min-width: 105em) {
  #menu ul {
    columns: 3;
  }
}

#menu li {
  line-height: 1.4;
  position: relative;
}

#menu li a {
  width: 100%;
  display: inline-block;
  padding: 1em 1.5em 1em 1.5em;
  background: #FCFCFB;
  border-radius: 100px;
  margin-bottom: 0.3em;
  margin-top: 0.3em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#menu li.vegan a,
#menu li.new a {
  padding-right: 4.5em;
}

#menu li a:hover {
  background: white;
}

/* -------------------------------------------------------------------
   List Items Tags
------------------------------------------------------------------- */
#menu li::after {
  content: "";
  display: inline-block;
  border-radius: 500px;
  padding: 0.45em 0.8em;
  background: #5AC78C;
  color: #fff;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

#menu li.vegan::after {
  display: inline;
  content: "vegan";
}

#menu li.new::after,
#menu li.vegan.new::after {
  display: inline;
  content: "new";
  background: #EE766C;
}

#menu li.add-recipe a {
  background: transparent;
}

/* -------------------------------------------------------------------
   Single Rezept
------------------------------------------------------------------- */
div.action-buttons {
  position: absolute;
  top: clamp(20px, 4vw, 50px);
  right: clamp(20px, 4vw, 50px);
}

.action-button {
  background-size: clamp(12px, 2vw, 17px);
  width: calc(3 * clamp(12px, 2vw, 17px));
  aspect-ratio: 1/1;
  background-repeat: no-repeat;
  background-position: center center;
  display: inline-block;
  text-indent: -9999px;
  background-color: #E8E4D9;
  border-radius: 500px;
}

.goto-front {
  background-image: url("../img/icons/apps-dark.svg");
}

.goto-edit {
  background-image: url("../img/icons/edit-square-dark.svg");
}

.goto-settings {
  background-image: url("../img/icons/settings.svg");
  background-color: white;
  background-size: calc(1.5 * clamp(12px, 2vw, 17px));
  width: calc(2 * clamp(12px, 2vw, 17px));
}

.action-button:hover {
  background-color: #F6F5F2;
}

.action-button.disabled {
  opacity: 0.3;
}

.action-button.action-button.disabled:hover {
  background-color: #E8E4D9;
}

.recipe-header h2 {
  max-width: 90%;
}

.recipe-image-thumb::after {
  pointer-events: none;
}

.recipe-main-image {
  margin-top: clamp(16px, 3vw, 32px);
}

.recipe-main-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.recipe-image-thumb::after {
  pointer-events: none;
}

.tag {
  background-color: #E8E4D9;
  color: #202023;
  padding: 0.4em 1em;
  margin-right: 0.5em;
  font-size: 0.6em;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.05em;
  border-radius: 500px;
  margin-bottom: 0.5em;
}

.tag.green {
  background-color: #5AC78C;
  color: white;
}

.tag:hover {
  cursor: default;
}

.zubereitung {
  counter-reset: stepcount;
}

.zubereitung p {
  margin-bottom: 0.8em;
  position: relative;
  padding-left: 1.6em;
}

.zubereitung p::before {
  counter-increment: stepcount;
  content: counter(stepcount);
  color: #202023;
  background-color: #E8E4D9;
  font-weight: bold;
  min-width: 1.5em;
  padding: 0;
  border-radius: 50%;
  aspect-ratio: 1/1;
  font-size: 0.7em;
  display: block;
  text-align: center;
  line-height: 1.5em;
  position: absolute;
  margin-left: -2.25em;
  top: 0.4em;
}

span.serves {
  background-color: #E8E4D9;
  min-width: 1.5em;
  padding: 0.2em;
  border-radius: 50%;
  aspect-ratio: 1/1;
  display: inline-block;
  text-align: center;
  transition: background 0.4s ease, color 0.1s ease;
}

span.serves:hover {
  cursor: pointer;
  background-color: #EE766C;
  color: white;
}

.single-recipe td.ingredient-quantity {
  text-align: right;
  padding-right: 0.5em;
}

#ingredientsTable {
  border-collapse: collapse;
}

.single-recipe #ingredientsTable tr {
  border-bottom: 1px solid #E8E4D9;
  border-top: 1px solid #E8E4D9;
}

.single-recipe #ingredientsTable tr td {
  padding: 0.3em 1em;
}

/* -------------------------------------------------------------------
	Kommentare
------------------------------------------------------------------- */
.recipe-comments {
  padding-top: clamp(24px, 4vw, 40px);
}
.recipe-comments .comment-list {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.recipe-comments .comment {
  background-color: white;
  border-radius: 12px;
  border: 1px solid #E8E4D9;
  padding: clamp(16px, 3vw, 24px);
}
.recipe-comments .comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.recipe-comments .comment-date {
  font-weight: 400;
  color: rgba(32, 32, 35, 0.6);
}
.recipe-comments .comment-text {
  margin: 0;
}
.recipe-comments .comment-form {
  margin-top: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 0.75rem;
}
.recipe-comments .comment-form label {
  font-weight: 600;
}
.recipe-comments .comment-form textarea {
  resize: vertical;
  min-height: 140px;
  background-color: #F6F5F2;
}
.recipe-comments .comment-feedback {
  font-size: 0.9em;
  min-height: 1.5em;
  color: rgba(32, 32, 35, 0.7);
}
.recipe-comments .comment-feedback.is-error {
  color: #E35933;
}
.recipe-comments .comment-feedback.is-success {
  color: #5AC78C;
}
.recipe-comments .comment-form .submit-comment {
  justify-self: start;
}

/* -------------------------------------------------------------------
   Rezept Edit Form
------------------------------------------------------------------- */
.edit-recipe #ingredientsTable {
  width: 100%;
  max-width: 700px;
  margin-left: -5px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#ingredientsTable input,
#ingredientsTable select {
  height: 2em;
  color: #202023;
  padding: calc(0.5*0.5em) calc(0.5*1em);
}

.ingredientRow span {
  font-size: clamp(16px, 1.87vw, 21px);
}

.recipe-title-input {
  margin-bottom: 3em;
}

.recipe-title-input input {
  font-weight: bold;
}

input#recipe-serves {
  width: 5em;
}

.ingredient-quantity-input {
  min-width: 2em;
  max-width: 5em;
  margin-right: 0.3em;
}
@media screen and (min-width: 48em) {
  .ingredient-quantity-input {
    max-width: 4em;
  }
}

.ingredient-name-input {
  margin-left: 0.3em;
  width: 100%;
}

.ingredient-unit-input {
  min-width: 3.3em;
}

.ingredient-action-input {
  margin-left: 0.3em;
}

button[type=submit] {
  display: inline-block;
  outline: none;
  cursor: pointer;
  line-height: 1;
  border-radius: 500px;
  transition-property: background-color, border-color, color, box-shadow, filter;
  transition-duration: 0.3s;
  border: 2px solid #202023;
  min-width: 160px;
  white-space: normal;
  font-weight: 700;
  text-align: center;
  padding: 1em 2em;
  background-color: #202023;
  color: white;
}

button[type=submit]:hover {
  background-color: #202023;
  color: white;
}

button[type=submit].small {
  font-size: calc(0.8 * clamp(16px, 1.87vw, 21px));
}

a.alt-button,
button[type=submit].alt-button {
  font-size: calc(0.8 * clamp(16px, 1.87vw, 21px));
  padding: 0.5em;
  color: #202023;
  opacity: 0.6;
  background: transparent;
  border-color: transparent;
}

a.warning-button,
button[type=submit].warning-button {
  color: #E35933;
}

button.removeIngredientButton {
  background-image: url("../img/icons/close-grey.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position-y: center;
  display: inline-block;
  width: 0.6em;
  text-indent: -9999px;
}

.add-button {
  color: #5AC78C;
  font-size: calc(0.8 * clamp(16px, 1.87vw, 21px));
  font-weight: 700;
  letter-spacing: normal;
}

.add-button::before {
  content: "";
  background-image: url("../img/icons/plus-green.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 12px;
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 0.4em;
}

ul#select-tags {
  flex-wrap: wrap;
}

#select-tags li.selected {
  background-color: #5AC78C;
  color: white;
}

/* -------------------------------------------------------------------
   Connect Users
------------------------------------------------------------------- */
@media screen and (min-width: 48em) {
  ul#userList {
    columns: 2;
  }
}

#userList li {
  line-height: 1.4;
  position: relative;
}

#userList li a {
  width: 100%;
  display: inline-block;
  padding: 1em 1.5em;
  background: #F3F1EB;
  border-radius: 100px;
  margin-bottom: 0.3em;
  margin-top: 0.3em;
  cursor: pointer;
}

#userList li a:hover {
  background: #E8E4D9;
}

#userList li::after {
  content: "inaktiv";
  display: inline;
  border-radius: 500px;
  padding: 0.45em 0.8em;
  background-color: #E8E4D9;
  color: #fff;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

#userList li.connected::after {
  display: inline;
  content: "aktiv";
  background-color: #5AC78C;
}

#userList small {
  opacity: 0.6;
  font-size: 60%;
}

/* -------------------------------------------------------------------
   User Login
------------------------------------------------------------------- */
.loginwrap {
  width: 500px;
  max-width: 90%;
  border-radius: 50px;
  margin: 5vw auto;
  padding: 50px clamp(30px, 10vw, 50px);
}
.loginwrap .grid-container,
.loginwrap .cell {
  padding: 0;
}

.loginwrap input {
  margin-bottom: 1em;
}

.error input {
  border-color: #EE766C;
}

.form-message {
  max-width: 450px;
  margin: 2.5vw auto -2.5vw auto;
  text-align: center;
}

.form-message .error {
  color: #EE766C;
}

/* -------------------------------------------------------------------
   Modals
------------------------------------------------------------------- */
#modal-overlay {
  opacity: 0;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -9999;
}

body.modal-open {
  overflow: hidden; /* Scrollen unterbinden, wenn Modal geöffnet ist */
}

body.modal-open #modal-overlay {
  opacity: 1;
  z-index: 9999;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  z-index: 10000;
  border-radius: 12px;
}

.modal-content {
  padding: 10px;
}

.modal-x {
  position: absolute;
  top: 0;
  right: 8px;
  padding: 10px;
  cursor: pointer;
}

.wrap-plusminus {
  width: clamp(215px, 53vw, 300px);
  max-width: 100%;
}

#adjust-serves input {
  max-width: 100px;
  text-align: center;
  margin: 0 20px;
  font-size: 19.2px;
}

.action-button.plusminus {
  background-size: calc(1.5 * clamp(12px, 2vw, 17px));
  width: calc(3 * clamp(12px, 2vw, 17px));
  flex-basis: calc(3 * clamp(12px, 2vw, 17px));
  touch-action: manipulation;
}

.action-button.plusminus:hover {
  background-color: #E8E4D9;
}

.action-button.plus {
  background-image: url("../img/icons/plus.svg");
}

.action-button.minus {
  background-image: url("../img/icons/minus.svg");
}

.recipe-images .recipe-image-hint {
  margin-bottom: 0.75rem;
  color: rgba(32, 32, 35, 0.7);
  font-size: 0.9em;
}

.recipe-image-uploader {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recipe-image-input {
  padding: 0.75rem 1rem;
  border: 1px dashed #E8E4D9;
  border-radius: 12px;
  background-color: rgba(232, 228, 217, 0.4);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.recipe-image-input:hover, .recipe-image-input:focus {
  border-color: #5AC78C;
  background-color: rgba(90, 199, 140, 0.15);
  outline: none;
}

.recipe-image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recipe-image-thumb {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(232, 228, 217, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.recipe-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.recipe-image-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255, 255, 255, 0);
  transition: opacity 0.2s ease;
}
.recipe-image-thumb:hover {
  transform: translateY(-2px);
}
.recipe-image-thumb.is-uploading::after {
  opacity: 1;
  background: rgba(255, 255, 255, 0.7);
}
.recipe-image-thumb.is-removing::after {
  opacity: 1;
  background: rgba(255, 255, 255, 0.5);
}

.remove-recipe-image {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(32, 32, 35, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.remove-recipe-image:hover {
  transform: scale(1.05);
}

.recipe-image-thumb:hover .remove-recipe-image,
.recipe-image-thumb:focus-within .remove-recipe-image,
.recipe-image-thumb.is-uploading .remove-recipe-image,
.recipe-image-thumb.is-removing .remove-recipe-image {
  opacity: 1;
}

/*# sourceMappingURL=style.css.map */
