/*****************************************************************************************
* This file belongs to the UCDD Course from the HNU (IMUK 5 - SoSe 2021)
* Copyright (c) by Merlin Mößle & Ünal Badem
* This file contains code fragments from the HTML, CSS and JS LinkedIn-course from IMUK 3
* Version: 15.0.7. (current status: 15.07.2021, 06:00 Uhr)
*******************************************************************************************/

/****************************************************************
* This file contains css styling for the following topics:
* 
* Font import
* Login
* Forms
* Animations
* Navigation Overlay
* Responsiveness
* Buttons 
* Texts
* Pictures
* Wrapper
* Basic styling
* Footer
* Boxes
* Special class and id styling
* Progress bar
* List elements
*********************************************************************/


:root {
  --font-main: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.06rem;
  --text-lg: 1.18rem;
  --section-title-size: 2.35rem;
  --weight-medium: 650;
  --weight-bold: 760;
  --weight-heavy: 850;
}

html[data-theme="dark"] {
  color-scheme: dark;
}


/* *************    MEDIA SCREEN   ************ */
@media screen {


  /* *************    LOGIN   ************ */
  #loginMaske {
    margin: 80px;
  }


  /* *************    FORMULARE   ************ */
  form {
    margin: 20px;
    color: black;
  }

  #validateForm {
    background-color: white;
    padding: 20px 0;
    width: 500px;
    margin: auto;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    /* Source: https://www.w3schools.com/css/css3_shadows_box.asp */
  }

  input {
    padding: 15px 10px;
    outline: none;
    font-size: 14px;
    width: 400px;
    display: block;
    text-align: left;
  }

  input[type=submit] {
    padding: 15px 10px;
    /* margin-top: 30px; */
    font-size: 14px;
    width: 400px;
    cursor: pointer;
  }

  span.error {
    color: darkred;
    font-size: 12px;
    margin-top: 20px;
  }

  input.error {
    border: 3px solid darkred;
  }

  label {
    /*display: block;*/
    margin: 20px 0px 20px 0px;
  }

  input[type=text],
  input[type=password],
  input[type=number],
  input[type=radio] {
    margin: auto;
  }

  #loginmaske {
    text-align: center;
  }

  #insert {
    text-align: center;
  }

  .formular {
    margin: 40px;
  }


  /* *************    ANIMATION STARTPAGE   ************ */
  .textanimation {
    position: relative;
    font-family: inherit;
    text-transform: uppercase;
    font-size: 2rem;
    letter-spacing: 0px;
    overflow: hidden;
    background: linear-gradient(90deg, #fff, #000, #fff);
    background-repeat: no-repeat;
    background-size: 80%;
    animation: animate 8s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(255, 255, 255, 0);
  }

  @keyframes animate {
    0% {
      background-position: -500%;
    }

    100% {
      background-position: 500%;
    }
  }


  /* ***************    NAV OVERLAY    ************** */
  .overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: hidden;
    transition: 0.5s;
  }

  .overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
  }

  .overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
  }

  .overlay a:hover,
  .overlay a:focus {
    color: #f1f1f1;
  }

  .overlay .closebtn {
    position: absolute;
    top: 140px;
    right: 45px;
    font-size: 60px;
  }


  /* ***************    OVERLAY MOBILE PHONE    ************** */
  @media screen and (max-height: 450px) {
    .overlay {
      overflow-y: auto;
    }

    .overlay a {
      font-size: 20px
    }

    .overlay .closebtn {
      font-size: 40px;
      top: 15px;
      right: 35px;
    }
  }


  /* ***************    BUTTON    ************** */
  .button {
    background-color: transparent;
    color: orange;
    font-family: inherit;
    border: 2px solid orange;
    padding: 15px 32px;
    text-align: left;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
  }

  .button {
    transition-duration: 0.4s;
    text-align: center;
  }

  .button:hover {
    background-color: orange;
    color: white;
    transform: scale(.95);
  }

  .addButton {
    margin-top: 20px;
    margin-bottom: 20px;
  }


  /* ***************    TEXT    ************** */
  .text-align-left {
    text-align: left;
  }

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

  a:hover {
    color: orange;
  }


  /* ***************    PICTURES    ************** */
  .fullpicture {
    width: 100%;
  }


  /* ***************    WRAPPER    ************** */
  .wrapper-long {
    max-width: 1500px;
    padding: 0 1rem;
    margin: 0 auto;
  }

  /* small layout for old browsers */
  .wrapper {
    min-width: 320px;
    max-width: 575px;

    padding: 0 1rem;
    margin: 0 auto;
  }

  .wrapper-vision {
    max-width: 650px;

    padding: 0 2rem;
    margin: 0 auto;
  }


  /* ***************    BACKGROUND    ************** */
  body {
    background: white;
    margin: 0;
    padding-top: 76px;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-flow: column;
    overflow-x: hidden;
  }


  /* ***************    LINE HEIGHT    ************** */
  .site-content {
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1 auto;
  }

  .content-intro {
    color: white;
    text-align: center;
  }


  /* ***************    BASIC STYLING    ************** */
  html {
    box-sizing: border-box;
    scroll-padding-top: 88px;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }

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


  /* ***************    OLD BROWSERS (IE11)    ************** */
  header,
  nav,
  main,
  footer,
  section,
  article,
  aside,
  figcaption,
  figure {
    display: block;
  }


  /* ***************    AVOIDANCE OF COLLAPSING MARGINS    ************** */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  ul,
  ol,
  blockquote {
    margin-top: 0;
    margin-bottom: 1rem;
  }


  /* ***************    VISUALLY HIDDEN    ************** */
  /* Hide elements from the visual layout but maintain them for screenreader */
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    margin: -1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
  }


  /* ***************    BODY    ************** */
  body {
    font-family: var(--font-main);
    font-size: 1rem;
    overflow-x: hidden;
  }


  /* ***************    TEXT   ************** */
  .textBlack {
    color: black;
    padding: 2rem 0;
    margin-bottom: 1rem;
    margin-top: 2rem;
  }


  /* ***************    HEADLINES    ************** */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
    font-weight: 400;
  }

  h5 {
    font-size: var(--text-lg);
  }

  h6 {
    font-size: 1rem;
    font-variant: small-caps;
  }
}


/* ***************    WRAPPER    ************** */
@supports (display:grid) {
  .wrapper {
    max-width: 960px;
  }
}

@media screen and (max-width: 768px) {
  .hidden {
    display: none;
  }
}

@media screen and (min-width: 768px) {

  .site-content .wrapper,
  .site-content .wrapper {
    display: grid;

    grid-template-columns: 2fr 1fr;
    grid-template-areas:
      "intro intro"
      "col1 col2";

    grid-column-gap: 3rem;
  }


  /* ***************    POSITIONING OF GRID ITEMS    ************** */
  .site-content .content-intro,
  .site-content .content-intro {
    /* Option 1: Positioning with Grid column */
    grid-column: 1/3;

    /* Option 2: Positioning with Grid areas */
    grid-area: intro;
  }
}


/* ***************    PROGRESS BAR    ************** */
/* Source: https://stackoverflow.com/questions/44189079/create-an-arrow-bar-in-html-css-js */
ul#progressBarUl {
  padding: 0;
  list-style-type: none;
  border: 1px solid #ccc;
}

ul#progressBarUl:before,
ul#progressBarUl:after {
  content: "";
  display: table;
}

ul#progressBarUl:after {
  clear: both;
}

ul#progressBarUl li {
  display: inline-block;
  width: 24.2%;
  float: left;
  text-align: center;
  font-size: 14px;
}

ul#progressBarUl li.active {
  background: #9dcd5a;
  color: white;
}

ul#progressBarUl li a {
  padding: 0 12px;
  height: 40px;
  line-height: 40px;
  position: relative;
  display: block;
}

ul#progressBarUl li.active a:before,
ul#progressBarUl li.active a:after {
  content: "";
  position: absolute;
  border-style: solid;
  border-color: transparent transparent transparent white;
  border-width: 20px;
  left: 0px;
}

ul#progressBarUl li.active a:after {
  content: "";
  right: -40px;
  left: auto;
  border-color: transparent transparent transparent #9dcd5a;
}

ul#progressBarUl li.active a {
  padding-left: 30px;
  color: white;
}


/* ***************    LIST ELEMENTS    ************** */
#friends li {
  text-align: center;
  margin: 20px;
  display: inline-block;
  padding: 20px;
  width: 250px;
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  /* Source: https://www.w3schools.com/css/css3_shadows_box.asp */
  color: black;
  line-height: 2px;
}


/* ***************    AVATAR    ************** */
.avatar {
  width: 80px;
}

.beschriftung {
  display: none;
}

.attribut {
  padding-top: 10px;
  line-height: 2rem;
  font-size: 18px;
}

.imgAttribut {
  line-height: 0rem;
  font-size: 0px;
}


/* ***************    RESTAURANTS    ************** */
#restaurants li {
  text-align: center;
  margin: 20px;
  display: inline-block;
  padding: 10px;
  width: 500px;
  /* 4 side by side: 250px */
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  /* Source: https://www.w3schools.com/css/css3_shadows_box.asp */
  color: black;
  line-height: 2px;
}


/* ***************    BUTTON    ************** */
.bildknopf {
  margin: 20px 0px 0px 0px;
  width: 30px;
  cursor: pointer;
}

.restaurantButton {
  margin: 10px;
}


/* *************    CENTERING   ************ */
.center {
  text-align: center;
}


/* *************    SECTION TEXT   ************ */
.section-text-1 {
  padding: 40px;
  color: white;
  background-color: #9dcd5a;
  margin: 80px 0 20px 0;
}

.section-text-2 {
  padding: 40px;
  color: black;
  background-color: white;
}

.section-text {
  text-align: left;
  padding: 20px 20px 0px 20px;
}

.section-text:before {
  content: '✓ ';
}

.section-text-3 {
  text-align: left;
  padding: 20px 20px 0px 20px;
}

.section-text-3:before {
  content: '✘ ';
}


/* *************    PICTURE   ************ */
.expert-picture {
  width: 200px;
}


/* *************    RADIO BUTTONS   ************ */
/*Source: https://www.sliderrevolution.com/resources/styling-radio-buttons/ - Ripple Animation On Input Type Radio And Checkbox*/
@keyframes click-wave {
  0% {
    height: 40px;
    width: 40px;
    opacity: 0.35;
    position: relative;
  }

  100% {
    height: 200px;
    width: 200px;
    margin-left: -80px;
    margin-top: -80px;
    opacity: 0;
  }
}

.option-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  position: relative;
  top: 10px;
  right: 0;
  bottom: 0;
  left: 0;
  height: 40px;
  width: 40px;
  transition: all 0.15s ease-out 0s;
  background: #cbd1d8;
  background: white;
  border: 2px solid orange;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  margin-right: 0.5rem;
  outline: none;
  position: relative;
  z-index: 1000;
}

.option-input:hover {
  background: orange;
}

.option-input:checked {
  background: orange;
}

.option-input:checked::before {
  height: 20px;
  width: 20px;
  position: absolute;
  content: '✔';
  display: inline-block;
  font-size: 30px;
  text-align: center;
  line-height: 4px;
}

.option-input:checked::after {
  -webkit-animation: click-wave 0.65s;
  -moz-animation: click-wave 0.65s;
  animation: click-wave 0.65s;
  background: orange;
  content: '';
  display: block;
  position: relative;
  top: -20px;
  right: 10px;
  z-index: 100;
}

.option-input.radio {
  border-radius: 50%;
  margin: 20px 0px 20px 30px;
}

.option-input.radio::after {
  border-radius: 50%;
}


/* *************    PICTURE WRAP   ************ */
.card {
  float: left;
  padding: 20px;
  margin: 5%;
  width: 40%;
  background: transparent;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  /* Source: https://www.w3schools.com/css/css3_shadows_box.asp */
  text-align: center;
}


/* *************    INFOBOXEN   ************ */
.infoboxen {
  background-color: transparent;
  padding: 20px;
}

.infobox {
  /* Infobox as Flex-Container */
  display: flex;
  flex-flow: column;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  /* Source: https://www.w3schools.com/css/css3_shadows_box.asp */
  text-align: center;
  background-color: white;
  padding: 20px;
  margin: 20px;
}

/* Infoboxes side by side by Grid */
@media screen and (min-width: 768px) {

  .infoboxen>.wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem;
  }

}


/* *************    SIBLING FADE   ************ */
/* SIBLING FADE: fade out siblings around a hovered item */
/* Source: https://codepen.io/shshaw/pen/wWQZEB */
.sibling-fade {
  visibility: hidden;
}

/* Prevents :hover from triggering in the gaps between items */

.sibling-fade>* {
  visibility: visible;
}

/* Brings the child items back in, even though the parent is `hidden` */

.sibling-fade>* {
  transition: opacity 150ms linear 100ms, transform 150ms ease-in-out 100ms;
}

/* Makes the fades smooth with a slight delay to prevent jumps as the mouse moves between items */

.sibling-fade:hover>* {
  opacity: 0.4;
  transform: scale(0.9);
}

/* Fade out all items when the parent is hovered */

.sibling-fade>*:hover {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0ms, 0ms;
}

/* Fade in the currently hovered item */

.sibling-fade {
  display: flex;
  flex-wrap: wrap;
}


/* *************    INTERACTIVE MACBOOK   ************ */
/* Source: https://codepen.io/digimix/pen/wWxOpg */
.macbook {
  padding: 10px;
  margin: 0 auto;
  max-width: 800px;
}

.screen {
  background: #000;
  border-radius: 3% 3% 0.5% 0.5% / 5%;
  margin: 0 auto;
  /* for aspect ratio */
  position: relative;
  width: 80%;
}

.screen:before {
  border: 2px solid #cacacc;
  border-radius: 3% 3% 0.5% 0.5% / 5%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8) inset, 0 0 1px 2px rgba(255, 255, 255, 0.3) inset;
  content: "";
  display: block;
  /* for aspect ratio ~67:100 */
  padding-top: 67%;
}

.screen:after {
  content: "";
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  position: absolute;
  bottom: 0.75%;
  left: 0.5%;
  padding-top: 1%;
  width: 99%;
}

.viewport {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  margin: 4.3% 3.2%;
  background: #333;
}

.base {
  /* for aspect ratio */
  position: relative;
  width: 100%;
}

.base:before {
  content: "";
  display: block;
  /* for aspect ratio ~33:1000*/
  padding-top: 3.3%;
  /* stylin */
  background: linear-gradient(#eaeced, #edeef0 55%, #fff 55%, #8a8b8f 56%, #999ba0 61%, #4B4B4F 84%, #262627 89%, rgba(0, 0, 0, .01) 98%);
  border-radius: 0 0 10% 10%/ 0 0 50% 50%;
}

.base::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.8) 0.5%, rgba(0, 0, 0, 0.4) 3.3%, transparent 15%, rgba(255, 255, 255, 0.8) 50%, transparent 85%, rgba(0, 0, 0, 0.4) 96.7%, rgba(255, 255, 255, 0.8) 99.5%, rgba(0, 0, 0, 0.5) 100%);
  content: "";
  height: 53%;
  position: absolute;
  top: 0;
  width: 100%;
}

.notch {
  background: #ddd;
  border-radius: 0 0 7% 7% / 0 0 95% 95%;
  box-shadow: -5px -1px 3px rgba(0, 0, 0, 0.2) inset, 5px -1px 3px rgba(0, 0, 0, 0.2) inset;
  margin-left: auto;
  margin-right: auto;
  margin-top: -3.5%;
  z-index: 2;
  /* for aspect ratio */
  position: relative;
  width: 14%;
}

.notch:before {
  content: "";
  display: block;
  /* for aspect ratio ~1:10 */
  padding-top: 10%;
}

/* Screenshot Hover Scroll Additions
  -------------------------------------------------------------- */

.macbook .viewport {
  transition: background-position 3s ease;
  background-position: 0 0;
  background-size: 100% auto;
  overflow: hidden;
  cursor: pointer;
}

.macbook:hover .viewport {
  background-position: 0 100%;
}

.macbook .viewport:after {
  background: radial-gradient(circle at right bottom, transparent 75%, rgba(255, 255, 255, 0.05) 75%, transparent);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.small {
  width: 40px;
  margin: 10px;
}



/* ***************    TIMELINE    ************** */
/* Vertical Timeline https://codepen.io/tutsplus/pen/QNeJgR */
.timeline ul {
  background: white;
  margin: 0;
  overflow-x: hidden;
  padding: 50px 0;
}

.timeline ul li {
  list-style-type: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  padding-top: 50px;
  background: orange;
}

.timeline ul li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: inherit;
  z-index: 1;
}

.timeline ul li div {
  position: relative;
  bottom: 0;
  width: 400px;
  padding: 15px;
  background: #9dcd5a;
}

.timeline ul li div::before {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ul li:nth-child(odd) div {
  left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
  left: -15px;
  border-width: 8px 16px 8px 0;
  border-color: transparent #9dcd5a transparent transparent;
}

.timeline ul li:nth-child(even) div {
  left: -439px;
}

.timeline ul li:nth-child(even) div::before {
  right: -15px;
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent #9dcd5a;
}

time {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}


/* EFFECTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline ul li::after {
  transition: background 0.5s ease-in-out;
}

.timeline ul li.in-view::after {
  background: #9dcd5a;
}

.timeline ul li div {
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.timeline ul li:nth-child(odd) div {
  transform: translate3d(0, 28px, 0);
}

.timeline ul li:nth-child(even) div {
  transform: translate3d(0, 28px, 0);
}

.timeline ul li.in-view div {
  transform: none;
  visibility: visible;
  opacity: 1;
  color: white;
}


/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media screen and (max-width: 900px) {
  .timeline ul li div {
    width: 250px;
  }

  .timeline ul li:nth-child(even) div {
    left: -289px;
    /*250+45-6*/
  }
}

@media screen and (max-width: 600px) {
  .timeline ul li {
    margin-left: 20px;
  }

  .timeline ul li div {
    width: calc(100vw - 91px);
  }

  .timeline ul li:nth-child(even) div {
    left: 45px;
  }

  .timeline ul li:nth-child(even) div::before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent #9dcd5a transparent transparent;
  }
}


/* EXTRA/CLIP PATH STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.timeline-clippy ul li::after {
  width: 40px;
  height: 40px;
  border-radius: 0;
}

.timeline-rhombus ul li::after {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.timeline-rhombus ul li div::before {
  bottom: 12px;
}

.timeline-star ul li::after {
  clip-path: polygon(50% 0%,
      61% 35%,
      98% 35%,
      68% 57%,
      79% 91%,
      50% 70%,
      21% 91%,
      32% 57%,
      2% 35%,
      39% 35%);
}

.timeline-heptagon ul li::after {
  clip-path: polygon(50% 0%,
      90% 20%,
      100% 60%,
      75% 100%,
      25% 100%,
      0% 60%,
      10% 20%);
}

.timeline-infinite ul li::after {
  animation: scaleAnimation 2s infinite;
}

@keyframes scaleAnimation {
  0% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.25);
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}


/* ***************    BUTTON TIMELINE    ************** */
.buttonTimeline {
  background-color: transparent;
  /*white*/
  color: white;
  /*orange*/
  font-family: inherit;
  border: 2px solid white;
  /*orange*/
  padding: 15px 32px;
  text-align: left;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.buttonTimeline {
  transition-duration: 0.4s;
  text-align: center;
}

.buttonTimeline:hover {
  background-color: orange;
  color: white;
  border: 2px solid orange;
  transform: scale(.95);
}


/* ***************    GREEN SECTION    ************** */
.greenSection {
  background: #9dcd5a;
  color: white;
}


/* ***************    PICTURE    ************** */
.aboutPicture {
  width: 100px;
  cursor: pointer;
}

.smallPicture {
  width: 100px;
}


/* ***************    TOGGLE    ************** */
.toggle {
  position: relative;

}


/* ***************    LOGIN SPY    ************** */
/* loginmask spy soruce: https://codemyui.com/spy-login-form-replica-from-readmeio/ */
.spy {
  margin: auto;
  width: 211px;
  height: 120px;
  background: url("spy-login.png");
  position: relative;
}

.spy .hand {
  width: 34px;
  height: 34px;
  border-radius: 40px;
  background-color: #F4C617;
  transform: scaleY(0.6);
  position: absolute;
  left: 14px;
  bottom: -15px;
  transition: 0.3s ease-out;
}

.spy .hand.password {
  transform: translateX(42px) translateY(-15px) scale(0.7);
}

.spy .hand.hand-r {
  left: 160px;
}

.spy .hand.hand-r.password {
  transform: translateX(-42px) translateY(-15px) scale(0.7);
}

.spy .arms {
  position: absolute;
  top: 80px;
  height: 40px;
  width: 100%;
  overflow: hidden;
}

.spy .arms .arm {
  width: 40px;
  height: 65px;
  background-image: url("spy-login-arm.png");
  position: absolute;
  left: 18px;
  top: 40px;
  /* 40px */
  transition: 0.3s ease-out;
}

.spy .arms .arm.password {
  transform: translateX(40px) translateY(-40px);
}

.spy .arms .arm.arm-r {
  left: 158px;
  transform: scaleX(-1);
}

.spy .arms .arm.arm-r.password {
  transform: translateX(-45px) translateY(-40px) scaleX(-1);
}


/*-- ***************    POPUP MODAL   ************** --*/
/* Source: https://codepen.io/Carl-the-menace/pen/bpQdVw */
#cover {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .8);
  z-index: 900;
}

.cover-infobox {
  background: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  /* Source: https://www.w3schools.com/css/css3_shadows_box.asp */
  width: 50%;
  margin: 100px auto;
  padding: 40px;
}

.close-infobox {
  color: white;
}

#infobox-toggle {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  position: fixed;
  right: 22px;
  bottom: 22px;
  color: #3d3c3b;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(24, 43, 86, 0.18);
  z-index: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#infobox-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(24, 43, 86, 0.22);
}

.roundNumber {
  background: orange;
  border-radius: 100%;
  color: white;
  display: inline-block;
  font-weight: bold;
  margin-right: 10px;
  text-align: center;
  width: 25px;
}



/* ***************    PICS STARTPAGE     ************** */
.clickMe {
  cursor: pointer;
}

.clickMe:hover {
  color: orange;
}


/* ***************    NAVIGATION OVERLAY HOVER    ************** */
.navHover:hover {
  color: white;
}


/* ***************    RESTAURANT LOGO    ************** */
.logo {
  border: 2px solid black;
  border-radius: 100%;
  padding: 10px;
  width: 120px;
}


/* ***************    TEXT-ALIGN    ************** */
.left-align {
  text-align: left;
}

.right-align {
  text-align: right;
}


/* ***************    RESTAURANT MENU    ************** */
.dishHeadline {
  font-weight: 300;
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

.dishText {
  padding-right: 20px;
  padding-left: 20px;
  line-height: 1.3;
}

.menuButton:active {
  color: white;
  background-color: orange;
  border: 2px solid orange;
}

/* ***************    BY MERLIN PAGE CHROME    ************** */
.site-header,
.site-header *,
.site-footer,
.site-footer *,
.webservice-project-intro,
.webservice-project-intro * {
  box-sizing: border-box;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e5e9ef;
  text-align: left;
  backdrop-filter: blur(18px);
  font-family: var(--font-main);
}

html[data-theme="dark"] .site-header {
  background: rgba(10, 16, 32, 0.86);
  border-bottom-color: rgba(200, 220, 255, 0.18);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand [data-brand-label],
html[data-theme="dark"] .site-header .nav-links a {
  color: #c8dcff;
}

html[data-theme="dark"] .brand img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .site-header .nav-links a:hover {
  color: #c8dcff;
  background: rgba(200, 220, 255, 0.08);
}

.nav-shell,
.webservice-project-inner,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #182b56;
  font-weight: var(--weight-heavy);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: block;
  object-fit: contain;
}

.brand [data-brand-label] {
  display: inline-flex;
  align-items: center;
  color: #182b56;
  font-size: var(--text-sm);
  font-weight: var(--weight-heavy);
  line-height: 1;
  white-space: nowrap;
}

.brand-label-prefix,
.brand-label-suffix {
  display: inline;
}

.brand [data-brand-label]:not(.is-typewriter) .brand-label-prefix:not(:empty) {
  margin-right: 0.28em;
}

.brand-label-cursor {
  width: 1px;
  height: 1.05em;
  display: none;
  flex: 0 0 1px;
  margin-right: 3px;
  background: currentColor;
}

.brand [data-brand-label].is-typewriter .brand-label-cursor {
  display: inline-block;
  animation: brandCursorBlink 1.05s steps(1, end) infinite;
}

@keyframes brandCursorBlink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

.site-header .nav-links {
  min-width: 0;
  width: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.site-header .nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 14px;
  color: #182b56;
  background: transparent;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .nav-links a:hover {
  color: #182b56;
  background: #f3f5f8;
}

#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0%;
  height: 4px;
  background: #182b56;
  pointer-events: none;
}

.webservice-project-intro {
  padding: 24px 0;
  background: #f3f5f8;
  border-bottom: 1px solid #e5e9ef;
  color: #17223a;
  font-family: var(--font-main);
}

.webservice-project-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.webservice-food-logo {
  width: 92px;
  min-height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(24, 43, 86, 0.1);
}

.webservice-food-logo img {
  width: 72px;
  height: auto;
  display: block;
  object-fit: contain;
}

.webservice-project-copy {
  min-width: 0;
}

.webservice-eyebrow {
  margin: 0 0 4px;
  color: #182b56;
  font-size: var(--text-xs);
  font-weight: var(--weight-heavy);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.webservice-project-copy h1 {
  margin: 0;
  color: #182b56;
  font-size: var(--section-title-size);
  line-height: 1.1;
  font-weight: var(--weight-heavy);
}

.webservice-project-copy p:last-child {
  margin: 7px 0 0;
  color: #61708a;
  font-size: var(--text-base);
  line-height: 1.4;
}

.webservice-project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.webservice-project-actions a,
.webservice-project-actions .button {
  width: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 15px;
  color: #ffffff;
  background: #182b56;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.webservice-project-actions a:first-child {
  color: #182b56;
  background: #ffffff;
}

.webservice-project-actions a:hover,
.webservice-project-actions .button:hover {
  color: #ffffff;
  background: #263c70;
}

.site-content {
  margin-bottom: 0;
  padding-bottom: 44px;
}

#start,
#logInKnopf {
  margin-top: 12px;
  min-width: 190px;
}

.loginText {
  margin: 0;
}

.webservice-hero {
  margin: 0;
  padding: 54px 0 58px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
}

.webservice-hero .wrapper-vision {
  max-width: 760px;
}

.webservice-hero p {
  color: #3d3c3b;
  font-size: var(--text-md);
  line-height: 1.65;
}

.webservice-hero .button {
  margin-top: 12px;
  border-color: #182b56;
  color: #182b56;
  border-radius: 999px;
  font-weight: var(--weight-bold);
}

.webservice-hero .button:hover {
  color: #ffffff;
  background: #182b56;
  transform: none;
}

.webservice-section {
  padding: 74px 0;
  background: #ffffff;
  color: #17223a;
  font-family: var(--font-main);
}

.webservice-section-tint {
  background: #f3f5f8;
}

.webservice-section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.webservice-section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.webservice-section-heading p {
  margin: 0 0 8px;
  color: #6f8f40;
  font-size: var(--text-xs);
  font-weight: var(--weight-heavy);
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.webservice-section-heading h2 {
  margin: 0;
  color: #182b56;
  font-size: var(--section-title-size);
  line-height: 1.12;
  font-weight: var(--weight-heavy);
}

.webservice-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.webservice-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.webservice-card,
.webservice-list-card {
  min-width: 0;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(24, 43, 86, 0.11);
}

.webservice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  text-align: center;
}

.webservice-person-card {
  align-items: center;
}

.webservice-person-card .expert-picture {
  width: 156px;
  height: 156px;
  margin: 0 0 18px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f6;
}

.webservice-card h3 {
  margin: 0 0 12px;
  color: #182b56;
  font-size: var(--text-lg);
  line-height: 1.2;
  font-weight: 900;
}

.webservice-card p {
  margin: 0;
  color: #3d3c3b;
  font-size: var(--text-base);
  line-height: 1.6;
}

.webservice-feature-card {
  justify-content: space-between;
  min-height: 310px;
}

.webservice-image-row {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 18px;
}

.webservice-image-row img {
  flex: 0 1 auto;
  max-width: 76px;
  max-height: 92px;
  object-fit: contain;
}

.webservice-image-row .aboutPicture {
  cursor: pointer;
}

.webservice-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.webservice-split .webservice-section-heading {
  margin: 0;
  text-align: left;
}

.webservice-section-icon {
  width: 130px;
  height: auto;
  margin-top: 24px;
}

.webservice-list-card {
  padding: 28px;
}

.webservice-list-card p {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 34px;
  color: #3d3c3b;
  font-size: 1rem;
  line-height: 1.55;
  border-bottom: 1px solid #e5e9ef;
}

.webservice-list-card p:last-child {
  border-bottom: 0;
}

.webservice-list-card p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d96b5f;
}

.webservice-list-card-positive p::before {
  background: #7c9c4a;
}

.site-footer {
  width: 100%;
  padding: 34px 0;
  background: #182b56;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  font-family: var(--font-main);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-logo,
.footer-inner img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  object-fit: contain;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.footer-brand-block,
.footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-actions {
  justify-content: flex-end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: #ffffff;
}

html[data-theme="dark"] .site-footer {
  background: #070c18;
  border-top: 1px solid rgba(200, 220, 255, 0.12);
}

.theme-switch {
  position: relative;
  width: 104px;
  min-width: 104px;
  height: 52px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-switch::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #1265f2;
  box-shadow: 0 8px 20px rgba(18, 101, 242, 0.26);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), background 0.2s ease, box-shadow 0.2s ease;
}

.theme-switch[aria-pressed="true"]::before {
  transform: translateX(52px);
  background: #182B56;
  box-shadow: 0 8px 20px rgba(24, 43, 86, 0.34);
}

.theme-switch-option {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #b6c0c8;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.theme-switch[aria-pressed="false"] .theme-switch-sun,
.theme-switch[aria-pressed="true"] .theme-switch-moon {
  color: #ffffff;
}

.theme-switch[aria-pressed="false"] .theme-switch-moon,
.theme-switch[aria-pressed="true"] .theme-switch-sun {
  color: #b8c2cc;
}

.theme-switch:hover,
.theme-switch:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  outline: 0;
}

html[data-theme="dark"] .theme-switch {
  background: rgba(255, 255, 255, 0.9);
}

.process-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 18, 36, 0.78);
  overscroll-behavior: none;
}

html.process-lightbox-open,
body.process-lightbox-open {
  overflow: hidden;
}

body.process-lightbox-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.process-lightbox.is-open {
  display: flex;
}

.process-lightbox-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(86vh, 880px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.process-lightbox-dialog h2 {
  margin: 0;
  padding-right: 54px;
  color: #182b56;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 900;
}

.process-lightbox-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.process-lightbox-tools button,
.process-lightbox-tools span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e9ef;
  border-radius: 999px;
  padding: 8px 14px;
  color: #182b56;
  background: #f3f5f8;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.process-lightbox-tools button {
  min-width: 42px;
  cursor: pointer;
}

.process-lightbox-tools .process-zoom-button {
  width: 50px;
  min-width: 50px;
  height: 50px;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1;
}

.process-lightbox-tools button:hover,
.process-lightbox-tools button:focus-visible {
  color: #ffffff;
  background: #182b56;
  border-color: #182b56;
}

.process-lightbox-tools span {
  min-width: 74px;
  background: #ffffff;
}

.process-lightbox-viewport {
  width: 100%;
  max-height: calc(86vh - 176px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 6px;
  background: #f3f5f8;
}

.process-lightbox-viewport img {
  width: 100%;
  display: block;
  object-fit: contain;
  transform-origin: top left;
}

.process-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: #182b56;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.process-lightbox-close:hover {
  background: #263c70;
}

.clickMe[role="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
}

.clickMe[role="button"]:focus-visible {
  outline: 3px solid #182b56;
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .webservice-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --section-title-size: 1.95rem;
    --text-lg: 1.12rem;
  }

  .nav-shell,
  .webservice-project-inner,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .brand span {
    display: none;
  }

  .site-header .nav-links {
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .webservice-project-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .webservice-food-logo {
    width: 82px;
    min-height: 82px;
  }

  .webservice-food-logo img {
    width: 64px;
  }

  .webservice-project-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .webservice-project-actions a,
  .webservice-project-actions .button {
    flex: 1 1 150px;
  }

  .webservice-hero {
    padding: 42px 0 46px;
  }

  .webservice-section {
    padding: 54px 0;
  }

  .webservice-section-inner {
    width: min(100% - 28px, 1120px);
  }

  .webservice-team-grid,
  .webservice-feature-grid,
  .webservice-split {
    grid-template-columns: 1fr;
  }

  .webservice-feature-card {
    min-height: auto;
  }

  .webservice-split {
    gap: 26px;
  }

  .webservice-split .webservice-section-heading {
    text-align: center;
  }

  .webservice-section-icon {
    width: 104px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-lightbox {
    padding: 14px;
  }

  .process-lightbox-dialog {
    padding: 16px;
  }

  .process-lightbox-viewport {
    max-height: calc(86vh - 168px);
  }

  .process-lightbox-tools button,
  .process-lightbox-tools span {
    flex: 1 1 auto;
  }
}


/* ***************    WEBSERVICE APP FLOW    ************** */
#progressBarUl,
#friends,
#restaurants {
  box-sizing: border-box;
}

ul#progressBarUl {
  width: min(1120px, calc(100% - 40px));
  display: flex;
  gap: 8px;
  margin: 28px auto 18px;
  border: 0;
}

ul#progressBarUl li {
  width: auto;
  flex: 1 1 0;
  float: none;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f5f8;
}

ul#progressBarUl li a {
  height: auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  line-height: 1.15;
  color: #182b56;
  font-weight: 800;
}

ul#progressBarUl li.active {
  background: #7c9c4a;
}

ul#progressBarUl li.active a {
  padding-left: 12px;
}

ul#progressBarUl li.active a::before,
ul#progressBarUl li.active a::after {
  display: none;
}

#loginmaske,
#insert,
#liste,
#restaurantList,
#foodMenu,
.infoboxen {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

#validateForm,
#insert {
  max-width: 760px;
}

#validateForm {
  width: min(100%, 560px);
  border-radius: 8px;
}

#insert {
  padding: 26px;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(24, 43, 86, 0.11);
}

#validateForm input,
#insert input,
#insert input[type=submit] {
  width: min(100%, 420px);
}

#avatar,
#diet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
}

#avatar label,
#diet label {
  margin: 0;
}

#insert .option-input.radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.avatar-choice {
  width: 96px;
  height: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e9ef;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.avatar-choice:hover {
  border-color: #182b56;
  transform: translateY(-1px);
}

#insert .option-input.radio:checked + .avatar-choice {
  border-color: #7c9c4a;
  background: #f2f7ea;
  box-shadow: 0 0 0 4px rgba(124, 156, 74, 0.18);
}

#insert .option-input.radio:focus-visible + .avatar-choice {
  outline: 3px solid #182b56;
  outline-offset: 3px;
}

#avatar .avatar,
#diet .avatar {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

#friends {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 0;
}

#friends li {
  width: min(250px, 100%);
  margin: 0;
  border-radius: 8px;
  line-height: 1.35;
}

#restaurants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
}

#restaurants li {
  width: auto;
  display: block;
  position: relative;
  margin: 0;
  padding: 24px;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  line-height: 1.35;
  box-shadow: 0 18px 55px rgba(24, 43, 86, 0.11);
}

#restaurants li.restaurant-perfect-match {
  border-color: rgba(124, 156, 74, 0.72);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf1 100%);
  box-shadow: 0 22px 62px rgba(84, 116, 38, 0.18);
}

#restaurants li.restaurant-not-match {
  border-color: rgba(163, 67, 57, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #fff7f6 100%);
}

.restaurant-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.restaurant-card-copy {
  min-width: 0;
  text-align: left;
}

.restaurant-card-copy h3 {
  margin: 8px 0 4px;
  color: #182b56;
  font-size: 1.28rem;
  line-height: 1.15;
}

.restaurant-card-copy p,
.restaurant-stars {
  margin: 0;
  color: #3d3c3b;
  line-height: 1.4;
}

.restaurant-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.restaurant-card-action {
  margin-top: 18px;
}

.restaurant-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #3f6418;
  background: #eaf4dd;
  font-size: var(--text-xs);
  font-weight: 900;
}

.restaurant-match-badge-positive {
  color: #3f6418;
  background: #eaf4dd;
}

.restaurant-match-badge-positive i {
  color: #547426;
}

.restaurant-match-badge-negative {
  color: #8d332b;
  background: #f8e5e2;
}

.restaurant-match-badge-negative i {
  color: #a34339;
}

.restaurantButton {
  width: 100%;
  border-color: #182b56;
  border-radius: 999px;
  color: #182b56;
  font-weight: 800;
}

.restaurantButton:hover {
  background: #182b56;
  border-color: #182b56;
  color: #ffffff;
  transform: none;
}

.restaurant-reaction-label {
  margin: 22px 0 10px;
  color: #61708a;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.restaurant-reactions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 10px;
}

.restaurant-reaction-friend {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f3f5f8;
}

.friend-mini {
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 0;
}

.friend-mini .imgAttribut {
  display: flex;
  justify-content: center;
}

.friend-mini .avatar {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.friend-mini .friend-diet-icon {
  width: 56px;
  height: 56px;
  margin-top: -10px;
}

.friend-mini .friend-name {
  max-width: 100%;
  padding: 5px 0 0;
  color: #17223a;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.friend-is-happy .friend-name {
  color: #547426;
}

.friend-is-sad .friend-name {
  color: #a34339;
}

.infoboxen .wrapper {
  max-width: 100%;
}

.infoboxen .infobox {
  margin: 0;
  border-radius: 8px;
  line-height: 1.45;
}

.wrapper-long {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.wrapper-long .menuButton {
  flex: 1 1 150px;
  max-width: 220px;
  border-radius: 999px;
  text-align: center;
}

@media (max-width: 900px) {
  #restaurants {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-content {
    padding-bottom: 64px;
  }

  ul#progressBarUl,
  #loginmaske,
  #insert,
  #liste,
  #restaurantList,
  #foodMenu,
  .infoboxen {
    width: min(100% - 28px, 1120px);
  }

  ul#progressBarUl {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 18px;
    margin-bottom: 16px;
  }

  ul#progressBarUl li {
    width: 100%;
    flex: 0 0 auto;
    border-radius: 8px;
  }

  ul#progressBarUl li a {
    min-height: 42px;
    justify-content: flex-start;
    padding: 11px 14px;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
  }

  .cover-infobox {
    width: min(100% - 28px, 560px);
    margin: 80px auto;
    padding: 24px;
  }

  #infobox-toggle {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  #validateForm,
  #insert {
    width: 100%;
    padding: 18px;
  }

  .formular {
    margin: 24px 0;
  }

  input,
  input[type=submit],
  #validateForm input,
  #insert input,
  #insert input[type=submit] {
    width: 100%;
  }

  .spy {
    transform: scale(0.82);
    transform-origin: center bottom;
  }

  #avatar,
  #diet {
    gap: 8px;
  }

  .avatar-choice {
    width: 76px;
    height: 76px;
  }

  #avatar .avatar,
  #diet .avatar {
    width: 62px;
    height: 62px;
  }

  .option-input.radio {
    margin: 12px 0;
  }

  #friends li {
    width: 100%;
    padding: 18px;
  }

  #restaurants li {
    padding: 18px;
  }

  .restaurant-card-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .restaurant-card-copy {
    text-align: center;
  }

  .restaurant-label-row {
    justify-content: center;
  }

  .restaurant-reactions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wrapper-long .menuButton {
    max-width: none;
  }

  #start,
  #logInKnopf {
    width: min(100%, 360px);
    margin-top: 14px;
  }

  .footer-brand-block,
  .footer-actions {
    width: 100%;
    align-items: flex-start;
  }

  .footer-actions {
    flex-direction: column;
  }
}
