body {
  background: radial-gradient(ellipse 550px 200px at center, #F2D7F3, #fffff0);
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin-top: 150px;
  margin-bottom: 150px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Body füllt immer das Fenster */
}

html,
body {
  height: 100%;
  /* zwingt Body auf volle Fensterhöhe */
  margin: 0;
}

h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 32;
  font-style: normal;
  text-align: center;
  margin: 0 0 10px 0;
  padding: 0 20px;
}

h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  text-align: center;
  line-height: 40px;
  margin: 0;
  margin-top: 10px;
  padding: 0;
}

h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 25px;
  text-align: left;
}

p {
  font-family: "Public Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  font-size: 18px;
}




a {
  text-decoration: none;
  color: #000;
}


svg {
  text-decoration: none;
  color: #000;
  align-items: center;
  cursor: pointer;
}

svg.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ----------------------------------
HEADER
---------------------------------- */

header hr {
  border: none;
  height: 1px;
  background-color: #000;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fffff0 40%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 0 0;
  z-index: 1000;
}

/* ------------------------------------
HOW TO USE BOX
------------------------------------ */

.how-to-use {
  background-color: #fffff0, 20%;
  padding: 20px;
  margin: 30px auto;
  margin-top: 120px;
  margin-bottom: 40px;
  border: 1px solid #000;
  border-radius: 10px;
  box-shadow: inset 0 4px 20px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset -1 -1px 4px 0 rgba(0, 0, 0, 0.15);
  box-shadow: inset 1 1px 20px 0 rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 520px;
  height: 130px
}


/* ------------------------------------
PROMPT BAR 
------------------------------------ */

.prompt-bar {
  background-color: #fffff0;
  padding: 20px;
  margin: 30px auto;
  border: 1px solid #000;
  border-radius: 10px;
  box-shadow: inset 1px 1px 20px 0 rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  width: 600px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  /* wichtig: Textarea wächst nach oben */
  justify-content: space-between;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.prompt-bar textarea {
  background: none;
  border: none;
  outline: none;
  resize: none;
  width: 100%;
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  color: #000;
  line-height: 28px;
  overflow: hidden;
  /* verhindert Scrollbalken */
  padding: 0;
  margin: 0;
  padding-right: 20px;
}

.prompt-bar textarea::placeholder {
  font-family: "Instrument Serif", serif;
  font-size: 22px;
  color: #000;
  letter-spacing: 0.5px;
}

.prompt-bar.hide {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
}




/* ------------------------------------
MIDDLE BOX MOVING
------------------------------------ */

/* Animation 1: Leichte Bewegung nach links/oben */
@keyframes float-side-1 {

  0%,
  100% {
    transform: translate(0px, 0px);
  }

  50% {
    transform: translate(-40px, -4px);
  }
}

/* Animation 2: Leichte Bewegung nach rechts/unten */
@keyframes float-side-2 {

  0%,
  100% {
    transform: translate(0px, 0px);
  }

  50% {
    transform: translate(40px, 4px);
  }
}

/* Animation 3: Nur wenig seitliche Verschiebung, mehr vertikal */
@keyframes float-side-3 {

  0%,
  100% {
    transform: translate(0px, 0px);
  }

  50% {
    transform: translate(40px, -8px);
  }
}

.box-middle {
  padding: 20px;
  margin: 20px auto;
  border: 1px solid #000;
  border-radius: 10px;
  box-shadow: inset 0 4px 20px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset -1 -1px 4px 0 rgba(0, 0, 0, 0.15);
  box-shadow: inset 1 1px 20px 0 rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 520px;
  height: 38px;
  cursor: pointer;

  /* WICHTIG FÜR ANIMATION */
  position: relative;
  /* Setzt den Ursprung für die Verschiebung */
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;

  /* VERTICAL ZENTRIERUNG für den Text (da Höhe 38px) */
  display: flex;
  align-items: center;
  /* Da der p-Text zentriert werden soll, passen wir den p-Stil an: */
}

.box-middle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Anpassung des p-Elements für vertikale Zentrierung in den Boxen */
.box-middle p {
  text-align: center;
  /* Horizontale Zentrierung */
  width: 100%;
  /* Nimmt die volle Breite ein */
  margin: 0;
  /* Entfernt Standard-Margin */
}

/* Individuelle Animation für jede Box (durch :nth-of-type) */
.box-middle:nth-of-type(2) {
  /* Die erste .box-middle Box im HTML */
  animation-name: float-side-1;
  animation-delay: 0s;
}

.box-middle:nth-of-type(3) {
  /* Die zweite .box-middle Box */
  animation-name: float-side-2;
  animation-delay: 2s;
  /* Versetzt starten */
}

.box-middle:nth-of-type(4) {
  /* Die dritte .box-middle Box */
  animation-name: float-side-3;
  animation-delay: 4s;
  /* Versetzt starten */
}

/* ----------------------------------
MOBILE OPTIMIZATION
---------------------------------- */

@media (max-width: 768px) {
  body {
    margin-top: 120px;
    margin-bottom: 100px;
    background-size: cover;
    background-position: center;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
    line-height: 30px;
  }

  p {
    font-size: 16px;
  }

  /* Adjust How To Use Box */
  .how-to-use {
    width: 85%;
    height: auto;
    min-height: auto;
    /* Remove fixed min-height constraint if content is small */
    margin-top: 40px;
    /* Reduced from 100px */
    padding: 20px;
    /* More padding */
    margin-bottom: 40px;
    /* Increased spacing after */
  }

  /* Adjust Middle Boxes */
  .box-middle {
    width: 85%;
    height: auto;
    min-height: 50px;
    /* Slightly taller minimum */
    padding: 20px;
    margin: 30px auto;
    /* Increased vertical spacing */
  }

  .box-middle p {
    text-align: center;
    white-space: normal;
    line-height: 1.5;
    /* Better readability */
    font-size: 16px;
  }

  /* Adjust Prompt Bar */
  .prompt-bar {
    width: calc(100% - 40px);
    /* Full width minus padding */
    max-width: none;
    /* Remove max-width constraint if any */
    padding: 15px 20px;
    bottom: 20px;
    border-radius: 12px;
    /* Slightly softer corners */
  }

  .prompt-bar textarea {
    font-size: 18px;
  }

  /* Adjust Header Line */
  header hr {
    width: 100%;
    left: 0;
    margin-left: 0;
  }
}