.seite-suche .site-header {
  color: var(--ink);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(10, 21, 24, 0.08);
}

.seite-suche .site-header :is(.tempco2-status, .theme-toggle) {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-2);
}

.seite-suche .site-header .tempco2-status__label {
  color: var(--teal-dark);
}

.seite-suche .site-nav a:is(:hover, :focus-visible, .is-active) {
  color: var(--teal-dark);
  background: var(--surface-2);
}

.suche {
  width: var(--content);
  max-width: 900px;
  margin: calc(var(--kopfzeilenhöhe) + 40px) auto 72px;
}

.seite-suche.no-js .suche { margin-top: 32px; }

.suche__kopf h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.suche__kopf > p:last-child,
.suche__hilfe,
.suche__pfad {
  color: var(--ink-2);
}

.suche__formular {
  margin: 32px 0;
}

.suche__formular label {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}

.suche__eingabezeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.suche__eingabezeile input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--ink-2);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 1rem;
}

.suche__eingabezeile input::placeholder {
  color: var(--ink-2);
  opacity: 1;
}

.suche :is(input, button, a):focus-visible,
#suche-ergebnisse-titel:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 4px;
}

.suche__hilfe {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.suche__status,
.suche__leer,
.suche__treffer {
  overflow-wrap: anywhere;
}

.suche__liste {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.suche [hidden] {
  display: none !important;
}

.suche__treffer {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.suche__treffer h3 {
  margin: 6px 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.suche__treffer h3 a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.suche__treffer p {
  margin: 0 0 10px;
}

.suche__treffer .suche__kategorie {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.suche__pfad {
  font-size: 0.85rem;
}

.suche__vorschläge {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.suche__vorschläge ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  list-style: none;
}

.suche__vorschläge a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal-dark);
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .suche { margin-top: calc(var(--kopfzeilenhöhe) + 28px); }
  .suche__eingabezeile { grid-template-columns: minmax(0, 1fr); }
  .suche__treffer { padding: 18px; }
}

/* Copyright © 2026 Erik Schauer, do1ffe@darc.de */
