/*
 * OpenYardage · account.css
 * Gehört zu public/js/account.js (Konto-Löschung durch den Nutzer selbst).
 * Einbindung durch die Integration:  <link rel="stylesheet" href="css/account.css">
 *
 * Design-Tokens aus dem :root von index.html. Jede Angabe trägt denselben Wert
 * als Fallback, damit die Karte auch allein läuft (Testseite, ds/-Karte).
 * Papier #ece7db, Karte #fffdf7, Ink #21251f, gedämpft #6b6252, schwach #8a8170,
 * Linien #d8d1c0, Grün #2f6b46.
 * Rot #b23a2e ist der Warnung vorbehalten: dem Satz "das lässt sich nicht
 * rückgängig machen", dem endgültigen Knopf und Fehlermeldungen. Der Weg
 * dorthin bleibt ruhig, sonst stumpft das Rot ab.
 * Georgia für Fliesstext, 'Courier New' für alle Beschriftungen in
 * Grossbuchstaben, Radien durchgehend 3px.
 */

/* ==========================================================================
   Karte
   ========================================================================== */
.oy-del {
  max-width: 760px;
  background: var(--card2, #fffdf7);
  border: 1px solid var(--line, #d8d1c0);
  border-radius: 3px;
  color: var(--ink, #21251f);
}
.oy-del [hidden] { display: none !important; }

/* ---------- Kopf ---------- */
.oy-del-head {
  padding: 15px 18px 12px;
  border-bottom: 1px solid var(--line, #d8d1c0);
  background: var(--card, #faf7ef);
}
.oy-del-title {
  margin: 0;
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 13px; font-weight: 700; letter-spacing: .17em;
  color: var(--ink, #21251f);
}
.oy-del-sub {
  margin-top: 5px;
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--faint, #8a8170);
}

/* ---------- Rümpfe ---------- */
.oy-del-body,
.oy-del-confirm,
.oy-del-prog,
.oy-del-done { padding: 16px 18px 18px; }

.oy-del-p {
  margin: 0 0 14px;
  font-family: var(--serif, Georgia, 'Times New Roman', serif);
  font-size: 13.5px; line-height: 1.6;
  color: var(--ink2, #4a463c);
}
.oy-del-p a { color: var(--green, #2f6b46); text-decoration: underline; }
.oy-del-p a:hover { color: var(--green-dk, #1d4a2f); }

.oy-del-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--line2, #c9c1ad); border-radius: 3px;
  background: var(--card, #faf7ef);
  font-family: var(--serif, Georgia, 'Times New Roman', serif);
  font-size: 12.5px; line-height: 1.55; font-style: italic;
  color: var(--mut, #6b6252);
}

/* ==========================================================================
   Zwei Spalten: was verschwindet, was bleibt.
   Beide gleich gewichtet. Das Bleibende ist kein Kleingedrucktes.
   ========================================================================== */
.oy-del-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  align-items: start;   /* jede Spalte nur so hoch wie ihr Inhalt */
  margin-top: 4px;
}
@media (max-width: 640px) {
  .oy-del-cols { grid-template-columns: 1fr; }
}

.oy-del-col {
  padding: 12px 13px 6px;
  border: 1px solid var(--line, #d8d1c0); border-radius: 3px;
  background: var(--card, #faf7ef);
}
/* Die linke Spalte trägt eine rote Kante, sonst nichts. Der Inhalt bleibt
   in normaler Schrift, damit die Aufzählung lesbar ist und nicht droht. */
.oy-del-col.weg { border-left: 3px solid var(--red, #b23a2e); }
.oy-del-col.bleibt { border-left: 3px solid var(--line2, #c9c1ad); }

.oy-del-collb {
  margin-bottom: 9px; padding-bottom: 7px;
  border-bottom: 1px solid var(--line, #d8d1c0);
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--mut, #6b6252);
}
.oy-del-col.weg .oy-del-collb { color: var(--red, #b23a2e); }

.oy-del-list { list-style: none; margin: 0; padding: 0; }
.oy-del-list li { margin: 0 0 11px; }
.oy-del-list li b {
  display: block; margin-bottom: 3px;
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--ink, #21251f);
}
.oy-del-list li span {
  display: block;
  font-family: var(--serif, Georgia, 'Times New Roman', serif);
  font-size: 12.5px; line-height: 1.5;
  color: var(--mut, #6b6252);
}
.oy-del-list li span a { color: var(--green, #2f6b46); text-decoration: underline; }
.oy-del-list li span a:hover { color: var(--green-dk, #1d4a2f); }

/* ==========================================================================
   Bestätigung
   ========================================================================== */
.oy-del-red {
  margin: 0 0 14px; padding: 10px 12px;
  border: 1px solid var(--red, #b23a2e);
  border-left-width: 3px; border-radius: 3px;
  background: var(--red-bg, #fdf6f4);
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 11px; font-weight: 700; letter-spacing: .09em; line-height: 1.5;
  color: var(--red, #b23a2e);
  text-transform: uppercase;
}

.oy-del-field { margin: 0 0 14px; }
.oy-del-lb {
  display: block; margin-bottom: 6px;
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; line-height: 1.6;
  color: var(--mut, #6b6252);
}
/* Das abzutippende Wort steht sichtbar da. Es geht nicht um ein Rätsel,
   sondern um einen Handgriff, den man nicht versehentlich macht. */
.oy-del-wort {
  display: inline-block; margin-left: 2px; padding: 2px 6px;
  border: 1px solid var(--line2, #c9c1ad); border-radius: 3px;
  background: var(--card, #faf7ef);
  letter-spacing: .1em;
  color: var(--ink, #21251f);
}

.oy-del-in {
  display: block; width: 100%; max-width: 360px; box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid var(--line2, #c9c1ad); border-radius: 3px;
  background: var(--card2, #fffdf7);
  font-family: var(--serif, Georgia, 'Times New Roman', serif);
  font-size: 14.5px; font-style: italic;
  color: var(--ink, #21251f);
}
.oy-del-in::placeholder { color: var(--ghost, #b8ae98); }
.oy-del-in:focus {
  outline: none;
  border-color: var(--green, #2f6b46);
  box-shadow: 0 0 0 2px var(--green-bg, #f2f6ee);
}
.oy-del-in.ok { border-color: var(--green, #2f6b46); }

.oy-del-hint {
  margin: 5px 0 0;
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 10px; letter-spacing: .06em; line-height: 1.5;
  color: var(--faint, #8a8170);
}
.oy-del-hint.ok { color: var(--green, #2f6b46); }

/* ==========================================================================
   Fortschritt
   ========================================================================== */
.oy-del-count {
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--mut, #6b6252);
  margin-bottom: 7px;
}
.oy-del-baro {
  height: 6px; overflow: hidden;
  border: 1px solid var(--line, #d8d1c0); border-radius: 3px;
  background: var(--card, #faf7ef);
}
.oy-del-bari {
  height: 100%; width: 0;
  background: var(--green, #2f6b46);
  transition: width .18s linear;
}

.oy-del-log {
  list-style: none; margin: 12px 0 0; padding: 0;
  max-height: 260px; overflow-y: auto;
  border: 1px solid var(--line, #d8d1c0); border-radius: 3px;
  background: var(--card, #faf7ef);
}
.oy-del-log:empty { display: none; }

.oy-del-logrow {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 6px 11px;
  border-bottom: 1px solid var(--line3, #eee8da);
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.5;
  color: var(--mut, #6b6252);
}
.oy-del-logrow:last-child { border-bottom: none; }
.oy-del-logrow .ico { flex-shrink: 0; width: 11px; text-align: center; }
.oy-del-logrow .tx { word-break: break-word; }

.oy-del-logrow.laeuft { color: var(--faint, #8a8170); }
.oy-del-logrow.ok .ico { color: var(--green, #2f6b46); }
.oy-del-logrow.ok .tx { color: var(--ink2, #4a463c); }
.oy-del-logrow.err { color: var(--red, #b23a2e); background: var(--red-bg, #fdf6f4); }

/* ---------- Statuszeile ---------- */
.oy-del-msg {
  margin: 12px 0 0; padding: 9px 11px;
  border: 1px solid var(--line, #d8d1c0);
  border-left-width: 3px; border-radius: 3px;
  background: var(--card, #faf7ef);
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1.55;
  color: var(--mut, #6b6252);
}
.oy-del-msg.err {
  border-color: var(--red, #b23a2e);
  background: var(--red-bg, #fdf6f4);
  color: var(--red, #b23a2e);
}

/* ==========================================================================
   Abschied
   ========================================================================== */
.oy-del-dank {
  margin: 0 0 10px;
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--green, #2f6b46);
}

/* ==========================================================================
   Knöpfe
   ========================================================================== */
.oy-del-foot {
  display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap;
  margin-top: 16px;
}
.oy-del-btn {
  font-family: var(--mono, 'Courier New', Courier, monospace);
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  padding: 10px 16px;
  border-radius: 3px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s, opacity .12s;
}
.oy-del-btn.ghost {
  border: 1px solid var(--line2, #c9c1ad);
  background: none; color: var(--mut, #6b6252);
}
.oy-del-btn.ghost:hover,
.oy-del-btn.ghost:focus-visible {
  background: var(--card, #faf7ef); color: var(--ink, #21251f); outline: none;
}
/* Der Weg in die Bestätigung: rote Schrift, aber keine rote Fläche.
   Wer hier klickt, hat noch nichts gelöscht. */
.oy-del-btn.warn {
  border: 1px solid var(--line2, #c9c1ad);
  background: none; color: var(--red, #b23a2e);
}
.oy-del-btn.warn:hover,
.oy-del-btn.warn:focus-visible {
  border-color: var(--red, #b23a2e); background: var(--red-bg, #fdf6f4); outline: none;
}
/* Der endgültige Knopf ist der einzige mit roter Fläche. */
.oy-del-btn.danger {
  border: 1.5px solid var(--red, #b23a2e);
  background: var(--red, #b23a2e); color: #f5f1e6;
}
.oy-del-btn.danger:hover:not([disabled]),
.oy-del-btn.danger:focus-visible:not([disabled]) {
  background: #962e24; border-color: #962e24; outline: none;
}
.oy-del-btn[disabled] {
  cursor: not-allowed; opacity: .42;
  border-color: var(--line2, #c9c1ad);
  background: none; color: var(--faint, #8a8170);
}
.oy-del-btn:focus-visible { box-shadow: 0 0 0 2px var(--line3, #eee8da); }

/* Während des Löschens ist nichts anklickbar: ein zweiter Start mitten im
   Vorgang würde denselben Ablauf doppelt anstossen. */
.oy-del[data-oy-del-state="laeuft"] .oy-del-btn { pointer-events: none; opacity: .5; }
