/*
 * Laserliner Downloads – Dokumentensuche
 * Alle Regeln hängen an ".com-lldownloads.lld" (zwei Klassen), damit allgemeine Template-Regeln
 * (label, button, input, a …) sie nicht überstimmen. Farben zentral hier anpassen:
 */
.com-lldownloads.lld {
  --lld-accent: #f08e00;       /* Laserliner-Orange */
  --lld-accent-text: #000;
  --lld-text: #222;
  --lld-muted: #666;
  --lld-line: #e0e0e0;
  --lld-bg-soft: #f6f6f6;
  --lld-radius: 4px;

  color: var(--lld-text);
  max-width: 1100px;
}

/* nur für Screenreader */
.com-lldownloads.lld .lld-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Suchfeld ---------- */
.com-lldownloads.lld .lld-form { margin: 0 0 1.5rem; }

.com-lldownloads.lld .lld-searchbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.com-lldownloads.lld .lld-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 3rem;
  margin: 0;
  padding: 0 1rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--lld-text);
  background: #fff;
  border: 2px solid var(--lld-line);
  border-right: 0;
  border-radius: var(--lld-radius) 0 0 var(--lld-radius);
  box-shadow: none;
  outline: none;
}
.com-lldownloads.lld .lld-input:focus { border-color: var(--lld-accent); }

.com-lldownloads.lld .lld-submit {
  flex: 0 0 auto;
  width: auto;
  height: 3rem;
  margin: 0;
  padding: 0 1.5rem;
  font: inherit;
  font-weight: bold;
  color: var(--lld-accent-text);
  background: var(--lld-accent);
  border: 2px solid var(--lld-accent);
  border-radius: 0 var(--lld-radius) var(--lld-radius) 0;
  cursor: pointer;
  text-transform: none;
}
.com-lldownloads.lld .lld-submit:hover { filter: brightness(.95); }

/* ---------- Typ-Filter ---------- */
.com-lldownloads.lld .lld-types {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .9rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.com-lldownloads.lld .lld-chip {
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.com-lldownloads.lld .lld-radio {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
  pointer-events: none;
}

.com-lldownloads.lld .lld-chip-text {
  display: inline-block;
  padding: .35rem .9rem;
  font-size: .9rem;
  line-height: 1.3;
  color: var(--lld-text);
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .1s, border-color .1s;
}
.com-lldownloads.lld .lld-chip:hover .lld-chip-text { border-color: var(--lld-accent); }
.com-lldownloads.lld .lld-radio:checked + .lld-chip-text {
  color: var(--lld-accent-text);
  background: var(--lld-accent);
  border-color: var(--lld-accent);
  font-weight: bold;
}
.com-lldownloads.lld .lld-radio:focus-visible + .lld-chip-text {
  outline: 2px solid var(--lld-accent);
  outline-offset: 2px;
}

/* Hinweis für Gäste: weitere Dokumente nach Anmeldung */
.com-lldownloads.lld .lld-locked {
  margin: .9rem 0 0;
  padding: .5rem .8rem;
  font-size: .9rem;
  color: var(--lld-text);
  background: var(--lld-bg-soft);
  border-left: 3px solid var(--lld-accent);
}
.com-lldownloads.lld .lld-locked a { color: var(--lld-text); font-weight: bold; text-decoration: underline; }

/* ---------- Ergebnisse ---------- */
.com-lldownloads.lld .lld-results[aria-busy="true"] { opacity: .55; transition: opacity .15s; }
.com-lldownloads.lld .lld-msg { margin: 0 0 1rem; color: var(--lld-muted); }
.com-lldownloads.lld .lld-msg-warn { color: #a05a00; }

.com-lldownloads.lld .lld-list { list-style: none; margin: 0; padding: 0; }
.com-lldownloads.lld .lld-item {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--lld-line);
}
.com-lldownloads.lld .lld-item:first-child { border-top: 1px solid var(--lld-line); }
.com-lldownloads.lld .lld-item::before,
.com-lldownloads.lld .lld-item::marker { content: none; }

.com-lldownloads.lld .lld-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem 1rem;
  margin-bottom: .6rem;
}
.com-lldownloads.lld .lld-name { font-weight: bold; font-size: 1.1rem; }
.com-lldownloads.lld .lld-art { color: var(--lld-muted); font-size: .9rem; white-space: nowrap; }
.com-lldownloads.lld .lld-sub { flex-basis: 100%; color: var(--lld-muted); font-size: .9rem; }

.com-lldownloads.lld .lld-docs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.com-lldownloads.lld .lld-link,
.com-lldownloads.lld .lld-lang {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: auto;
  margin: 0;
  padding: .35rem .75rem;
  font-size: .9rem;
  line-height: 1.3;
  color: var(--lld-text);
  background: var(--lld-bg-soft);
  border: 1px solid var(--lld-line);
  border-radius: var(--lld-radius);
  text-decoration: none;
  text-transform: none;
}
.com-lldownloads.lld .lld-link:hover,
.com-lldownloads.lld .lld-lang:hover,
.com-lldownloads.lld .lld-link:focus-visible,
.com-lldownloads.lld .lld-lang:focus-visible {
  color: var(--lld-accent-text);
  background: var(--lld-accent);
  border-color: var(--lld-accent);
  text-decoration: none;
}

.com-lldownloads.lld .lld-pdf {
  display: inline-block;
  padding: 0 .3rem;
  font-size: .65rem;
  font-weight: bold;
  line-height: 1.5;
  color: #fff;
  background: #c62828;
  border-radius: 2px;
  letter-spacing: .02em;
}
.com-lldownloads.lld .lld-extra { color: var(--lld-muted); font-size: .8rem; }
.com-lldownloads.lld .lld-link:hover .lld-extra { color: inherit; }

.com-lldownloads.lld .lld-langs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  margin-left: .25rem;
}
.com-lldownloads.lld .lld-langs-label { color: var(--lld-muted); font-size: .9rem; margin-right: .1rem; }
.com-lldownloads.lld .lld-lang { padding: .35rem .55rem; min-width: 2.5rem; justify-content: center; font-weight: bold; }

/* ---------- Smartphone ---------- */
@media (max-width: 575px) {
  .com-lldownloads.lld .lld-submit { padding: 0 1rem; }
  .com-lldownloads.lld .lld-langs { margin-left: 0; width: 100%; }
}
