/* Grüne Flotte – eigenständiges Hinweis-Popup (isoliert von gf-schnell-*) */

.gf-popup-root[hidden] {
  display: none !important;
}

.gf-popup-root {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.gf-popup-root[aria-hidden="true"] {
  pointer-events: none;
  visibility: hidden;
}

.gf-popup-root[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.gf-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.gf-popup-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(88vh, 640px);
  max-height: min(90dvh, 640px);
  margin: 0;
  padding: 20px 20px 16px;
  box-sizing: border-box;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: "Open Sans", sans-serif;
  color: #222222;
  outline: none;
}

.gf-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: #222222;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.gf-popup-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.gf-popup-close:focus-visible {
  outline: 3px solid #82ba26;
  outline-offset: 2px;
}

.gf-popup-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 12px;
  border-radius: 8px;
}

.gf-popup-title {
  margin: 0 40px 10px 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #222222;
}

.gf-popup-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.gf-popup-text p:first-child {
  margin-top: 0;
}

.gf-popup-text p:last-child {
  margin-bottom: 0;
}

.gf-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.gf-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #82ba26;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.gf-popup-btn:hover {
  background: #000000;
  color: #ffffff !important;
}

.gf-popup-btn:focus-visible {
  outline: 3px solid #82ba26;
  outline-offset: 2px;
}

.gf-popup-btn--secondary {
  background: #ffffff;
  color: #222222 !important;
  box-shadow: inset 0 0 0 2px #82ba26;
}

.gf-popup-btn--secondary:hover {
  background: #f6f6f6;
  color: #000000 !important;
}

@media (max-width: 480px) {
  .gf-popup-dialog {
    max-width: calc(100vw - 32px);
    padding: 16px 14px 14px;
  }

  .gf-popup-actions {
    flex-direction: column;
  }

  .gf-popup-btn,
  .gf-popup-btn--secondary {
    width: 100%;
  }
}
