@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Responsive Design */
@media (min-width: 768px) {
  body {
    width: 100vw;
    height: 100vh;
    margin: 0px 0px;
    padding: 0px;
  }

  .container {
    max-width: 650px;
    min-width: 300px;
    min-height: calc(100vh - 40px);
    overflow: hidden;
    margin: 20px auto;
    padding: 20px;
    border: 10px double #000;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 20px;

    background-image: url("antik2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(
      186,
      186,
      186,
      0.572
    ); /* Etwas heller für bessere Lesbarkeit */
    background-blend-mode: overlay;
  }

  .header {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px;
  }

  .header-vase {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 4em;
    text-align: center;
  }

  h1 {
    width: 100%;
    font-size: 2em;
    color: #2c1810;
    text-align: center;
  }

  .inschrift {
    font-size: 1.2em;
    color: #215066;
    text-shadow: 0px 0px 15px #8b6f47;
  }

  .inschrift-untertitel {
    font-size: 1.6em;
    color: #0d1138b9;
  }

  .button-container {
    width: 600px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0px;
    padding: 10px;
  }

  .topic-btn {
    width: fit-content;
    padding: 5px 10px;
    font-size: 1.2em;
    background-color: #bba483;
    color: #2c1810;
  }

  .topic-btn:hover {
    color: #bba483;
    background-color: #2c1810;
  }

  .eigene-frage-btn {
    max-width: 300px;
    padding: 5px;
    font-size: 1.1em;
    letter-spacing: 0.001em;
    background-color: #0541798a;
    color: #d1e7fa;
    border-radius: 15px;
    border: 1px solid #acd7ffc2;
  }

  .eigene-frage-btn:hover {
    color: #f7fcff;
    background-color: #022047;
  }

  .befragen-btn {
    width: 500px;
    padding: 5px;
    font-size: 1.4em;
    letter-spacing: 0.001em;
    background-color: #2d4a80;
    color: #cee3ff;
    border-radius: 15px;
    text-align: center;
    margin: 10px;
    border: 5px solid #b2c0fd50;
  }

  .befragen-btn:hover {
    background-color: #00a2ff42;
    color: #04002b;
    border: 5px solid #00082b50;
  }

  .zurueck {
    width: fit-content;
    padding: 10px 20px;
    color: #112911cd;
    background-color: transparent;
    font-size: 1.3em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    transition: 0.3s;
    margin-bottom: -20px;
  }

  .zurueck:hover {
    color: #cbffdccd;
    background-color: #002b10d7;
  }

  #status {
    width: 500px;
    color: #03250bde;
    font-weight: 600;
    text-align: center;
    font-size: 1.8em;
    box-shadow: inset 0 0 20px 10px #103f1641;
    margin: 20px;
    border-radius: 40%;
    padding: 30px;
  }

  #orakel-ausgabe {
    width: 600px;
    margin: 10px;
    height: fit-content;
    background-color: #d1f2ffe5;
    color: #0d0f57d3;
    border: 5px double #010f5e;
    padding: 10px;
    text-align: center;
    font-size: 1.8em;
  }
  #phase-befragung {
    width: 600px;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    padding: 10px;
    text-align: center;
  }

  .input-section {
    width: calc(100% - 0px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin: 0px;
    padding: 0px;
  }

  label {
    width: calc(100% - 20px);
    font-size: 1em;
    color: #2c1810;
    text-align: center;
  }

  textarea {
    width: 95%;
    max-width: 1200px;
    min-width: 500px;
    height: 150px;
    min-height: 80px;
    padding: 12px;
    margin: 0 auto;
    border: 5px double #013457;
    border-radius: 4px;
    background: hsl(205, 100%, 86%);
    font-family: "Crimson Text", serif;
    font-size: 1.5em;
    color: #10122c;
    box-sizing: border-box;
  }

  textarea:focus {
    outline: none;
    border-color: #47578b;
    box-shadow: 0 0 10px rgba(71, 89, 139, 0.5);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    width: 100vw;
    height: 100vh;
    margin: 0px;
    padding: 0px;

    background-image: url("antik2.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(43, 43, 43, 0.514); /* Etwas heller für bessere Lesbarkeit */
    background-blend-mode: overlay;
    overflow: hidden;
  }

  .container {
    width: calc(100% - 5px);
    height: calc(100vh - 10px);
    overflow: hidden;
    margin: 2px;
    padding: 0px;
    border: 5px double #000;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: start;
    align-items: stretch;
    gap: 5px;
  }

  .header {
    width: calc(100% -20px);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px;
  }

  .header-vase {
    margin: 0;
    padding: 0;
    font-size: 2em;
  }

  h1 {
    font-size: 1.6em;
    color: #2c1810;
  }

  .inschrift {
    font-size: 1.1em;
    color: #4f4331;
    text-shadow: 0px 0px 15px #8b6f47;
  }

  .inschrift-untertitel {
    font-size: 0.98em;
    color: #38260d;
  }

  .button-container {
    width: calc(100% - 0px);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0px;
    padding: 5px;
  }

  .topic-btn {
    width: fit-content;
    padding: 5px 5px;
    font-size: 1em;
    background-color: #bba483;
    color: #2c1810;
  }

  .topic-btn:hover {
    color: #bba483;
    background-color: #2c1810;
  }

  .eigene-frage-btn {
    width: calc(80% - 20px);
    padding: 5px;
    font-size: 1em;
    letter-spacing: 0.001em;
    background-color: #ffcab2;
    color: #5c4940;
    border-radius: 15px;
  }

  .eigene-frage-btn:hover {
    width: calc(100% - 10px);
    padding: 4px;
    font-size: 0.8em;
    background-color: #fedbc4;
    color: #471502;
    border: 1px solid #4a170350;
  }

  .befragen-btn {
    width: calc(100% - 10px);
    padding: 5px;
    font-size: 1em;
    letter-spacing: 0.001em;
    background-color: #80472d;
    color: #ffd7c5;
    border-radius: 15px;
    text-align: center;
    margin: 10px;
  }

  .befragen-btn:hover {
    padding: 4px;
    font-size: 0.8em;
    background-color: #fedbc4;
    color: #471502;
    border: 1px solid #4a170350;
  }

  .zurueck {
    width: calc(100% - 0px);
    padding: 10px 20px;
    color: #250b01e3;
    background-color: transparent;
    font-size: 0.9em;
    font-weight: 600;
    border: none;
  }

  .zurueck:hover {
    width: calc(100% - 0px);
    padding: 2px 30px;
    color: #ffe1d6cd;
    background-color: #38260d7e;
    font-size: 0.9em;
    font-weight: 300;
    border: none;
  }

  #status {
    width: calc(100% - 50px);
    color: #240e05;
    font-weight: 600;
    text-align: center;
    font-size: 1.2em;
    box-shadow:inset 0 0 10px 20px #80472d50;
    margin: 25px;
    padding: 20px;
    border-radius: 40%;
  }

  #orakel-ausgabe {
    width: calc(100% - 40px);
    margin: 10px auto;
    height: fit-content;
    background-color: #f0d6b2;
    color: #2c1810;
    border: 5px double #2c1810;
    padding: 10px;
    text-align: center;
    font-size: 1.3em;
  }
  #phase-befragung {
    width: calc(100% - 20px);
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0px;
    padding: 10px;
  }

  .input-section {
    width: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin: 20px;
    padding: 0px;
  }

  label {
    width: calc(100% - 20px);
    font-size: 1em;
    color: #2c1810;
    text-align: center;
  }

  textarea {
    width: 100%;
    margin: 0;
    height: 150px;
    min-height: 80px;
    padding: 10px;
    border: 5px double #3e3001;
    border-radius: 4px;
    background: #fff8dc;
    font-family: "Crimson Text", serif;
    font-size: 1em;
    color: #2c1810;
    line-height: 1.1;
    box-sizing: border-box;
  }

  textarea:focus {
    outline: none;
    border-color: #8b6f47;
    box-shadow: 0 0 10px rgba(139, 111, 71, 0.5);
  }
}

/* Ladeanimation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.loading {
  animation: pulse 0.7s ease-in-out infinite;
}
