/* =========================================================
   MailPilot — Styles
   Dark-Mode, modern & professionell
   ========================================================= */

/* ---- Design-Variablen (hier zentral Farben anpassen) ---- */
:root {
  --bg:          #0a0710;
  --bg-soft:     #120c1d;
  --surface:     #160f24;
  --surface-2:   #1b1430;
  --surface-3:   #241a3d;
  --border:      #2c2148;
  --border-soft: #241a3b;

  --text:        #f3f0fa;
  --text-muted:  #a99fc0;
  --text-faint:  #6e6388;

  --accent:      #8b5cf6;   /* Violett */
  --accent-2:    #a855f7;   /* auffälliges, modernes Lila (Primär-CTA) */
  --accent-3:    #c084fc;   /* heller Glanz */
  --accent-soft: rgba(139, 92, 246, .16);
  --gold:        #fbbf24;
  --success:     #34d399;
  --danger:      #f87171;
  --warn:        #fbbf24;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 20px 50px -20px rgba(0, 0, 0, .6);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 680px at 8% -12%, rgba(168, 85, 247, .18), transparent 60%),
    radial-gradient(900px 620px at 108% -4%, rgba(139, 92, 246, .14), transparent 55%),
    radial-gradient(820px 520px at 50% 8%, rgba(124, 58, 237, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

::selection { background: rgba(168, 85, 247, .38); color: #fff; }

/* ---- Grundgerüst ---- */
.app {
  min-height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 40px) 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- Kopfzeile ---- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -28px clamp(-16px, -4vw, -40px) 0;
  padding: 16px clamp(16px, 4vw, 40px);
  background: rgba(10, 7, 16, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.app-header.is-stuck {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .9);
}
.brand {
  display: flex; align-items: center; gap: 13px;
  text-decoration: none; color: inherit;
  transition: transform .18s ease;
}
.brand:hover { transform: translateY(-1px); }
.brand__logo {
  position: relative;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2) 55%, #7c3aed);
  box-shadow: 0 10px 26px -8px rgba(168, 85, 247, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
/* feiner Innenrahmen für mehr Tiefe */
.brand__logo::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .18);
  pointer-events: none;
}
.brand__logo-mark { width: 27px; height: 27px; position: relative; filter: drop-shadow(0 2px 3px rgba(40, 8, 70, .45)); }
.brand__meta { display: flex; flex-direction: column; }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand__tagline { font-size: 13px; color: var(--text-muted); }
.brand__badge {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: #c7b8ff;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, .35);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---- Arbeitsbereich (zwei Spalten) ---- */
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 520px;
}

/* ---- Panel (Karte) ---- */
.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s;
}
.panel:focus-within {
  border-color: rgba(139, 92, 246, .5);
  box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft);
}
.panel__header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.panel__title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.panel__step {
  width: 22px; height: 22px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 12px -4px rgba(168, 85, 247, .8);
}
.panel__hint,
.panel__status { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.panel__status[data-type="ok"]    { color: var(--success); }
.panel__status[data-type="error"] { color: var(--danger); }
.panel__status[data-type="warn"]  { color: var(--warn); }
.panel__status[data-type="busy"]  { color: var(--text-muted); }
.panel__status[data-type="demo"]  {
  color: var(--accent-3);
  background: var(--accent-soft);
  border: 1px solid rgba(168, 85, 247, .32);
  padding: 3px 9px; border-radius: 999px; font-weight: 600;
}

/* ---- Textfelder ---- */
.field {
  flex: 1;
  width: 100%;
  min-height: 240px;
  resize: none;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  padding: 16px;
  transition: border-color .2s, background .2s;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.field::placeholder { color: var(--text-faint); }
/* Ausgabe-Feld: gefüllt mit Beispieltext, damit es nie leer wirkt */
.field--output { background: linear-gradient(180deg, #0d0817, #0c0814); }
.field--output::placeholder { color: var(--text-muted); }
.field--output.is-example { color: var(--text-muted); }
.field:focus { outline: none; border-color: rgba(139, 92, 246, .55); background: #0c0816; }
.field::-webkit-scrollbar { width: 10px; }
.field::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 10px;
  border: 2px solid var(--bg-soft);
}
.field::-webkit-scrollbar-thumb:hover { background: #33265a; }

/* ---- Tonfall-Auswahl ---- */
.tone { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tone__label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.tone__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tone__pill {
  font-family: var(--font);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
}
.tone__pill:hover { color: var(--text); border-color: rgba(139, 92, 246, .4); }
.tone__pill.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .12s, box-shadow .25s, background .25s, border-color .25s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn__icon { display: inline-flex; }
.btn__icon svg { width: 18px; height: 18px; }
.btn__hint {
  margin-left: auto;
  font-size: 12px; font-weight: 500;
  opacity: .85;
  background: rgba(255, 255, 255, .14);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Primärer Button (auffällig) */
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px -10px rgba(139, 92, 246, .7);
}
.btn--primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px -10px rgba(139, 92, 246, .9);
}

/* Sekundärer Button (Kopieren) */
.btn--ghost {
  justify-content: center;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--border);
}
.btn--ghost:not(:disabled):hover { background: #2a2046; border-color: rgba(139, 92, 246, .5); }
.btn--ghost.is-copied {
  color: #fff;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-color: transparent;
}

/* Download-Button (Desktop-App für Windows) */
.btn--download {
  width: auto;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  background: var(--surface-3);
  border: 1px solid var(--border);
}
.btn--download:not(:disabled):hover {
  transform: translateY(-1px);
  color: #fff;
  background: #2a2046;
  border-color: rgba(139, 92, 246, .5);
  box-shadow: 0 14px 32px -14px rgba(139, 92, 246, .7);
}
.btn--download .btn__icon svg { width: 18px; height: 18px; }
.hero__download {
  padding: 15px 26px;
  font-size: 16px;
  border-radius: 13px;
}

/* Lade-Spinner im Button */
.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: spin .6s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__icon { display: none; }
.btn.is-loading .btn__hint { visibility: hidden; }

/* ---- Fußzeile ---- */
.app-footer { text-align: center; font-size: 12.5px; color: var(--text-faint); }
.app-footer strong { color: var(--text-muted); font-weight: 600; }
.app-footer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ---- Hilfs-Animationen ---- */
@keyframes spin { to { transform: rotate(360deg); } }

.shake { animation: shake .4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ---- Fokus-Sichtbarkeit (Tastatur) ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field:focus-visible { outline: none; }

/* ---- Responsiv ---- */
@media (max-width: 880px) {
  .workspace { grid-template-columns: 1fr; min-height: 0; }
  .field { min-height: 200px; }
  .brand__tagline { display: none; }
}
@media (max-width: 480px) {
  .btn__hint { display: none; }
}

/* ============================================================
   Konto-Bereich in der Kopfzeile
   ============================================================ */
.account { display: flex; align-items: center; gap: 12px; }
.account__hint {
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.account__user {
  font-size: 13px;
  color: var(--text);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-account {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 11px;
  padding: 11px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s, box-shadow .25s, background .25s;
  box-shadow: 0 10px 24px -8px rgba(168, 85, 247, .8);
}
.btn-account:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(168, 85, 247, .95); }
.btn-account__icon { display: inline-flex; }
.btn-account__icon svg { width: 16px; height: 16px; }
.btn-account--ghost {
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-account--ghost:hover { background: #2a2046; border-color: rgba(139, 92, 246, .5); }

/* ============================================================
   Preise & Abos
   ============================================================ */
.pricing { display: flex; flex-direction: column; gap: 26px; padding-top: 18px; }
.pricing__head { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.pricing__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.pricing__subtitle { font-size: 14.5px; color: var(--text-muted); }

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.plan--featured {
  border-color: rgba(139, 92, 246, .6);
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 92, 246, .35),
    0 24px 60px -24px rgba(139, 92, 246, .5);
}

/* Sanfter Hover für alle Preis-Boxen: lila Rahmen + weicher Glow + leichtes Anheben.
   Nur transform/border-color/box-shadow ändern sich → das Raster bleibt stabil. */
.plan:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, .6);
  box-shadow: var(--shadow), 0 22px 55px -22px rgba(139, 92, 246, .55);
}
/* Die hervorgehobene „Starter"-Box behält ihren Ring/Glow und hebt sich mit an. */
.plan--featured:hover {
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 92, 246, .45),
    0 30px 72px -24px rgba(139, 92, 246, .62);
}
.plan__badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__name {
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted);
}
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.plan__period { font-size: 13.5px; color: var(--text-muted); }
.plan__desc { font-size: 13.5px; color: var(--text-muted); }
.plan__desc strong { color: var(--text); font-weight: 600; }
.plan__features { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.plan__features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text);
}
.plan__features svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent-2); margin-top: 1px; }
.plan__cta {
  margin-top: auto;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease,
    box-shadow .25s ease, transform .12s ease;
}
/* Einheitlicher, weicher Farb-Hover für alle 4 Abo-Box-Buttons:
   Hintergrund wird kräftig lila (Akzent-2), Text bleibt voll lesbar (weiß).
   ".btn:not(:disabled)" gibt höhere Spezifität als das bestehende .btn--ghost:hover. */
.plan__cta.btn:not(:disabled):hover {
  background-color: var(--accent-2);
  background-image: none;
  border-color: transparent;
  color: #fff;
}
/* Solider Lila-Unterbau hinter dem Verlauf der Primär-Buttons (Starter/Enterprise),
   damit beim Hover nichts aufblitzt, sondern sauber auf dieselbe Lila-Fläche gewechselt wird. */
.plan__cta.btn--primary { background-color: var(--accent-2); }
.plan__amount--custom { font-size: 24px; line-height: 1.2; }

/* ---- Enterprise-Kontaktformular (im Modal / Pop-up) ---- */
.modal__card--ent { text-align: left; max-width: 520px; }
.modal__card--ent .modal__subtitle { margin-bottom: 18px; }
.ent-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ent-form__field { display: flex; flex-direction: column; gap: 7px; }
.ent-form__label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.ent-form__input {
  width: 100%;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.ent-form__input::placeholder { color: var(--text-faint); }
.ent-form__input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, .6);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.ent-form__textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.ent-form__submit { justify-content: center; margin-top: 2px; }
.ent-form__status { font-size: 13.5px; text-align: center; min-height: 1.1em; }
.ent-form__status[data-type="ok"] { color: var(--success); }
.ent-form__status[data-type="error"] { color: var(--danger); }

/* ============================================================
   Modal (Anmeldung / Registrierung)
   ============================================================ */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 8, 14, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
.modal__card {
  position: relative;
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  animation: pop .25s cubic-bezier(.2, .9, .3, 1.2);
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: none; border-radius: 9px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.modal__close:hover { color: var(--text); background: #2a2046; }
.modal__lead {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, .35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.modal__lead-icon { font-size: 20px; line-height: 1.2; }
.modal__lead strong { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 2px; }
.modal__lead p { font-size: 13px; color: var(--text-muted); }
.modal__title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.modal__subtitle { font-size: 14px; color: var(--text-muted); margin: 5px 0 20px; }

.auth-tabs {
  display: flex; gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  padding: 5px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  background: transparent; border: none; border-radius: 8px;
  padding: 10px; cursor: pointer;
  transition: color .18s, background .18s;
}
.auth-tab.is-active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field-label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font); font-size: 15px;
  padding: 13px 14px;
  transition: border-color .2s, background .2s;
}
.input::placeholder { color: var(--text-faint); }
.input:focus { outline: none; border-color: rgba(139, 92, 246, .55); background: #0c0816; }
.auth-form .btn { margin-top: 4px; }

.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.auth-switch button {
  font: inherit; font-weight: 600;
  color: var(--accent-2);
  background: none; border: none; padding: 0; cursor: pointer;
}
.auth-disclaimer { text-align: center; font-size: 11.5px; color: var(--text-faint); margin-top: 14px; }

body.modal-open { overflow: hidden; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---- Limit-/Hinweis-Modal ---- */
.modal__card { text-align: center; }
.modal__icon {
  width: 56px; height: 56px;
  margin: 2px auto 6px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, .35);
}
.modal__card .btn { justify-content: center; }
.modal__card .btn + .btn { margin-top: 10px; }

/* ============================================================
   Tool-Sperre (sichtbar bis Login)
   ============================================================ */
.tool-area { position: relative; }
.tool-lock {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(9, 12, 20, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
}
body.is-authed .tool-lock { display: none; }
.tool-lock__card {
  text-align: center; max-width: 420px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .8);
}
.tool-lock__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  font-size: 26px; border-radius: 16px;
  background: var(--accent-soft); border: 1px solid rgba(139, 92, 246, .35);
}
.tool-lock__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.tool-lock__text { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.tool-lock__card .btn { justify-content: center; margin-top: 4px; }
.tool-lock__hint { font-size: 12px; color: var(--text-faint); }

/* ============================================================
   Abschnitte: So funktioniert es / Vorteile / FAQ
   ============================================================ */
.section-head { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.section-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.section-subtitle { font-size: 14.5px; color: var(--text-muted); }
.howto, .benefits, .faq { display: flex; flex-direction: column; gap: 24px; }

/* ---- So funktioniert es ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.step__num {
  width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 4px;
  font-size: 15px; font-weight: 700; color: #fff;
  border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step__title { font-size: 16px; font-weight: 600; }
.step__text { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ---- Deine Vorteile ---- */
.benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.benefit__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; color: var(--accent-2);
  background: var(--accent-soft); border: 1px solid rgba(139, 92, 246, .3);
}
.benefit__icon svg { width: 22px; height: 22px; }
.benefit__title { font-size: 16px; font-weight: 600; }
.benefit__text { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ---- FAQ (Akkordeon mit <details>) ---- */
.faq__list { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 2px 20px;
}
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; font-size: 15px; font-weight: 600; color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-right: 5px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .2s;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a { padding: 0 0 18px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   Kopfzeile rechts: Sprachumschalter + Konto
   ============================================================ */
.header-right { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 11px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.lang__btn:hover { color: var(--text); border-color: rgba(139, 92, 246, .5); }
.lang__globe { width: 15px; height: 15px; opacity: .85; }
.lang__chevron { width: 12px; height: 12px; opacity: .8; }
.lang__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 50;
  display: flex; flex-direction: column; gap: 2px; min-width: 132px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 6px;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .8);
}
.lang__menu[hidden] { display: none; }
.lang__opt {
  text-align: left; font-family: var(--font); font-size: 13.5px; color: var(--text);
  background: none; border: none; border-radius: 7px; padding: 9px 10px; cursor: pointer;
  transition: background .15s, color .15s;
}
.lang__opt:hover { background: var(--surface-3); }
.lang__opt.is-active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ============================================================
   Footer (überschreibt die alte einzeilige Variante)
   ============================================================ */
.app-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 22px 4px 6px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--text-muted);
}
.app-footer__brand { font-weight: 600; color: var(--text); }
.app-footer__links { display: flex; gap: 18px; }
.footer-link {
  font-family: var(--font); font-size: 13px; color: var(--text-muted);
  background: none; border: none; padding: 0; cursor: pointer;
  transition: color .2s;
}
.footer-link:hover { color: var(--text); text-decoration: underline; }
.app-footer__copy { color: var(--text-faint); }

/* ============================================================
   Dokument-Modals (Impressum / Datenschutz) — linksbündig
   ============================================================ */
.modal__card--doc { text-align: left; max-width: 480px; max-height: 82vh; display: flex; flex-direction: column; }
.modal__card--doc .modal__title { margin-bottom: 14px; }
.doc { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; text-align: left; padding-right: 4px; }
.doc__intro { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 6px; }
.doc__h { font-size: 14.5px; font-weight: 700; color: var(--text); margin-top: 12px; }
.doc__p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.doc__note { margin-top: 14px; font-size: 12px; color: var(--text-faint); font-style: italic; line-height: 1.5; }
.legal-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.legal-list li { display: flex; flex-direction: column; gap: 2px; }
.legal-list__label { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.legal-list__value { font-size: 14.5px; color: var(--text); }

/* ---- Responsiv für die neuen Bereiche ---- */
@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .steps,
  .benefits__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .app-footer { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .account__hint { display: none; }
}

/* ---- Kopfzeile auf kleinen Smartphones entlasten ---- */
@media (max-width: 600px) {
  .brand { gap: 9px; }
  .brand__badge { display: none; }          /* „Beta" ausblenden → Platz für den Button */
  .brand__logo { width: 40px; height: 40px; border-radius: 12px; }
  .brand__logo-mark { width: 23px; height: 23px; }
  .brand__name { font-size: 16px; }
  .header-right { gap: 7px; }
  .lang__btn { padding: 7px 8px; gap: 4px; }
  #langCurrent, .lang__chevron { display: none; }   /* auf dem Handy nur der Globus */
  .lang__globe { width: 17px; height: 17px; }
  .btn-account { padding: 9px 13px; font-size: 13px; gap: 6px; border-radius: 10px; }
  .btn-account__icon svg { width: 15px; height: 15px; }
}
/* Sehr schmale Geräte: Markenname weicht, Logo bleibt */
@media (max-width: 360px) {
  .brand__name { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
html { scroll-behavior: smooth; }
.hero, .workspace, .benefits, .pricing, .enterprise, .faq, .howto { scroll-margin-top: 84px; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: clamp(28px, 6vw, 60px) 12px clamp(14px, 3vw, 26px);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: #d7c9ff;
  background: var(--accent-soft);
  border: 1px solid rgba(168, 85, 247, .3);
  padding: 8px 15px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, .22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(192, 132, 252, 0); } }

.hero__title {
  max-width: 17ch;
  font-size: clamp(31px, 5.4vw, 54px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.025em;
}
.hero__title-em {
  background: linear-gradient(100deg, var(--accent), var(--accent-3) 70%, #e9d5ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub {
  max-width: 60ch;
  font-size: clamp(15.5px, 2.1vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero__cta-row {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: center;
  gap: 10px 22px;
  margin-top: 4px;
}
.hero__cta {
  width: auto;
  justify-content: center;
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 13px;
}
.hero__cta .btn__arrow { display: inline-flex; transition: transform .2s ease; }
.hero__cta .btn__arrow svg { width: 19px; height: 19px; }
.hero__cta:hover .btn__arrow { transform: translateX(3px); }
.hero__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  transition: color .2s;
}
.hero__link::before {
  content: "▸"; color: var(--accent-3); font-size: 12px;
}
.hero__link:hover { color: var(--text); }

/* ---- Social Proof ---- */
.proof {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 14px 18px;
  margin-top: 6px;
  padding: 14px 20px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.proof__avatars { display: flex; align-items: center; }
.proof__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -12px;
  object-fit: cover;
  background: var(--surface-3);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .55);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
  transition: transform .18s ease;
}
.proof:hover .proof__avatar { transform: translateY(-1px); }
.proof__avatar:first-child { margin-left: 0; }
/* Fallback, falls ein Foto nicht lädt: farbiger Verlauf statt leerem Kreis */
.proof__avatar--ph { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.proof__avatar:nth-child(2).proof__avatar--ph { background: linear-gradient(135deg, #f472b6, #a855f7); }
.proof__avatar:nth-child(3).proof__avatar--ph { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.proof__avatar:nth-child(4).proof__avatar--ph { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.proof__avatar--more {
  background: var(--surface-3);
  border-color: var(--surface);
  color: var(--accent-3); font-size: 11.5px; font-weight: 700; letter-spacing: -.02em;
}
.proof__body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.proof__stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 15px; line-height: 1; filter: drop-shadow(0 1px 4px rgba(251, 191, 36, .4)); }
.proof__text { font-size: 14px; line-height: 1.45; }
.proof__quote { font-weight: 600; color: var(--text); }
.proof__quote::after { content: " "; }
.proof__meta { color: var(--text-muted); }

@media (max-width: 600px) {
  .proof { flex-direction: column; }
  .proof__body { align-items: center; text-align: center; }
  .hero__cta, .hero__download { width: 100%; }
}

/* ============================================================
   Übersetzungs-Auswahl im KI-Vorschlag-Header
   ============================================================ */
.panel__tools { display: flex; align-items: center; gap: 10px; }

.xlate { position: relative; }
.xlate__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 9px; padding: 6px 10px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.xlate__btn:hover { color: var(--text); border-color: rgba(168, 85, 247, .5); }
.xlate__btn[aria-expanded="true"] { color: var(--text); border-color: rgba(168, 85, 247, .6); background: var(--accent-soft); }
.xlate__icon { width: 15px; height: 15px; color: var(--accent-3); flex: 0 0 auto; }
.xlate__chev { width: 11px; height: 11px; opacity: .8; }
.xlate.is-active .xlate__btn { color: var(--text); border-color: rgba(168, 85, 247, .55); }

.xlate__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 50;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 150px; max-height: 264px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 6px;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .85);
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.xlate__menu[hidden] { display: none; }
.xlate__opt {
  text-align: left; font-family: var(--font); font-size: 13.5px; color: var(--text);
  background: none; border: none; border-radius: 7px; padding: 9px 10px; cursor: pointer;
  white-space: nowrap; transition: background .15s, color .15s;
}
.xlate__opt:hover { background: var(--surface-3); }
.xlate__opt.is-active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
/* leicht „arbeitendes" Feld während der Übersetzung */
.field--output.is-translating { opacity: .55; }

@media (max-width: 480px) {
  .xlate__btn #xlateCurrent { display: none; }   /* auf sehr schmalen Geräten: nur Symbol */
  .panel__tools { gap: 7px; }
}

/* ---- Bewegung reduzieren ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
