/* ==========================================================================
   support.css – Support-Seite
   ========================================================================== */

/* ── NAV ACTIVE STATE ── */
.nav__active { color: var(--primary-l) !important; }


/* ── PAGE HEADER ── */
.sp-header {
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
  border-bottom: 1px solid var(--divider);
  background:
          radial-gradient(ellipse 60% 80% at 0% 50%, rgba(0,122,255,.07) 0%, transparent 70%);
}

.sp-header__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--dim);
}

.sp-breadcrumb a {
  text-decoration: none;
  color: var(--dim);
  transition: color .2s;
}

.sp-breadcrumb a:hover { color: var(--muted); }
.sp-breadcrumb svg { width: 12px; height: 12px; flex-shrink: 0; }

.sp-header__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .92;
}

.sp-header__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-header__sub {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 500px;
}

.sp-header__chips {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid var(--divider);
  color: var(--muted);
  background: transparent;
}

.sp-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.sp-chip:hover { border-color: var(--primary); color: var(--primary-l); background: rgba(0,122,255,.07); }

.sp-chip--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,122,255,.3);
}

.sp-chip--primary:hover {
  background: var(--primary-l);
  border-color: var(--primary-l);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,122,255,.4);
}


/* ── SECTIONS ── */
.sp-section {
  padding: 5rem var(--page-padding);
}

.sp-section--alt {
  background: var(--bg-mid);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}


/* ── FORM LAYOUT ── */
.sp-form-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .sp-form-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}


/* ── CONTACT INFO ── */
.sp-form-info h2 { line-height: .93; }

.sp-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 2rem;
}

.sp-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.sp-contact-item__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(0,122,255,.09);
  border: 1px solid rgba(0,122,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .1rem;
}

.sp-contact-item__icon svg { width: 15px; height: 15px; }

.sp-contact-item__label {
  font-size: .68rem;
  color: var(--dim);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}

.sp-contact-item__val {
  font-size: .88rem;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
  line-height: 1.4;
}

a.sp-contact-item__val:hover { color: var(--primary-l); }

.sp-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 2rem;
  padding: .5rem 1rem;
  border-radius: 100px;
  background: rgba(52,199,89,.08);
  border: 1px solid rgba(52,199,89,.22);
  font-size: .78rem;
  color: var(--success);
}

.sp-status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2.5s ease infinite;
}


/* ── FORM CARD ── */
.sp-form-card {
  background: var(--bg-mid);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.sp-form-card form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .sp-form-row { grid-template-columns: 1fr; }
  .sp-form-card { padding: 1.5rem; }
}

/* Fields */
.sp-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.sp-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sp-field__counter {
  font-family: var(--font-body);
  font-size: .68rem;
  color: var(--dim);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.sp-field__hint {
  font-family: var(--font-body);
  font-size: .72rem;
  color: var(--dim);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  margin-left: .4rem;
}

/* Plattform-Feld – nur bei "Fehler melden" einblenden */
.sp-field--os {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, margin .28s ease;
  margin: -0.625rem 0; /* 2 gaps à 1.25rem → 1 gap kompensieren */
}

.sp-field--os.sp-field--os-visible {
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
  margin: 0;
}

.sp-field input,
.sp-field textarea {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: .72rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
  width: 100%;
}

.sp-field input::placeholder,
.sp-field textarea::placeholder { color: var(--dim); }

.sp-field input:focus,
.sp-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,122,255,.1);
}

/* Select */
.sp-select-wrap { position: relative; }

.sp-select-wrap select {
  width: 100%;
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: .72rem 2.5rem .72rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .88rem;
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.sp-select-wrap select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,122,255,.1);
}

.sp-select-wrap select option,
.sp-select-wrap select optgroup { background: var(--bg-light); color: var(--text); }

.sp-select-chevron {
  position: absolute;
  right: .85rem; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--dim);
  pointer-events: none;
}

/* Platform toggle */
/* Billing toggle in Pro field */
.sp-billing-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.sp-bez-col .sp-billing-toggle {
  display: flex;
  width: 100%;
}

.sp-bez-col .sp-billing-radio {
  flex: 1;
  text-align: center;
}

.sp-bez-col .sp-billing-radio span {
  width: 100%;
  justify-content: center;
}

.sp-billing-btn {
  background: none;
  border: none;
  border-radius: 5px;
  padding: .2rem .65rem;
  font-size: .72rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--dim);
  cursor: pointer;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.sp-billing-btn--active {
  background: var(--bg-light);
  color: var(--text);
}

.sp-billing-save {
  font-size: .65rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(52,199,89,.12);
  border: 1px solid rgba(52,199,89,.2);
  padding: .05rem .3rem;
  border-radius: 4px;
}

.sp-platform { display: flex; gap: .45rem; flex-wrap: wrap; }
.sp-platform-btn { cursor: pointer; }
.sp-platform-btn input { display: none; }

.sp-platform-btn span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider);
  background: var(--bg);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .2s, color .2s;
}

/* Pro plan: single inline row */
.sp-plan-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.sp-billing-radio { cursor: pointer; }
.sp-billing-radio input { display: none; }

.sp-billing-radio span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .7rem;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--dim);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.sp-billing-radio input:checked + span {
  background: var(--bg-light);
  color: var(--text);
}

.sp-plan-price-display {
  font-size: .88rem;
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
  padding-left: .2rem;
}

.sp-platform-btn span img {
  display: inline;
  filter: brightness(0) invert(.55);
}

.sp-platform-btn span svg { display: inline-block; }

.sp-platform-btn input:checked + span {
  border-color: var(--primary);
  background: rgba(0,122,255,.1);
  color: var(--primary-l);
}

.sp-platform-btn input:checked + span img {
  filter: brightness(0) saturate(100%) invert(55%) sepia(60%) saturate(600%) hue-rotate(190deg);
}

/* Form footer */
.sp-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .25rem;
}

.sp-form-footer__note {
  font-size: .74rem;
  color: var(--dim);
  line-height: 1.5;
}

/* Submit */
.sp-submit {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .78rem 1.75rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,122,255,.28);
  white-space: nowrap;
}

.sp-submit svg { width: 14px; height: 14px; }
.sp-submit:hover { background: var(--primary-l); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,122,255,.38); }
.sp-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Success */
.sp-success {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(52,199,89,.08);
  border: 1px solid rgba(52,199,89,.22);
  border-radius: var(--radius-sm);
}

.sp-success[aria-hidden="true"] { display: none; }

.sp-success__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-success__icon svg { width: 16px; height: 16px; }

.sp-success strong { display: block; font-size: .9rem; color: var(--success); margin-bottom: .2rem; }
.sp-success p { font-size: .82rem; color: var(--muted); }


/* ── FAQ HEAD ── */
.sp-faq-head {
  margin-bottom: 3rem;
}


/* ── FAQ GRID ── */
.sp-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) { .sp-faq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sp-faq-grid { grid-template-columns: 1fr; } }

/* FAQ Group card */
.sp-faq-group {
  background: var(--bg-light);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s;
}

.sp-faq-group:hover { border-color: rgba(0,122,255,.3); }

.sp-faq-group__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
  background: rgba(0,122,255,.04);
}

.sp-faq-group__title svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }

/* FAQ Item */
.sp-faq-item {
  border-bottom: 1px solid var(--divider);
}

.sp-faq-item:last-child { border-bottom: none; }

.sp-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1.25rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s;
  line-height: 1.45;
}

.sp-faq-item summary::-webkit-details-marker { display: none; }

.sp-faq-item summary::after {
  content: '';
  display: block;
  width: 15px; height: 15px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23596678' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform .25s ease;
}

.sp-faq-item[open] summary::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234DA3FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.sp-faq-item summary:hover { background: rgba(0,122,255,.05); color: var(--primary-l); }
.sp-faq-item[open] summary { color: var(--primary-l); }

.sp-faq-body p {
  padding: 0 1.25rem 1rem;
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.75;
}

.sp-faq-body strong { color: var(--text); font-weight: 500; }


/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .sp-header { padding-top: 6rem; }
}

/* ── FORM ERROR ── */
.sp-error {
  padding: .85rem 1.1rem;
  background: rgba(255,59,48,.09);
  border: 1px solid rgba(255,59,48,.25);
  border-radius: var(--radius-sm);
  color: #FF6B6B;
  font-size: .85rem;
  line-height: 1.55;
}

.sp-error[aria-hidden="true"] { display: none; }

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

/* ── APP HINT (Bezahlung) ── */
.sp-app-hint {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
}

.sp-app-hint i[data-lucide] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: .1rem;
  opacity: .55;
}


/* ── BEZAHLUNG SIDE-BY-SIDE ── */
.sp-field.sp-bez-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

.sp-field.sp-bez-row.sp-field--os-visible {
  max-height: 120px;
}

.sp-bez-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

@media (max-width: 560px) {
  .sp-field.sp-bez-row { flex-direction: column; gap: 1rem; }
  .sp-field.sp-bez-row.sp-field--os-visible { max-height: 220px; }
}


/* ── FAQ HINT (Verweis auf andere Seite) ── */
.sp-faq-hint {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}

.sp-faq-hint i[data-lucide] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .5;
}