/*
 * Kommentare und Kontaktformular
 *
 * Farben aus denselben Tokens wie die Bausteine (per Inline-Style als --nspc-*
 * gesetzt), die Werte hinter var() greifen nur ohne Konfiguration. Schrift und
 * Grundgroesse erbt alles vom Theme.
 */

.nspc,
.nspf {
  --a: var(--nspc-accent, #0a7ea4);
  --a2: var(--nspc-accent-soft, #e8f4f8);
  --bd: var(--nspc-border, #e3e8ee);
  --mu: var(--nspc-muted, #5b6b7c);
  --sf: var(--nspc-surface-alt, #f6f8fa);
  --tx: #1d2630;
  color: var(--tx);
}

.nspc {
  max-width: 760px;
  margin: 56px auto 32px;
  padding: 0 4px;
}
.nspc *,
.nspf * {
  box-sizing: border-box;
}

/* Kopf: Sprechblasen, Zahl, Aufruf */

.nspc-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
}
.nspc-hx {
  min-width: 0;
}
.nspc-art {
  flex: none;
  width: 80px;
  height: 72px;
  overflow: visible;
}
.nspc-art-b {
  fill: var(--a2);
  stroke: var(--a);
  stroke-width: 2;
  stroke-linejoin: round;
}
.nspc-art-l {
  stroke: var(--a);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.45;
}
.nspc-art-f {
  fill: var(--a);
}
.nspc-art-d {
  fill: #fff;
}
.nspc-art-s {
  stroke: var(--a);
  stroke-width: 2.5;
  stroke-linecap: round;
}
@media (prefers-reduced-motion: no-preference) {
  .nspc-art-d {
    animation: nspc-tipp 1.4s ease-in-out infinite;
  }
  .nspc-art-d:nth-of-type(2) {
    animation-delay: 0.18s;
  }
  .nspc-art-d:nth-of-type(3) {
    animation-delay: 0.36s;
  }
}
@keyframes nspc-tipp {
  0%, 60%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  30% {
    opacity: 0.5;
    transform: translateY(-2.5px);
  }
}
.nspc-eyebrow {
  margin: 0 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a);
}
.nspc-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.nspc-lead {
  margin: 0;
  color: var(--mu);
  font-size: 16px;
  line-height: 1.5;
}

.nspc-trust {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 4px 0;
  font-size: 13.5px;
  color: var(--mu);
}
.nspc-trust svg {
  flex: none;
  color: var(--a);
}

.nspc-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nspc-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Formular */

.nspc-f {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
  margin: 0;
}
.nspc-f:focus-within {
  border-color: var(--a);
  box-shadow: 0 0 0 3px var(--a2), 0 4px 16px rgba(16, 24, 40, 0.06);
}
.nspc-f textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 6px 4px;
  margin: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  color: var(--tx);
  resize: vertical;
  box-shadow: none;
}
.nspc-f.is-open textarea {
  min-height: 110px;
}
.nspc-f.nspc-js:not(.is-open) .nspc-more {
  display: none;
}
.nspc-more {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--bd);
}

.nspc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nspc-fl {
  display: block;
  margin: 0;
}
.nspc input[type="text"],
.nspc input[type="email"],
.nspf input[type="text"],
.nspf input[type="email"],
.nspf textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--tx);
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 10px;
  box-shadow: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.nspc input:focus,
.nspf input:focus,
.nspf textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--a);
  box-shadow: 0 0 0 3px var(--a2);
}

.nspc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}
.nspc-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mu);
}
.nspc-note a,
.nspf-ck a {
  color: inherit;
  text-decoration: underline;
}

.nspc .nspc-send,
.nspf .nspc-send {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--a);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}
.nspc .nspc-send:hover,
.nspf .nspc-send:hover {
  filter: brightness(0.92);
  color: #fff;
  background: var(--a);
}
.nspc .nspc-send:active,
.nspf .nspc-send:active {
  transform: translateY(1px);
}
.nspc .nspc-send[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.nspc-to {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--mu);
}
.nspc-to[hidden] {
  display: none;
}
.nspc-to span {
  background: var(--a2);
  color: var(--a);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.nspc .nspc-cancel,
.nspc .nspc-rp {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mu);
  cursor: pointer;
}
.nspc .nspc-cancel:hover,
.nspc .nspc-rp:hover {
  color: var(--a);
  background: none;
}

.nspc-msg {
  margin: 10px 4px 0;
  font-size: 14.5px;
  font-weight: 600;
}
.nspc-msg:empty {
  display: none;
}
.nspc-msg.is-ok {
  color: #1a7f4f;
}
.nspc-msg.is-err {
  color: #b4451f;
}

/* Liste */

.nspc-list {
  margin-top: 28px;
}
.nspc-th {
  padding: 22px 0;
  border-top: 1px solid var(--bd);
}
.nspc-th:last-child {
  border-bottom: 1px solid var(--bd);
}
.nspc-c {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 12px;
}
.nspc-av {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: hsl(var(--nspc-h, 200) 55% 92%);
  color: hsl(var(--nspc-h, 200) 45% 30%);
}
.nspc-team .nspc-av {
  background: var(--a);
  color: #fff;
}
.nspc-b {
  flex: 1;
  min-width: 0;
}
.nspc-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 4px;
}
.nspc-n {
  font-weight: 700;
  font-size: 15.5px;
}
.nspc-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--a);
  background: var(--a2);
  padding: 3px 8px;
  border-radius: 999px;
}
.nspc .nspc-t {
  font-size: 13.5px;
  color: var(--mu);
  text-decoration: none;
}
.nspc .nspc-t::before {
  content: "\00b7";
  margin-right: 8px;
}
.nspc .nspc-t:hover {
  color: var(--a);
}
.nspc-x {
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.nspc-x p {
  margin: 0 0 0.6em;
}
.nspc-x p:last-child {
  margin-bottom: 0;
}
.nspc-x a {
  color: var(--a);
}
.nspc .nspc-rp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.nspc-kids {
  margin: 18px 0 0 56px;
  padding-left: 18px;
  border-left: 2px solid var(--bd);
  display: grid;
  gap: 18px;
}
.nspc-kids:empty {
  display: none;
}
.nspc-kids .nspc-av {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.nspc-th > .nspc-fw {
  margin: 16px 0 0 56px;
}

.nspc-new {
  animation: nspc-in 1.6s ease-out;
}
@keyframes nspc-in {
  0% {
    background: var(--a2);
    box-shadow: 0 0 0 10px var(--a2);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 10px transparent;
  }
}

/* Kontaktformular */

.nspf {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin: 24px 0;
}
.nspf .nspc-fl > span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.nspf textarea {
  resize: vertical;
  min-height: 150px;
}
.nspf-ck {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.45;
  margin: 0;
}
.nspf-ck input {
  margin: 3px 0 0;
  width: 17px;
  height: 17px;
  accent-color: var(--a);
  flex: none;
}
.nspf .nspc-send {
  justify-self: start;
}
.nspf-ok,
.nspf-err {
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 600;
  margin: 0;
}
.nspf-ok {
  display: block;
  background: var(--a2);
  color: var(--a);
}
.nspf-err {
  background: #fdf0eb;
  color: #b4451f;
}

@media (max-width: 600px) {
  .nspc {
    margin-top: 40px;
  }
  .nspc-head {
    gap: 14px;
    align-items: flex-start;
  }
  .nspc-art {
    width: 56px;
    height: 50px;
  }
  .nspc-title {
    font-size: 23px;
  }
  .nspc-row {
    grid-template-columns: 1fr;
  }
  .nspc-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .nspc .nspc-send {
    justify-content: center;
  }
  .nspc-av {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .nspc-kids {
    margin-left: 17px;
    padding-left: 14px;
  }
  .nspc-th > .nspc-fw {
    margin-left: 0;
  }
}
