/* Leseprobe Popup Styles */
.leseprobe-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: lpFadeIn 0.2s ease;
  transition: opacity 0.2s;
}

/* Phase 1: Gate */
.leseprobe-popup-gate {
  background: white;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: lpSlideUp 0.25s ease;
}

.leseprobe-badge {
  display: inline-block;
  background: #1abc9c;
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.leseprobe-gate-title {
  color: #0d3b6e;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
}

.leseprobe-gate-sub {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 24px;
}

.leseprobe-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  color: #1c2833;
  background: #f9fafb;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.leseprobe-input:focus {
  outline: none;
  border-color: #1abc9c;
  box-shadow: 0 0 0 3px rgba(26,188,156,0.15);
}

.leseprobe-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: #1abc9c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.leseprobe-submit:hover { background: #16a085; }
.leseprobe-submit:disabled { background: #9ca3af; cursor: wait; }

.leseprobe-hint {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin: 16px 0 0;
  line-height: 1.5;
}

.leseprobe-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #9ca3af;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.leseprobe-close:hover { color: #374151; }

/* Phase 2: Content */
.leseprobe-popup-content {
  background: white;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: lpSlideUp 0.25s ease;
}

.leseprobe-popup-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d3b6e;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}
.leseprobe-popup-header .leseprobe-close {
  position: static;
  color: rgba(255,255,255,0.7);
}
.leseprobe-popup-header .leseprobe-close:hover { color: white; }

.leseprobe-header-title {
  color: white;
  font-size: 16px;
  font-weight: 700;
}

.leseprobe-popup-body {
  overflow-y: auto;
  padding: 32px;
  flex: 1;
}

.leseprobe-popup-footer {
  padding: 20px 32px;
  border-top: 1px solid #e5e7eb;
  background: #0a1628;
  border-radius: 0 0 12px 12px;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Markdown Content */
.leseprobe-content h1 { color: #0d3b6e; font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.leseprobe-content h2 { color: #0d3b6e; font-size: 17px; font-weight: 700; margin: 28px 0 8px; }
.leseprobe-content h3 { color: #1a5276; font-size: 15px; font-weight: 700; margin: 20px 0 6px; }
.leseprobe-content p  { color: #1c2833; line-height: 1.75; margin: 0 0 14px; font-size: 15px; }
.leseprobe-content blockquote {
  background: #eaf4fb;
  border-left: 4px solid #1abc9c;
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 8px 8px 0;
}
.leseprobe-content blockquote p { margin: 0; color: #1a5276; font-style: italic; }
.leseprobe-content strong { color: #0d3b6e; }
.leseprobe-content em { color: #5d6d7e; }
.leseprobe-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 24px 0; }
.leseprobe-content a { color: #1abc9c; text-decoration: underline; }
.leseprobe-content a:hover { color: #16a085; }

/* End marker */
.leseprobe-end-marker {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  letter-spacing: 2px;
  margin: 32px 0 24px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.leseprobe-end-box {
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 8px;
}
.leseprobe-end-title { color: #0d3b6e; font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.leseprobe-end-list { padding-left: 18px; margin: 0; }
.leseprobe-end-list li { color: #374151; font-size: 14px; line-height: 1.7; margin-bottom: 4px; }

/* Buttons */
.btn-amazon {
  flex: 1;
  background: #1abc9c;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: background 0.2s;
}
.btn-amazon:hover { background: #16a085; }

.btn-bedarfsanalyse {
  flex: 1;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: border-color 0.2s;
}
.btn-bedarfsanalyse:hover { border-color: white; }

/* Mobile */
@media (max-width: 640px) {
  .leseprobe-popup-gate { padding: 28px 20px; }
  .leseprobe-popup-footer { flex-direction: column; }
  .leseprobe-popup-body { padding: 20px; }
  .leseprobe-gate-title { font-size: 20px; }
}

/* Animations */
@keyframes lpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
