/* ═══════════════════════════════════════════════════════════════
   ENCHANTED LETTERS — Final CSS

   ARCHITEKTUR:
   • Briefpapier = <img> mit width:100% height:auto
     → Immer vollständig sichtbar, keine Ecke abgeschnitten
   • Text = absolut positioniert über dem Bild (% basiert)
     → Skaliert mit dem Bild, bleibt immer innerhalb
   • Layout: 75% Papier | 25% Sidebar (Grid)
   • Mobile: Sidebar = Fixed Bottom Tray
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Dancing+Script:wght@400;600&display=swap');

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --el-purple:      #7c4fd6;
  --el-purple-dk:   #5a35a8;
  --el-purple-lt:   #a070f0;
  --el-gold:        #c9a96e;
  --el-ink:         #1e1408;

  --el-sidebar-bg:  rgba(6, 4, 16, 0.95);
  --el-input-bg:    rgba(0, 0, 0, 0.35);
  --el-input-bdr:   rgba(255,255,255,0.12);
  --el-text:        rgba(255,255,255,0.92);
  --el-text-2:      rgba(255,255,255,0.55);
  --el-text-3:      rgba(255,255,255,0.3);
  --el-error:       #e05c6e;
  --el-r:           10px;
  --el-r-sm:        7px;

  /* Sidebar */
  --el-bar-w:     260px;    /* desktop sidebar width  */
  --el-bar-h:     300px;    /* mobile tray height     */

  /*
   * Schreibzone des Pergament-Bildes (relativ zur Bildgröße).
   * Diese Prozentwerte zeigen wo auf dem Parchment-Bild
   * der beschreibbare Bereich beginnt/endet.
   * Anpassen falls das Bild ausgetauscht wird.
   */
  --el-paper-top:    23%;   /* Abstand Oberkante Bild → Oberkante Schreibzone  */
  --el-paper-bottom: 12%;   /* Abstand Unterkante Bild → Unterkante Schreibzone */
  --el-paper-left:   17%;
  --el-paper-right:  17%;

  --el-f-display: 'Cinzel', serif;
  --el-f-body:    'Cormorant Garamond', Georgia, serif;
  --el-f-script:  'Dancing Script', cursive;
}

/* ── Reset (scoped) ─────────────────────────────────────────── */
#el-root, .el-bg, #el-root * { box-sizing: border-box; }
#el-root { line-height: 1; font-family: var(--el-f-body); position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════
   FULLSCREEN BACKGROUND
   ══════════════════════════════════════════════════════════════ */
.el-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0a0818;
}

.el-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.el-bg-img.loaded { opacity: 1; }

.el-bg-video-wrap { position: absolute; inset: 0; overflow: hidden; }
.el-bg-video      { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════════════════════
   STEPS
   ══════════════════════════════════════════════════════════════ */
.el-step {
  min-height: 100vh;
  animation: el-in 0.35s ease both;
}

@keyframes el-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   SCHRITT 1 + 2 — Gemeinsames Layout: 75% | 25%
   ══════════════════════════════════════════════════════════════ */
.el-step-config,
.el-step-preview {
  display: grid;
  grid-template-columns: 75fr 25fr;
  min-height: 100vh;
  overflow: hidden; /* Prevent float animation from causing page scroll */
}

/* Papier-Spalte (links, 75%) */
.el-paper-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* Clip float animation overflow — no scrollbars */
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   BRIEFPAPIER WRAP
   img + absolut positionierter Textbereich
   ══════════════════════════════════════════════════════════════ */
.el-paper-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  /* Drop shadow */
  filter: drop-shadow(0 20px 48px rgba(0,0,0,0.6))
          drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

/* Das Bild: immer vollständig sichtbar, keine Ecke abgeschnitten */
.el-paper-img {
  display: block;
  width: 100%;
  height: auto;       /* behält Seitenverhältnis bei */
  pointer-events: none;
  user-select: none;
  border-radius: 2px;
}

/* Textbereich: absolut über dem Bild, innerhalb der Schreibzone */
.el-paper-fields {
  position: absolute;
  top:    var(--el-paper-top);
  bottom: var(--el-paper-bottom);
  left:   var(--el-paper-left);
  right:  var(--el-paper-right);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Text kann NIE aus dem Papier herausragen */
}

/* Eingabe-Felder auf dem Pergament */
.el-paper-input {
  width: 100%;
  outline: none;
  color: var(--el-ink);
  font-family: var(--el-f-script);
  font-style: normal;
  caret-color: rgba(80,50,10,0.7);
  resize: none;
  -webkit-appearance: none;
  line-height: 1.55;
  /* Default: transparent (used in preview) */
  background: transparent;
  border: none;
  padding: 0;
}

/* Config step: white semi-transparent bg + border */
.el-step-config .el-paper-input {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(80,55,15,0.35);
  border-radius: 4px;
  padding: 6px 8px;
}

.el-step-config .el-paper-input:focus {
  background: rgba(255,255,255,0.65);
  border-color: rgba(80,55,15,0.55);
  outline: none;
}

/* Preview step: fully transparent, no border */
.el-step-preview .el-paper-input,
.el-paper-fields-preview .el-paper-input {
  background: transparent;
  border: none;
  padding: 0;
}

.el-paper-title {
  font-size: clamp(16px, 2.6vw, 26px);
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
  padding-bottom: 8px;
  letter-spacing: 0.01em;
}

.el-paper-title::placeholder { color: rgba(80,55,15,0.3); }

.el-paper-body {
  flex: 1;
  font-size: clamp(13px, 1.9vw, 18px);
  line-height: 1.8;
  margin-top: 8px;
  overflow-y: auto;
  text-align: center;
  /* Scrollbar im Pergament-Stil */
  scrollbar-width: thin;
  scrollbar-color: rgba(140,100,40,0.3) transparent;
}

.el-paper-body::-webkit-scrollbar       { width: 4px; }
.el-paper-body::-webkit-scrollbar-thumb { background: rgba(140,100,40,0.3); border-radius: 2px; }
.el-paper-body::-webkit-scrollbar-track { background: transparent; }

.el-paper-body::placeholder { color: rgba(80,55,15,0.28); }

/* Trennlinie auf dem Pergament */
.el-paper-divider {
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, rgba(100,70,20,0.25) 25%, rgba(100,70,20,0.25) 75%, transparent);
  margin: 4px 0;
}

/* Zeichenzähler: inline nach jedem Feld (kein separater Bar mehr) */
.el-char-bar { display: none; }

.el-char-cnt {
  font-size: 9.5px;
  color: rgba(100,75,25,0.45);
  font-family: var(--el-f-display);
  letter-spacing: 0.03em;
  display: block;       /* own line below the input */
  text-align: right;
  flex-shrink: 0;
  padding-top: 2px;
  padding-right: 2px;
}

.el-char-cnt.warn { color: rgba(160,100,20,0.75); }
.el-char-cnt.over { color: rgba(200,50,50,0.85); }

/* ══════════════════════════════════════════════════════════════
   VORSCHAU-TEXT (Schritt 2)
   ══════════════════════════════════════════════════════════════ */
.el-paper-fields-preview {
  overflow: hidden;
}
/* Preview text: never any bg or border */
.el-paper-fields-preview .el-preview-title,
.el-paper-fields-preview .el-preview-body {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.el-preview-title {
  font-family: var(--el-f-script);
  font-size: clamp(16px, 2.6vw, 26px);
  font-weight: 600;
  color: var(--el-ink);
  text-align: center;
  margin: 0 0 4px;
  flex-shrink: 0;
  line-height: 1.35;
  /* Typewriter: Breite startet bei 0 */
  white-space: nowrap;
  overflow: hidden;
}

/* CSS-Typewriter entfernt — Feder-JS übernimmt das Schreiben */
.el-preview-title.tw { /* JS schreibt direkt */ }

.el-preview-body {
  font-family: var(--el-f-script);
  font-size: clamp(13px, 1.9vw, 18px);
  line-height: 1.8;
  color: var(--el-ink);
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  overflow: hidden;
  margin-top: 8px;
  text-align: center;
}

/* Jede Zeile erscheint einzeln von unten */
.el-preview-body .el-line {
  display: block;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.el-preview-body .el-line.show {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   SCHWEBENDE 8-FORM ANIMATION (Schritt 2 Vorschau)
   ══════════════════════════════════════════════════════════════ */
.el-paper-float {
  /* Entry animation, then float loop */
  animation:
    el-arrive 0.75s cubic-bezier(0.22,1,0.36,1) both,
    float 6s ease-in-out 0.75s infinite;
}

@keyframes el-arrive {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0px) rotate(-2deg); }
}

/* Exakte float-Spezifikation */
@keyframes float {
  0%,100% { transform: translateY(0px)  rotate(-1.5deg); }
  50%     { transform: translateY(-14px) rotate( 1.5deg); }
}

/* Directly usable class */
.animate-float {
  animation: 6s ease-in-out 0s infinite normal none running float;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR (rechts, 25%)
   ══════════════════════════════════════════════════════════════ */
.el-sidebar {
  background: var(--el-sidebar-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  /* Desktop: sticky, volle Höhe */
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  box-shadow: -2px 0 20px rgba(0,0,0,0.35);
}

.el-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 22px 18px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,79,214,0.25) transparent;
}

.el-sidebar-scroll::-webkit-scrollbar       { width: 4px; }
.el-sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(124,79,214,0.25); border-radius: 2px; }

.el-sidebar-section { margin-bottom: 20px; }
.el-sidebar-section:first-child { margin-top: 0; }

.el-sidebar-label {
  font-family: var(--el-f-display);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 10px;
}

.el-sidebar-field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  font-family: var(--el-f-body);
  margin-bottom: 10px;
}

.el-req { color: var(--el-purple-lt); margin-left: 2px; }

/* Sticky Footer in der Sidebar (CTA immer sichtbar) */
.el-sidebar-footer {
  padding: 14px 18px 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  background: var(--el-sidebar-bg);
}

/* ── Thumbnail-Grid für Hintergründe ─────────────────────────── */
.el-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.el-thumb-grid-paper {
  grid-template-columns: repeat(3, 1fr);
}

.el-bg-thumb {
  aspect-ratio: 16/10;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.05);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  outline: none;
  position: relative;
  overflow: hidden;
}

.el-thumb-grid-paper .el-bg-thumb {
  aspect-ratio: 3/4;
}

.el-bg-thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3px 5px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-family: var(--el-f-display);
  font-size: 7.5px;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.15s;
}

.el-bg-thumb:hover::after,
.el-bg-thumb.active::after  { opacity: 1; }
.el-bg-thumb:hover          { transform: scale(1.05); }
.el-bg-thumb.active         { border-color: var(--el-purple); box-shadow: 0 0 0 1px var(--el-purple); }
.el-bg-thumb:focus-visible  { border-color: var(--el-purple-lt); }

/* ── Formularelemente ────────────────────────────────────────── */
.el-sidebar-input {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-family: var(--el-f-body);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  margin-bottom: 8px;
}

.el-sidebar-input::placeholder { color: var(--el-text-3); }
.el-sidebar-input::placeholder { color: rgba(255,255,255,0.35); }
.el-sidebar-input:focus {
  border-color: var(--el-purple);
  box-shadow: 0 0 0 2px rgba(124,79,214,0.3);
  background: rgba(0,0,0,0.5);
}

.el-sidebar-hint {
  font-size: 12.5px;
  color: rgba(200,195,215,0.65);
  line-height: 1.55;
  margin: 6px 0 14px;
  font-family: var(--el-f-body);
}

.el-sidebar-hint-muted {
  color: rgba(200,195,215,0.7);
  margin-top: 14px;
  font-size: 13px;
}

.el-share-pending {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: var(--el-purple-lt);
  font-family: var(--el-f-body);
  margin-top: 10px;
  line-height: 1.45;
}
.el-share-pending svg { flex-shrink: 0; margin-top: 2px; }

.el-form-error {
  font-size: 12px;
  color: var(--el-error);
  font-style: italic;
  min-height: 14px;
  margin-bottom: 6px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.el-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 20px;
  background: var(--el-purple);
  color: #fff;
  border: none;
  border-radius: 22px; /* pill shape like screenshot */
  font-family: var(--el-f-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s, opacity 0.18s;
  box-shadow: 0 6px 22px rgba(124,79,214,0.45);
}

.el-btn-primary:hover:not(:disabled) {
  background: var(--el-purple-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124,79,214,0.52);
}

.el-btn-primary:active:not(:disabled) { transform: scale(0.98); }
.el-btn-primary:disabled              { opacity: 0.5; cursor: not-allowed; }

.el-btn-save { margin-top: 2px; }

.el-btn-back {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--el-f-body);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0;
  margin-bottom: 22px;
  width: 100%;
}
.el-btn-back:hover { color: rgba(255,255,255,0.85); }

/* ── Share-Bereich ───────────────────────────────────────────── */
.el-copy-row { display: flex; gap: 6px; margin: 8px 0 12px; }

.el-share-url {
  flex: 1; min-width: 0;
  background: var(--el-input-bg);
  border: 1px solid var(--el-input-bdr);
  border-radius: var(--el-r-sm);
  color: var(--el-text-2);
  font-size: 11px;
  padding: 8px 10px;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.el-btn-copy {
  flex-shrink: 0;
  padding: 8px 12px;
  background: rgba(124,79,214,0.25);
  border: 1px solid rgba(124,79,214,0.45);
  border-radius: var(--el-r-sm);
  color: #fff;
  font-family: var(--el-f-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.el-btn-copy:hover, .el-btn-copy.copied { background: rgba(124,79,214,0.5); }

.el-share-pills { display: flex; flex-direction: column; gap: 5px; }

.el-share-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--el-r-sm);
  color: var(--el-text-2);
  font-family: var(--el-f-body); font-size: 13px;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.el-share-pill:hover { background: rgba(124,79,214,0.2); color: #fff; }
.el-share-pill svg   { width: 14px; height: 14px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   VIEW STEP (geteilter Brief)
   ══════════════════════════════════════════════════════════════ */
.el-step-view {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px 64px;
  animation: el-in 0.5s ease both;
}

.el-view-center {
  width: 100%;
  max-width: 520px;
}

.el-view-date {
  font-size: 11px;
  color: rgba(50,35,10,0.45);
  font-style: italic;
  text-align: right;
  margin: 8px 0 0;
  flex-shrink: 0;
}

.el-view-cta { text-align: center; color: var(--el-text-2); font-size: 14px; margin-top: 28px; }
.el-view-cta p { margin: 0 0 14px; }

/* ══════════════════════════════════════════════════════════════
   LOADING
   ══════════════════════════════════════════════════════════════ */
.el-loading {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,5,18,0.78); backdrop-filter: blur(4px);
}

.el-spinner {
  width: 36px; height: 36px;
  border: 2.5px solid rgba(124,79,214,0.18);
  border-top-color: var(--el-purple);
  border-radius: 50%;
  animation: el-spin 0.72s linear infinite;
}

@keyframes el-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════
   SELECTOR SHORTCODE
   ══════════════════════════════════════════════════════════════ */
.el-selector { padding: 48px 0; }

.el-selector-heading {
  font-family: var(--el-f-display);
  font-size: clamp(18px, 3.5vw, 28px);
  font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  text-align: center; margin: 0 0 40px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}

.el-selector-grid {
  display: grid;
  grid-template-columns: repeat(var(--el-cols, 3), 1fr);
  gap: 22px;
}

.el-selector-card {
  border-radius: var(--el-r); overflow: hidden;
  background: rgba(8,6,18,0.85);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex; flex-direction: column;
}

.el-selector-card:hover {
  transform: translateY(-5px);
  border-color: var(--el-purple);
  box-shadow: 0 14px 44px rgba(0,0,0,0.4), 0 0 0 1px var(--el-purple);
}

.el-selector-card-thumb {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  transition: transform 0.4s;
}
.el-selector-card:hover .el-selector-card-thumb { transform: scale(1.04); }

.el-selector-card-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: rgba(255,255,255,0.03);
}

.el-selector-card-body {
  padding: 16px 18px 20px; flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}

.el-selector-card-title {
  font-family: var(--el-f-display); font-size: 13px;
  font-weight: 500; letter-spacing: 0.06em; color: #fff; margin: 0;
}

.el-selector-card-desc {
  font-family: var(--el-f-body); font-size: 13px;
  color: rgba(255,255,255,0.5); font-style: italic;
  margin: 0; line-height: 1.5; flex: 1;
}

.el-selector-card-cta {
  display: inline-block; margin-top: 8px; padding: 8px 14px;
  background: var(--el-purple); color: #fff; border-radius: var(--el-r-sm);
  font-family: var(--el-f-display); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: background 0.15s; text-align: center;
}
.el-selector-card-cta:hover { background: var(--el-purple-lt); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – TABLET (600-900px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 600px) and (max-width: 900px) {
  .el-step-config,
  .el-step-preview {
    grid-template-columns: 75fr 25fr;
  }

  .el-paper-col { padding: 0; }


  :root {
    --el-bar-w: 220px;
    --el-paper-top:    24%;
    --el-paper-bottom: 12%;
    --el-paper-left:   17%;
    --el-paper-right:  17%;
  }

  .el-thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .el-selector-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – MOBILE (<600px)
   Sidebar = Fixed Bottom Tray
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 599px) {

  .el-step-config,
  .el-step-preview {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  /* Papier-Spalte: padding unten für Bottom-Tray, kein margin auf Mobile */
  .el-paper-col {
    padding: 0 0 calc(var(--el-bar-h) + 24px) 0;
    align-items: flex-start;
    overflow-y: auto;
    height: 100svh;
  }

  .el-paper-wrap { max-width: 100%; }

  /* Sidebar → Fixed Bottom Tray */
  .el-sidebar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    height: var(--el-bar-h);
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px 14px 0 0;
    z-index: 50;
    /* Kein sticky mehr auf Mobile */
    top: auto;
  }

  .el-sidebar-scroll { padding: 14px 14px 8px; }

  .el-thumb-grid { grid-template-columns: repeat(4, 1fr); }
  .el-thumb-grid-paper { grid-template-columns: repeat(3, 1fr); }

  .el-selector-grid { grid-template-columns: 1fr; gap: 12px; }

  .el-step-view { padding: 24px 12px 48px; }

  :root {
    --el-paper-top:    24%;
    --el-paper-bottom: 12%;
    --el-paper-left:   17%;
    --el-paper-right:  17%;
  }
}

/* ══════════════════════════════════════════════════════════════
   FEDER-ANIMATION (Vorschau)
   ══════════════════════════════════════════════════════════════ */

/* Wrapper über dem Briefpapier (nur in Vorschau aktiv) */
.el-quill-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

/* Quill — classic calligraphy style, nib at bottom-left → upper-right */
.el-quill {
  position: absolute;
  width: 60px;
  height: 90px;
  /* Nib tip is bottom-left in SVG → transform-origin there */
  transform-origin: 15% 95%;
  /* Writing position: nib tip at cursor, feather points upper-right */
  transform: translate(-15%, -95%);
  pointer-events: none;
  transition: opacity 0.25s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

.el-quill.hidden  { opacity: 0; }
.el-quill.visible { opacity: 1; }

/* Writing wobble: slight tilt around the nib tip */
.el-quill.writing {
  animation: el-quill-write 0.14s ease-in-out infinite alternate;
}

@keyframes el-quill-write {
  from { transform: translate(-15%, -95%) rotate(-1.5deg); }
  to   { transform: translate(-15%, -95%) rotate( 1.5deg) translateY(-1px); }
}

/* Tinte-Punkt (kleine Markierung am Schreibpunkt) */
.el-quill-ink {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(30, 20, 8, 0.6);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 11;
  transition: opacity 0.2s;
}

.el-sidebar-empty {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  font-family: var(--el-f-body);
  margin: 6px 0 0;
  line-height: 1.45;
}
