/* Screen-Layout + Print-Layout für Rollen-Cheatsheets */

.filters-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:14px}
.field{display:flex;flex-direction:column;gap:4px}
.field span{color:var(--text2);font-size:11px;letter-spacing:1px;text-transform:uppercase;font-weight:700}
.field select{padding:10px 12px;background:var(--surface);color:var(--bright);border:1px solid var(--border);border-radius:8px;font-family:var(--ff-b);font-size:13px}
.print-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

/* Karten-Grid auf Screen */
.cards-container{max-width:820px;margin:0 auto;padding:12px 20px 80px;display:flex;flex-direction:column;gap:14px}

/* Einzelne Karte — A4-Proportion (Portrait 1:1.414) */
.role-cs{background:#fff;color:#111;border-radius:12px;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,.3);position:relative;page-break-after:always;font-family:'Manrope',sans-serif}
.role-cs.screen{aspect-ratio:1/1.414;max-width:600px;margin:0 auto;width:100%}

/* Header */
.cs-header{display:flex;align-items:center;gap:14px;padding:18px 20px 14px;border-bottom:4px solid #ffd700;background:linear-gradient(180deg,#fffbe6,#fff)}
.cs-badge{width:66px;height:66px;background:#ffd700;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 2px 8px rgba(255,215,0,.4)}
.cs-badge-code{font-family:'Bebas Neue',sans-serif;font-size:32px;color:#1a1200;letter-spacing:-.5px;line-height:1}
.cs-info h2{font-family:'Bebas Neue',sans-serif;font-size:30px;color:#111;letter-spacing:-.5px;line-height:1;margin-bottom:4px}
.cs-info .meta{color:#555;font-size:11px;letter-spacing:1.5px;text-transform:uppercase;font-weight:700}
.cs-club{margin-left:auto;font-family:'Bricolage Grotesque',sans-serif;font-size:11px;color:#888;letter-spacing:2px;text-transform:uppercase;font-weight:700;text-align:right;line-height:1.3}

/* Body */
.cs-body{display:grid;grid-template-columns:1fr 1.2fr;gap:14px;padding:16px 20px}

/* Mini-Pitch */
.cs-pitch{background:#f5f5f0;border-radius:8px;overflow:hidden;aspect-ratio:2/3}
.cs-pitch svg{width:100%;height:100%;display:block}

/* Right-Side */
.cs-right{display:flex;flex-direction:column;gap:12px}

/* Mantras */
.cs-mantras{background:#fffbe6;border-left:4px solid #ffd700;padding:12px;border-radius:0 8px 8px 0}
.cs-mantras .mantra{display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:13px;font-weight:600;color:#1a1200;line-height:1.3}
.cs-mantras .mantra:last-child{margin-bottom:0}
.cs-mantras .num{width:26px;height:26px;background:#ffd700;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;flex-shrink:0;color:#1a1200;font-family:'Bebas Neue',sans-serif;font-size:16px}

/* Sections */
.cs-section h3{font-family:'Bebas Neue',sans-serif;font-size:13px;color:#888;letter-spacing:2.5px;text-transform:uppercase;margin-bottom:4px;font-weight:700}
.cs-section ul,.cs-section ol{padding-left:18px;font-size:12px;line-height:1.4;color:#333}
.cs-section li{margin-bottom:2px}

/* Motto */
.cs-motto{padding:10px 14px;background:#1a1200;color:#ffd700;border-radius:8px;font-style:italic;text-align:center;font-size:12px;line-height:1.4;margin:0 20px}

/* Footer */
.cs-footer{padding:10px 20px 12px;display:flex;justify-content:space-between;font-size:9px;color:#999;border-top:1px solid #eee;margin-top:auto;letter-spacing:.5px;font-weight:700;text-transform:uppercase}

/* Single-Print */
.single-print-actions{padding:10px 20px;background:#f0f0f0;display:flex;justify-content:flex-end}
.single-print-actions button{background:#1a1200;color:#ffd700;border:none;padding:8px 14px;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer;font-family:'Manrope',sans-serif}

/* ================== PRINT-OVERRIDES ================== */
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body { background: #fff !important; color: #000 !important; }
  body::after, .floodlight, .particles { display: none !important; }
  .no-print { display: none !important; }

  .cards-container{padding:0;max-width:none;gap:0;display:block}
  .role-cs{
    box-shadow:none !important;
    border-radius:0 !important;
    aspect-ratio:auto !important;
    max-width:none !important;
    width:auto !important;
    height:auto !important;
    min-height:calc(100vh - 20mm);
    display:flex !important;
    flex-direction:column !important;
    margin:0 !important;
    page-break-after:always;
  }
  .role-cs:last-child{page-break-after:auto}
  .single-print-actions{display:none !important}

  /* Versteckte Karten ausblenden */
  .role-cs.hidden-print{display:none !important}
}

/* Team-Poster-Modus (A4 Landscape, alle 11 als Grid) */
@media print {
  body.poster-mode .role-cs{
    min-height:unset !important;
    page-break-after:auto !important;
    break-inside:avoid !important;
    font-size:9px;
  }
  body.poster-mode .cards-container{
    display:grid !important;
    grid-template-columns:repeat(4,1fr) !important;
    gap:4mm !important;
    height:100vh;
  }
  body.poster-mode .cs-header{padding:6px 8px 4px;border-bottom-width:2px}
  body.poster-mode .cs-badge{width:30px;height:30px}
  body.poster-mode .cs-badge-code{font-size:14px}
  body.poster-mode .cs-info h2{font-size:13px}
  body.poster-mode .cs-info .meta{font-size:7px;letter-spacing:.8px}
  body.poster-mode .cs-club{display:none}
  body.poster-mode .cs-body{padding:4px 8px;grid-template-columns:1fr;gap:4px}
  body.poster-mode .cs-pitch{display:none}
  body.poster-mode .cs-mantras{padding:4px 6px}
  body.poster-mode .cs-mantras .mantra{font-size:8px;margin-bottom:2px}
  body.poster-mode .cs-mantras .num{width:14px;height:14px;font-size:9px}
  body.poster-mode .cs-section{display:none}
  body.poster-mode .cs-motto{display:none}
  body.poster-mode .cs-footer{display:none}
  @page { size: A4 landscape; margin: 6mm; }
}

/* Single-Print Mode (nur eine Karte) */
@media print {
  body.single-mode .role-cs:not(.printing){display:none !important}
}
