/* =========================================================
   Abschluss-Sektionen: Sicherheit, FAQ, Kontakt, Footer
   ========================================================= */

/* ---------- Sicherheit: Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.bento__tile { grid-column: span 3; display: flex; flex-direction: column; align-items: flex-start; }
.bento__tile--big { grid-column: span 6; }
.bento__tile .icon-tile { margin-bottom: 20px; }
.bento__tile p { max-width: 62ch; }
@media (max-width: 980px) {
  .bento__tile, .bento__tile--big { grid-column: span 6; }
}
@media (max-width: 640px) {
  .bento__tile, .bento__tile--big { grid-column: 1 / -1; }
}

.status-list { list-style: none; margin: 24px 0 0; padding: 14px 18px; display: grid; gap: 10px; width: 100%; background: var(--surface-2); border-radius: var(--r-md); font-size: var(--fs-small); color: var(--ink); }
.status-row { display: flex; align-items: center; gap: 12px; min-height: 24px; }
.status-row .laser-dot--sm { margin: 0 3px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); margin: 0 3px; flex: none; opacity: .6; }
.status-dot--off { background: transparent; border: 2px solid var(--ink-2); width: 10px; height: 10px; margin: 0 2px; opacity: 1; }

.e2e { display: flex; align-items: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; width: 100%; padding: 14px 18px; background: var(--surface-2); border-radius: var(--r-md); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--navy); }
.pill svg { width: 16px; height: 16px; stroke-width: 1.75; }
.pill--lock { background: var(--blue-tint); border-color: transparent; }
.e2e__link { flex: 1 1 16px; min-width: 16px; max-width: 48px; height: 2px; background: var(--line); position: relative; border-radius: 2px; }
.e2e__link::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: rotate(45deg); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 112px; }
.faq__head .lead { margin-top: 16px; font-size: 1.0625rem; }
.faq__more { margin-top: 8px; }
.faq__list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 16px 4px; cursor: pointer; font-weight: 600; font-size: 1.125rem; line-height: 1.35; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-ink); }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: var(--r-sm); }
.faq-item__icon { position: relative; flex: none; width: 24px; height: 24px; transition: transform 300ms var(--ease); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.75px; margin-top: -.875px; background: currentColor; border-radius: 2px; }
.faq-item__icon::after { transform: rotate(90deg); transition: transform 300ms var(--ease), opacity 300ms var(--ease); }
.faq-item[open] .faq-item__icon { transform: rotate(180deg); }
.faq-item[open] .faq-item__icon::after { transform: rotate(0deg); opacity: 0; }
.faq-item__body { display: grid; grid-template-rows: 1fr; }
.faq-item__body > div { overflow: hidden; }
.faq-item__body p { padding: 0 4px 24px; max-width: 64ch; color: var(--ink-2); }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.checklist { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; color: var(--on-night); }
.checklist li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.checklist svg { width: 24px; height: 24px; flex: none; color: var(--blue); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__card { background: var(--surface); color: var(--ink); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-2); }
.form { display: grid; gap: 20px; }
.form label, .form__label { display: block; font-weight: 600; font-size: var(--fs-small); color: var(--ink); margin-bottom: 8px; padding: 0; }
.req { color: var(--navy); }
.opt { font-weight: 400; color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 0 14px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 112px; line-height: 1.5; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E6070' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,155,216,.35); }
.field [aria-invalid="true"] { border-color: var(--alert); background-color: var(--alert-tint); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field__error { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; color: #B23F00; font-size: .875rem; font-weight: 500; line-height: 1.4; }
.field__error[hidden] { display: none; }
.field__error svg { width: 18px; height: 18px; flex: none; color: var(--alert); margin-top: 1px; }
.form__status { margin-top: 0; }
.form__note { font-size: .8125rem; color: var(--ink-2); }

/* Segmented Control (Radios bleiben echte Radios) */
.form-seg { min-width: 0; }
.form-seg .form__label { margin-bottom: 8px; }
.form .form-seg__group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0; background: var(--surface-2); border-radius: 14px; }
.form .form-seg__opt { position: relative; display: block; margin: 0; padding: 0; min-width: 0; cursor: pointer; font-size: var(--fs-small); }
.form .form-seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.form .form-seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: 10px; font-weight: 600; color: var(--ink-2); text-align: center; transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease); }
.form .form-seg__opt:hover span { color: var(--navy); }
.form .form-seg__opt input:checked + span { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-1); }
.form .form-seg__opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 12px; }
.check input { flex: none; width: 24px; height: 24px; margin: 10px 0 0 10px; accent-color: var(--navy); cursor: pointer; }
.check label { margin: 0; font-weight: 400; color: var(--ink-2); padding: 10px 0; line-height: 1.5; cursor: pointer; }
.check { margin-left: -10px; }
.check input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.check label a { color: var(--blue-ink); font-weight: 600; }
.field--check[data-invalid] .check input { outline: 2px solid var(--alert); outline-offset: 2px; }

.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Erfolg */
.form-success { display: grid; gap: 20px; justify-items: start; padding-block: 24px; }
.form-success[hidden] { display: none; }
.form-success .laser-dot { margin: 6px; }
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 3px solid var(--blue); outline-offset: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 32px; color: var(--ink); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding-bottom: 48px; }
.site-footer__brand p { margin-top: 16px; color: var(--ink-2); }
.site-footer__brand img { height: 18px; width: auto; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-footer__h { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 12px; line-height: 1.4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__cols a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-footer__cols a:hover, .site-footer__legal a:hover { color: var(--blue-ink); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 20px; margin-right: auto; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.site-footer__by { display: inline-flex; align-items: center; gap: 12px; }
.site-footer__by img { height: 20px; width: auto; }
@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Sicherheit & Betrieb im Akkordeon-Format ---------- */
.trust-item { padding: 0 4px 24px; max-width: 64ch; }
.faq-item__body .trust-item p { padding: 0; }
.trust-item .status-list, .trust-item .e2e { margin-top: 16px; background: var(--surface); box-shadow: var(--shadow-1); max-width: 520px; }

/* Sicherheit & Betrieb auf dunkler Bühne */
.section--night .faq__list { border-top-color: var(--night-line); }
.section--night .faq-item { border-bottom-color: var(--night-line); }
.section--night .faq-item summary { color: #fff; }
.section--night .faq-item summary:hover { color: var(--blue); }
.section--night .faq-item__body p { color: var(--on-night-2); }
.section--night .trust-item .status-list, .section--night .trust-item .e2e { background: var(--night-2); border: 1px solid var(--night-line); box-shadow: none; color: var(--on-night); }
.section--night .status-dot--off { border-color: var(--on-night-2); }
.section--night .status-list strong { color: #fff; }
.section--night .signal { color: var(--laser); }
.section--night .pill { background: rgba(255,255,255,.06); border-color: var(--night-line); color: #fff; }
.section--night .pill--lock { background: rgba(32,155,216,.18); border-color: transparent; }
.section--night .pill--lock svg { color: var(--blue); }
.section--night .e2e__link { background: rgba(255,255,255,.22); }
.section--night .e2e__link::after { border-color: rgba(255,255,255,.22); }
