/* FAQ-Assistent Stufe 1 (AP4, Plan Kap. 8.3) — Floating-Button + Panel.
   Site-Look: BS4-Farbwelt (#FFB500), Dark-Mode via [data-theme="dark"]. */

.pdfa-knopf {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 0;
  border-radius: 50rem;
  background: #FFB500;
  color: #fff;
  font-weight: 600;
  padding: .7rem 1.2rem;
  box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.pdfa-knopf:hover { background: #e6a300; transform: translateY(-2px); }
.pdfa-knopf i { font-size: 1.1rem; }
@media (max-width: 575px) {
  .pdfa-knopf span { display: none; }        /* mobil nur Icon */
  .pdfa-knopf { padding: .85rem 1rem; }
}

/* Nach-oben-Knopf (style.css: bottom 30px) ueber den Frage-Knopf heben, sonst liegt er dahinter */
.back-to-top { bottom: 5rem; }

.pdfa-panel {
  position: fixed;
  right: 1.1rem;
  bottom: 4.6rem;
  z-index: 1050;
  width: 380px;
  max-width: calc(100vw - 2.2rem);
  max-height: min(75vh, 640px);
  display: none;
  flex-direction: column;
  background: #fff;
  color: #212529;
  border: 1px solid rgba(128, 128, 128, .35);
  border-radius: 18px;
  box-shadow: 0 .6rem 2rem rgba(0, 0, 0, .3);
  overflow: hidden;
}
.pdfa-panel.pdfa-offen { display: flex; }

.pdfa-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: #FFB500;
  color: #fff;
  padding: .8rem 1rem;
}
.pdfa-kopf h2 { font-size: 1.05rem; margin: 0; color: #fff; }
.pdfa-kopf p { margin: 0; font-size: .78rem; opacity: .9; }
.pdfa-schliessen {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .2rem;
}

.pdfa-inhalt {
  padding: .9rem 1rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

.pdfa-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.pdfa-chip {
  border: 1px solid rgba(128, 128, 128, .45);
  border-radius: 50rem;
  background: transparent;
  color: inherit;
  padding: .28rem .8rem;
  font-size: .85rem;
  cursor: pointer;
}
.pdfa-chip:hover { border-color: #FFB500; color: #FFB500; }

.pdfa-formular { display: flex; gap: .5rem; margin-bottom: .8rem; }
.pdfa-formular input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(128, 128, 128, .45);
  border-radius: 50rem;
  padding: .45rem .9rem;
  font-size: .95rem;
  background: #fff;
  color: inherit;
}
.pdfa-formular input:focus {
  outline: 0;
  border-color: #FFB500;
  box-shadow: 0 0 0 .15rem rgba(255, 181, 0, .25);
}
.pdfa-formular button {
  border: 0;
  border-radius: 50rem;
  background: #FFB500;
  color: #fff;
  padding: .45rem .95rem;
  cursor: pointer;
  flex: 0 0 auto;
}
.pdfa-formular button:hover { background: #e6a300; }

.pdfa-karte {
  border: 1px solid rgba(128, 128, 128, .35);
  border-radius: 12px;
  margin-bottom: .55rem;
  overflow: hidden;
}
.pdfa-karte > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-weight: 600;
  font-size: .92rem;
  padding: .6rem .8rem;
  cursor: pointer;
}
.pdfa-karte > button i { color: #FFB500; transition: transform .2s ease; flex: 0 0 auto; }
.pdfa-karte.pdfa-auf > button i { transform: rotate(180deg); }
.pdfa-karte-antwort {
  display: none;
  padding: 0 .8rem .7rem;
  font-size: .9rem;
}
.pdfa-karte.pdfa-auf .pdfa-karte-antwort { display: block; }
.pdfa-karte-antwort a { text-decoration: underline; }
.pdfa-ganze-antwort { display: inline-block; margin-top: .4rem; font-weight: 600; }

.pdfa-hinweis { font-size: .9rem; }

.pdfa-fallback {
  border-top: 1px dashed rgba(128, 128, 128, .45);
  margin-top: .6rem;
  padding-top: .7rem;
  font-size: .9rem;
}
.pdfa-fallback .btn { margin: .15rem .25rem .15rem 0; }

[data-theme="dark"] .pdfa-panel {
  background: #1f2b47;
  color: #d0cfe0;
  border-color: #2a3a5c;
}
[data-theme="dark"] .pdfa-formular input { background: #16213e; border-color: #2a3a5c; }
[data-theme="dark"] .pdfa-chip,
[data-theme="dark"] .pdfa-karte { border-color: #2a3a5c; }
[data-theme="dark"] .pdfa-fallback { border-top-color: #2a3a5c; }
