
    :root {
      --navy:#0f172a; --navy2:#1e293b; --blue:#3b82f6; --blue-d:#2563eb;
      --green:#10b981; --surface:#f8fafc; --border:#e2e8f0;
      --text:#0f172a; --muted:#64748b; --radius:12px;
      --shadow:0 1px 3px rgba(0,0,0,0.06),0 4px 16px rgba(0,0,0,0.06);
    }
    *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
    body{font-family:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;background:var(--surface);color:var(--text);-webkit-font-smoothing:antialiased}
    .header{background:var(--navy);padding:0 28px;height:60px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:200;border-bottom:1px solid rgba(255,255,255,0.06)}
    .logo{color:white;font-size:1.1rem;font-weight:700;text-decoration:none;display:flex;align-items:center;gap:10px;letter-spacing:-0.02em}
    .logo-icon{width:32px;height:32px;background:linear-gradient(135deg,#3b82f6,#06b6d4);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1rem}
    .logo span{color:#94a3b8;font-weight:400;margin-left:2px}
    .wizard-nav{display:flex;align-items:center;justify-content:center;gap:0;margin:32px 0 36px;padding:0 16px}
    .wizard-step{display:flex;align-items:center;gap:8px;padding:9px 18px;font-size:0.82rem;font-weight:600;color:var(--muted);background:white;border:1.5px solid var(--border);border-radius:0;position:relative;transition:all .2s;white-space:nowrap;text-decoration:none}
    .wizard-step:first-child{border-radius:10px 0 0 10px}
    .wizard-step:last-child{border-radius:0 10px 10px 0}
    .wizard-step+.wizard-step{border-left:none}
    .wizard-step.active{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 0 0 3px rgba(59,130,246,0.2);z-index:1}
    .wizard-step.done{background:#f0fdf4;border-color:#6ee7b7;color:#065f46}
    .wizard-step.done:hover{background:#dcfce7}
    .wizard-step .num{width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,0.08);display:flex;align-items:center;justify-content:center;font-size:0.7rem;font-weight:700;flex-shrink:0}
    .wizard-step.active .num{background:rgba(255,255,255,0.25)}
    .wizard-step.done .num{background:#d1fae5;color:#065f46}
    .step-card{background:white;border-radius:16px;padding:36px 40px;max-width:740px;margin:0 auto;box-shadow:var(--shadow);border:1px solid var(--border)}
    body.step-2 .step-card{max-width:100%;padding:0;border:none;box-shadow:none;border-radius:0;background:transparent;}
    .step-title{font-size:1.35rem;font-weight:800;margin-bottom:6px;letter-spacing:-0.03em;color:var(--navy)}
    .step-subtitle{color:var(--muted);margin-bottom:28px;font-size:0.92rem;line-height:1.6}
    .form-group{margin-bottom:20px}
    .form-label{display:block;font-weight:600;font-size:0.82rem;color:#374151;margin-bottom:6px;letter-spacing:0.01em;text-transform:uppercase}
    .form-input{width:100%;padding:10px 13px;border:1.5px solid var(--border);border-radius:8px;font-size:0.92rem;font-family:inherit;color:var(--text);background:white;transition:border-color .15s,box-shadow .15s}
    .form-input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(59,130,246,0.12)}
    .time-row{display:flex;align-items:center;gap:10px}
    .time-row .form-input{width:120px;min-width:120px}
    .btn-primary{background:linear-gradient(135deg,var(--blue),var(--blue-d));color:white;border:none;padding:11px 26px;border-radius:8px;font-size:0.92rem;font-weight:600;cursor:pointer;font-family:inherit;transition:opacity .15s,transform .1s;box-shadow:0 1px 3px rgba(37,99,235,0.3)}
    .btn-primary:hover{opacity:.92;transform:translateY(-1px)}
    .btn-secondary{background:white;color:#374151;border:1.5px solid var(--border);padding:11px 26px;border-radius:8px;font-size:0.92rem;font-weight:600;cursor:pointer;font-family:inherit;transition:background .15s}
    .btn-secondary:hover{background:var(--surface)}
    .btn-row{display:flex;gap:10px;margin-top:28px;justify-content:flex-end;align-items:center}
    .qual-badge{padding:2px 9px;border-radius:20px;font-size:0.72rem;font-weight:700}
    .qual-PFK{background:#fef3c7;color:#92400e}
    .qual-PFA{background:#dbeafe;color:#1e40af}
    .qual-PH{background:#dcfce7;color:#166534}
    .main{padding:28px 20px;min-height:calc(100vh - 60px);background:var(--surface)}
  
.shift-card{border:2px solid var(--border);border-radius:12px;margin-bottom:12px;overflow:hidden;transition:border-color .2s;}
.shift-card.active{border-color:var(--blue);}
.shift-card-header{padding:14px 18px;background:var(--surface);display:flex;justify-content:space-between;align-items:center;}
.shift-toggle{display:flex;align-items:center;gap:10px;cursor:pointer;}
.shift-toggle input{width:18px;height:18px;cursor:pointer;}
.shift-toggle-label{font-weight:600;font-size:0.95rem;}
.shift-badge{font-size:0.7rem;font-weight:700;background:var(--navy);color:white;padding:3px 9px;border-radius:5px;}
.shift-body{padding:16px 18px;background:white;border-top:1px solid var(--border);}
.shift-times-row{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.time-arrow{color:var(--muted);margin-top:18px;flex-shrink:0;}
.ma-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.ma-item{display:flex;align-items:center;gap:8px;}
.ma-label{font-size:0.72rem;font-weight:700;padding:4px 10px;border-radius:6px;letter-spacing:0.04em;}
.num-stepper{display:flex;align-items:center;border:1.5px solid var(--border);border-radius:8px;overflow:hidden;}
.num-stepper button{background:var(--surface);border:none;width:30px;height:32px;cursor:pointer;font-size:1.1rem;font-weight:700;color:var(--muted);transition:background .1s;}
.num-stepper button:hover{background:#e2e8f0;}
.num-input{width:40px;text-align:center;border:none;border-left:1.5px solid var(--border);border-right:1.5px solid var(--border);height:32px;font-size:0.9rem;font-weight:700;font-family:inherit;-moz-appearance:textfield;}
.num-input::-webkit-outer-spin-button,.num-input::-webkit-inner-spin-button{-webkit-appearance:none;}
.num-input:focus{outline:none;}
.ma-total{margin-left:auto;text-align:center;background:var(--surface);border:1.5px solid var(--border);border-radius:8px;padding:4px 14px;}
.total-num{font-family:Georgia,serif;font-size:1.3rem;font-weight:600;color:var(--navy);display:block;}
.total-lbl{font-size:0.68rem;color:var(--muted);text-transform:uppercase;letter-spacing:0.06em;}
.calc-toggle{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:12px 16px;font-size:0.85rem;font-weight:600;color:var(--blue);cursor:pointer;display:flex;align-items:center;gap:10px;user-select:none;transition:background .15s;}
.calc-toggle:hover{background:#f6f7f8;}
.pg-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;}
.pg-card{border:2px solid;border-radius:10px;padding:12px 8px;text-align:center;}
.pg-label{font-weight:700;font-size:0.78rem;margin-bottom:2px;}
.pg-sub{font-size:0.68rem;margin-bottom:8px;opacity:.8;}
.pg-input{width:100%;text-align:center;padding:6px 4px;border:2px solid;border-radius:6px;font-size:1rem;font-weight:700;background:white;font-family:inherit;}
.pg-input:focus{outline:none;}
@media(max-width:600px){.pg-grid{grid-template-columns:repeat(3,1fr);}.ma-row{gap:8px;}}

/* ── Layout ── */
.gantt-page { display: flex; gap: 0; min-height: 600px; margin: -28px -20px 0; }

/* ── Bibliothek ── */
.lib-panel {
  width: 260px; flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: width .25s ease;
  overflow: hidden;
}
.lib-panel.collapsed { width: 40px; }
.lib-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px; font-size: 0.78rem; font-weight: 700;
  color: var(--navy); cursor: pointer; border-bottom: 1px solid var(--border);
  background: var(--surface); user-select: none; white-space: nowrap;
}
.lib-toggle-arrow { transition: transform .25s; font-size: 0.7rem; flex-shrink: 0; }
.lib-panel.collapsed .lib-toggle-arrow { transform: rotate(180deg); }
.lib-panel.collapsed .lib-toggle-text { display: none; }
.lib-body { flex: 1; overflow-y: auto; padding: 8px; }
.lib-panel.collapsed .lib-body { display: none; }

.lib-cat { margin-bottom: 8px; }
.lib-cat-header {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); padding: 6px 4px 4px;
}
.lib-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: white; border: 1px solid var(--border);
  border-radius: 7px; margin-bottom: 4px; cursor: grab;
  font-size: 0.8rem; font-weight: 500; color: var(--navy);
  transition: box-shadow .15s, transform .1s;
  user-select: none;
}
.lib-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); transform: translateY(-1px); }
.lib-item:active { cursor: grabbing; }
.lib-qual { font-size: 0.62rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.lib-dur  { font-size: 0.7rem; color: var(--muted); margin-left: auto; flex-shrink: 0; }

/* ── Gantt-Bereich ── */
.gantt-main { flex: 1; overflow: auto; padding: 20px; min-width: 0; }

.actionsbar2 {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 16px;
}

/* ── Gantt ── */
.gantt-wrap { overflow-x: auto; }
.gantt { position: relative; display: flex; }
.gantt-time-col { width: 56px; flex-shrink: 0; position: sticky; left: 0; z-index: 10; background: white; }
.gantt-time-cell { height: 24px; display: flex; align-items: center; justify-content: flex-end;
                   padding-right: 8px; font-size: 0.68rem; color: var(--muted); font-weight: 500;
                   border-right: 1px solid var(--border); }
.gantt-col { flex: 1; min-width: 150px; border-right: 1px solid var(--border); position: relative; }
.gantt-col-header { position: sticky; top: 0; z-index: 5; font-size: 0.75rem; font-weight: 700;
                    padding: 8px 10px; text-align: center; border-right: 1px solid rgba(0,0,0,0.08); }
.gantt-slot { height: 24px; border-bottom: 1px solid rgba(0,0,0,0.04); position: relative;
              transition: background .1s; }
.gantt-slot.hour { border-bottom: 1px solid rgba(0,0,0,0.12); }
.gantt-slot:hover { background: rgba(59,130,246,0.07); cursor: pointer; }
.gantt-slot.drop-target { background: rgba(59,130,246,0.15); }
.gantt-col.drag-over { background: rgba(59,130,246,0.05); outline: 2px dashed #93c5fd; outline-offset: -2px; }

/* ── Blöcke ── */
.g-block {
  position: absolute; left: 2px; right: 2px; border-radius: 5px;
  padding: 2px 6px; font-size: 0.7rem; font-weight: 600;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  z-index: 3; cursor: grab; border-left: 3px solid; user-select: none;
}
.g-block:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 4; }
.g-block .resize-handle {
  position: absolute; bottom: 0; left: 0; right: 0; height: 8px;
  cursor: ns-resize; background: rgba(0,0,0,0.2); border-radius: 0 0 4px 4px;
  opacity: 0; z-index: 5;
}
.g-block:hover .resize-handle { opacity: 1; }
.g-block:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.18); }
.type-pause  { background: #f1f5f9; border-color: #94a3b8; color: #475569; }
.type-custom { background: #f0fdf4; border-color: #10b981; color: #065f46; }
.type-task   { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }

.shift-header { background: var(--navy); color: white; padding: 8px 12px;
                font-size: 0.8rem; font-weight: 700; margin-bottom: 0;
                border-radius: 8px 8px 0 0; }
.shift-section { margin-bottom: 24px; }

/* ── Tutorial ── */
.tutorial-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.75);
  backdrop-filter: blur(4px); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.tutorial-card {
  background: white; border-radius: 16px; padding: 36px 32px;
  max-width: 400px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tutorial-step { font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
                 letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; }
.tutorial-icon { font-size: 2.5rem; margin-bottom: 16px; }
.tutorial-title { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 600;
                  color: var(--navy); margin-bottom: 10px; }
.tutorial-text { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }
.tutorial-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 24px; }
.tutorial-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.tutorial-dot.active { background: var(--blue); }
.tutorial-actions { display: flex; gap: 10px; justify-content: center; }
.tut-btn-primary { background: var(--blue); color: white; border: none; padding: 10px 24px;
                   border-radius: 8px; font-family: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.tut-btn-skip { background: none; border: none; color: var(--muted); font-family: inherit;
                font-size: 0.82rem; cursor: pointer; padding: 10px 16px; }

/* ── Premium Modal ── */
.premium-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.7);
  backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center;
  justify-content: center; padding: 20px; }
.premium-modal { background: white; border-radius: 16px; padding: 36px 32px;
  max-width: 400px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center; }
.premium-modal h3 { font-family: Georgia,serif; font-size: 1.2rem; font-weight: 600;
  color: var(--navy); margin-bottom: 10px; }
.premium-modal p { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.premium-cta { background: var(--blue); color: white; border: none; width: 100%; padding: 12px;
  border-radius: 8px; font-family: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; margin-bottom: 8px; }
.premium-close-btn { background: none; border: none; color: var(--muted); font-size: 0.82rem;
  cursor: pointer; font-family: inherit; }

/* ── Block Modal ── */
dialog { border: none; border-radius: 14px; padding: 0;
         box-shadow: 0 8px 40px rgba(0,0,0,0.2); max-width: 360px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); }
.dialog-header { background: var(--navy); padding: 14px 18px; border-radius: 14px 14px 0 0;
                 display: flex; justify-content: space-between; align-items: center; }
.dialog-header span { color: white; font-weight: 700; font-size: 0.9rem; }
.dialog-close { background: rgba(255,255,255,0.1); border: none; color: #94a3b8;
                width: 26px; height: 26px; border-radius: 5px; cursor: pointer; font-size: 0.9rem; }
.dialog-body { padding: 18px; }
.dur-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.dur-btn { padding: 6px 12px; border: 1.5px solid var(--border); border-radius: 7px;
           background: white; cursor: pointer; font-size: 0.82rem; font-weight: 600;
           font-family: inherit; transition: all .15s; }
.dur-btn.active { border-color: var(--blue); background: #eff6ff; color: #1d4ed8; }
.quick-cat-btn { padding: 5px 12px; border: 1.5px solid var(--border); border-radius: 6px;
  background: white; cursor: pointer; font-size: 0.78rem; font-weight: 600; font-family: inherit; transition: all .15s; color: var(--navy); }
.quick-cat-btn.active { border-color: var(--blue); background: #eff6ff; color: var(--blue); }
.quick-item-btn { padding: 6px 12px; border: 1.5px solid; border-radius: 7px;
  cursor: pointer; font-size: 0.78rem; font-weight: 600; font-family: inherit; transition: all .15s; }
.quick-item-btn:hover { filter: brightness(0.95); }

@media print {
  .lib-panel, .actionsbar2, .header, .wizard-nav, dialog,
  .tutorial-overlay, .premium-modal-overlay { display: none !important; }
  .gantt-page { margin: 0; display: block; }
  .gantt-main { padding: 0; overflow: visible; }
  .gantt-wrap { overflow: visible; }
  .shift-section {
    page-break-after: always;
    page-break-inside: avoid;
    width: 100%;
  }
  .shift-section:last-child { page-break-after: auto; }
  /* Auto-scale to fit width */
  .gantt {
    transform-origin: top left;
    width: max-content;
  }
}
@page { size: landscape; margin: 10mm; }
@media(max-width:900px) { .lib-panel { width: 220px; } }
@media(max-width:768px) {
  .gantt-page { flex-direction: column; margin: 0 -20px; min-height: 0; }
  .lib-panel, .lib-panel.collapsed { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .lib-panel { max-height: 280px; }
  .lib-panel.collapsed { max-height: 46px; }
  .lib-panel.collapsed .lib-toggle-text { display: inline; }
  .gantt-main { padding: 12px 0; overflow-x: hidden; }
  .gantt-wrap { -webkit-overflow-scrolling: touch; }
  .gantt-col { min-width: 130px; }
  .mobile-hint { display: block !important; }
}
.mobile-hint { display: none; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: 0.8rem; line-height: 1.5; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }

/* Header-Buttons */
.hbtn{background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);color:#fff;padding:8px 14px;border-radius:7px;font-size:0.82rem;font-weight:600;font-family:inherit;cursor:pointer;text-decoration:none}
.hbtn.red{background:#ef4444;border:none}
.privacy-note{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:10px;padding:10px 14px;font-size:0.82rem;line-height:1.5;margin-bottom:20px}
.savebar{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:8px;padding:8px 12px;font-size:0.8rem;margin-bottom:12px}
#app-step1,#app-step2{display:none}
body.step-1 #app-step1,body.step-2 #app-step2{display:block}
.g-block{white-space:nowrap}
.hidden{display:none!important}

/* ── Neues Design: ruhiges Grau, Farbe nur als Rand ── */
:root{--navy:#1A1F26;--navy2:#1A1F26;--blue:#2457A6;--blue-d:#1A1F26;--surface:#EEF0F2;--border:#D9DEE3;--muted:#566170;--radius:6px}
.header{background:#fff;border-bottom:1px solid var(--border)}
.logo{color:#1A1F26}.logo span{color:#566170}
.logo::before{content:'';width:6px;height:16px;background:#A86200;box-shadow:8px 0 0 #2457A6,16px 0 0 #1B5A55;margin-right:24px;border-radius:1px}
.hbtn{background:#fff;border:1.5px solid #1A1F26;color:#1A1F26;border-radius:4px}.hbtn.red{background:#1A1F26;color:#fff;border:0}
#earlyBanner{background:#fff!important;color:#1A1F26!important;border-bottom:1px solid var(--border)}
#earlyBanner a{color:#2457A6!important}
.step-card{border-radius:8px;box-shadow:none}
.btn-primary{background:#1A1F26;border-radius:4px;box-shadow:none}.btn-primary:hover{transform:none;opacity:1;background:#000}
.btn-secondary{border-radius:4px;border-color:#1A1F26}
.wizard-step{border-radius:0}.wizard-step.active{background:#1A1F26;border-color:#1A1F26;box-shadow:none}
.wizard-step.done{background:#fff;border-color:#1B5A55;color:#1B5A55}
.shift-card{border-radius:6px}.shift-card.active{border-color:#1A1F26}
.shift-badge{border-radius:3px;background:#1A1F26}
.privacy-note{background:#fff;border:1.5px solid #1B5A55;color:#1A1F26;border-radius:6px}
/* Qualifikationen: weiß mit farbigem Rand */
.ma-label{background:#fff!important;border:1.5px solid currentColor;border-radius:3px}
.pg-card{background:#fff!important;border-radius:6px}
.lib-qual{background:#fff!important;border:1px solid currentColor;border-radius:3px}
.lib-item{border-radius:4px}.lib-item:hover{transform:none;box-shadow:none;border-color:#1A1F26}
.gantt-col-header{background:#fff!important;border-bottom:3px solid currentColor!important}
.g-block{background:#fff!important;border:1px solid #D9DEE3;border-left-width:4px;border-radius:3px}
.shift-header{background:#1A1F26;border-radius:4px 4px 0 0}
.dialog-header{background:#1A1F26}
.dur-btn.active,.quick-cat-btn.active{border-color:#1A1F26;background:#fff;color:#1A1F26}
.tut-btn-primary,.premium-cta{background:#1A1F26;border-radius:4px}
.dot-active,.tutorial-dot.active{background:#1A1F26}
.mobile-hint{background:#fff;border-color:#D9DEE3;color:#1A1F26}

/* Sentence case, Bewegung nur als Farbwechsel */
.form-label,.total-lbl,.lib-cat-header,.tutorial-step,.lib-toggle{text-transform:none!important;letter-spacing:0!important}
*,*::before,*::after{transition-property:color,background-color,border-color,opacity,transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.22,1,.36,1)}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
