.spf-finder {
  margin: 32px 0;
  padding: 24px;
  border-radius: 18px;
  background: #f7fbf8;
  border: 1px solid #dbeee0;
  font-family: inherit;
}

.spf-header {
  margin-bottom: 22px;
}

.spf-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e3f3e8;
  font-size: 14px;
  font-weight: 700;
}

.spf-header h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.spf-header p {
  margin: 0;
  max-width: 780px;
}

.spf-filterbox {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  align-items: end;
}

.spf-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.spf-field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #bfd8c7;
  background: #ffffff;
}

.spf-reset {
  min-height: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: #294f36;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.spf-reset:hover,
.spf-button:hover {
  opacity: 0.9;
}

.spf-summary {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8df;
  border-left: 5px solid #e6b800;
  font-weight: 600;
}

.spf-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spf-card {
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dce9df;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.spf-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.spf-description {
  margin: 0 0 12px;
}

.spf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.spf-meta span {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef7f1;
  font-size: 13px;
  font-weight: 600;
}

.spf-button {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 10px;
  background: #2f6d46;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
}

.spf-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e3e3e3;
}

@media (max-width: 900px) {
  .spf-filterbox,
  .spf-results {
    grid-template-columns: 1fr;
  }

  .spf-finder {
    padding: 18px;
  }

  .spf-header h2 {
    font-size: 24px;
  }
}

.spf-detailbox {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  background: #f8fafc;
}

.spf-detailbox h2 {
  margin-top: 0;
}

.spf-backlink {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #d0d7de;
}

.spf-intro {
  font-size: 1.08em;
  line-height: 1.7;
}

.spf-amazonbox,
.spf-related {
  margin: 28px 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #eadfb8;
  background: #fffaf0;
}

.spf-amazonbox h2,
.spf-related h2 {
  margin-top: 0;
}

.spf-amazon-hinweis {
  font-size: 0.95em;
  opacity: 0.85;
}

.spf-related ul {
  margin-bottom: 0;
}

.spf-random-amazon-product {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    background: #fffdf8;
    margin-top: 14px;
}

.spf-amazon-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    background: #f3f4f6;
}

.spf-amazon-small {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Produktbox ab Version 1.5 */
.spf-product-card {
    display: flex;
    gap: 18px;
    align-items: center;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    margin-top: 12px;
}
.spf-product-image-link {
    display: block;
    flex: 0 0 130px;
    text-align: center;
}
.spf-product-image {
    max-width: 130px;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}
.spf-product-info {
    flex: 1;
}
.spf-product-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.35;
}
.spf-product-title a {
    text-decoration: none;
}
.spf-material-label {
    margin-bottom: 8px;
}
@media (max-width: 600px) {
    .spf-product-card {
        align-items: flex-start;
        flex-direction: column;
    }
    .spf-product-image-link {
        flex-basis: auto;
        width: 100%;
    }
}


.spf-product-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

.spf-product-image {
  max-width: 140px;
  height: auto;
  border-radius: 10px;
}

.spf-product-title {
  margin-top: 0;
}

@media (max-width: 600px) {
  .spf-product-card { display: block; }
  .spf-product-image { margin-bottom: 12px; }
}


/* Version 1.6.4: Amazon-Produktbild um ca. 50% verkleinert */
.spf-product-image-link {
    flex: 0 0 70px;
    max-width: 70px;
}

.spf-product-image {
    max-width: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

@media (max-width: 600px) {
    .spf-product-image-link {
        width: auto;
        max-width: 70px;
    }

    .spf-product-image {
        margin-bottom: 10px;
    }
}

/* Version 1.8.2: Klickbare Buttons kompakter */
.spf-button,
.spf-reset,
.spf-amazon-button,
.spf-backlink {
  padding: 5px 10px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  border-radius: 6px !important;
  min-height: auto !important;
}

.spf-reset {
  min-height: 30px !important;
}

.spf-button,
.spf-amazon-button,
.spf-backlink {
  display: inline-block;
}

/* Version 1.8.3: farbige, freundlichere Detailseiten */
.spf-hero {
  margin: 26px 0 24px;
  padding: 24px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7d6 0%, #e9f8ef 55%, #eef6ff 100%);
  border: 1px solid #e7edd5;
  box-shadow: 0 10px 28px rgba(35, 68, 49, 0.08);
}

.spf-hero-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #2f6d46;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.spf-intro {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.75;
  color: #243226;
}

.spf-detailbox {
  border: 0;
  border-radius: 22px;
  padding: 24px;
  margin: 26px 0;
  background: #f0fbf4;
  box-shadow: inset 0 0 0 1px #cfead7, 0 8px 22px rgba(35, 68, 49, 0.06);
}

.spf-detailbox h2 {
  color: #244f34;
  margin-bottom: 14px;
}

.spf-detailbox ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.spf-detailbox li {
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #d9efdf;
}

.spf-contentbox {
  margin: 26px 0;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid transparent;
  box-shadow: 0 8px 22px rgba(0,0,0,0.045);
}

.spf-contentbox h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.45em;
  line-height: 1.25;
}

.spf-contentbox p:last-child {
  margin-bottom: 0;
}

.spf-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
}

.spf-box-goal { background: #fff4d6; border-color: #f0d58a; }
.spf-box-play { background: #eaf7ff; border-color: #bfe4f7; }
.spf-box-value { background: #edf9ef; border-color: #c6e8ce; }
.spf-box-development { background: #f3edff; border-color: #d9c8ff; }
.spf-box-variants { background: #fff0f6; border-color: #f4bfd5; }
.spf-box-tip { background: #fff8df; border-color: #eecf6d; }
.spf-box-safety { background: #f1f7ff; border-color: #c5d9f5; }
.spf-box-expert { background: #f5f5ff; border-color: #d5d5f6; }

.spf-amazonbox,
.spf-related {
  border: 0;
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.045);
}

.spf-amazonbox {
  background: #fff8e8;
  box-shadow: inset 0 0 0 1px #ecdca8, 0 8px 22px rgba(0,0,0,0.045);
}

.spf-amazonbox h2::before {
  content: "🛒 ";
}

.spf-related {
  background: #eef9f3;
  box-shadow: inset 0 0 0 1px #cde9d8, 0 8px 22px rgba(0,0,0,0.045);
}

.spf-related ul {
  padding-left: 20px;
}

.spf-related a {
  font-weight: 700;
}

.spf-backlink {
  background: #2f6d46;
  color: #ffffff !important;
  border: 0 !important;
}

@media (max-width: 700px) {
  .spf-detailbox ul {
    grid-template-columns: 1fr;
  }

  .spf-hero,
  .spf-detailbox,
  .spf-contentbox,
  .spf-amazonbox,
  .spf-related {
    padding: 18px;
    border-radius: 18px;
  }
}
