/* SHK_REGELWERKE_CSS_20260806 */

.rules-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(24, 133, 156, 0.12),
      transparent 28rem
    ),
    linear-gradient(
      180deg,
      #f4f8fb 0%,
      #edf3f7 100%
    );
  color: #102c40;
}

.rules-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.rules-hero {
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(9, 45, 76, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      #092d4c 0%,
      #114e68 58%,
      #176b87 100%
    );
  color: #ffffff;
  box-shadow:
    0 24px 60px rgba(9, 45, 76, 0.2);
}

.rules-hero .hub-back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
}

.rules-hero-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(250px, 0.55fr);
  gap: 38px;
  align-items: center;
}

.rules-hero-copy h1 {
  max-width: 760px;
  margin: 8px 0 18px;
  color: #ffffff;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.rules-hero-copy h1 span {
  display: block;
  color: #9ce9f2;
}

.rules-hero-lead {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.23rem);
  line-height: 1.7;
}

.rules-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.rules-hero-stats span {
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
}

.rules-hero-stats strong {
  color: #ffffff;
  font-size: 1.35rem;
}

.rules-hero-symbol {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.rules-hero-symbol strong {
  font-family: Georgia, serif;
  font-size: clamp(7rem, 15vw, 11rem);
  font-weight: 500;
  line-height: 0.8;
  color: #ffffff;
}

.rules-hero-symbol span {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rules-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(23, 107, 135, 0.2);
  border-radius: 20px;
  background: #e9f7fa;
}

.rules-notice-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #176b87;
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.rules-notice h2 {
  margin: 0 0 5px;
  color: #092d4c;
  font-size: 1rem;
}

.rules-notice p {
  margin: 0;
  color: #37586b;
  line-height: 1.65;
}

/* SHK_REGELWERKE_FILTER_CSS_20260806 */

.rules-filter {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.5fr)
    minmax(190px, 0.75fr)
    minmax(190px, 0.75fr)
    auto;
  gap: 16px;
  align-items: end;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(9, 45, 76, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    0 16px 38px rgba(9, 45, 76, 0.08);
}

.rules-search-field,
.rules-select-field {
  display: grid;
  gap: 8px;
}

.rules-filter label {
  color: #294b60;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.rules-filter input,
.rules-filter select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #c7d6df;
  border-radius: 13px;
  background: #f9fbfc;
  color: #102c40;
  font: inherit;
}

.rules-filter input:focus,
.rules-filter select:focus {
  outline: 3px solid rgba(23, 107, 135, 0.15);
  border-color: #176b87;
}

.rules-filter-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.rules-filter-actions button,
.rules-filter-actions a,
.rules-bulk-actions button {
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.rules-filter-actions button {
  background: #092d4c;
  color: #ffffff;
}

.rules-filter-actions button:hover,
.rules-filter-actions button:focus-visible {
  background: #176b87;
}

.rules-filter-actions a {
  display: inline-flex;
  align-items: center;
  border-color: #c7d6df;
  color: #294b60;
  background: #ffffff;
}

.rules-filter-actions a:hover,
.rules-filter-actions a:focus-visible {
  border-color: #176b87;
  color: #176b87;
}

.rules-result-tools {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 38px 0 20px;
}

.rules-result-tools h2 {
  margin: 4px 0 0;
  color: #092d4c;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.rules-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.rules-bulk-actions button {
  min-height: 42px;
  border-color: #c7d6df;
  background: #ffffff;
  color: #294b60;
}

.rules-bulk-actions button:hover,
.rules-bulk-actions button:focus-visible {
  border-color: #176b87;
  color: #176b87;
}

/* SHK_REGELWERKE_FILTER_CSS_END_20260806 */

/* SHK_REGELWERKE_CARDS_BASE_CSS_20260806 */

.rules-groups {
  display: grid;
  gap: 34px;
}

.rules-trade-group {
  scroll-margin-top: 110px;
}

.rules-trade-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  margin-bottom: 13px;
}

.rules-trade-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #092d4c;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.rules-trade-heading p {
  margin: 0 0 2px;
  color: #5a788a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rules-trade-heading h2 {
  margin: 0;
  color: #092d4c;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.rules-trade-heading > span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #dfeaf0;
  color: #35566a;
  font-size: 0.78rem;
  font-weight: 800;
}

.rules-card-list {
  display: grid;
  gap: 12px;
}

.rules-card {
  overflow: hidden;
  border: 1px solid rgba(9, 45, 76, 0.12);
  border-radius: 19px;
  background: #ffffff;
  box-shadow:
    0 10px 26px rgba(9, 45, 76, 0.06);
  scroll-margin-top: 100px;
}

.rules-card[open] {
  border-color: rgba(23, 107, 135, 0.38);
  box-shadow:
    0 18px 42px rgba(9, 45, 76, 0.11);
}

.rules-card summary {
  list-style: none;
  cursor: pointer;
}

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

.rules-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
}

.rules-card summary:hover {
  background: #f8fbfc;
}

.rules-card summary:focus-visible {
  outline: 3px solid rgba(23, 107, 135, 0.2);
  outline-offset: -3px;
}

.rules-card-labels,
.rules-trade-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rules-type-badge,
.rules-status-badge,
.rules-trade-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.rules-type-badge {
  background: #092d4c;
  color: #ffffff;
}

.rules-type-gesetz,
.rules-type-verordnung,
.rules-type-eu-verordnung {
  background: #7a2b2b;
}

.rules-type-dvgw-arbeitsblatt {
  background: #0b6c60;
}

.rules-type-vdi-richtlinie {
  background: #385a8d;
}

.rules-type-dguv-vorschrift {
  background: #805b10;
}

.rules-status-badge {
  background: #e3f2e8;
  color: #24643a;
  text-transform: capitalize;
}

.rules-card h3 {
  margin: 11px 0 4px;
  color: #092d4c;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.rules-full-title {
  margin: 0;
  color: #294b60;
  font-weight: 750;
  line-height: 1.5;
}

.rules-short-description {
  max-width: 900px;
  margin: 11px 0 13px;
  color: #557283;
  line-height: 1.62;
}

.rules-trade-tag {
  background: #eaf1f5;
  color: #456577;
}

/* SHK_REGELWERKE_CARDS_BASE_CSS_END_20260806 */

/* SHK_REGELWERKE_CARD_DETAILS_CSS_20260806 */

.rules-expand-label {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 108px;
  color: #176b87;
  font-size: 0.78rem;
  font-weight: 850;
}

.rules-expand-label strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5f2f5;
  font-size: 1.3rem;
  transition: transform 180ms ease;
}

.rules-expand-less {
  display: none;
}

.rules-card[open] .rules-expand-more {
  display: none;
}

.rules-card[open] .rules-expand-less {
  display: inline;
}

.rules-card[open] .rules-expand-label strong {
  transform: rotate(180deg);
}

.rules-card-content {
  padding: 0 24px 24px;
  border-top: 1px solid #e3ebef;
}

.rules-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
}

.rules-meta-grid > span {
  padding: 8px 11px;
  border-radius: 10px;
  background: #f0f5f7;
  color: #5a7484;
  font-size: 0.76rem;
}

.rules-meta-grid strong {
  color: #294b60;
}

.rules-detail-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.rules-detail-section {
  padding: 18px;
  border: 1px solid #dce7ec;
  border-radius: 15px;
  background: #fafcfd;
}

.rules-detail-section h4 {
  margin: 0 0 8px;
  color: #092d4c;
  font-size: 0.93rem;
}

.rules-detail-section p {
  margin: 0;
  color: #486777;
  line-height: 1.65;
}

.rules-detail-legal {
  border-color: #cde5d9;
  background: #edf7f3;
}

.rules-detail-warning {
  border-color: #ead8aa;
  background: #fff8e8;
}

/* SHK_REGELWERKE_CARD_DETAILS_CSS_END_20260806 */

/* SHK_REGELWERKE_CARD_FOOTER_CSS_20260806 */

.rules-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e3ebef;
}

.rules-card-footer p {
  margin: 0;
  color: #718896;
  font-size: 0.78rem;
}

.rules-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  background: #092d4c;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.rules-source-link:hover,
.rules-source-link:focus-visible {
  background: #176b87;
}

.rules-empty {
  padding: 52px 24px;
  border: 1px dashed #b8cbd5;
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
}

.rules-empty > div {
  font-size: 3rem;
}

.rules-empty h2 {
  margin: 12px 0 7px;
  color: #092d4c;
}

.rules-empty p {
  margin: 0 0 19px;
  color: #5b7787;
}

.rules-empty a {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 11px;
  background: #092d4c;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.rules-legal-hint {
  margin-top: 44px;
  padding: 28px;
  border-radius: 22px;
  background: #092d4c;
  color: #ffffff;
}

.rules-legal-hint h2 {
  margin: 0 0 20px;
  color: #ffffff;
}

.rules-legal-columns {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rules-legal-columns > div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.rules-legal-columns strong {
  color: #9ce9f2;
}

.rules-legal-columns p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.62;
}

/* SHK_REGELWERKE_CARD_FOOTER_CSS_END_20260806 */

/* SHK_REGELWERKE_RESPONSIVE_CSS_20260806 */

@media (max-width: 980px) {
  .rules-hero-layout {
    grid-template-columns: 1fr;
  }

  .rules-hero-symbol {
    min-height: 190px;
  }

  .rules-filter {
    grid-template-columns: 1fr 1fr;
  }

  .rules-search-field {
    grid-column: 1 / -1;
  }

  .rules-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .rules-legal-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rules-main {
    width: min(100% - 20px, 1240px);
    padding: 16px 0 48px;
  }

  .rules-hero {
    padding: 22px;
    border-radius: 22px;
  }

  .rules-hero .hub-back-link {
    margin-bottom: 20px;
  }

  .rules-hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .rules-hero-symbol {
    display: none;
  }

  .rules-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rules-hero-stats span {
    min-width: 0;
  }

  .rules-notice {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .rules-filter {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .rules-search-field,
  .rules-filter-actions {
    grid-column: auto;
  }

  .rules-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rules-filter-actions button,
  .rules-filter-actions a {
    justify-content: center;
    text-align: center;
  }

  .rules-result-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .rules-bulk-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rules-card-summary {
    grid-template-columns: 1fr;
    padding: 19px;
  }

  .rules-expand-label {
    grid-template-columns: 1fr auto;
    justify-items: start;
    align-items: center;
    min-width: 0;
  }

  .rules-card-content {
    padding: 0 18px 19px;
  }

  .rules-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rules-detail-grid {
    grid-template-columns: 1fr;
  }

  .rules-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .rules-trade-heading {
    grid-template-columns: auto 1fr;
  }

  .rules-trade-heading > span {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .rules-source-link {
    width: 100%;
  }

  .rules-legal-hint {
    padding: 21px;
  }
}

@media (max-width: 420px) {
  .rules-bulk-actions {
    grid-template-columns: 1fr;
  }

  .rules-trade-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .rules-card h3 {
    overflow-wrap: anywhere;
  }
}

/* SHK_REGELWERKE_RESPONSIVE_CSS_END_20260806 */
