* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: Arial, sans-serif;
    background-color: #F2F2F2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #333;
    width: 350px;
    margin: 0 auto; /* zentriert auf der Seite */
  }

  .faster-one-regular {
    font-family: "Faster One", system-ui;
    font-weight: 400;
    font-style: normal;
  }

  .header {
    background-color: #FFE600;
    padding: 16px 24px;
    border-radius: var(--Corner-Extra-large, 28px);
    margin-bottom: 32px;
    box-shadow: 0px 4px 7.8px 4px rgba(0, 0, 0, 0.25);
    width: 400px;
    z-index: 1; /* Unterste Ebende, relevant für Animation */
    position: relative;

  }

  .search-container {
    background-color: #d8d8d8;
    padding: 24px;
    border-radius: var(--Corner-Extra-large, 28px);
    width: 100%;
    max-width: 600px;
    margin-bottom: 32px;
    box-shadow: 0px 4px 7.8px 4px rgba(0, 0, 0, 0.25);
    animation: slideUpFadeIn 0.8s ease-out;
    z-index: 3; /* liegt VOR der Result-Box, relevant für Animation, damit sie hinter der Suchbox hervorkommt */
    position: relative;

  }
  .search-container h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  .search-box {
    display: flex;
    align-items: center;
    background-color: #F0EDF5;
    border-radius: 50px;
    padding: 8px 16px;
    position: relative;
  }
  .search-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  .search-box input {
    border: none;
    background: transparent;
    flex: 1;
    margin: 0 12px;
    font-size: 1rem;
    outline: none;
    color: #333;
  }

  /* Ergebnisbereich */
  .result, .error {
    background-color: #343434;
    color: #FFF;
    padding: 24px;
    border-radius: var(--Corner-Extra-large, 28px);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    justify-content: space-between;
    box-shadow: 0px 4px 7.8px 4px rgba(0, 0, 0, 0.25);
    animation: slideUpFadeIn 0.8s ease-out;
    z-index: 1; /* liegt hinter der Such-Box, Relevant für Animation */
    position: relative;

  }

  .result .text {
    display: flex;
    flex-direction: column;
  }
.name {
    font-size: 1.75rem;
    color: #FFE600;
    margin-bottom: 4px;
  }
  .result .text p {
    font-size: 1.125rem;
    opacity: 0.9;
  }

  button {
    border: none;
    transition: transform 0.2s ease;
  }

  button:hover {
    transform: scale(1.1);
  }

 /*Hilfsklassen */
.hidden, .hiddenerror {
    display: none;
}

/*Suchvorschau*/
.suggestions {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    background: rgb(164, 168, 209);
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    z-index: 10;
    border-radius: 15px;
}

.suggestions.hidden {
    display: none;
}

.suggestions li {
    padding: 8px;
    cursor: pointer;
}

.suggestions li:hover {
    background-color: #f0f0f0;
}

/* Animation Result */
@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}