/* ==============================================
   Komponenten – Auranatura Design System
   Quelle: Figma (extrahiert via MCP)
   ============================================== */

/* --- Icon Size Classes (Phosphor Icons, font-basiert) --- */

/* Größenklassen */
.icon-xs { font-size: var(--icon-xs); }
.icon-sm { font-size: var(--icon-sm); }
.icon-md { font-size: var(--icon-md); }
.icon-lg { font-size: var(--icon-lg); }

/* --- Badge (Counter) --- */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: white;
  background-color: var(--signal-rot);
  border-radius: var(--radius-full);
}

/* --- Buttons (Basis) --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-base),
    box-shadow var(--transition-base),
    opacity var(--transition-base);
}

/* Squircle (Progressive Enhancement) */
@supports (corner-shape: squircle) {
  .btn {
    corner-shape: squircle;
  }
}

/* --- Button Sizes --- */

.btn-sm {
  font-size: var(--btn-sm-size);
  line-height: var(--btn-sm-line);
  padding: var(--btn-sm-padding);
  min-height: var(--btn-sm-min-h);
}

.btn-md {
  font-size: var(--btn-md-size);
  line-height: var(--btn-md-line);
  padding: var(--btn-md-padding);
  min-height: var(--btn-md-min-h);
}

.btn-lg {
  font-size: var(--btn-lg-size);
  line-height: var(--btn-lg-line);
  padding: var(--btn-lg-padding);
  min-height: var(--btn-lg-min-h);
}

/* --- Button Primary --- */

.btn-primary {
  background-color: var(--primary-700);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-600);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  background-color: var(--primary-600);
  box-shadow: none;
}

.btn-primary:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

.btn-primary:disabled,
.btn-primary.is-disabled {
  background-color: var(--primary-700);
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* --- Button Secondary --- */

.btn-secondary {
  background-color: var(--ui-200);
  color: var(--ui-900);
}

.btn-secondary:hover {
  background-color: var(--ui-300);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  background-color: var(--ui-400);
  box-shadow: none;
}

.btn-secondary:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

.btn-secondary:disabled,
.btn-secondary.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* --- Button Danger (Destructive) --- */

.btn-danger {
  background-color: var(--signal-rot);
  color: var(--white);
}

.btn-danger:hover {
  background-color: color-mix(in srgb, var(--signal-rot) 85%, black);
  box-shadow: var(--shadow-lg);
}

.btn-danger:active {
  background-color: color-mix(in srgb, var(--signal-rot) 75%, black);
  box-shadow: none;
}

.btn-danger:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

.btn-danger:disabled,
.btn-danger.is-disabled {
  background-color: var(--signal-rot);
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* --- Button Icon --- */

.btn-icon {
  font-size: 1.4em;
  line-height: 1;
  flex-shrink: 0;
}

/* --- Text-Link --- */

.text-link {
  display: inline;
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition-base);
}

/* Text-Link Sizes (passend zu Button Sizes) */
.text-link-sm {
  font-size: var(--btn-sm-size);
}

.text-link-md {
  font-size: var(--btn-md-size);
}

.text-link-lg {
  font-size: var(--btn-lg-size);
}

.text-link--plain {
  text-decoration: none;
}

.text-link--plain:hover {
  text-decoration: underline;
}

.text-link:hover {
  color: var(--primary-600);
}

.text-link:active {
  color: var(--primary-700);
}

.text-link:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
  border-radius: 2px;
}

.text-link:disabled,
.text-link.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Tags --- */

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

.tag-sm {
  font-size: var(--text-xs-size);
  padding: 4px 8px;
}

.tag-md {
  font-size: var(--text-sm-size);
  padding: 6px 10px;
}

.tag-lg {
  font-size: var(--text-lg-size);
  padding: 8px 12px;
}

/* Squircle (Progressive Enhancement) */
@supports (corner-shape: squircle) {
  .tag {
    corner-shape: squircle;
  }
}

/* Produkt-Tag (z.B. TESTSIEGER, AKTION, NEU) */
.tag-product {
  background-color: var(--signal-rot);
  color: var(--white);
}

/* Dark Tag (Sand 900 bg, weisser Text) */
.tag-dark {
  background-color: var(--ui-900);
  color: var(--white);
}

/* Tag-Icon (Phosphor Icons, skalierend via font-size) */
.tag-icon {
  font-size: 1.4em;
  line-height: 1;
  flex-shrink: 0;
}

/* --- Tag Bewertung --- */

.tag-rating {
  background-color: var(--ui-100);
  color: var(--ui-900);
  text-transform: none;
  font-weight: var(--font-weight-medium);
  gap: var(--space-1);
}

.tag-rating-score {
  font-weight: var(--font-weight-bold);
}

.tag-rating-star {
  color: var(--stern-gelb);
  font-size: 1.25em;
  line-height: 1;
  flex-shrink: 0;
}

.tag-rating-link {
  font-weight: var(--font-weight-medium);
  color: var(--ui-900);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition-base);
}

.tag-rating-link:hover {
  color: var(--primary-600);
}

.tag-rating-link:active {
  color: var(--primary-700);
}

/* ==============================================
   Inputs
   ============================================== */

/* --- Input Group (Wrapper für Input + Icon) --- */

.input-group {
  display: flex;
  align-items: center;
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  color: var(--ui-900);
  border: 2px solid var(--ui-400);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.input-group:hover:not(.is-disabled):not(.input-error):not(.input-success) {
  border-color: var(--ui-600);
}

.input-group:active:not(.is-disabled):not(.input-error):not(.input-success) {
  border-color: var(--ui-700);
}

.input-group:focus-within {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

/* --- Input Field (innerhalb von .input-group) --- */

.input-field {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}

.input-field::placeholder {
  color: var(--ui-600);
}

/* --- Standalone Input (ohne Wrapper, z.B. Mail) --- */

.input {
  display: block;
  width: 100%;
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  color: var(--ui-900);
  border: 2px solid var(--ui-400);
  outline: none;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.input::placeholder {
  color: var(--ui-600);
}

.input:hover:not(:disabled):not(.input-error):not(.input-success) {
  border-color: var(--ui-600);
}

.input:active:not(:disabled):not(.input-error):not(.input-success) {
  border-color: var(--ui-700);
}

.input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

.input:disabled,
.input.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Input Varianten --- */

.input-pill,
.input-group.input-pill {
  border-radius: var(--radius-full);
  background-color: var(--ui-50);
}

.input-box,
.input-group.input-box {
  border-radius: var(--radius-lg);
  background-color: var(--white);
  border-width: 2px;
}

/* Squircle PE */
@supports (corner-shape: squircle) {
  .input-box,
  .input-group.input-box {
    corner-shape: squircle;
  }
}

/* --- Input Sizes --- */

.input-md,
.input-group.input-md {
  height: 48px;
  font-size: var(--text-lg-size);
  padding: 4px 12px 4px 20px;
}

.input-lg,
.input-group.input-lg {
  height: 64px;
  font-size: var(--text-xl-size);
  padding: 8px 24px;
}

/* --- Input Label (statisch über dem Feld) --- */
/* Revert-Referenz: vorher keine Labels, Box-Inputs nur mit Placeholder */

.input-label {
  display: block;
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--ui-900);
  margin-bottom: var(--space-1);
}

.input-wrap {
  display: flex;
  flex-direction: column;
}

.input-hint {
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
  color: var(--ui-600);
  margin-top: var(--space-1);
}

/* --- Input Icon (innerhalb .input-group) --- */

.input-icon {
  font-size: 1.6em;
  line-height: 1;
  color: var(--ui-600);
  flex-shrink: 0;
  margin-left: var(--space-2);
}

.input-icon-left {
  font-size: 1.25em;
  line-height: 1;
  color: var(--ui-500);
  flex-shrink: 0;
  margin-right: var(--space-2);
}

/* --- Password Toggle (innerhalb .input-group) --- */

.password-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0 var(--space-2);
  cursor: pointer;
  color: var(--ui-500);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.password-toggle:hover {
  color: var(--ui-700);
}

.password-toggle:active {
  color: var(--ui-900);
}

.password-toggle .icon-eye,
.password-toggle .icon-eye-off {
  font-size: 20px;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-off {
  display: block;
}

/* --- Input Validation --- */

.input-error,
.input-group.input-error,
[aria-invalid="true"] {
  border-color: var(--signal-rot);
}

.input-error:focus-visible,
.input-group.input-error:focus-within,
[aria-invalid="true"]:focus-visible {
  box-shadow:
    0 0 0 2px var(--signal-rot),
    0 0 0 5px color-mix(in srgb, var(--signal-rot) 15%, transparent);
}

.input-success,
.input-group.input-success {
  border-color: var(--green-700);
}

.input-success:focus-visible,
.input-group.input-success:focus-within {
  box-shadow:
    0 0 0 2px var(--green-700),
    0 0 0 5px color-mix(in srgb, var(--green-700) 15%, transparent);
}

.input-message {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-family);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  margin-top: var(--space-1);
}

.input-message--error {
  color: var(--signal-rot);
}

.input-message--success {
  color: var(--green-700);
}

/* ==============================================
   Select / Dropdown
   ============================================== */

.select {
  display: block;
  width: 100%;
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  color: var(--ui-900);
  border: 2px solid var(--ui-400);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%238F7559' stroke-width='24' stroke-linecap='round' stroke-linejoin='round' d='M208 96L128 176L48 96'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
  cursor: pointer;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.select:hover:not(:disabled):not(.select-error) {
  border-color: var(--ui-600);
}

.select:active:not(:disabled):not(.select-error) {
  border-color: var(--ui-700);
}

.select:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

.select:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Placeholder-Option (disabled, grau) */
.select:invalid,
.select option[value=""] {
  color: var(--ui-600);
}

.select:not(:invalid) {
  color: var(--ui-900);
}

/* --- Select Varianten --- */

.select-pill {
  border-radius: var(--radius-full);
  background-color: var(--ui-50);
}

.select-box {
  border-radius: var(--radius-lg);
  background-color: var(--white);
  border-width: 2px;
}

@supports (corner-shape: squircle) {
  .select-box {
    corner-shape: squircle;
  }
}

/* --- Select Sizes --- */

.select-md {
  height: 48px;
  font-size: var(--text-lg-size);
  padding: 4px 48px 4px 20px;
}

.select-lg {
  height: 64px;
  font-size: var(--text-xl-size);
  padding: 8px 48px 8px 24px;
}

/* --- Select Validation --- */

.select-error {
  border-color: var(--signal-rot);
}

.select-error:focus-visible {
  box-shadow:
    0 0 0 2px var(--signal-rot),
    0 0 0 5px color-mix(in srgb, var(--signal-rot) 15%, transparent);
}

/* ==============================================
   Textarea
   ============================================== */

.textarea {
  display: block;
  width: 100%;
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-lg-size);
  line-height: var(--text-lg-line);
  color: var(--ui-900);
  border: 2px solid var(--ui-400);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  outline: none;
  padding: 12px 20px;
  min-height: 120px;
  resize: none;
  field-sizing: content;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

@supports (corner-shape: squircle) {
  .textarea {
    corner-shape: squircle;
  }
}

.textarea::placeholder {
  color: var(--ui-600);
}

.textarea:hover:not(:disabled):not(.textarea-error) {
  border-color: var(--ui-600);
}

.textarea:active:not(:disabled):not(.textarea-error) {
  border-color: var(--ui-700);
}

.textarea:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

.textarea:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.textarea-error {
  border-color: var(--signal-rot);
}

.textarea-error:focus-visible {
  box-shadow:
    0 0 0 2px var(--signal-rot),
    0 0 0 5px color-mix(in srgb, var(--signal-rot) 15%, transparent);
}

/* ==============================================
   Checkboxen & Radios
   ============================================== */

/* --- Gemeinsame Basis --- */

.check,
.radio {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--text-lg-size);
  line-height: var(--text-lg-line);
  font-weight: var(--font-weight-medium);
  color: var(--ui-900);
}

.check-input,
.radio-input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--ui-500);
  background-color: var(--white);
  cursor: pointer;
  margin: 0;
  margin-top: 3px;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.check-input {
  border-radius: var(--radius-sm);
}

.radio-input {
  border-radius: 50%;
}

/* Squircle PE für Checkbox */
@supports (corner-shape: squircle) {
  .check-input {
    corner-shape: squircle;
  }
}

/* --- Hover --- */

.check:hover .check-input,
.radio:hover .radio-input {
  border-color: var(--primary-600);
}

/* --- Active --- */

.check:active .check-input,
.radio:active .radio-input {
  transform: scale(0.9);
}

/* --- Focus --- */

.check-input:focus-visible,
.radio-input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

/* --- Checked --- */

.check-input:checked {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23FAF7F2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5L6.5 11.5L12.5 4.5'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.radio-input:checked {
  background-color: var(--white);
  border-color: var(--primary-700);
  border-width: 6px;
}

/* --- Checked + Hover --- */

.check:hover .check-input:checked {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
}

.radio:hover .radio-input:checked {
  border-color: var(--primary-600);
}

/* --- Disabled --- */

.check-input:disabled,
.radio-input:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.check-input:disabled ~ .check-label,
.radio-input:disabled ~ .radio-label {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- Label --- */

.check-label,
.radio-label {
  cursor: pointer;
}

.check-input:disabled ~ .check-label,
.radio-input:disabled ~ .radio-label {
  pointer-events: none;
}


/* ==============================================
   Toggle / Switch
   ============================================== */

.toggle {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--text-lg-size);
  line-height: var(--text-lg-line);
  font-weight: var(--font-weight-medium);
  color: var(--ui-900);
}

.toggle-input {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 12px;
  background-color: var(--ui-300);
  border: none;
  position: relative;
  cursor: pointer;
  margin: 0;
  margin-top: 2px;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.toggle-input::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--white);
  top: 3px;
  left: 3px;
  transition: transform var(--transition-base);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* --- Hover --- */

.toggle:hover .toggle-input {
  background-color: var(--ui-400);
}

.toggle:hover .toggle-input:checked {
  background-color: var(--primary-600);
}

/* --- Active --- */

.toggle:active .toggle-input {
  transform: scale(0.9);
}

/* --- Focus --- */

.toggle-input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

/* --- Checked --- */

.toggle-input:checked {
  background-color: var(--primary-700);
}

.toggle-input:checked::before {
  transform: translateX(20px);
}

/* --- Disabled --- */

.toggle-input:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.toggle-input:disabled ~ .toggle-label {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- Label --- */

.toggle-label {
  cursor: pointer;
}

.toggle-input:disabled ~ .toggle-label {
  pointer-events: none;
}

/* ==============================================
   Breadcrumbs
   ============================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  color: var(--ui-600);
}

.breadcrumb > li {
  display: flex;
  align-items: center;
}

.breadcrumb-link {
  font-weight: var(--font-weight-medium);
  color: var(--ui-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--primary-600);
}

.breadcrumb-link:active {
  color: var(--primary-700);
}

.breadcrumb-link:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
  border-radius: 2px;
}

.breadcrumb-separator {
  font-size: var(--icon-xs);
  color: var(--ui-600);
  flex-shrink: 0;
}

.breadcrumb-current {
  font-weight: var(--font-weight-semibold);
  color: var(--ui-900);
}

/* ==============================================
   Accordion
   Basiert auf <details>/<summary> (kein JS nötig).
   ============================================== */

/* --- Status Badge --- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-family);
  font-size: var(--text-xs-size);
  font-weight: var(--font-weight-semibold);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-badge--processing {
  background-color: var(--ui-100);
  color: var(--ui-700);
  border: 1px solid var(--ui-200);
}

.status-badge--shipped {
  background-color: var(--blue-50, #eff6ff);
  color: var(--blue-700, #1d4ed8);
  border: 1px solid var(--blue-200, #bfdbfe);
}

.status-badge--delivered {
  background-color: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}

.status-badge--cancelled {
  background-color: color-mix(in srgb, var(--signal-rot) 10%, white);
  color: var(--signal-rot);
  border: 1px solid color-mix(in srgb, var(--signal-rot) 25%, white);
}

/* --- Tabs (Segmented Control) --- */

.tabs-segmented {
  display: flex;
  background: var(--ui-100);
  border-radius: var(--radius-lg);
  padding: 3px;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-segmented::-webkit-scrollbar {
  display: none;
}

.tabs-segmented a,
.tabs-segmented button {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family);
  font-size: var(--text-sm-size);
  font-weight: var(--font-weight-medium);
  color: var(--ui-700);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: calc(var(--radius-lg) - 2px);
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.tabs-segmented a:hover,
.tabs-segmented button:hover {
  color: var(--ui-900);
  background-color: var(--ui-200);
}

.tabs-segmented a:active,
.tabs-segmented button:active {
  background-color: var(--ui-300);
}

.tabs-segmented a.is-active,
.tabs-segmented button.is-active {
  color: var(--ui-900);
  font-weight: var(--font-weight-semibold);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.tabs-segmented a:focus-visible,
.tabs-segmented button:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

/* --- Accordion --- */

.accordion {
  border: 1.5px solid var(--ui-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@supports (corner-shape: squircle) {
  .accordion,
  .accordion-group {
    corner-shape: squircle;
  }
}

/* Gestapelt: Gruppen-Wrapper übernimmt Border + Radius */
.accordion-group {
  border: 1.5px solid var(--ui-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-group .accordion {
  border: none;
  border-radius: 0;
}

.accordion-group .accordion + .accordion {
  border-top: 1.5px solid var(--ui-300);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--text-lg-size);
  font-weight: var(--font-weight-semibold);
  color: var(--ui-900);
  background: none;
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
  transition: background-color var(--transition-fast);
}

/* Gestapelt: Trigger-Radien für Focus-Ring */
.accordion-group > .accordion:first-child > .accordion-trigger {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.accordion-group > .accordion:last-child > .accordion-trigger {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.accordion-group > .accordion:only-child > .accordion-trigger {
  border-radius: var(--radius-lg);
}

/* Webkit: nativen Marker entfernen */
.accordion-trigger::-webkit-details-marker {
  display: none;
}

.accordion-trigger:hover {
  background-color: var(--ui-50);
}

.accordion-trigger:active {
  background-color: var(--ui-100);
}

.accordion-trigger:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px var(--ui-900);
}

/* Plus-Icon → rotiert 45° zu × wenn offen */
.accordion-trigger .accordion-icon {
  font-size: var(--icon-md);
  color: var(--ui-500);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

details[open] > .accordion-trigger .accordion-icon {
  transform: rotate(45deg);
}

/* Panel */
.accordion-panel {
  border-top: 1px solid var(--ui-200);
  margin: 0 var(--space-4);
  padding: var(--space-3) 0 var(--space-4);
}

/* ==============================================
   Card
   Generischer Karten-Container. Basis für
   Formulare, Adressen, Inhaltsblöcke etc.
   Variante --form für Auth-Flows (max-width,
   responsive Padding).
   ============================================== */

.card {
  background: var(--ui-50);
  border: 1px solid var(--ui-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  width: 100%;
}

@supports (corner-shape: squircle) {
  .card {
    corner-shape: squircle;
  }
}

/* --- Card Variant: Form (Auth, zentrierte Formulare) --- */

.card--form {
  max-width: 440px;
}

@media (min-width: 480px) {
  .card--form {
    padding: var(--space-5);
  }
}

@media (min-width: 768px) {
  .card--form {
    padding: var(--space-6);
  }
}

/* --- Card Heading --- */

.card h1 {
  font-size: var(--headline-xs-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--headline-xs-line);
  color: var(--ui-900);
  margin-bottom: var(--space-5);
}

/* --- Eyebrow (Section-Level) --- */
.section-eyebrow {
  font-size: var(--text-sm-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ui-700);
  margin-bottom: var(--space-2);
}

.card-eyebrow {
  font-size: var(--text-sm-size);
  font-weight: var(--font-weight-medium);
  color: var(--ui-600);
  margin-bottom: var(--space-1);
}

.card-title {
  font-size: var(--headline-xs-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--headline-xs-line);
  color: var(--ui-900);
  margin-bottom: var(--space-5);
}

/* --- Card Label (Uppercase Overline, z.B. Adresstyp) --- */

.card-label {
  font-size: var(--text-xs-size);
  font-weight: var(--font-weight-semibold);
  color: var(--ui-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

/* --- Card Actions (Separator + Link-Leiste) --- */

.card-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--ui-200);
}

/* ==============================================
   Info Banner
   Hinweis-Banner mit Funktionsfarben und
   optionalem Icon. Für Status, Feedback etc.
   ============================================== */

.info-banner {
  padding: var(--space-4);
  border: 2px solid;
  border-radius: var(--radius-md);
  corner-shape: squircle;
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  width: 100%;
  max-width: var(--content-max-width);
  margin-bottom: var(--space-5);
}

/* Flex nur wenn Icon vorhanden — sonst normaler Textfluss */
.info-banner:has(> i) {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.info-banner > i {
  flex-shrink: 0;
  font-size: 20px;
  margin-top: 2px;
}

.info-banner strong {
  font-weight: var(--font-weight-semibold);
}

/* Varianten */
.info-banner--info {
  background-color: var(--blue-50);
  border-color: var(--blue-400);
  color: var(--blue-800);
}

.info-banner--info > i {
  color: var(--blue-600);
}

.info-banner--success {
  background-color: var(--green-50);
  border-color: var(--green-600);
  color: var(--green-800);
}

.info-banner--success > i {
  color: var(--green-700);
}

.info-banner--warning {
  background-color: #FFF8E6;
  border-color: #D4A017;
  color: var(--ui-900);
}

.info-banner--warning > i {
  color: #B8860B;
}

.info-banner--error {
  background-color: #FEF2F2;
  border-color: var(--signal-rot);
  color: var(--signal-rot);
}

.info-banner--error > i {
  color: var(--signal-rot);
}

.info-banner .text-link {
  color: inherit;
  font-size: inherit;
}

.info-banner .text-link:hover,
.info-banner .text-link:active {
  color: inherit;
  opacity: 0.7;
}

.info-banner[hidden] {
  display: none;
}

/* ==============================================
   Toast
   Temporäre Benachrichtigungen (Success, Info, Error).
   Fixed bottom-center, auto-dismiss, close button.
   ============================================== */

.toast-container {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  width: calc(100vw - 2 * var(--space-4));
  max-width: 400px;
  display: grid;
}

.toast {
  grid-area: 1 / 1;
  align-self: end;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 2px solid;
  border-radius: var(--radius-md);
  corner-shape: squircle;
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  animation: toast-in 300ms ease-out;
  transition: transform 300ms ease, opacity 300ms ease;
}

.toast.is-dismissing {
  animation: toast-out 200ms ease-in forwards;
}

/* Stacking – ältere Toasts schauen oben als Kanten raus */
.toast-container > .toast:nth-last-child(2):not(.is-dismissing) {
  transform: translateY(-0.5rem) scale(0.97);
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}

.toast-container > .toast:nth-last-child(3):not(.is-dismissing) {
  transform: translateY(-0.875rem) scale(0.94);
  opacity: 0.4;
  z-index: -2;
  pointer-events: none;
}

.toast-container > .toast:nth-last-child(n+4):not(.is-dismissing) {
  transform: translateY(-0.875rem) scale(0.94);
  opacity: 0;
  z-index: -3;
  pointer-events: none;
}

.toast > .icon {
  flex-shrink: 0;
  font-size: 20px;
  margin-top: 2px;
}

.toast .text-link {
  color: inherit;
  font-size: inherit;
}

.toast .text-link:hover,
.toast .text-link:active {
  color: inherit;
  opacity: 0.7;
}

.toast-message {
  flex: 1;
}

.toast-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
  border-radius: var(--radius-sm);
}

.toast-close:hover {
  opacity: 1;
}

.toast-close:active {
  opacity: 0.6;
}

.toast-close i {
  font-size: 1.25rem;
}

.toast-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

/* Varianten */
.toast--success {
  background-color: var(--green-50);
  border-color: var(--green-600);
  color: var(--green-800);
}

.toast--success > .icon {
  color: var(--green-700);
}

.toast--info {
  background-color: var(--blue-50);
  border-color: var(--blue-400);
  color: var(--blue-800);
}

.toast--info > .icon {
  color: var(--blue-600);
}

.toast--error {
  background-color: #FEF2F2;
  border-color: var(--signal-rot);
  color: var(--signal-rot);
}

.toast--error > .icon {
  color: var(--signal-rot);
}

/* Animationen */
@keyframes toast-in {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(1rem); }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes toast-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes toast-out {
    from { opacity: 1; }
    to   { opacity: 0; }
  }
}

/* ==============================================
   Modal (Dialog)
   Native <dialog> mit showModal(). Backdrop-Klick,
   Escape, Close-Button. Scrollbarer Body.
   Inhalt frei bestückbar (Text, Info-Banner etc.)
   ============================================== */

html:has(dialog[open]:modal) {
  overflow: hidden;
}

dialog.modal {
  border: none;
  padding: 0;
  margin: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: calc(100vw - 2 * var(--space-4));
  max-width: 480px;
  max-height: calc(100vh - 2 * var(--space-6));
  max-height: calc(100dvh - 2 * var(--space-6));
  overflow: hidden;
  color: var(--ui-900);
  font-family: var(--font-family);
}

dialog.modal[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: modal-in 200ms ease-out;
}

@supports (corner-shape: squircle) {
  dialog.modal {
    corner-shape: squircle;
  }
}

/* Backdrop */
dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

dialog.modal[open]::backdrop {
  animation: modal-backdrop-in 200ms ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* --- Modal Header --- */

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  flex-shrink: 0;
}

.modal-title {
  font-size: var(--headline-xs-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--headline-xs-line);
  color: var(--ui-900);
  margin: 0;
}

/* --- Modal Close --- */

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ui-900);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  margin: calc(-1 * var(--space-1)) calc(-1 * var(--space-2));
  transition: background-color var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--ui-100);
}

.modal-close:active {
  background-color: var(--ui-200);
}

.modal-close:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

.modal-close i {
  font-size: var(--icon-md);
}

/* --- Modal Body --- */

.modal-body {
  padding: 0 var(--space-5) var(--space-5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
  transition: box-shadow var(--transition-fast);
}

.modal-body.has-scroll-shadow {
  box-shadow: inset 0 -16px 12px -12px rgba(0, 0, 0, 0.1);
}

.modal-body > * + * {
  margin-top: var(--space-3);
}

.modal-body .info-banner {
  margin-bottom: 0;
}

.modal-body ul {
  padding-left: 1.25em;
  list-style-type: disc;
}

.modal-body li + li {
  margin-top: var(--space-1);
}

.text-danger {
  color: var(--signal-rot);
}

/* --- Modal Footer --- */

.modal-footer {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--ui-200);
  flex-shrink: 0;
}

/* --- Modal Icon (optional, dekorativ) --- */

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  font-size: var(--icon-lg);
  flex-shrink: 0;
  margin-bottom: var(--space-2);
}

@supports (corner-shape: squircle) {
  .modal-icon {
    corner-shape: squircle;
  }
}

.modal-icon--warning {
  background-color: #FEF2F2;
  color: var(--signal-rot);
}

.modal-icon--info {
  background-color: var(--blue-50);
  color: var(--blue-600);
}

.modal-icon--success {
  background-color: var(--green-50);
  color: var(--green-700);
}

/* --- Card Form (nur innerhalb --form Variante) --- */

.card--form form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card--form .btn {
  width: 100%;
}

.card--form .input-wrap .text-link {
  font-size: var(--text-sm-size);
  margin-top: var(--space-1);
  display: inline-block;
}

/* --- Card Description (z.B. Erklärungstext unter H1) --- */

.card-description {
  font-size: var(--text-sm-size);
  color: var(--ui-600);
  margin-bottom: var(--space-4);
}

/* --- Card Links (Bottom divider + link pair) --- */

.card-links {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--ui-200);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  font-size: var(--text-sm-size);
}

/* ==============================================
   Feature Banner
   Image + Content Split mit Checkliste und
   optionalem CTA. Für Vorteile, Teaser etc.
   ============================================== */

.feature-banner {
  width: 100%;
  max-width: var(--content-max-width);
  margin-top: var(--space-9);
  background-color: var(--ui-50);
  border: 1px solid var(--ui-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@supports (corner-shape: squircle) {
  .feature-banner {
    corner-shape: squircle;
  }
}

.feature-banner-image {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
}

.feature-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-banner-content {
  padding: var(--space-6);
}

.feature-banner-title {
  font-size: var(--headline-xs-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--headline-xs-line);
  color: var(--ui-900);
  margin-bottom: var(--space-4);
}

.feature-banner-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}

.feature-banner-content > .btn {
  align-self: flex-start;
}

.feature-banner-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg-size);
  color: var(--ui-900);
}

.feature-banner-item > i {
  color: var(--primary-700);
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .feature-banner {
    flex-direction: row;
  }

  .feature-banner-image {
    width: 33.333%;
    flex-shrink: 0;
    max-height: none;
  }

  .feature-banner-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .feature-banner-title {
    font-size: var(--headline-sm-size);
    line-height: var(--headline-sm-line);
  }
}

/* ==============================================
   Slider / Carousel
   Horizontales Card-Carousel mit Snap-Scrolling,
   Arrow-Buttons und Dot-Pagination.
   Auto-Init via slider.js ([data-slider]).
   ============================================== */

.slider-wrap {
  position: relative;
  /* No overflow:hidden — arrows must remain visible outside the card area.
     .slider handles its own overflow clipping via overflow-x:auto. */
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-3);
  gap: var(--space-4);
  padding: var(--space-3);
  margin: calc(-1 * var(--space-3));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider:focus {
  outline: none;
}

.slider-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: calc(100vw - 2 * var(--page-px) - var(--space-4));
  max-width: 380px;
  list-style: none;
}

.slider-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Slider Arrows (ab Tablet) */
.slider-arrow {
  display: none;
}

@media (min-width: 768px) {
  .slider-card {
    width: calc((100% - 2 * var(--space-4)) / 3);
    max-width: none;
  }

  .slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--ui-200);
    background: var(--ui-100);
    color: var(--ui-900);
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    font-size: var(--icon-md);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
  }

  .slider-arrow:hover {
    background: var(--ui-200);
    box-shadow: var(--shadow-md);
  }

  .slider-arrow:active {
    background: var(--ui-300);
    box-shadow: none;
  }

  .slider-arrow:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: var(--focus-shadow);
  }

  .slider-arrow--prev {
    left: 4px;
  }

  .slider-arrow--next {
    right: 4px;
  }

  .slider-arrow.is-hidden {
    display: none;
  }
}

/* Slider Dots (nur Mobile) */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--ui-300);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-fast);
}

.slider-dot.is-active {
  background: var(--ui-900);
}

@media (min-width: 768px) {
  .slider-dots {
    display: none;
  }
}

/* ==============================================
   Product Card
   Bild + Body mit Tags, Titel, Beschreibung,
   Preis. Für Produktlisten, Empfehlungen etc.
   ============================================== */

.product-card {
  background: var(--ui-50);
  border: 1px solid var(--ui-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base);
}

@supports (corner-shape: squircle) {
  .product-card {
    corner-shape: squircle;
  }
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card:active {
  box-shadow: none;
}

.product-card:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-shadow);
}

.product-card-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--white);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.product-card-title {
  font-size: var(--text-md-size);
  font-weight: var(--font-weight-semibold);
  color: var(--ui-900);
  margin-bottom: var(--space-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-desc {
  font-size: var(--text-xs-size);
  color: var(--ui-700);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: var(--text-xs-size);
  font-weight: var(--font-weight-regular);
  color: var(--ui-700);
  text-align: right;
  margin-top: auto;
}

/* ==============================================
   Product Slider
   Standardisierte Komplett-Komponente: Header +
   Slider mit Product Cards + Dots + "Mehr"-CTA.
   Shared zwischen Homepage und Produktseite.
   ============================================== */

.product-slider {
  width: 100%;
}

.product-slider-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.products-more {
  display: none;
}

@media (min-width: 768px) {
  .products-more {
    display: flex;
    justify-content: center;
    margin-top: var(--space-5);
  }
}

/* ==============================================
   Page Header
   Breadcrumb + H1 Kombination, z.B. oberhalb
   von Karten oder Content-Bereichen.
   ============================================== */

.page-header {
  width: 100%;
  max-width: var(--content-max-width);
  margin-bottom: var(--space-5);
}

.page-header .breadcrumb {
  margin-bottom: var(--space-2);
}

.page-header h1 {
  font-size: var(--headline-md-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--headline-md-line);
  color: var(--ui-900);
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: var(--headline-lg-size);
    line-height: var(--headline-lg-line);
  }
}

/* ==============================================
   Newsletter Signup
   2-Spalten-Sektion (Text + Formular) oberhalb
   des Footers. Sand 50 Hintergrund, Box-Input.
   Auto-injected via newsletter-signup.js.
   ============================================== */

.newsletter-signup {
  background: var(--ui-50);
  padding: var(--section-padding) var(--page-px);
  /* Cancel <main> padding-bottom so newsletter sits flush against footer */
  margin-bottom: calc(-1 * var(--space-9));
}

.newsletter-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.newsletter-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.newsletter-text p {
  color: var(--ui-900);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.newsletter-form .btn {
  width: 100%;
}

/* Tablet: 2 Spalten */
@media (min-width: 768px) {
  .newsletter-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .newsletter-signup {
    margin-bottom: -5rem;
  }
}

/* Desktop: asymmetrisch (3:2, wie FAQ+Kontakt) */
@media (min-width: 1024px) {
  .newsletter-inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .newsletter-signup {
    margin-bottom: -6rem;
  }
}

/* ==============================================
   Trust Module
   Standardisierte Komplett-Komponente: Header +
   Trust Grid mit Icon, Titel, Beschreibung, Link.
   Shared zwischen Homepage und Produktseite.
   ============================================== */

.trust-module {
  width: 100%;
}

.trust-module-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

/* --- Trust Grid --- */

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.trust-icon {
  width: 88px;
  height: 88px;
  background: var(--ui-100);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-icon > i {
  font-size: 2.5rem;
  color: var(--primary-700);
}

.trust-title {
  font-size: var(--text-md-size);
  font-weight: var(--font-weight-bold);
  color: var(--ui-900);
}

.trust-desc {
  font-size: var(--text-lg-size);
  color: var(--ui-800);
}

/* ==============================================
   Image Tint (Theme-Harmonie)
   Subtiler Farbeinfluss der Primary-Palette auf
   Content-Bilder. Standard: none. Medical: leicht
   kühler (entsättigt, Hue Richtung Blau).
   ============================================== */

.hero-image,
.category-card > img,
.product-card-image img,
.review-card-image img,
.contact-card-image img,
.feature-banner-image img,
.order-item-image,
.order-thumb {
  filter: var(--image-tint);
}
