/* ============================================================
   powerlink.css  –  Powerlink Modal Stylesheet
   Einmalig in /assets/ ablegen. Gilt für alle Powerlink-Seiten.
   Anpassen: Nur diese Datei ändern → alle Seiten aktualisiert.
   ============================================================ */

/* Overlay */
#pl-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
#pl-overlay.pl-visible {
  opacity: 1;
  pointer-events: all;
}

/* Modal */
#pl-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 430px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  z-index: 9999;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.04),
    0 12px 32px rgba(0,0,0,0.10),
    0 32px 72px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#pl-modal.pl-visible {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* Banner */
#pl-banner {
  padding: 22px 26px 16px;
  position: relative;
}
#pl-close {
  position: absolute; top: 11px; right: 13px;
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.22);
  border: none; border-radius: 50%;
  font-size: 13px; color: #fff;
  cursor: pointer; line-height: 26px; text-align: center;
  transition: background 0.2s;
}
#pl-close:hover { background: rgba(255,255,255,0.38); }

.pl-label {
  font-family: sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin: 0 0 5px;
}
.pl-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px; font-weight: 700;
  color: #fff; line-height: 1.3;
  margin: 0;
}
.pl-badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px; padding: 5px 11px;
  font-family: sans-serif; font-size: 11px; color: #fff;
}

/* Body */
#pl-body { padding: 20px 26px 12px; }
.pl-subtitle {
  font-family: sans-serif;
  font-size: 13px; color: #777;
  line-height: 1.7; margin: 0 0 16px;
}

/* systeme.io iframe */
#pl-form-wrapper iframe {
  width: 100%; border: none;
  min-height: 155px; display: block;
}

/* Fallback-Formular */
#pl-fallback-form { display: flex; flex-direction: column; gap: 8px; }
#pl-fallback-form input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e5e0d8; border-radius: 8px;
  font-family: sans-serif; font-size: 14px; color: #1a1a1a;
  background: #faf9f7; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#pl-fallback-form input:focus {
  border-color: var(--pl-color, #c0392b);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
  background: #fff;
}
#pl-btn-submit {
  width: 100%; padding: 13px; border: none; border-radius: 8px;
  font-family: sans-serif; font-size: 15px; font-weight: 600;
  color: #fff; cursor: pointer; margin-top: 3px;
  transition: filter 0.15s, transform 0.1s;
}
#pl-btn-submit:hover  { filter: brightness(0.9); }
#pl-btn-submit:active { transform: scale(0.99); }

/* Datenschutz */
#pl-privacy {
  font-family: sans-serif; font-size: 11px; color: #bbb;
  line-height: 1.55; padding: 0 26px 10px;
}
#pl-privacy a { color: #bbb; }
#pl-privacy a:hover { color: #888; }

/* Footer */
#pl-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 26px 20px;
}
#pl-brand { font-family: sans-serif; font-size: 11px; color: #ccc; text-decoration: none; }
#pl-brand:hover { color: #888; }

/*
  DSGVO: Ablehnungstext bezieht sich auf die Einwilligung,
  nicht auf den Artikel-Inhalt. Kein Dark Pattern.
*/
#pl-deny {
  font-family: sans-serif; font-size: 12px; color: #aaa;
  background: none; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.2s;
}
#pl-deny:hover { color: #555; }

/* ── Mobile: Modal kommt von unten ── */
@media (max-width: 480px) {
  #pl-modal {
    border-radius: 14px 14px 0 0;
    top: auto; bottom: 0; left: 0; right: 0;
    transform: translateY(8px) scale(0.98);
    max-width: 100%; width: 100%;
  }
  #pl-modal.pl-visible { transform: translateY(0) scale(1); }
  #pl-banner { padding: 18px 20px 14px; }
  #pl-body   { padding: 16px 20px 10px; }
  #pl-footer { padding: 6px 20px 18px; }
  #pl-privacy { padding: 0 20px 8px; }
  .pl-title { font-size: 17px; }
}