/**
 * Soulmakers Frontend Styles
 *
 * @package Soulmakers
 * @since   1.0.0
 */

/* ==========================================================================
   CSS Custom Properties (Variablen)
   ========================================================================== */

:root {
  /* Brand-Farben */
  --color-coffee-bean: #1c1003;
  --color-dark-coffee: #271705;
  --color-deep-walnut: #5a4632;
  --color-dusty-taupe: #9a8d77;
  --color-khaki-beige: #c1b7a5;
  --color-bone: #e4dccf;
  --color-accent: #cd7f5f;
  --color-brandy: #962f10;
  --color-reddish-brown: #99422a;
  --color-terracotta-clay: #af553d;

  /* Grautöne */
  --color-carbon-black: #1c1d1f;
  --color-iron-grey: #494c51;
  --color-cool-steel: #a0a3a7;
  --color-pale-slate: #ccced2;
  --color-platinum: #e9ebec;
  --color-snow-white: #f6f8f9;
}

/* ==========================================================================
   Basis-Styles
   ========================================================================== */

@media (max-width: 767px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    hyphens: auto;
  }
}

.elementor-widget-text-editor p:last-child {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   Komponenten
   ========================================================================== */

@media (max-width: 767px) {
  [id^="tmea-shape-divider-"] svg {
    height: 40px !important;
  }
}

/* ==========================================================================
   Profit-Rechner
   ========================================================================== */

.sm-calculator {
  width: 100%;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #1a1a1a;
  line-height: 1.5;
}

.sm-calc-section {
  margin-bottom: 32px;
}

.sm-calc-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 16px;
}

/* Slider */
.sm-slider-group {
  margin-bottom: 24px;
}

.sm-slider-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.sm-val-display {
  font-size: 18px;
  font-weight: 700;
  color: #c0755a;
}

.sm-calculator input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  border: none;
  outline: none;
  cursor: pointer;
}

.sm-calculator input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
}

.sm-calculator input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #c0755a;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  margin-top: -8px;
}

.sm-calculator input[type="range"]::-moz-range-track {
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  border: none;
}

.sm-calculator input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #c0755a;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.sm-calculator input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.sm-calculator input[type="number"]:focus {
  border-color: #c0755a;
}

/* Details */
.sm-details summary {
  font-size: 15px;
  font-weight: 600;
  color: #c0755a;
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
}

.sm-details summary::-webkit-details-marker {
  display: none;
}

.sm-details summary::before {
  content: "+ ";
}

.sm-details[open] summary::before {
  content: "− ";
}

.sm-details-content {
  padding-top: 16px;
}

.sm-details-content label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-top: 16px;
  margin-bottom: 8px;
}

.sm-details-content label:first-child {
  margin-top: 0;
}

.sm-details-content small {
  font-weight: 400;
  color: #999;
}

/* Balken */
.sm-bar-wrapper {
  margin-bottom: 20px;
}

.sm-bar-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  color: #1a1a1a;
}

.sm-bar-label span:last-child {
  font-weight: 700;
}

.sm-bar-bg {
  background: #e5e5e5;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.sm-bar-fill {
  height: 100%;
  width: 0;
  transition: width 0.4s ease;
  border-radius: 6px;
}

.sm-fill-soulmakers {
  background: #c0755a;
}

.sm-fill-employed {
  background: #5a4632;
}

.sm-fill-solo {
  background: #999;
}

/* Highlight */
.sm-highlight-box {
  background: #c0755a;
  color: #fff;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  margin-top: 24px;
}

.sm-highlight-box > span:first-child {
  font-size: 14px;
  font-weight: 500;
}

.sm-highlight-value {
  font-size: 36px;
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

/* Tabelle */
.sm-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-bottom: 1px solid #e5e5e5;
}

.sm-detail-table th {
  text-align: left;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  border-bottom: 1px solid #e5e5e5;
}

.sm-detail-table th:first-child {
  padding-left: 0;
}

.sm-detail-table th:last-child {
  padding-right: 0;
}

.sm-detail-table td {
  padding: 12px 8px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.sm-detail-table td:first-child {
  padding-left: 0;
}

.sm-detail-table td:last-child {
  padding-right: 0;
}

.sm-detail-table tr:last-child td {
  border-bottom: none;
}

.sm-row-total {
  font-weight: 700;
  color: #1a1a1a;
}

.sm-row-total td {
  padding-top: 16px;
  font-size: 16px;
}

/* Info-Box */
.sm-info-box {
  background: #fef9e7;
  border-left: 3px solid #f4d03f;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: #5a5a5a;
  border-radius: 0 4px 4px 0;
}

.sm-info-box strong {
  color: #1a1a1a;
}

/* WhatsApp */
.sm-btn-wa {
  background: #25d366;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 32px;
  border: none;
  width: 100%;
  cursor: pointer;
}

.sm-btn-wa:hover {
  background: #22b85c;
  color: #fff;
}

/* ==========================================================================
   Tippy.js Tooltips
   ========================================================================== */

.tippy-box[data-theme~="soulmakers"] {
  background-color: var(--color-coffee-bean);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 8px;
  padding: 2px 4px;
}

.tippy-box[data-theme~="soulmakers"] .tippy-arrow {
  color: var(--color-coffee-bean);
}

/* ==========================================================================
   Dokumentenliste
   ========================================================================== */

.sm-documents {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sm-doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--color-khaki-beige);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-coffee-bean);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}

.sm-doc-row:hover {
  border-color: var(--color-deep-walnut);
  box-shadow: 0 2px 8px rgba(28, 16, 3, 0.08);
  color: var(--color-coffee-bean);
  text-decoration: none;
}

.sm-doc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sm-doc-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-coffee-bean);
}

.sm-doc-desc {
  font-size: 13px;
  color: var(--color-dusty-taupe);
  line-height: 1.4;
}

.sm-doc-date {
  font-size: 13px;
  color: var(--color-dusty-taupe);
  white-space: nowrap;
  flex-shrink: 0;
}

.sm-doc-icon {
  color: var(--color-khaki-beige);
  flex-shrink: 0;
  display: flex;
  transition: color 0.2s;
}

.sm-doc-row:hover .sm-doc-icon {
  color: var(--color-brandy);
}

@media (max-width: 480px) {
  .sm-doc-row {
    padding: 16px;
    gap: 12px;
  }

  .sm-doc-date {
    display: none;
  }
}
