/* Cookie-Hinweis und Karten-Vorschalter.
   Bewusst ohne Bootstrap-Klassen, damit beides den geplanten Umbau des
   Templates übersteht. Farben und kantige Ecken folgen lbt.css:
   Grün #164f1e, Akzent #ffd900, Hellgrau #eee. */

/* ---------- Cookie-Hinweis ---------- */

.lbt-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1100;
  padding: 1rem;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .3s ease;
}

.lbt-consent.is-visible {
  opacity: 1;
}

.lbt-consent[hidden] {
  display: none;
}

.lbt-consent-panel {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem;
  background: #fff;
  border-top: 4px solid #164f1e;
  box-shadow: 0 -2px 18px rgba(0, 0, 0, .25);
}

.lbt-consent-copy {
  flex: 1 1 26rem;
  min-width: 0;
}

.lbt-consent-kicker {
  margin: 0 0 .25rem;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #164f1e;
}

.lbt-consent-title {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  color: #164f1e;
}

.lbt-consent-copy p {
  margin: 0 0 .75rem;
  font-size: .95rem;
  line-height: 1.5;
}

.lbt-consent-details {
  margin: 0 0 .75rem;
  font-size: .9rem;
}

.lbt-consent-details summary {
  cursor: pointer;
  color: #164f1e;
  font-weight: 700;
}

.lbt-consent-details summary:focus-visible {
  outline: 2px solid #164f1e;
  outline-offset: 2px;
}

/* Die Tabelle darf auf schmalen Schirmen scrollen, aber nie die Seite
   horizontal aufziehen. */
.lbt-consent-table-wrap {
  margin: .75rem 0;
  max-width: 100%;
  overflow-x: auto;
}

.lbt-consent-table-wrap table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

.lbt-consent-table-wrap th,
.lbt-consent-table-wrap td {
  padding: .4rem .6rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
  font-size: .85rem;
}

.lbt-consent-table-wrap th {
  background: #eee;
  color: #164f1e;
}

.lbt-consent-table-wrap code {
  font-size: .8rem;
  word-break: break-all;
}

.lbt-consent-note {
  margin: .5rem 0 0;
  font-size: .85rem;
  color: #434343;
}

/* Einzelschalter je optionalem Dienst */
.lbt-consent-form {
  margin: 0 0 .75rem;
  padding: .75rem;
  background: #f6f6f6;
  border-left: 3px solid #164f1e;
}

.lbt-consent-choice {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: 0 0 .5rem;
  cursor: pointer;
}

.lbt-consent-choice:last-of-type {
  margin-bottom: 0;
}

.lbt-consent-choice input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: .15rem 0 0;
  accent-color: #164f1e;
  cursor: pointer;
}

.lbt-consent-choice span {
  display: block;
  font-size: .9rem;
  line-height: 1.4;
}

.lbt-consent-choice strong {
  display: block;
  color: #164f1e;
}

.lbt-consent-choice small {
  display: block;
  margin-top: .15rem;
  color: #434343;
  font-size: .82rem;
}

.lbt-consent-choice input:focus-visible {
  outline: 2px solid #164f1e;
  outline-offset: 2px;
}

.lbt-consent-links {
  margin: 0;
  font-size: .9rem;
}

.lbt-consent-links a {
  color: #164f1e;
  text-decoration: underline;
}

.lbt-consent-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 12rem;
}

.lbt-consent-btn {
  display: inline-block;
  padding: .6rem 1.2rem;
  border: 1px solid #164f1e;
  border-radius: 0;
  background: #fff;
  color: #164f1e;
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.lbt-consent-btn-primary {
  background: #164f1e;
  color: #eee;
}

.lbt-consent-btn-primary:hover,
.lbt-consent-btn-primary:focus {
  color: #ffd900;
}

.lbt-consent-btn-outline:hover,
.lbt-consent-btn-outline:focus {
  background: #eee;
}

.lbt-consent-btn:focus-visible {
  outline: 2px solid #164f1e;
  outline-offset: 2px;
}

/* Footer-Schalter zum erneuten Öffnen */
.lbt-consent-reopen {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 40rem) {
  .lbt-consent-panel {
    padding: 1rem;
  }

  .lbt-consent-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
  }

  .lbt-consent-btn {
    flex: 1 1 10rem;
  }
}

/* ---------- Karten-Vorschalter ---------- */

.lbt-map-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 400px;
  padding: 1.5rem;
  background: #eee;
  border: 1px solid #ddd;
  text-align: center;
}

.lbt-map-gate-title {
  margin: 0;
  font-size: 1.1rem;
  color: #164f1e;
}

.lbt-map-gate p {
  margin: 0;
  max-width: 34rem;
  font-size: .9rem;
  line-height: 1.5;
  color: #434343;
}

.lbt-map-gate a {
  color: #164f1e;
  text-decoration: underline;
}

/* Der Kartencontainer bekommt seine Höhe erst, wenn Leaflet geladen ist -
   vorher füllt der Vorschalter die Fläche. */
.lbt-map-canvas {
  min-height: 400px;
}
