/* components/ui.css -- Standard-Komponenten der oeffentlichen Seiten (29.11.2026). Wird mit style.css geladen (zlHeadAssets('base')).
   Zweck: gleiche Form, Mindesthoehe und Beschriftung fuer alle Buttons, Felder, Badges und Karten. Farben und Hover der Bestandsklassen bleiben unveraendert.
   Neue Seiten: die Klassen .ui-btn / .ui-field / .ui-badge / .ui-card unten verwenden, nicht eigene Varianten bauen.
   Skala: Radien --r-xs 4 / --r-sm 8 / --r-md 12 / --r-lg 16 / --r-xl 24 / --r-pill 999 (tokens.css), Mindesthoehe Bedienelemente 44 px (Touch). */

/* 1) Bestehende Button-Familien: Pille, 44 px, fett. Selektor html body = Spezifitaet 0,1,2, schlaegt seitenbezogene Einzelregeln. */
html body :is(.pub-btn, .zl-nl-btn, .ap-btn, .kt-btn, .pv-cta, .cnl-btn, .zl-stickycta-btn, .hd-btn) {
  border-radius: var(--r-pill);
  min-height: 44px;
  font-weight: 700;
}

/* 2) Bestehende Eingabefelder: Radius 12, mindestens 44 px hoch */
html body :is(.zl-nl-input, .ap-find, .ap-sort, .zl-search-input, .vl-input) {
  border-radius: var(--r-md);
  min-height: 44px;
}

/* 2b) Bestehende Karten: Rand = Token, Radius 16 (Hervorhebung .featured behaelt ihren dunklen Rand) */
html body :is(.apo-card, .pv-card, .cr-tile, .hs-card, .ap-tile, .ap-card, .kt-card, .card, .price-card, .s-card):not(.featured) {
  border-color: var(--border);
  border-radius: var(--r-lg);
}
html body .price-card.featured { border-radius: var(--r-lg); }

/* 3) Kanonische Klassen fuer neuen Code */
.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 1px solid var(--black); border-radius: var(--r-pill);
  background: var(--black); color: var(--white); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.ui-btn:hover { background: var(--gray-1); border-color: var(--gray-1); }
.ui-btn--brand { background: var(--brand); border-color: var(--brand); color: var(--white); }
.ui-btn--brand:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.ui-btn--secondary { background: var(--white); color: var(--black); border-color: var(--border); }
.ui-btn--secondary:hover { background: var(--gray-6); border-color: var(--gray-4); }
.ui-btn--sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.ui-btn--block { display: flex; width: 100%; }
.ui-btn[disabled], .ui-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.ui-field {
  display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--white); color: var(--black);
  font: inherit; font-size: 14px; line-height: 1.4;
}
textarea.ui-field { padding: 12px 14px; min-height: 96px; }
.ui-field::placeholder { color: var(--gray-3); }
.ui-field:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }

.ui-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-sm);
  background: var(--gray-5); color: var(--gray-2); font-size: 12px; font-weight: 700; line-height: 1.3;
}
.ui-badge--dark { background: var(--black); color: var(--white); }
.ui-badge--outline { background: var(--white); border: 1px solid var(--border); }
.ui-badge--pill { border-radius: var(--r-pill); }

.ui-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px;
}
