/* potenzial-polish.css — Production Polish-Layer
 *
 * Wird NACH overrides.css geladen, überschreibt nur gezielt.
 * Aktiv nur auf <body class="polish"> Pages.
 *
 * Quelle: Claude-Design-Session 26.04.2026 (Sketch "Potenzial.at Modernisierung")
 * Showcase-Vorlage: /designupdate/polish.css
 *
 * Architektur: kein Override von overrides.css, kein Anfassen von Bootstrap.
 * Bei Bruch: <link>-Zeile in jeder index.php auskommentieren = sofort Live-Stand.
 */

/* === Token-Erweiterungen === */
:root {
  --pot-ink:       #0F172A;
  --pot-body:      #1F2937;
  --pot-muted:     #5B6478;     /* wärmer als Bootstrap-Default #6c757d */
  --pot-line:      #E5E7EB;
  --pot-soft:      #F7F8FB;

  /* Schatten-Hierarchie (Card 10) */
  --pot-shadow-xs: 0 1px 2px rgba(15,23,42,0.05);
  --pot-shadow-sm: 0 4px 12px rgba(15,23,42,0.06);
  --pot-shadow-md: 0 8px 24px rgba(15,23,42,0.08);
  --pot-shadow-lg: 0 14px 36px rgba(15,23,42,0.10);

  /* Motion */
  --pot-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* === 03 · Typografie-Tightening === */
.polish .display-1, .polish .display-2, .polish .display-3,
.polish .display-4, .polish .display-5, .polish .display-6 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.polish h2 { line-height: 1.3; letter-spacing: -0.01em; }
.polish h3, .polish h4 { line-height: 1.4; }
.polish .lead { max-width: 65ch; line-height: 1.6; }
.polish .caption {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pot-muted);
}

/* === 05 · Buttons-Polish === */
.polish .btn {
  --bs-btn-padding-y: 0.625rem;
  --bs-btn-padding-x: 1.125rem;
  --bs-btn-border-radius: 0.5rem;
  font-weight: 500;
  transition:
    background-color 200ms var(--pot-ease),
    border-color 200ms var(--pot-ease),
    color 200ms var(--pot-ease),
    transform 200ms var(--pot-ease),
    box-shadow 200ms var(--pot-ease);
}
.polish .btn-primary { box-shadow: var(--pot-shadow-xs); }
.polish .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--pot-shadow-sm); }
.polish .btn-primary:active { transform: translateY(0); box-shadow: var(--pot-shadow-xs); }
.polish .btn-accent { box-shadow: var(--pot-shadow-xs); }
.polish .btn-accent:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(162,28,175,0.22); }
.polish .btn-accent:active { transform: translateY(0); }
.polish .btn-outline-primary { border-color: rgba(51,51,153,0.30); }
.polish .btn-outline-primary:hover {
  border-color: var(--bs-primary);
  background-color: rgba(51,51,153,0.04);
  color: var(--bs-primary);
  transform: translateY(-1px);
}
.polish .btn-ghost {
  background: transparent; color: var(--bs-primary);
  border: 1px solid transparent;
  padding: 0.625rem 1.125rem;
  border-radius: 0.5rem; font-weight: 500;
}
.polish .btn-ghost:hover { background: rgba(51,51,153,0.06); color: var(--bs-link-hover-color); }

/* === 21 · Focus-Ring (3px, keyboard-only) === */
.polish *:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(51,51,153,0.30) !important;
}

/* === 06 · Form Controls === */
.polish .form-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pot-body);
  margin-bottom: 0.5rem;
}
.polish .form-control {
  border-radius: 0.5rem;
  border-color: var(--pot-line);
  padding: 0.625rem 0.875rem;
  transition: all 200ms var(--pot-ease);
}
.polish .form-control:hover:not(:focus) { border-color: #94A3B8; }
.polish .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(51,51,153,0.20);
}
.polish .form-pulse {
  width: 0.5rem; height: 0.5rem;
  background: var(--bs-primary);
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
  animation: polish-pulse 1s ease-in-out infinite;
}
@keyframes polish-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.polish .form-warn {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(245,158,11,0.10);
  color: #92400E;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

/* === 07 · Icons === */
.polish .icon-inline  { font-size: 1.25rem; line-height: 1; }
.polish .icon-card    { font-size: 2rem; line-height: 1; color: var(--bs-primary); }
.polish .icon-process { font-size: 3rem; line-height: 1; color: var(--bs-primary); }

/* === 09 · Badges & Tags === */
.polish .badge-soft {
  background: rgba(51,51,153,0.10);
  color: var(--bs-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.polish .badge-success-soft {
  background: rgba(16,185,129,0.10);
  color: #047857;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* === 10 · Cards & Schatten === */
.polish .card {
  border-radius: 0.75rem;
  border-color: var(--pot-line);
  box-shadow: var(--pot-shadow-xs);
  transition:
    transform 240ms var(--pot-ease),
    box-shadow 240ms var(--pot-ease);
}
.polish .card:hover { transform: translateY(-2px); box-shadow: var(--pot-shadow-sm); }
.polish .card-popular {
  position: relative;
  transform: translateY(-4px);
  box-shadow: var(--pot-shadow-lg);
  border-color: rgba(162,28,175,0.20);
}
.polish .card-popular:hover { transform: translateY(-6px); box-shadow: var(--pot-shadow-lg); }
.polish .popular-pill {
  position: absolute;
  top: -0.75rem; left: 50%;
  transform: translateX(-50%);
  background: var(--potenzial-accent);
  color: white;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 0.3125rem 0.875rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(162,28,175,0.25);
}
.polish .price-num { font-variant-numeric: tabular-nums; }

/* === 11 · Tables === */
.polish .table-polish { width: 100%; border-collapse: collapse; }
.polish .table-polish thead th {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pot-muted);
  border-bottom: 2px solid var(--pot-line);
  padding: 0.875rem 1rem;
  text-align: left;
}
.polish .table-polish tbody td {
  padding: 0.875rem 1rem;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--pot-line);
  border-left: 3px solid transparent;
  transition: background 180ms var(--pot-ease), border-left-color 180ms var(--pot-ease);
}
.polish .table-polish tbody tr:hover td {
  background: rgba(51,51,153,0.04);
}
.polish .table-polish tbody tr:hover td:first-child {
  border-left-color: var(--bs-primary);
}
.polish .savings { color: #047857; font-weight: 600; }

/* Auch standard Bootstrap-Tables minimal poliert */
.polish .table.table-sm,
.polish .table.table-sm td,
.polish .table.table-sm th { font-variant-numeric: tabular-nums; }
.polish .table.table-sm td,
.polish .table.table-sm th { padding: 0.625rem 0.75rem; }
.polish .table.table-sm tbody tr {
  transition: background-color 180ms var(--pot-ease);
}
.polish .table.table-sm tbody tr:hover { background-color: rgba(51,51,153,0.04); }

/* === 12 · FAQ Accordion === */
.polish .accordion-polish { border-top: 1px solid var(--pot-line); }
.polish .accordion-polish .accordion-item {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--pot-line) !important;
  border-radius: 0 !important;
}
.polish .accordion-polish .accordion-button {
  background: transparent !important;
  color: var(--pot-body) !important;
  font-weight: 600;
  padding: 1.25rem 0;
  box-shadow: none !important;
  font-size: 1.0625rem;
}
.polish .accordion-polish .accordion-button:not(.collapsed) {
  color: var(--bs-primary) !important;
  background: transparent !important;
}
.polish .accordion-polish .accordion-button::after {
  background-image: none !important;
  content: "+";
  font-family: -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  width: auto; height: auto;
  transform: none;
  transition: transform 220ms var(--pot-ease);
  color: var(--bs-primary);
  margin-left: 1rem;
}
.polish .accordion-polish .accordion-button:not(.collapsed)::after {
  content: "−";
  transform: rotate(180deg);
}
.polish .accordion-polish .accordion-body {
  padding: 0 0 1.25rem;
  color: var(--pot-muted);
  max-width: 65ch;
  line-height: 1.6;
}

/* === 15 · Header / Nav === */
.polish .navbar-polish {
  background: white;
  border-bottom: 1px solid var(--pot-line);
  box-shadow: none !important;
  padding: 0.5rem 0;
}
.polish .navbar-polish .nav-link {
  font-size: 0.9375rem; font-weight: 500;
  padding: 0.875rem 1rem !important;
  color: var(--pot-body);
}
.polish .navbar-polish .nav-link:hover { color: var(--bs-primary); }
.polish .lang-switch {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--pot-muted);
  text-decoration: none;
  margin-right: 1rem;
  letter-spacing: 0.04em;
}
.polish .lang-switch:hover { color: var(--bs-primary); }

/* === 16 · Hero === */
.polish .hero-polish {
  background: var(--bs-primary);
  color: white;
  padding: 5rem 0 5.5rem;
  position: relative;
}
.polish .hero-polish .display-3,
.polish .hero-polish .display-4,
.polish .hero-polish .display-5 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
}
.polish .hero-polish .lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.1875rem;
  max-width: 52ch;
  line-height: 1.55;
}
.polish .hero-eyebrow {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* Stat-Strip (kompakte Variante unter Hero-Bild) */
.polish .stat-strip-compact {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  justify-content: space-between;
}
.polish .stat-strip-compact > div { flex: 1; }
.polish .stat-strip-compact .stat-num {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: white;
}
.polish .stat-strip-compact .stat-label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.04em;
  margin-top: 0.375rem;
  display: block;
  line-height: 1.3;
}

/* === 17 · Section-Header (B - ohne Eyebrow als Default) === */
.polish .section-polish { padding: 5rem 0; }
.polish .section-polish > h2 {
  font-size: 2rem; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.3;
  margin-bottom: 1rem;
}
.polish .section-polish > .lead {
  font-size: 1.1875rem;
  color: var(--pot-muted);
  max-width: 65ch;
  line-height: 1.6;
}

/* Soft-Section-BG (statt hartem Bootstrap bg-light) */
.polish .section-soft { background: var(--pot-soft); }

/* === 18 · Footer === */
.polish .footer-polish {
  background: white;
  border-top: 1px solid var(--pot-line);
  padding: 4rem 0 2rem;
  color: var(--pot-muted);
}
.polish .footer-polish .footer-col-title {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pot-body);
  margin-bottom: 1.25rem;
}
.polish .footer-polish ul { list-style: none; padding: 0; margin: 0; }
.polish .footer-polish ul li { padding: 0.3125rem 0; }
.polish .footer-polish ul a {
  color: var(--pot-body); text-decoration: none;
  font-size: 0.9375rem;
  transition: color 180ms var(--pot-ease);
}
.polish .footer-polish ul a:hover { color: var(--bs-primary); }
.polish .footer-polish .brand-claim {
  font-size: 0.9375rem;
  color: var(--pot-muted);
  max-width: 30ch;
  line-height: 1.55;
  margin-top: 0.875rem;
}
.polish .footer-polish .legal-strip {
  border-top: 1px solid var(--pot-line);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.8125rem;
  color: var(--pot-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.polish .footer-polish .legal-strip a {
  color: var(--pot-muted);
  text-decoration: none;
  margin: 0 0.5rem;
}
.polish .footer-polish .legal-strip a:hover { color: var(--bs-primary); }
.polish .footer-polish .legal-strip .mid-dot { color: var(--pot-line); margin: 0 0.5rem; }

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .polish .stat-strip-compact { gap: 0.75rem; flex-wrap: wrap; }
  .polish .stat-strip-compact .stat-num { font-size: 1.375rem; }
  .polish .section-polish { padding: 3.5rem 0; }
  .polish .hero-polish { padding: 3.5rem 0 4rem; }
}
