/* ============================================================================
   iban-validator.css — Tool-spezifische Styles für IBAN VALIDATOR
   Geladen auf: tools/iban-validator.php  (NACH main-vhc.css)
   ============================================================================ */

/* ── Seitenbereich ───────────────────────────────── */

body.tool-page main {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px 52px;
}

/* ── Tool-Wrapper ────────────────────────────────── */

.tool-wrap {
  width: 100%;
  max-width: 960px;
}

/* ── Tool-Header ─────────────────────────────────── */

.iv-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.iv-icon {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 24px rgba(0, 245, 255, 0.35));
}

.iv-title {
  font-family: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--neon1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
  margin: 0 0 0.5rem 0;
}

.iv-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
}

/* ── Karten-Grid (Einseiter, Stil aus percent-calc) ──── */

.iv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.iv-card {
  --iv-acc: #00f5ff;
  position: relative;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 245, 255, 0.05), transparent 55%),
    linear-gradient(180deg, #0d1626, #0a1120);
  border: 1px solid var(--border);
  border-left: 3px solid var(--iv-acc);
  border-radius: 6px;
  padding: 1.2rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.iv-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: translateY(-2px);
}

.iv-card--wide {
  grid-column: 1 / -1;
}

/* Akzentfarben pro Karte */
.iv-card[data-accent="cyan"]   { --iv-acc: #00f5ff; }
.iv-card[data-accent="green"]  { --iv-acc: #00ff88; }
.iv-card[data-accent="violet"] { --iv-acc: #9d6bff; }
.iv-card[data-accent="amber"]  { --iv-acc: #ffb454; }

/* ── Kartenkopf ──────────────────────────────────── */

.iv-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.iv-num {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--iv-acc);
  border: 1px solid var(--iv-acc);
  border-radius: 50%;
  box-shadow: 0 0 12px -2px var(--iv-acc);
}

.iv-card-het {
  min-width: 0;
}

.iv-card-title {
  font-family: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--iv-acc);
  margin: 0.15rem 0 0.3rem 0;
}

.iv-card-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ── Eingabeblock ────────────────────────────────── */

.iv-input-block {
  margin-bottom: 1.4rem;
}

.iv-input-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
}

.iv-input {
  flex: 1;
  background: #0c1220;
  border: 1px solid #1a2840;
  color: var(--text);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 2.6rem 0.65rem 0.9rem;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s;
}

.iv-input:focus {
  border-color: var(--iv-acc);
}

.iv-input::placeholder {
  color: #4a6488;
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.iv-clear-btn {
  position: absolute;
  right: 0.55rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  transition: color 0.2s;
}

.iv-clear-btn:hover {
  color: var(--iv-acc);
}

/* ── Prüfen-Button ───────────────────────────────── */

.iv-validate-btn {
  display: block;
  width: 100%;
  background: #0a101e;
  border: 1px solid var(--iv-acc);
  color: var(--iv-acc);
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.65rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, box-shadow 0.2s;
}

.iv-validate-btn:hover {
  background: #0d1424;
  box-shadow: 0 0 14px -2px var(--iv-acc);
}

/* ── Status-Anzeige ──────────────────────────────── */

.iv-status {
  text-align: center;
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.7rem 1rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
  display: none;
}

.iv-status.iv-valid {
  display: block;
  color: #00e87a;
  background: rgba(0, 232, 122, 0.08);
  border: 1px solid rgba(0, 232, 122, 0.35);
  text-shadow: 0 0 16px rgba(0, 232, 122, 0.5);
}

.iv-status.iv-invalid {
  display: block;
  color: #ff4060;
  background: rgba(255, 64, 96, 0.08);
  border: 1px solid rgba(255, 64, 96, 0.35);
  text-shadow: 0 0 16px rgba(255, 64, 96, 0.4);
}

.iv-status.iv-warn {
  display: block;
  color: #ffb454;
  background: rgba(255, 180, 84, 0.08);
  border: 1px solid rgba(255, 180, 84, 0.35);
}

/* ── Ergebnis-Panel ──────────────────────────────── */

.iv-result-panel {
  background: #070c16;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.1rem 1.2rem;
  margin-top: 0.4rem;
  display: none;
}

.iv-result-panel.visible {
  display: block;
}

/* ── Formatierte IBAN ────────────────────────────── */

.iv-formatted-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #0d1525;
}

.iv-field-lbl {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

.iv-formatted-iban {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.35rem;
  color: var(--iv-acc);
  text-shadow: 0 0 18px -2px var(--iv-acc);
  letter-spacing: 0.1em;
  flex: 1;
  word-break: break-all;
}

.iv-copy-btn {
  background: none;
  border: 1px solid #2e4a72;
  color: var(--muted);
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.8rem;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.iv-copy-btn:hover {
  border-color: var(--iv-acc);
  color: var(--iv-acc);
}

.iv-copy-btn.copied {
  border-color: var(--neon4);
  color: var(--neon4);
}

/* ── Aufschlüsselung ─────────────────────────────── */

.iv-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.iv-bd-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #0d1525;
}

.iv-bd-row:last-child {
  border-bottom: none;
}

.iv-bd-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  min-width: 10rem;
  flex: 0 0 auto;
}

.iv-bd-val {
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}

.iv-bd-val.iv-mono {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.93rem;
  letter-spacing: 0.06em;
}

/* ── Strukturierte BBAN-Zerlegung ────────────────── */

.iv-struct {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #0d1525;
  display: none;
}

.iv-struct-head {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

/* ── Erzeugen-Tab ────────────────────────────────── */

.iv-gen-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.iv-gen-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  min-width: 9rem;
  flex: 0 0 auto;
}

.iv-gen-input,
.iv-gen-select {
  flex: 1;
  background: #0c1220;
  border: 1px solid #1a2840;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.iv-gen-input {
  font-family: 'Consolas', 'Courier New', monospace;
  letter-spacing: 0.06em;
}

.iv-gen-select {
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  cursor: pointer;
}

.iv-gen-input:focus,
.iv-gen-select:focus {
  border-color: var(--iv-acc);
}

.iv-gen-input::placeholder {
  color: #4a6488;
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.iv-gen-country-row {
  margin-bottom: 1.3rem;
}

#iv-gen-btn,
#iv-bulk-btn {
  margin-top: 0.6rem;
  margin-bottom: 1.2rem;
}

/* ── Stapel-Tab ──────────────────────────────────── */

.iv-bulk-textarea {
  width: 100%;
  background: #0c1220;
  border: 1px solid #1a2840;
  color: var(--text);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 0.9rem;
  border-radius: 2px;
  outline: none;
  resize: vertical;
  min-height: 150px;
  transition: border-color 0.2s;
}

.iv-bulk-textarea:focus {
  border-color: var(--iv-acc);
}

.iv-bulk-textarea::placeholder {
  color: #4a6488;
}

.iv-bulk-note {
  font-size: 0.78rem;
  color: #ffb454;
  margin-bottom: 1rem;
  display: none;
}

.iv-bulk-summary {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #0d1525;
}

.iv-bulk-result {
  max-height: 360px;
  overflow-y: auto;
}

.iv-bulk-line {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0.4rem 0;
  border-bottom: 1px solid #0d1525;
}

.iv-bulk-line:last-child {
  border-bottom: none;
}

.iv-bulk-icon {
  font-size: 0.95rem;
  flex: 0 0 auto;
  width: 1.1rem;
}

.iv-bulk-ok {
  color: #00e87a;
}

.iv-bulk-bad {
  color: #ff4060;
}

.iv-bulk-iban {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--text);
  word-break: break-all;
}

.iv-bulk-info {
  font-size: 0.8rem;
  margin-left: auto;
  text-align: right;
}

.iv-bulk-info-ok {
  color: var(--muted);
}

.iv-bulk-info-bad {
  color: #ff8095;
}

/* ── Hinweis (kein Bank-Lookup) ──────────────────── */

.iv-disclaimer {
  margin-top: 1.6rem;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 760px) {
  .iv-grid {
    grid-template-columns: 1fr;
  }
  .iv-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .iv-title {
    font-size: 1.9rem;
  }
  .iv-formatted-iban {
    font-size: 1.1rem;
  }
  .iv-bd-lbl {
    min-width: 7.5rem;
  }
  .iv-input {
    font-size: 0.9rem;
  }
  .iv-gen-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .iv-gen-lbl {
    min-width: 0;
  }
  .iv-bulk-info {
    margin-left: 0;
    text-align: left;
    flex-basis: 100%;
  }
}
