/* faq.css */

body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f9f9f9;
  color: #333;
}

h1 {
  text-align: center;
}

input#suche {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

button {
  margin: 0 5px 10px 0;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}

.gruppe {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #fff;
}

.gruppe h2 {
  cursor: pointer;
  font-size: 20px;
  margin: 0 0 10px 0;
  padding: 10px;
  color: #fff;
  background: linear-gradient(to right, #f18e00, rgba(46,50,84,0.8));
  border-radius: 6px;
}

/* Dynamisch versetzter Verlauf je Gruppe */
.gruppe:nth-of-type(1) h2 {
  background: linear-gradient(to right, #f18e00 0%, rgba(46,50,84,0.8) 70%);
}
.gruppe:nth-of-type(2) h2 {
  background: linear-gradient(to right, #f18e00 10%, rgba(46,50,84,0.8) 75%);
}
.gruppe:nth-of-type(3) h2 {
  background: linear-gradient(to right, #f18e00 20%, rgba(46,50,84,0.8) 80%);
}
.gruppe:nth-of-type(4) h2 {
  background: linear-gradient(to right, #f18e00 30%, rgba(46,50,84,0.8) 85%);
}
.gruppe:nth-of-type(5) h2 {
  background: linear-gradient(to right, #f18e00 40%, rgba(46,50,84,0.8) 90%);
}
.gruppe:nth-of-type(6) h2 {
  background: linear-gradient(to right, #f18e00 50%, rgba(46,50,84,0.8) 95%);
}
.gruppe:nth-of-type(7) h2 {
  background: linear-gradient(to right, #f18e00 60%, rgba(46,50,84,0.8) 100%);
}


.untergruppe {
  margin-left: 20px;
  margin-bottom: 10px;
}

.untergruppe h3 {
  cursor: pointer;
  font-size: 16px;
  margin: 5px 0;
  padding: 6px 10px;
  background-color: rgba(46,50,84,0.08);
  border-left: 4px solid #f18e00;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.untergruppe h3:hover {
  background-color: rgba(46,50,84,0.15);
}

.faq {
  margin-left: 20px;
  margin-bottom: 10px;
}

.frage {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 5px;
  padding: 6px 10px;
  background-color: rgba(46,50,84,0.08);
  border-left: 4px solid rgba(46,50,84,0.8);
  border-radius: 4px;
  transition: background-color 0.3s;
}

.frage:hover {
  background-color: rgba(46,50,84,0.15);
}

.antwort {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 2px solid #ccc;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  visibility: hidden;
}

.antwort.aktiv {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
}

.antwort table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.antwort ol {
  list-style-type: decimal;
  margin-left: 10px;
}

.antwort ul {
  list-style-type: disc;
  margin-left: 20px;
}

.antwort li {
  margin-bottom: 4px;
}

.antwort table, .antwort th, .antwort td {
  border: 1px solid #ccc;
}

.antwort th, .antwort td {
  padding: 8px;
  text-align: left;
}

.antwort img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.antwort .achtung::before {
  content: "\f071 ";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
  color: red;
}

.antwort .achtung {
  color: red;
  font-weight: bold;
}

.antwort .tipp::before {
  content: "\f0eb ";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #f18e00;
}

.antwort .tipp {
  color: #f18e00;
  font-weight: bold;
  font-style: italic;
}

.antwort .info::before {
  content: "\f129 ";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #2e3254;
}

.antwort .info {
  color: #2e3254;
  font-weight: bold;
}

.antwort .check::before {
  content: "\f00c ";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
  color: green;
}

.antwort .check {
  color: green;
  font-weight: bold;
}

.antwort .faq {
  background-color: #ffe;
  border-left: 4px solid #f18e00;
  padding: 4px 8px;
  font-weight: bold;
}

mark {
  background-color: yellow;
  padding: 0 2px;
  border-radius: 2px;
}

#ladeanzeige {
  font-style: italic;
  color: #666;
  margin: 20px 0;
  text-align: center;
}

.antwort li.dash::marker {
  content: "– ";
}

.btn {
  padding: 2px 4px;
  margin-top: -3px;
  margin-bottom: -1px;
  font-size: 12px;
  border-radius: 5px;
  background: linear-gradient(90deg,#f18e00,#cd7900);
  color: #fff;
  text-transform: uppercase;
  display: inline-block;
  vertical-align: middle;
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  backface-visibility: hidden;
  position: relative;
  transition-property: color;
  transition-duration: 0.3s;
  border: none;
  font-weight: 400;
  text-decoration: none;
}

@media screen and (max-width: 600px) {
  input, button {
    width: 100%;
    margin-bottom: 10px;
  }

  .gruppe h2 {
    font-size: 1em;
  }
}
