/* Gemeinsame Styles für alle Portal-Seiten */
:root {
  --orange:      #1b76bc;
  --orange-h:    #155f9e;
  --orange-bg:   #EEF5FB;
  --orange-ring: rgba(27,118,188,.18);
  --blue:        #0066CC;
  --green:       #1B7A3E;
  --red:         #C0392B;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-300:    #CBD5E1;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1E293B;
  --gray-900:    #0F172A;
  --white:       #FFF;
  --shadow-sm:   0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.05),0 2px 4px -1px rgba(0,0,0,.03);
  --radius:      12px;
  --radius-sm:   8px;
}

/* Spinner-Animation */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; display: inline-block; }

/* Preisanzeige */
.preis-box {
  background: var(--orange-bg);
  border: 2px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.preis-box .preis-label { font-size: 15px; font-weight: 600; color: var(--gray-700); }
.preis-box .preis-betrag { font-size: 28px; font-weight: 800; color: var(--orange); }
.preis-box .preis-details { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* Checkout Button */
.btn-checkout {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .2s ease;
  box-shadow: 0 4px 16px rgba(27,118,188,.3);
}
.btn-checkout:hover:not(:disabled) {
  background: var(--orange-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,118,188,.4);
}
.btn-checkout:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Stripe Badge */
.stripe-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 12px;
}
.stripe-badge svg { color: #635BFF; }

/* Mobile */
@media (max-width: 640px) {
  .preis-box { flex-direction: column; text-align: center; }
}

/* Info-Button (ℹ) */
.info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #EEF5FB; color: #1b76bc;
  cursor: pointer; flex-shrink: 0;
  vertical-align: middle; margin-left: 7px;
  user-select: none; border: 1.5px solid #A8CCEA;
  transition: background .15s, color .15s, transform .12s;
  padding: 0;
}
.info-btn:hover, .info-btn.tip-open {
  background: #1b76bc; color: #fff; border-color: #1b76bc;
  transform: scale(1.15);
}
.info-btn svg { display: block; }

/* Info-Popup (via JS erzeugt) */
#portal-info-popup {
  position: fixed; z-index: 9999;
  background: #1E293B; color: #fff;
  border-radius: 12px; padding: 16px 18px;
  width: 290px; box-shadow: 0 8px 28px rgba(0,0,0,.35);
  font-family: 'DM Sans', sans-serif;
  animation: fadeInPop .15s ease;
}
#portal-info-popup .pop-title {
  font-weight: 700; font-size: 14px;
  color: #93c5fd; margin-bottom: 8px;
}
#portal-info-popup .pop-desc {
  font-size: 13.5px; line-height: 1.65; color: #e2e8f0;
}
#portal-info-popup .pop-arrow {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}
#portal-info-popup .pop-arrow.down {
  border-top: 8px solid #1E293B;
  top: 100%;
}
#portal-info-popup .pop-arrow.up {
  border-bottom: 8px solid #1E293B;
  bottom: 100%;
}
@keyframes fadeInPop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Info-Tip Wrapper (CSS-basiert, kein JS-Positioning) */
.info-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.info-tip-box {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1E293B;
  color: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  width: 270px;
  z-index: 9999;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  font-family: 'DM Sans', sans-serif;
  pointer-events: none;
}
.info-tip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #1E293B;
}
.info-tip-wrap.open .info-tip-box { display: block; }
.itb-title { display: block; font-weight: 700; font-size: 14px; color: #93c5fd; margin-bottom: 8px; }
.itb-desc  { font-size: 13px; line-height: 1.6; margin: 0; color: #e2e8f0; }

/* Sidebar */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.main-funnel { min-width: 0; }
.sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sb-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}
.sb-header {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-800);
  margin: 0 0 16px;
  text-align: center;
}
.sb-phone-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--gray-600);
}
.sb-reach-title {
  font-size: 14px; font-weight: 700;
  color: var(--gray-700);
  text-align: center; margin: 0 0 6px;
}
.sb-hours {
  font-size: 13px; color: var(--gray-500);
  text-align: center; margin: 0 0 14px;
  line-height: 1.6;
}
.sb-phone-number {
  display: block;
  font-size: 22px; font-weight: 800;
  color: var(--orange);
  text-align: center;
  text-decoration: none;
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.sb-phone-number:hover { text-decoration: underline; }
.sb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .15s;
  box-sizing: border-box;
}
.sb-btn-call {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  margin-bottom: 0;
}
.sb-btn-call:hover { background: var(--orange-bg); }
.sb-oder {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0;
  color: var(--gray-400); font-size: 12px;
}
.sb-oder::before, .sb-oder::after {
  content: ''; flex: 1;
  height: 1px; background: var(--gray-200);
}
.sb-wa-row, .sb-email-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
}
.sb-wa-row strong, .sb-email-row strong {
  display: block; font-size: 13.5px; font-weight: 700;
  color: var(--gray-700); margin-bottom: 3px;
}
.sb-wa-row span, .sb-email-row span {
  font-size: 12px; color: var(--gray-500); line-height: 1.4;
}
.sb-wa-row svg { flex-shrink: 0; margin-top: 2px; }
.sb-email-row svg { flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.sb-btn-wa { background: #25D366; color: #fff; }
.sb-btn-wa:hover { background: #1EBE5A; }
.sb-btn-mail {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  margin-top: 4px;
}
.sb-btn-mail:hover { background: var(--orange-bg); }
.sb-more-title {
  font-size: 13px; font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 16px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.sb-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-card-title svg { color: var(--orange); flex-shrink: 0; }
.sb-divider { height: 1px; background: var(--gray-100); margin: 12px 0; }

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.faq-q svg { flex-shrink: 0; transition: transform .2s; color: var(--orange); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: none;
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.6;
  padding-bottom: 10px;
  margin: 0;
}
.faq-item.open .faq-a { display: block; }

@media (max-width: 900px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
}

/* Kauf auf Rechnung */
.rechnung-panel {
  margin-top: 24px;
  padding: 24px 28px;
  background: #FFFBF0;
  border: 2px solid #E8B84B;
  border-radius: var(--radius);
  animation: fadeInPop .2s ease;
}
.rechnung-panel.rp-hidden { display: none; }
.rechnung-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.rechnung-header svg { color: #966A00; flex-shrink: 0; }
.rechnung-hint {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0 0 20px;
  line-height: 1.6;
}
.btn-rechnung {
  background: #FFFBF0;
  color: #7A5B10;
  border: 2px solid #E8B84B;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
  white-space: nowrap;
}
.btn-rechnung:hover,
.btn-rechnung.rp-active { background: #FFF3C4; border-color: #C49600; color: #5E4408; }
.btn-rechnung-submit {
  background: #C49600;
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
  box-shadow: 0 4px 12px rgba(196,150,0,.28);
}
.btn-rechnung-submit:hover:not(:disabled) {
  background: #A07B00;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(196,150,0,.38);
}
.btn-rechnung-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Form field helpers used in rechnung panel */
.fg { margin-bottom: 20px; }
.lbl {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.lbl .req { color: inherit; }

/* Rechnung panel input styling (ensures consistent look on all pages) */
.rechnung-panel input[type=text],
.rechnung-panel input[type=tel],
.rechnung-panel input[type=date] {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.rechnung-panel input[type=text]:focus,
.rechnung-panel input[type=tel]:focus,
.rechnung-panel input[type=date]:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-ring);
}

/* Card-style submit option buttons */
.submit-options {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 540px) {
  .submit-options { flex-direction: column; }
}
.submit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  width: 100%;
}
.submit-card:hover {
  border-color: var(--orange);
  box-shadow: 0 3px 12px rgba(27,118,188,0.12);
  transform: translateY(-1px);
}
.submit-card-rechnung:hover,
.submit-card-rechnung.rp-active {
  border-color: #C49600;
  box-shadow: 0 3px 12px rgba(196,150,0,0.14);
}
.sc-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.sc-icon-blue { background: var(--orange); }
.sc-icon-gold { background: #C49600; }
.sc-text { flex: 1; min-width: 0; }
.sc-title { display: block; font-size: 15px; font-weight: 700; color: var(--gray-800); }
.sc-sub { display: block; font-size: 12.5px; color: var(--gray-500); margin-top: 2px; line-height: 1.4; }
.sc-arrow { color: #CBD5E1; flex-shrink: 0; transition: transform 0.15s; }
.submit-card.rp-active .sc-arrow { transform: rotate(90deg); }
