/* VanTrail Google-Analytics-Einwilligung (Paket GA1).
   Gehoert zu /assets/ga-consent.js. Eigene, vorangestellte Klassen
   (`vtga-`) mit festen Farben aus der VanTrail-Palette, damit dasselbe
   Panel auf allen oeffentlichen Seiten und spaeter in der App gleich
   aussieht. Kleines, NICHT modales Panel unten rechts - keine
   Vollbildsperre. "Erlauben" und "Ablehnen" tragen bewusst dieselbe
   Klasse: keine Antwort wird hervorgehoben. Groessen in rem, damit
   200 % Textgroesse lesbar bleibt (das Panel scrollt dann in sich). */

.vtga-panel[hidden],
.vtga-footer-item[hidden] { display: none !important; }

.vtga-panel {
  position: fixed;
  z-index: 70;
  right: 16px;
  bottom: 16px;
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 18px;
  background: #15271e;
  color: #f4f6f5;
  border: 1px solid #3a5245;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: break-word;
}
.vtga-panel *,
.vtga-panel *::before,
.vtga-panel *::after { box-sizing: border-box; }

.vtga-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.vtga-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f4f6f5;
}
/* Die Ueberschrift bekommt den Fokus nur programmatisch (tabindex -1). */
.vtga-title:focus { outline: none; }
.vtga-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #f4f6f5;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.vtga-close:hover { border-color: #3a5245; }

.vtga-panel p { margin: 10px 0 0; }
.vtga-text { color: #d3dbd6; }
.vtga-state { color: #f4f6f5; font-weight: 600; }
.vtga-status { color: #f4f6f5; }
.vtga-status:empty { display: none; }
.vtga-panel a {
  color: #a7c957;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vtga-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.vtga-btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: #f4f6f5;
  background: #0e1c16;
  border: 1px solid #6f8a7a;
  border-radius: 16px;
  cursor: pointer;
}
.vtga-btn:hover { border-color: #a7c957; }
.vtga-btn[disabled] { opacity: .55; cursor: not-allowed; }

.vtga-btn:focus-visible,
.vtga-close:focus-visible,
.vtga-panel a:focus-visible,
.vtga-footer-btn:focus-visible {
  outline: 2px solid #ffb703;
  outline-offset: 2px;
}

/* Footer-Knopf: sieht aus wie die Footer-Links daneben. */
.vtga-footer-btn {
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  color: var(--muted, #aeb8b2);
  text-align: left;
  cursor: pointer;
}
.vtga-footer-btn:hover { color: var(--text, #f4f6f5); }
.vtga-footer-status {
  display: block;
  margin-top: 8px;
  max-width: 36ch;
  font-size: 14px;
  color: var(--muted, #aeb8b2);
}
.vtga-footer-status:empty { display: none; }

@media (max-width: 480px) {
  .vtga-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px 16px 14px;
  }
}
@media (max-width: 340px) {
  .vtga-actions { grid-template-columns: 1fr; }
}

/* Beide Antworten bleiben auch auf kleinen Bildschirmen bei langem Text
   sichtbar. Der Text scrollt hinter der blickdichten Auswahlleiste. */
.vtga-actions {
  position: sticky;
  bottom: -18px;
  z-index: 1;
  background: #15271e;
  padding-top: 12px;
  padding-bottom: 18px;
  margin-bottom: -18px;
}
@media (max-width: 480px) {
  .vtga-actions { bottom: -14px; padding-bottom: 14px; margin-bottom: -14px; }
}

/* Kurze erste Ebene, weiterfuehrende Angaben bei Bedarf. */
.vtga-details { margin: 10px 0; }
.vtga-details summary { cursor: pointer; color: #dce9c8; padding: 6px 0; }
.vtga-details summary:focus-visible { outline: 2px solid #accd5b; outline-offset: 3px; }
