/**
 * @file
 * Suchblock + Mobil-Modal — CNS-Quelle. Build: cns-css-orchestrate.
 *
 * @version 2026-04-15 Europe/Berlin
 */

/* Formular (Drupal-ID #search-block-form bleibt stabil). */
header #search-block-form.cns-1e1913f {
  padding: 0;
}

.cns-1e1913f::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-inline-end: 0.4rem;
  margin-inline-start: 0.15rem;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.cns-1e1913f {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  box-sizing: border-box;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  margin: 0;
  border: 0.5px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
}

.cns-1e1913f > .cns-08b4634 {
  flex: 1 1 auto;
  min-width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.cns-1e1913f input[type="search"],
.cns-1e1913f input.form-search {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0.2rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  font-size: 0.875rem;
  line-height: 1.35;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.cns-1e1913f input[type="search"].form-control,
.cns-1e1913f input.form-search.form-control {
  width: auto;
}

.cns-1e1913f input[type="search"]:focus,
.cns-1e1913f input.form-search:focus {
  outline: none;
}

.cns-1e1913f input[type="search"]::placeholder,
.cns-1e1913f input.form-search::placeholder {
  color: rgba(0, 0, 0, 0.45);
  opacity: 1;
}

.cns-1e1913f .form-actions.visually-hidden,
.cns-1e1913f .form-actions.visually-hidden-focusable {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Trigger + Inline */
.cns-813999a {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 0.5px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  color: #6b7280;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 0;
}

.cns-813999a:hover,
.cns-813999a:focus-visible {
  color: #374151;
  border-color: #c4c4c4;
}

.cns-813999a:focus {
  outline: none;
}

.cns-813999a:focus-visible {
  outline: 2px solid rgba(6, 71, 113, 0.45);
  outline-offset: 2px;
}

.cns-4dc743a {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

@media (max-width: 767.98px) {
  html.js .cns-813999a {
    display: inline-flex;
  }

  html.js .cns-dd62b4d {
    display: none;
  }
}

/* Modal */
.cns-94e6439 {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.cns-94e6439[hidden] {
  display: none !important;
}

.cns-b8895ae {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cns-e04fb12 {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 32rem;
  max-height: min(90vh, 28rem);
  margin-top: 10vh;
  border-radius: 10px;
  background: #fff;
  color: #1d2733;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  overflow: hidden;
}

.cns-a2a6577 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e4e7ec;
  flex-shrink: 0;
}

.cns-367c90c {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.cns-9e6e7d5 {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 0.15rem 0.35rem;
  margin: 0;
}

.cns-9e6e7d5:hover,
.cns-9e6e7d5:focus-visible {
  color: #111827;
}

.cns-b0112ec {
  padding: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.cns-1c6bfb5 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e4e7ec;
  flex-shrink: 0;
}

body.is-cns-search-modal-open {
  overflow: hidden;
}
