/**
 * pricing.css — Galaxyweb AG
 * Seitenspezifische Styles für alle Produktseiten (Webhosting, Business-Mail, Cloud etc.).
 * Wird via index.php $extraCSS nur auf Produktseiten geladen.
 * Nutzt CSS-Variablen aus main.css (:root).
 */

/* ── Pricing Toggle ───────────────────────────────────────── */
.pricing-section { padding: 80px 0; }

.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 48px;
}
.pricing-toggle-label {
  font-size: 14px; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: color .2s; user-select: none;
}
.pricing-toggle-label.is-active { color: var(--text); }

.pricing-toggle-switch {
  width: 52px; height: 28px; border-radius: 14px; background: var(--border);
  position: relative; cursor: pointer; transition: background .25s;
}
.pricing-toggle-switch.is-yearly { background: var(--grad-btn); }
.pricing-toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,30,80,.15); transition: transform .25s;
}
.pricing-toggle-switch.is-yearly::after { transform: translateX(24px); }

.pricing-save-badge {
  font-size: 11px; font-weight: 800; color: #059669;
  background: #d1fae5; padding: 3px 10px; border-radius: 20px;
  letter-spacing: .02em;
}

/* ── Pricing Cards ────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}

.pricing-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 20px;
  padding: 36px 32px; position: relative; transition: all .25s ease;
  display: flex; flex-direction: column;
}
.pricing-card:hover {
  border-color: rgba(0,152,239,.25);
  box-shadow: 0 8px 32px rgba(0,90,160,.08);
}
.pricing-card.is-popular {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(0,120,200,.15);
  transform: scale(1.03);
}
.pricing-card.is-popular:hover {
  box-shadow: 0 16px 48px rgba(0,120,200,.2);
}

.pricing-popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-btn); color: #fff;
  font-size: 11px; font-weight: 800; padding: 5px 18px;
  border-radius: 20px; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
}

.pricing-plan {
  font-size: 13px; font-weight: 800; color: var(--blue-d);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.pricing-name {
  font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 16px;
}

/* ── Pricing Prices ───────────────────────────────────────── */
.pricing-price-wrap {
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pricing-price {
  font-size: 42px; font-weight: 900; color: var(--text);
  letter-spacing: -.03em; line-height: 1;
}
.pricing-price-currency { font-size: 18px; font-weight: 700; color: var(--muted); }
.pricing-price-period { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.pricing-price-yearly { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pricing-price-yearly s { color: #b0c0d0; }
.pricing-footnote { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; margin-bottom: 0; }

/* ── Pricing Features ─────────────────────────────────────── */
.pricing-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-2); padding: 7px 0; line-height: 1.5;
}
.pricing-features li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.pricing-features .feat-check { color: var(--blue); }
.pricing-features .feat-val { font-weight: 700; color: var(--text); }

.pricing-card .btn { width: 100%; justify-content: center; }
.btn-in-cart {
  background: rgba(16,185,129,.08) !important; color: #059669 !important;
  border: 1.5px solid rgba(16,185,129,.2) !important;
  cursor: default !important; pointer-events: none !important;
  background-image: none !important;
}

/* ── Feature Comparison Table ─────────────────────────────── */
.feature-table-wrap {
  overflow-x: auto; border-radius: 16px;
  border: 1.5px solid var(--border); background: #fff;
  box-shadow: 0 4px 24px rgba(0,30,80,.04);
}
.feature-table { width: 100%; border-collapse: collapse; }
.feature-table th,
.feature-table td {
  padding: 13px 20px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.feature-table th { font-weight: 800; color: var(--text); background: var(--bg); }
.feature-table thead th {
  font-size: 11px; font-weight: 800; color: #94aec8;
  text-transform: uppercase; letter-spacing: .1em;
  background: #fff; padding: 18px 22px;
  border-bottom: 2px solid #edf3fa;
}
.feature-table thead th:first-child { border-radius: 14px 0 0 0; }
.feature-table thead th:last-child { border-radius: 0 14px 0 0; }
.feature-table td { color: var(--text-2); }
.feature-table td:not(:first-child) { text-align: center; font-weight: 600; }
.feature-table th:not(:first-child) { text-align: center; }
.feature-table tbody tr:hover { background: rgba(0,152,239,.02); }
.feature-table tbody tr:nth-child(even):not(.ft-cat) { background: #fafcff; }
.feature-table .ft-cat {
  font-size: 12px; font-weight: 800; color: var(--blue-d);
  background: rgba(0,152,239,.06); text-transform: uppercase;
  letter-spacing: .04em;
}
.feature-table .ft-cat svg {
  vertical-align: -2px; margin-right: 6px; color: var(--blue);
}
.feature-table .ft-check { color: var(--blue); font-weight: 700; }
.feature-table .ft-no { color: #c8d4de; }
.ft-exkl { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 3px; }

/* ── Guarantee Bar ────────────────────────────────────────── */
.guarantee-bar {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  padding: 20px 32px; background: var(--bg); border-radius: 16px;
  margin-top: 48px; flex-wrap: wrap;
}
.guarantee-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text-2);
}
.guarantee-item svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

/* ── Performance Dashboard (Hero Element) ─────────────────── */
.perf-dashboard {
  background: rgba(10,30,61,.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  padding: 24px; color: #fff; width: 100%; max-width: 380px;
  box-shadow: 0 24px 64px rgba(0,30,80,.25);
  /*animation: dashFloat 5s ease-in-out infinite;*/
}
@keyframes dashFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.perf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.perf-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); }
.perf-live { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #3cb1f3; }
.perf-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #3cb1f3; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

.perf-gauge-row { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.perf-gauge { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.perf-gauge svg { width: 100px; height: 100px; transform: rotate(-90deg); }
.perf-gauge-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 5; }
.perf-gauge-fill {
  fill: none; stroke: #3cb1f3; stroke-width: 5;
  stroke-linecap: round; stroke-dasharray: 270; stroke-dashoffset: 270;
  transition: stroke-dashoffset 1.5s ease-out;
}
.perf-gauge-fill.is-animated { stroke-dashoffset: 0; }
.perf-gauge-val {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.perf-gauge-num { font-size: 32px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.perf-gauge-label { font-size: 8px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.perf-gauge-info { flex: 1; }
.perf-gauge-title { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.perf-gauge-sub { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.5; }

.perf-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perf-metric {
  background: rgba(255,255,255,.05); border-radius: 12px;
  padding: 14px 12px; text-align: center;
}
.perf-metric-val {
  font-size: 20px; font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff, #3cb1f3);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2;
}
.perf-metric-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.4); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

.perf-bar-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.perf-bar-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.4); width: 55px; flex-shrink: 0; }
.perf-bar-track { flex: 1; height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.perf-bar-fill { height: 100%; border-radius: 3px; transition: width 1.2s ease-out; }
.perf-bar-fill-blue { background: linear-gradient(90deg, #0078c8, #3cb1f3); }
.perf-bar-fill-green { background: linear-gradient(90deg, #059669, #34d399); }
.perf-bar-fill-amber { background: linear-gradient(90deg, #d97706, #fbbf24); }
.perf-bar-val { font-size: 11px; font-weight: 800; width: 36px; text-align: right; }


/* ── Addons Layout ─────────────────────────────────────────── */
.addons-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.addons-main { min-width: 0; }
.addons-sidebar { position: sticky; top: 100px; }
.addons-sidebar-title { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.addons-table-wrap {
  overflow-x: auto; border-radius: 16px;
  border: 1.5px solid var(--border); background: #fff;
  box-shadow: 0 4px 24px rgba(0,30,80,.04);
}
.addons-table { width: 100%; border-collapse: collapse; }
.addons-table th,
.addons-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.addons-table th {
  font-size: 11px; font-weight: 800; color: #94aec8;
  text-transform: uppercase; letter-spacing: .1em;
  background: #fff; text-align: left; padding: 18px 22px;
  border-bottom: 2px solid #edf3fa;
}
.addons-table th:first-child { border-radius: 12px 0 0 0; }
.addons-table th:last-child { border-radius: 0 12px 0 0; }
.addons-table th:not(:first-child) { text-align: center; }
.addons-table td { color: var(--text-2); }
.addons-table tbody tr:nth-child(even) { background: #fafcff; }
.addons-table tbody tr:hover { background: rgba(0,152,239,.02); }
.addons-table td:first-child { font-weight: 600; color: var(--text); }
.addons-table td:not(:first-child) { text-align: center; white-space: nowrap; font-weight: 600; }

/* Addon name + icon row */
.addon-name-row { display: flex; align-items: flex-start; gap: 12px; }
.addon-name-row > div { display: flex; flex-direction: column; gap: 2px; }
.addon-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(0,152,239,.06); display: flex; align-items: center; justify-content: center;
}
.addon-icon svg { width: 16px; height: 16px; stroke: var(--blue-d); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── FAQ & Addons Sidebar: Trust Card ─────────────────────── */
.faq-trust-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r, 14px);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 4px 14px rgba(0,30,80,.06);
}
.faq-trust-card .ci-icon { background: rgba(0,120,200,.08); border-color: rgba(0,120,200,.18); }
.faq-trust-card .ci-icon svg { stroke: var(--blue-d); }
.faq-trust-heading { font-size: 13px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: .04em; }
.faq-trust-divider { height: 1px; background: var(--border); margin: 4px 0; }
.faq-trust-row { display: flex; align-items: center; gap: 10px; }
.faq-trust-row .title { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.faq-trust-row .desc { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.faq-sidebar .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* FAQ stat grid (2×2 mini counters) */
.faq-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.faq-stat {
  text-align: center; padding: 14px 8px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
}
.faq-stat-val {
  font-size: 20px; font-weight: 900; letter-spacing: -.02em; color: var(--text);
  background: linear-gradient(135deg, var(--blue-dd), var(--blue-brand));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.faq-stat-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* ── Responsive Feature Table Hint ────────────────────────── */
.table-scroll-hint {
  display: none; text-align: center; padding: 8px;
  font-size: 12px; color: var(--muted); font-weight: 600;
}
.table-scroll-hint svg { vertical-align: -2px; margin-right: 4px; }


/* ── Info Grid (Feature Cards) ────────────────────────────── */
.info-grid { display: grid; gap: 20px; }
.info-grid-2 { grid-template-columns: repeat(2, 1fr); }
.info-grid-3 { grid-template-columns: repeat(3, 1fr); }
.info-grid-4 { grid-template-columns: repeat(4, 1fr); }
.info-card {
  padding: 0; border-radius: 16px; background: #fff;
  border: 1.5px solid var(--border); transition: all .25s ease;
  overflow: hidden; display: flex; flex-direction: column;
}
.info-card:hover {
  border-color: rgba(0,152,239,.25);
  box-shadow: 0 8px 28px rgba(0,90,160,.08);
  transform: translateY(-3px);
}
.info-card-inner { padding: 28px 24px; }
.info-card .gw-badge { margin-bottom: 16px; }
.info-card-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.info-card-text { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0; }

/* ── Benefits List ────────────────────────────────────────── */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.benefit-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.benefit-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg); color: var(--blue-d);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.benefit-text { font-size: 14px; color: var(--text-2); line-height: 1.5; margin: 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .pricing-card.is-popular { transform: none; }
  .guarantee-bar { gap: 16px; padding: 16px 20px; }
  .perf-dashboard { max-width: 100%; animation: none; }
  .perf-gauge-row { flex-direction: column; text-align: center; }
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .info-grid-4, .info-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .addons-layout { grid-template-columns: 1fr; }
  .addons-sidebar { position: static; }
}

/* Desktop: Tabellen immer sauber darstellen */
@media (min-width: 769px) {
  .feature-table-wrap, .addons-table-wrap {
    margin: 0; border-radius: 16px;
    border: 1.5px solid var(--border);
    overflow-x: auto;
  }
  .feature-table thead, .addons-table thead { display: table-header-group; }
  .feature-table tbody, .addons-table tbody { display: table-row-group; }
  .feature-table tbody tr, .addons-table tbody tr { display: table-row; }
  .feature-table td, .addons-table td { display: table-cell; }
  .feature-table td::before, .addons-table td::before { display: none; }
  .table-scroll-hint { display: none; }
}

@media (max-width: 768px) {
  /* Info-Kacheln → 1 Spalte */
  .info-grid-4, .info-grid-3, .info-grid-2 { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }

  /* ── Feature-Tabelle: Card-Ansicht ── */
  .feature-table-wrap { overflow-x: visible; margin: 0; border-radius: 12px; border: 1.5px solid var(--border); }
  .table-scroll-hint { display: none; }
  .feature-table thead { display: none; }
  .feature-table tbody { display: block; }
  .feature-table tbody tr { display: block; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--border); background: #fff; overflow: hidden; }
  .feature-table tbody tr.ft-cat { border: none; border-radius: 0; margin-bottom: 0; background: rgba(0,152,239,.06); }
  .feature-table td {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; font-size: 13px; border-bottom: 1px solid #f0f4f9;
    text-align: left !important;
  }
  .feature-table td:last-child { border-bottom: none; }
  .feature-table td::before {
    content: attr(data-label);
    font-size: 11px; font-weight: 700; color: #94aec8;
    text-transform: uppercase; letter-spacing: .07em;
    flex-shrink: 0; margin-right: 12px; min-width: 80px;
  }
  .feature-table td:first-child { font-weight: 700; color: var(--text); background: #f8fafd; }
  .feature-table td:first-child::before { display: none; }

  /* ── Addons-Tabelle: Card-Ansicht ── */
  .addons-table-wrap { overflow-x: visible; margin: 0; border-radius: 12px; border: 1.5px solid var(--border); }
  .addons-table thead { display: none; }
  .addons-table tbody { display: block; }
  .addons-table tbody tr {
    display: block; margin-bottom: 10px;
    border-radius: 12px; border: 1px solid var(--border);
    background: #fff; overflow: hidden;
  }
  .addons-table td {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; font-size: 13px; border-bottom: 1px solid #f0f4f9;
  }
  .addons-table td:last-child { border-bottom: none; }
  .addons-table td::before {
    content: attr(data-label);
    font-size: 11px; font-weight: 700; color: #94aec8;
    text-transform: uppercase; letter-spacing: .07em;
    flex-shrink: 0; margin-right: 12px; min-width: 80px;
  }
  .addons-table td:first-child { font-weight: 700; color: var(--text); background: #f8fafd; font-size: 14px; }
  .addons-table td:first-child::before { display: none; }
  .addons-table td:not(:first-child) { text-align: right; }
}

@media (max-width: 640px) {
  .perf-metrics { grid-template-columns: 1fr; }
  .guarantee-bar { flex-direction: column; text-align: center; }
}

/* ── Addon Table ──────────────────────────────────────────── */
.addon-desc { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; font-weight: 400; line-height: 1.45; }
.addons-note {
  font-size: 13px; color: var(--muted); line-height: 1.65;
  margin-top: 16px; padding: 14px 18px;
  background: var(--bg); border-radius: 10px;
  border: 1px solid var(--border);
}
.addons-note a { color: var(--blue-d); font-weight: 600; }

/* ── App Logos ─────────────────────────────────────────────── */
.app-logos { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.app-logo { width: 80px; height: 60px; display: flex; align-items: center; justify-content: center; opacity: .6; transition: opacity .2s; }
.app-logo:hover { opacity: 1; }
.app-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }


/* ── Blog Cards ───────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1.5px solid var(--border); text-decoration: none;
  transition: all .2s ease; display: flex; flex-direction: column;
}
.blog-card:hover { border-color: rgba(0,152,239,.25); box-shadow: 0 8px 28px rgba(0,90,160,.08); transform: translateY(-2px); }
.blog-card-img { height: 180px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title { font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 8px; line-height: 1.35; }
.blog-card-desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; margin: 0 0 12px; }
.blog-card-date { font-size: 11px; font-weight: 600; color: #8fa4b8; }