
.language-flag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 18px;
  cursor: pointer;
  border: 1px solid white;
  border-radius: 4px;
}

html, body {
  height: 92vh;
  width: 100%;
  margin: 0;
  padding: 0;
  background: black;
  color: white;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

#homeWrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  max-width: 400px;
  width: 80%;
  height: 100vh;
  padding: 1rem;
  box-sizing: border-box;
}

.logo-card {
  text-align: center;
}

.logo-img {
  width: 120px;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.grid {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;  /* gleichmäßige Abstände auch oben/unten */
  flex-grow: 1;
  width: 100%;
}

.row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.card {
  background: black;
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card img {
  width: 100%;
  height: auto;
  max-width: 100px;
}
.emContainer {
  width: 80%;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}
h2 {
  margin-bottom: 1rem;
}
#popup {
      display: none;
      background: rgba(0, 0, 0, 0.9);
      color: white;
      padding: 1rem;
      border-radius: 12px;
      max-width: 300px;
      text-align: center;
    }
#popup button {
      background: white;
      color: black;
      border: none;
      padding: 0.5rem 1rem;
      margin-top: 1rem;
      border-radius: 8px;
    }

#kbArea {
	width: 96%;
	height: 96%;
  max-width: 600px;
  height: 100%;
  margin: 10px auto;
  display: flex;
  flex-direction: column;
 # gap: 0.5rem;
 # padding: 1rem 0;
  box-sizing: border-box;
}
#pt2Area {
	width: 90%;
	height: 96%;
  max-width: 600px;
  height: 100%;
  margin: 0.3rem auto;
  display: flex;
  flex-direction: column;
 # gap: 0.5rem;
 # padding: 1rem 0;
  box-sizing: border-box;
}
#pt3Area {
	width: 96%;
	height: 96%;
  max-width: 400px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
 # gap: 0.5rem;
 # padding: 1rem 0;
  box-sizing: border-box;
}


#historyContainer,
#questionInput{
  border: 1px solid #ebab61;
  background: #222;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

#historyContainer {
  background: #222;
  padding: 0.5rem;
  height: 70vh;
  white-space: pre-wrap;
  overflow-y: auto;
  border: 1px solid #ebab61;
  border-radius: 8px;
   box-sizing: border-box;
}

#questionInput {
 padding: 0.5rem;
  font-size: 1rem;
  background: #111;
  color: white;
}
#code {
width: 100%;
padding: 0.5rem;
  border: 1px solid #ebab61;
  background: #111;
  color: white;
  font-size: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}
#email {
  border: 1px solid #ebab61;
 padding: 0.5rem;
  font-size: 2rem;
  background: #111;
  color: white;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}
.affInp{
  border: 1px solid #ebab61;
 padding: 0.3rem;
  font-size: 2rem;
  background: #111;
  color: white;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #ebab61;
  color: black;
  border: 1px solid white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
}
button:disabled {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #2F2F2F;
  color: black;
  border: 1px solid white;
  border-radius: 8px;
  cursor: not-allowed;
  font-size: 1rem;
  width: 100%;
}

#rating {
  display: none;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* per JS auf "flex" setzen */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#spinner {
  margin:auto;
  display: flex;
  width: 40px;
  height: 40px;
  border: 6px solid #333;
  border-top: 6px solid #ebab61;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
#supportIconAffiliate{
width: 128px;
height: 128px;
cursor: pointer; 
}
#supportIconNoAffiliate{
width: 128px;
height: 128px;
cursor: pointer; 
}
.affiliateButtons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.squareButton {
  width: 128px;
  height: 128px;
}
.formWrapper {
  width: 80%;
  height: 100%;
  max-width: 600px;
  box-sizing: border-box;
 }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#history a {
  color: #ebab61;
  text-decoration: underline;
  word-break: break-all; /* lange URLs umbrechen */
}
#history a:visited {
  opacity: .9;
}
