/* ═══════════════════════════════════════════════════════════
   WebWerk.io – Angebots-Konfigurator  |  style.css
   CI: #6E2654 (primary) · #993371 (accent) · #F4F4F4 (bg)
═══════════════════════════════════════════════════════════ */

/* ── 1. FONTS ── */
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Richmond Display';
  src: url('fonts/Richmond-Display-Italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ── 2. CUSTOM PROPERTIES ── */
:root {
  --primary:   #6E2654;
  --accent:    #993371;
  --gradient:  linear-gradient(135deg, #6E2654 0%, #993371 100%);
  --bg:        #F4F4F4;
  --white:     #FFFFFF;
  --black:     #000000;
  --text:      #1A1A1A;
  --muted:     #666666;
  --border:    #E2E2E2;

  --font:      'Poppins', system-ui, sans-serif;
  --font-deco: 'Richmond Display', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(110,38,84,.18);

  --trans: 200ms ease;
}

/* ── 3. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input { appearance: none; -webkit-appearance: none; }

/* ── 4. LAYOUT ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.hidden { display: none !important; }

/* ── 5. HEADER – nur Logo, zentriert ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.125rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}
.site-logo { height: 32px; width: auto; }

/* ── 6. SCREENS: zwei Panels, horizontal nebeneinander ── */
.screens-wrap {
  display: flex;
  width: 200%;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.screens-wrap.show-kontakt {
  transform: translateX(-50%);
}

.screen {
  width: 50%;      /* = 100vw */
  flex-shrink: 0;
  padding: 2.5rem 0 3.5rem;
}

/* ── 7. KONFIGURATOR GRID ── */
.konfigurator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .konfigurator-grid { grid-template-columns: 1fr 360px; gap: 2rem; }
}

/* ── 8. CONFIG BLOCKS ── */
.config-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.config-block + .config-block { margin-top: 1rem; }

/* Unterseiten animiert ein-/ausblenden */
#block-unterseiten {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease,
              padding-top 0.3s ease, padding-bottom 0.3s ease,
              margin-top 0.3s ease;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0 !important;
  pointer-events: none;
}
#block-unterseiten.visible {
  max-height: 300px;
  opacity: 1;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  margin-top: 1rem !important;
  pointer-events: auto;
}

.config-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.config-desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ── 9. PACKAGE CARDS ── */
.package-cards { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 480px) { .package-cards { grid-template-columns: 1fr 1fr; } }

.package-card { cursor: pointer; display: block; }
.package-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.package-card-inner {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
  height: 100%;
}
.package-card:hover .package-card-inner { border-color: var(--accent); }
.package-card input:checked + .package-card-inner {
  border-color: var(--primary);
  background: rgba(110,38,84,.04);
  box-shadow: 0 0 0 3px rgba(110,38,84,.12);
}

.package-card-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.875rem;
}
.package-name { font-size: 1rem; font-weight: 600; }
.package-price { font-size: 0.9375rem; font-weight: 700; color: var(--primary); }

.package-features { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.875rem; }
.package-features li {
  font-size: 0.8125rem; color: var(--muted);
  padding-left: 1rem; position: relative;
}
.package-features li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gradient);
}
.package-badge {
  font-size: 0.6875rem; font-weight: 500; color: var(--muted);
  background: var(--bg); border-radius: 99px;
  padding: 2px 8px; display: inline-block;
}

/* ── 10. SLIDERS ── */
.slider-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.slider-labels {
  display: flex; justify-content: space-between;
  font-size: 0.8125rem; color: var(--muted);
}
.slider-current { font-weight: 600; color: var(--primary); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 99px;
  background: var(--border); outline: none; cursor: pointer;
  background-image: var(--gradient);
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size var(--trans);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(110,38,84,.25);
  cursor: pointer;
  transition: transform var(--trans);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(110,38,84,.25);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 99px;
}
.slider-hint { font-size: 0.8125rem; color: var(--muted); }

/* ── 11. ADD-ONS ── */
.addon-list { display: flex; flex-direction: column; gap: 0.5rem; }
.addon-item {
  display: flex; align-items: center; gap: 1rem;
  border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; cursor: pointer;
  transition: border-color var(--trans), background var(--trans);
}
.addon-item:hover { border-color: var(--accent); }
.addon-item:has(input:checked) {
  border-color: var(--primary); background: rgba(110,38,84,.04);
}

.addon-checkbox-wrap {
  position: relative; flex-shrink: 0; width: 22px; height: 22px;
}
.addon-checkbox-wrap input[type="checkbox"] {
  position: absolute; opacity: 0; width: 100%; height: 100%;
  cursor: pointer; z-index: 1; margin: 0;
}
.custom-checkbox {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border: 2px solid var(--border); border-radius: 5px;
  background: var(--white);
  transition: border-color var(--trans), background var(--trans);
  pointer-events: none;
}
.custom-checkbox::after {
  content: '';
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--white);
  border-bottom: 2.5px solid var(--white);
  transform: rotate(-45deg) translateY(-2px);
  opacity: 0; transition: opacity var(--trans);
}
input[type="checkbox"]:checked + .custom-checkbox {
  background: var(--primary); border-color: var(--primary);
}
input[type="checkbox"]:checked + .custom-checkbox::after { opacity: 1; }
input[type="checkbox"]:focus-visible + .custom-checkbox {
  outline: 2px solid var(--primary); outline-offset: 2px;
}

.addon-info { flex: 1; min-width: 0; }
.addon-name { display: block; font-size: 0.9375rem; font-weight: 600; }
.addon-desc { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 1px; }
.addon-price {
  font-size: 0.875rem; font-weight: 700; color: var(--primary);
  white-space: nowrap; flex-shrink: 0;
}

.info-banner {
  display: flex; align-items: flex-start; gap: 0.5rem;
  margin-top: 1.25rem; padding: 0.875rem 1rem;
  background: rgba(110,38,84,.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8125rem; color: var(--primary); font-weight: 500;
}
.info-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── 12. PREIS-SIDEBAR ── */
.price-card-sticky {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 1024px) {
  .price-card-sticky { position: sticky; top: 1.5rem; }
}

/* Brutto/Netto Toggle */
.price-toggle-row {
  display: flex; align-items: center; gap: 0.625rem;
  margin-bottom: 1.5rem; justify-content: flex-end;
}
.toggle-opt {
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
  transition: color var(--trans);
  user-select: none;
}
.toggle-opt--active { color: var(--primary); font-weight: 600; }

.toggle-switch { position: relative; cursor: pointer; display: inline-block; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  display: flex; align-items: center;
  width: 42px; height: 24px;
  background: var(--border); border-radius: 99px; padding: 3px;
  transition: background var(--trans);
}
.toggle-switch input:checked ~ .toggle-track { background: var(--primary); }
.toggle-thumb {
  width: 18px; height: 18px;
  background: var(--white); border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform var(--trans);
}
.toggle-switch input:checked ~ .toggle-track .toggle-thumb { transform: translateX(18px); }

/* Hauptpreis */
.price-main {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.price-main-label {
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.price-main-value {
  font-size: 2.125rem; font-weight: 700; color: var(--primary);
  line-height: 1.15;
  transition: all 0.2s ease;
}

/* Preisaufstellung */
.price-breakdown { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.breakdown-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.875rem;
}
.breakdown-label { color: var(--muted); }
.breakdown-value { font-weight: 600; color: var(--text); }
.breakdown-value--muted { font-weight: 400; color: var(--muted); }
.breakdown-line--mwst {
  padding-top: 0.5rem; border-top: 1px solid var(--border); margin-top: 0.25rem;
}

/* ── 13. CTA BUTTON ── */
.cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--gradient); color: var(--white);
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: filter var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: var(--shadow-lg); letter-spacing: 0.01em;
}
.cta-button:hover {
  filter: brightness(1.08); transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(110,38,84,.28);
}
.cta-button:active { transform: translateY(0); filter: brightness(.97); }
.cta-button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.cta-button svg {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform var(--trans);
}
.cta-button:hover svg { transform: translateX(4px); }

/* ── 14. SCREEN 2 – KONTAKT ── */
.contact-inner { max-width: 720px; }

.btn-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  padding: 0.5rem 0; margin-bottom: 2rem;
  transition: color var(--trans);
}
.btn-back:hover { color: var(--primary); }
.btn-back svg { width: 20px; height: 20px; transition: transform var(--trans); }
.btn-back:hover svg { transform: translateX(-3px); }

/* Konfigurationszusammenfassung */
.config-summary {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.summary-label {
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
}
.summary-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.summary-pill {
  font-size: 0.8125rem; font-weight: 500;
  background: var(--bg); border-radius: 99px;
  padding: 3px 12px; color: var(--text);
}
.summary-price {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.75rem; border-top: 1px solid var(--border);
  font-size: 0.9375rem; color: var(--muted);
}
.summary-price strong { color: var(--primary); font-size: 1.125rem; }

.contact-header { margin-bottom: 2rem; }
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 0.375rem;
}
.section-title em {
  font-family: var(--font-deco); font-style: italic; color: var(--accent);
  font-size: 110%; /* Richmond Display braucht mehr Größe für optischen Ausgleich mit Poppins */
}
.section-desc { font-size: 0.9375rem; color: var(--muted); }

/* Erfolgs-Banner */
.success-banner {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(110,38,84,.06); border: 2px solid var(--primary);
  border-radius: var(--radius-md); margin-bottom: 1.5rem;
  color: var(--primary); font-size: 0.9375rem;
}
.success-banner svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; }

/* ── 15. FORMULAR ── */
.form-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem; margin-bottom: 1.25rem;
}
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group--full { margin-bottom: 1.5rem; }

label { font-size: 0.875rem; font-weight: 500; }
.required { color: var(--accent); margin-left: 2px; }
.optional { font-size: 0.8125rem; font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"] {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font); font-size: 0.9375rem; color: var(--text);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder { color: #AAAAAA; }
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(110,38,84,.1);
}
input.invalid { border-color: #D93025; box-shadow: 0 0 0 3px rgba(217,48,37,.1); }
.field-error { font-size: 0.8125rem; color: #D93025; min-height: 1.2em; }

.checkbox-label {
  display: flex; align-items: flex-start; gap: 0.875rem;
  cursor: pointer; font-size: 0.9375rem;
}
.checkbox-label a {
  color: var(--primary); text-decoration: underline; text-underline-offset: 2px;
}
.checkbox-label a:hover { color: var(--accent); }

.form-submit { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; }
.form-submit .cta-button { width: auto; min-width: 220px; }
.submit-note { font-size: 0.8125rem; color: var(--muted); }

.spinner { width: 20px; height: 20px; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── 16. FOOTER ── */
.site-footer { background: var(--black); color: var(--white); padding: 1.125rem 0; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; text-align: center;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-logo { height: 24px; width: auto; opacity: 0.8; }
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,.5); }
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a {
  font-size: 0.8125rem; color: rgba(255,255,255,.5); transition: color var(--trans);
}
.footer-nav a:hover { color: var(--white); }

/* ── 17. RESPONSIVE ── */
@media (max-width: 480px) {
  .config-block, .price-card-sticky { padding: 1.25rem; }
  .form-submit .cta-button { width: 100%; }
  .price-main-value { font-size: 1.625rem; }
}

/* ── 18. KONTAKTSEITE ── */
.konfigurator-section { padding: 2.5rem 0 3.5rem; }

.contact-page-section { padding: 2.5rem 0 3.5rem; min-height: 100vh; }
.contact-page-inner { max-width: 1100px; }

/* Zurück-Link */
.btn-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  padding: 0.5rem 0; margin-bottom: 2rem;
  transition: color var(--trans);
  text-decoration: none;
}
.btn-back:hover { color: var(--primary); }
.btn-back svg { width: 20px; height: 20px; transition: transform var(--trans); }
.btn-back:hover svg { transform: translateX(-3px); }

/* Grid: Zusammenfassung links, Formular rechts */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-page-grid { grid-template-columns: 380px 1fr; }
}

/* Zusammenfassungskachel */
.summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 900px) {
  .summary-card { position: sticky; top: 1.5rem; }
}

.summary-eyebrow {
  display: block;
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.summary-items {
  display: flex; flex-direction: column; gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.summary-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
}

.summary-item-label {
  display: flex; flex-direction: column; gap: 2px;
}

.summary-item-name {
  font-size: 0.9375rem; font-weight: 500; color: var(--text);
}

.summary-item-note {
  font-size: 0.75rem; color: var(--muted);
}

.summary-item-price {
  font-size: 0.9375rem; font-weight: 600; color: var(--text);
  white-space: nowrap; text-align: right;
}

.summary-item-free {
  font-size: 0.875rem; font-weight: 500; color: var(--accent);
}

.summary-divider {
  height: 1px; background: var(--border);
  margin: 1.25rem 0;
}

.summary-total {
  margin-bottom: 1.25rem;
}

.summary-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.25rem;
}

.summary-total-label {
  font-size: 0.9375rem; font-weight: 600; color: var(--text);
}

.summary-total-value {
  font-size: 1.625rem; font-weight: 700; color: var(--primary);
  line-height: 1.2;
}

.summary-mwst-hint {
  font-size: 0.8125rem; color: var(--muted);
}

.summary-note {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(110,38,84,.05);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8125rem; color: var(--primary); font-weight: 500;
}
.summary-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* Formular-Spalte */
.form-column { min-width: 0; }

.contact-header { margin-bottom: 2rem; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.375rem;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 0.375rem;
}
.section-title em {
  font-family: var(--font-deco); font-style: italic; color: var(--accent);
  font-size: 110%; /* Richmond Display braucht mehr Größe für optischen Ausgleich mit Poppins */
}
.section-desc { font-size: 0.9375rem; color: var(--muted); }

/* Erfolgs-Banner */
.success-banner {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(110,38,84,.06); border: 2px solid var(--primary);
  border-radius: var(--radius-md); margin-bottom: 1.5rem;
  color: var(--primary); font-size: 0.9375rem;
}
.success-banner svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; }

/* ── 19. TOOLTIP ── */
.config-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.config-title-row .config-title { margin-bottom: 0; }

.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  flex-shrink: 0;
}
.icon-info {
  width: 16px; height: 16px;
  color: var(--muted);
  transition: color var(--trans);
}
.tooltip-wrap:hover .icon-info { color: var(--primary); }

.tooltip-box {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: var(--text);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
  white-space: normal;
}
.tooltip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
}
.tooltip-wrap:hover .tooltip-box { opacity: 1; }

@media (max-width: 480px) {
  .tooltip-box { left: auto; right: 0; transform: none; }
  .tooltip-box::after { left: auto; right: 8px; transform: none; }
}
