/* Bildkonverter – Toolseite */
:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --bg-dark: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  position: relative;
  z-index: 10;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

.header {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

/* ---------- Presets ---------- */
.bk-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.bk-preset {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all 0.25s ease;
}

.bk-preset:hover { color: var(--text-main); border-color: rgba(59, 130, 246, 0.4); }

.bk-preset.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary-color);
  color: #fff;
}

.bk-preset:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* ---------- Dropzone ---------- */
.bk-drop {
  border: 2px dashed rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.04);
  cursor: pointer;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
}

.bk-drop:hover, .bk-drop-active {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

.bk-drop:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }

.bk-drop-icon { font-size: 2rem; line-height: 1; margin-bottom: 0.75rem; }

.bk-drop-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.35rem; }

.bk-drop-hint { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ---------- Optionen ---------- */
.bk-options {
  border-top: 1px solid var(--glass-border);
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.field select,
.field input[type="number"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
}

.field select option { background: #0f172a; color: #fff; }

.field select:focus,
.field input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field select:focus-visible,
.field input:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

.field input[type="color"] {
  width: 56px;
  height: 40px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
}

input[type="range"] { width: 100%; accent-color: var(--primary-color); }

.hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.35rem; }
.hint a { color: var(--primary-color); }

/* ---------- Fortschritt ---------- */
.bk-progress { margin-top: 1.5rem; }

.bk-progress-label { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.4rem; }

.bk-progress-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.bk-progress-bar {
  background: linear-gradient(90deg, var(--primary-color), #60a5fa);
  height: 100%;
  width: 0;
  transition: width 0.25s ease;
}

/* ---------- Hinweise ---------- */
.bk-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  color: #fcd34d;
  font-size: 0.82rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
}

.bk-notice p { margin: 0 0 0.4rem; }
.bk-notice p:last-child { margin-bottom: 0; }

/* ---------- Ergebnisliste ---------- */
.bk-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; }

.bk-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 56px 1fr auto;
  padding: 0.75rem;
}

.bk-row-error { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.06); }

.bk-thumb {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: var(--text-muted);
  display: flex;
  height: 56px;
  justify-content: center;
  overflow: hidden;
  width: 56px;
}

.bk-thumb img { height: 100%; width: 100%; object-fit: cover; display: block; }

.bk-info { min-width: 0; }

.bk-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-detail { color: var(--text-muted); font-size: 0.78rem; margin: 0.2rem 0 0; }

.bk-save { color: var(--ok); font-weight: 700; }
.bk-grow { color: var(--warn); font-weight: 700; }

.bk-row-actions { display: flex; gap: 0.4rem; align-items: center; }

.bk-btn-small {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  transition: all 0.2s ease;
}

.bk-btn-small:hover { border-color: var(--primary-color); color: #fff; }
.bk-btn-small:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

.bk-btn-remove { color: var(--text-muted); font-size: 1rem; line-height: 1; padding: 0.35rem 0.6rem; }
.bk-btn-remove:hover { border-color: var(--err); color: #fca5a5; }

.bk-summary {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  font-size: 0.88rem;
  margin-top: 1.25rem;
  padding: 0.8rem 1rem;
}

.bk-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(59, 130, 246, 0.3); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  transition: all 0.25s ease;
}

.btn-ghost:hover { border-color: var(--primary-color); color: #fff; }
.btn-ghost:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* ---------- CTA & Text ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.cta-box h3 { color: #fff; font-size: 1.5rem; margin: 0 0 0.75rem; }
.cta-box p { color: rgba(255, 255, 255, 0.9); margin: 0 0 1.5rem; }

.btn-white {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  color: var(--primary-hover);
  font-weight: 700;
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.btn-white:hover { transform: translateY(-2px); }

.tool-text-panel h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.tool-text-panel h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.tool-text-panel p, .tool-text-panel li { color: #cbd5e1; }
.tool-text-panel a { color: var(--primary-color); }

.faq-item {
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
}

.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin-top: 0.5rem; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.data-table th, .data-table td {
  border-bottom: 1px solid var(--glass-border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.data-table th { color: var(--primary-color); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.data-table td { color: #cbd5e1; }

.table-scroll { overflow-x: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .bk-row { grid-template-columns: 44px 1fr; }
  .bk-thumb { width: 44px; height: 44px; }
  .bk-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
