@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;
    background-color: #000000;
  }

  .container {
    max-width: 640px;
    min-width: 280px;
    width: calc(100% - 40px);
    min-height: calc(100vh - 40px);
    overflow: hidden;
    margin: 20px auto;
    padding: 20px;
    border: 10px double #afaeae;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background-color: rgba(46, 40, 23, 0.182);

    background-image: url("antik2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
  }

  .header {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    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.1em;
    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: 7px 10px;
    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 0px;
    border: 1px solid #b2c0fdb6;
    transition: 0.3s;
  }

  .befragen-btn:hover {
    background-color: #00337b;
    color: #b9cfff;
    border: 1px solid #98d1ff;
    box-shadow: 0px 0px 20px 10px #7fc5ff78;
  }

  .zurueck {
    width: fit-content;
    padding: 5px 10px;
    margin-bottom: 40px;
    color: #282911cd;
    background-color: #f4ff7f33;
    border: 1px solid #c9f9c4;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s;
  }

  .zurueck:hover {
    color: #fdffcbcd;
    background-color: #4f5b0255;
    box-shadow: 0px 0px 20px 10px #f2ff7f44;
  }

  #status {
    width: 500px;
    height: fit-content;
    color: #a8bdfc;
    /*background-color: #010f5e2b;*/
    font-weight: 600;
    text-align: center;
    font-size: 1.3em;
    /* box-shadow: inset 0 0 60px 60px #103f16b2; */
    margin: 10px;
    border-radius: 20%;
    padding: 10px;
  }

  #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: 2.8em;
  }

  #phase-befragung {
    width: 600px;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0px 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: calc(100% - 10px);
    max-width: 1200px;
    min-width: 500px;
    min-height: 80px;
    height: auto;
    padding: 12px;
    margin: 0;
    border: 5px double #013457;
    border-radius: 4px;
    background: hsl(205, 100%, 86%);
    font-family: "Crimson Text", serif;
    font-size: 1.5em;
    /* Increased font size */
    color: #10122c;
    box-sizing: border-box;
    resize: none;
    overflow-y: hidden;
    /* Hide scrollbar for auto-resize */
  }

  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% - 0px);
    height: calc(100vh - 0px);
    overflow: hidden;
    margin: 0px;
    padding: 0px;
    border: 10px double #000;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0px;
  }

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

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

  h1 {
    width: calc(100% - 0px);
    font-size: 1.6em;
    color: #2c1810;
    text-align: center;
  }

  .inschrift {
    width: calc(100% - 0px);
    font-size: 1.1em;
    color: #4f4331;
    text-shadow: 0px 0px 15px #8b6f47;
    text-align: center;
  }

  .inschrift-untertitel {
    width: calc(100% - 0px);
    font-size: 0.98em;
    color: #38260d;
    text-align: center;
  }

  .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: 0.8em;
    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: #ffd8c8e3;
    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% - 10px);
    color: #240e05;
    font-weight: 600;
    text-align: center;
    font-size: 1.2em;
    /*box-shadow: inset 0 0 10px 20px #80472d50;*/
    margin: 0px;
    padding: 5px;
    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.5em;
  }

  #phase-befragung {
    width: calc(100% - 0px);
    height: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: start;
    align-items: center;
    gap: 3px;
    margin: 0px;
    padding: 0px;
  }

  .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% - 0px);
    font-size: 1em;
    color: #2c1810;
    text-align: center;
  }

  textarea {
    width: calc(100% - 0px);
    margin: 0;
    min-height: 80px;
    height: auto;
    padding: 5px;
    border: 5px double #3e3001;
    border-radius: 4px;
    background: #fff8dc;
    font-family: "Crimson Text", serif;
    font-size: 1.5em;
    color: #2c1810;
    line-height: 1.2;
    box-sizing: border-box;
    resize: none;
    overflow-y: hidden;
  }

  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.5;
  }
}

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