@import url("../styles/offcanvas.css");
@import url("../styles/darkmode.css");

* {
  box-sizing: border-box;
}


html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: sans-serif;
  background-color: #f5f5f5;
  padding: 2rem;
}

.chatgpt-tipps {
  max-width: 800px;
  margin: auto;
}

.chatgpt-tipps h1 {
  color: #005c99;
  margin-bottom: 0.5rem;
}

.chatgpt-tipps p {
  margin-bottom: 1.5rem;
}

.karte,
.filter-kategorien {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: #f7f7f7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 95vw !important;       /* Begrenzung auf Viewport */
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;

}

.karte h2,
.filter-kategorien h2 {
  margin-top: 0;
  color: #333;
}

.filter-leiste {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  background-color: transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 95vw;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  overflow-x: auto;
  white-space: normal;
}




.prompt-box {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
}



code {
  background: #e6e6e6;
  padding: 0.5rem;
  border-radius: 4px;
  flex: 1 1 auto;
  font-size: 0.95rem;
  display: block;
  width: 95%;
  max-width: 95%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}

button {
  background-color: #005c99;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  width: auto;
  max-width: fit-content;
}

button:hover {
  background-color: #0077cc;
}

.lehrertipp {
  background-color: #fff8e1;
  border-left: 4px solid #fbc02d;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 2rem;
  width: 99%;
}

.community-box {
  background-color: #f0f8ff;
  border-left: 4px solid #2196f3;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 6px;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
  width: 99%;
}

.community-box a {
  color: #005c99;
  font-weight: bold;
  text-decoration: none;
}

.community-box a:hover {
  text-decoration: underline;
}


@media (max-width: 900px) {
  .prompt-box {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-kategorien {
    max-width: 95vw;
    width: 95%;
    padding: 1rem;
  }

  code {
    word-break: break-word;
    white-space: pre-wrap;
  }
}


@media (max-width: 600px) {
  .karte,
  .filter-kategorien {
    padding: 0.75rem;
    margin-bottom: 1rem;
    max-width: 100%;
  }

  .prompt-box {
    flex-direction: column;
    align-items: stretch;
  }

  
  

}

@media (prefers-color-scheme: dark) {
  body:not(.lightMode) .karte,
  body:not(.lightMode) .filter-kategorien {
    background-color: #1f2937;
    color: #f3f4f6;
    border-color: #444;
  }

  body:not(.lightMode) .community-box {
    background-color: #1a2a3a;
    color: #e0e0e0;
  }

  body:not(.lightMode) .lehrertipp {
    background-color: #3a3a1a;
    color: #fff9c4;
    border-left-color: #fdd835;
  }

  body:not(.lightMode) code {
    background: #3a3f44;
    color: #dddddd;
    border: 1px solid #555;
  }

  body:not(.lightMode) button {
    background-color: #0077cc;
    color: white;
  }

  body:not(.lightMode) button:hover {
    background-color: #3399ff;
  }

  /* Neue Ergänzungen */
  body:not(.lightMode) h2,
  body:not(.lightMode) h3 {
    color: #ffffff;
  }

  body:not(.lightMode) filter-leiste {
    background-color: #2f2f2f; /* Hellgrauer Hintergrund im Dunkelmodus */
    color: #f0f0f0;
  }
}



