body.hk-stoffrechner-layout article.page::before {
  display: block;
  margin: 0 0 8px;
  color: #e2001a;
  content: "Nähen & Stoff";
  font: 600 12px/1.4 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.hk-stoffrechner-layout .hk-info-eyebrow {
  display: none;
}

body.hk-stoffrechner-layout article.page > h1 {
  max-width: none;
  margin: 0 0 16px;
  font: 400 44px/1.12 Lora, Georgia, "Times New Roman", serif;
}

.hk-stoffrechner-intro {
  max-width: none;
  margin: 0 0 40px;
  color: #54595f;
  font: 400 18px/1.6 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hk-stoffrechner {
  display: grid;
  gap: 36px;
}

.hk-stoffrechner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hk-stoffrechner-tabs button {
  margin: 0;
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font: 600 14px/1.2 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hk-stoffrechner-tabs button:hover,
.hk-stoffrechner-tabs button:focus {
  border-color: #e2001a;
  color: #e2001a;
  outline: none;
}

.hk-stoffrechner-tabs button.is-active {
  border-color: #e2001a;
  background: #e2001a;
  color: #fff;
}

.hk-stoffrechner-panel {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.hk-stoffrechner-panel.is-active {
  display: grid;
}

.hk-stoffrechner-form,
.hk-stoffrechner-result {
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}

.hk-stoffrechner-form h2,
.hk-stoffrechner-result h2,
.hk-stoffrechner-tools h2,
.hk-stoffrechner-related h2,
.hk-stoffrechner-faq h2 {
  margin: 0 0 24px;
  color: #333;
  font: 600 22px/1.25 Lora, Georgia, "Times New Roman", serif;
}

.hk-stoffrechner-field {
  margin-bottom: 16px;
}

.hk-stoffrechner-field label,
.hk-stoffrechner-field legend {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font: 600 14px/1.4 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hk-stoffrechner-field small {
  display: block;
  margin-top: 4px;
  color: #7a7a7a;
  font: 400 13px/1.4 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hk-stoffrechner-field input[type="number"],
.hk-stoffrechner-field select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font: 400 15px/1.4 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hk-stoffrechner-field input[type="number"]:focus,
.hk-stoffrechner-field select:focus {
  border-color: #e2001a;
  outline: none;
  box-shadow: 0 0 0 2px rgba(226, 0, 26, 0.12);
}

.hk-stoffrechner-fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.hk-stoffrechner-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hk-stoffrechner-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-weight: 400;
  cursor: pointer;
}

.hk-stoffrechner-options input {
  margin: 0;
}

.hk-stoffrechner-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hk-stoffrechner-result-value {
  margin: 0 0 8px;
  color: #e2001a;
  font: 700 42px/1.1 Lora, Georgia, "Times New Roman", serif;
}

.hk-stoffrechner-result-sub {
  margin: 0 0 18px;
  color: #54595f;
  font: 400 16px/1.5 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hk-stoffrechner-breakdown {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.hk-stoffrechner-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #333;
  font: 400 14px/1.4 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hk-stoffrechner-breakdown li:last-child {
  border-bottom: 0;
}

.hk-stoffrechner-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid #e2001a;
  background: #fff;
  color: #54595f;
  font: 400 14px/1.5 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hk-stoffrechner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.hk-stoffrechner-actions .btn {
  margin: 0;
}

.hk-stoffrechner-tools,
.hk-stoffrechner-related,
.hk-stoffrechner-faq {
  margin-top: 56px;
  padding-top: 0;
}

.hk-stoffrechner-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hk-stoffrechner-tool-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  color: inherit;
  text-decoration: none;
}

.hk-stoffrechner-tool-card:hover,
.hk-stoffrechner-tool-card:focus {
  border-color: #e2001a;
  color: inherit;
  text-decoration: none;
}

.hk-stoffrechner-tool-card strong {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font: 600 18px/1.3 Lora, Georgia, "Times New Roman", serif;
}

.hk-stoffrechner-tool-card span {
  display: block;
  color: #54595f;
  font: 400 14px/1.55 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hk-stoffrechner-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hk-stoffrechner-related-item {
  display: block;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.hk-stoffrechner-related-item:hover,
.hk-stoffrechner-related-item:focus {
  border-color: #e2001a;
  color: inherit;
  text-decoration: none;
}

.hk-stoffrechner-related-item img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.hk-stoffrechner-related-item span {
  display: block;
  padding: 10px 12px;
  color: #333;
  font: 600 14px/1.35 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hk-stoffrechner-faq details {
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
}

.hk-stoffrechner-faq summary {
  cursor: pointer;
  color: #333;
  font: 600 15px/1.4 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hk-stoffrechner-faq p {
  margin: 12px 0 0;
  color: #54595f;
  font: 400 15px/1.6 "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (max-width: 900px) {
  .hk-stoffrechner-panel.is-active {
    grid-template-columns: 1fr;
  }

  .hk-stoffrechner-tools-grid,
  .hk-stoffrechner-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.hk-stoffrechner-layout article.page > h1 {
    font-size: 32px;
  }

  .hk-stoffrechner-grid-2,
  .hk-stoffrechner-tools-grid,
  .hk-stoffrechner-related-grid {
    grid-template-columns: 1fr;
  }
}
