
  :root{
    --forest:#0B3D2E;
    --turf:#1F6F4A;
    --turf-light:#2E8B5E;
    --white:#FFFFFF;
    --ink:#121815;
    --chalk:#F4F6F3;
    --line:#DCE3DD;
    --amber:#C48A2E;
    --red:#B4483A;
    --shadow: 0 1px 2px rgba(11,61,46,0.06), 0 4px 16px rgba(11,61,46,0.06);
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;height:100%;}
  body{
    background:var(--chalk);
    color:var(--ink);
    font-family:'Manrope',sans-serif;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.display{
  font-family:'Manrope',sans-serif;
  font-weight:700;
}
  .mono{font-family:'IBM Plex Mono',monospace;}
  #app{max-width:1080px;margin:0 auto;min-height:100%;padding-bottom:88px;}

  /* Topbar */
  .topbar{
    background:var(--forest);
    color:var(--white);
    padding:18px 20px;
    display:flex;align-items:center;justify-content:space-between;
    position:sticky;top:0;z-index:20;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 64px);
  }
  .topbar .brand{display:flex;align-items:center;gap:10px;}
  .topbar .brand .mark{
    width:30px;height:30px;border-radius:50%;
    background:var(--turf-light);
    display:flex;align-items:center;justify-content:center;
    font-size:16px;
  }
  .topbar .brand span{font-weight:600;font-size:16px;letter-spacing:0.2px;}
  .topbar .userchip{
    font-size:12px;color:rgba(255,255,255,0.85);
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    padding:6px 10px;border-radius:20px;cursor:pointer;
    display:flex;align-items:center;gap:6px;
  }

  /* Bottom nav (mobile-first) */
  .bottomnav{
    position:fixed;bottom:0;left:0;right:0;
    background:var(--white);
    border-top:1px solid var(--line);
    display:flex;justify-content:space-around;
    padding:8px 4px calc(8px + env(safe-area-inset-bottom));
    z-index:30;
  }
  .navbtn{
    display:flex;flex-direction:column;align-items:center;gap:3px;
    background:none;border:none;color:#7C8A81;font-size:11px;font-family:'Manrope',sans-serif;
    padding:6px 10px;border-radius:10px;cursor:pointer;
  }
  .navbtn.active{color:var(--forest);font-weight:600;background:rgba(31,111,74,0.08);}
  .navbtn .ico{font-size:19px;line-height:1;}

  .page{padding:20px;}
  .h-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:10px;}
  .eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.4px;color:var(--turf);font-weight:600;margin-bottom:4px;}
  .pagetitle{font-size:24px;font-weight:600;margin:0;}

  .card{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:14px;
    padding:18px;
    box-shadow:var(--shadow);
    margin-bottom:14px;
  }
  .card.clickable{cursor:pointer;transition:transform .12s ease, box-shadow .12s ease;}
  .card.clickable:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(11,61,46,0.12);}

  .btn{
    font-family:'Manrope',sans-serif;font-weight:600;font-size:14px;
    border-radius:10px;border:none;padding:11px 18px;cursor:pointer;
    display:inline-flex;align-items:center;gap:8px;justify-content:center;
    transition:opacity .12s ease;
  }
  .btn:active{opacity:0.85;}
  .btn-primary{background:var(--forest);color:var(--white);}
  .btn-ghost{background:transparent;color:var(--forest);border:1.5px solid var(--line);}
  .btn-danger{background:transparent;color:var(--red);border:1.5px solid rgba(180,72,58,0.3);}
  .btn-block{width:100%;}
  .btn:disabled{opacity:0.45;cursor:not-allowed;}
  .fab{
    position:fixed;right:20px;bottom:88px;z-index:25;
    background:var(--forest);color:var(--white);
    width:56px;height:56px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size:26px;box-shadow:0 6px 20px rgba(11,61,46,0.35);border:none;cursor:pointer;
  }

  label{font-size:12.5px;font-weight:600;color:#4B5A51;display:block;margin:14px 0 6px;}
  label .req{color:var(--red);}
  input[type=text],input[type=email],input[type=password],input[type=date],input[type=number],select,textarea{
    width:100%;font-family:'Manrope',sans-serif;font-size:14.5px;
    border:1.5px solid var(--line);border-radius:10px;padding:11px 12px;
    background:var(--white);color:var(--ink);
  }
  input:focus,select:focus,textarea:focus{outline:2px solid var(--turf-light);outline-offset:1px;border-color:var(--turf);}
  textarea{resize:vertical;min-height:90px;font-family:'Manrope',sans-serif;}
  .field-hint{font-size:11.5px;color:#8A9790;margin-top:4px;}
  .toggle-row{display:flex;gap:8px;}
  .toggle-opt{
    flex:1;text-align:center;padding:10px;border-radius:10px;border:1.5px solid var(--line);
    cursor:pointer;font-weight:600;font-size:13.5px;color:#4B5A51;
  }
  .toggle-opt.active{background:var(--forest);color:var(--white);border-color:var(--forest);}

  /* Status badge */
  .badge{
    font-size:11px;font-weight:600;padding:4px 10px;border-radius:20px;
    display:inline-flex;align-items:center;gap:5px;white-space:nowrap;
  }
  .dot{width:6px;height:6px;border-radius:50%;}
  .b-entwurf{background:#EEF0EC;color:#5B6960;} .b-entwurf .dot{background:#9AA79E;}
  .b-ki{background:#EAF1FB;color:#2C5C8F;} .b-ki .dot{background:#3E7EC2;}
  .b-freigabe{background:#FBF2E3;color:var(--amber);} .b-freigabe .dot{background:var(--amber);}
  .b-freigegeben{background:#E8F3EC;color:var(--turf);} .b-freigegeben .dot{background:var(--turf);}
  .b-geplant{background:#EFE9F7;color:#6B4FA0;} .b-geplant .dot{background:#6B4FA0;}
  .b-veroeffentlicht{background:var(--forest);color:var(--white);} .b-veroeffentlicht .dot{background:#7FE0AE;}

  /* Pitch pipeline */
  .pitch{
    background:var(--forest);
    border-radius:12px;padding:16px 14px;margin-bottom:16px;position:relative;overflow:hidden;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 20%);
  }
  .pitch-track{display:flex;align-items:center;position:relative;z-index:2;}
  .pitch-seg{flex:1;text-align:center;position:relative;}
  .pitch-seg .lbl{font-size:9.5px;color:rgba(255,255,255,0.55);text-transform:uppercase;letter-spacing:0.6px;font-weight:600;margin-top:6px;display:block;}
  .pitch-seg .mark{
    width:16px;height:16px;border-radius:50%;background:rgba(255,255,255,0.25);
    margin:0 auto;border:2px solid rgba(255,255,255,0.35);
  }
  .pitch-seg.done .mark{background:var(--turf-light);border-color:var(--turf-light);}
  .pitch-seg.done .lbl{color:rgba(255,255,255,0.9);}
  .pitch-seg.current .mark{background:#F4C542;border-color:#F4C542;box-shadow:0 0 0 5px rgba(244,197,66,0.25);}
  .pitch-seg.current .lbl{color:#F4C542;}
  .pitch-line{position:absolute;top:8px;left:0;right:0;height:2px;background:rgba(255,255,255,0.2);z-index:1;}

  .team-tag{font-size:12px;font-weight:700;color:var(--forest);background:rgba(31,111,74,0.1);padding:3px 9px;border-radius:6px;}
  .score{font-family:'IBM Plex Mono',monospace;font-weight:600;font-size:15px;}
  .sub{color:#728077;font-size:13px;}

  .dropzone{
    border:2px dashed var(--line);border-radius:12px;padding:26px 14px;text-align:center;
    color:#7C8A81;font-size:13.5px;cursor:pointer;background:#FAFBFA;
  }
  .dropzone.drag{border-color:var(--turf);background:rgba(31,111,74,0.06);color:var(--forest);}
  .thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;}
  .thumb{position:relative;width:84px;height:84px;border-radius:10px;overflow:hidden;border:1.5px solid var(--line);}
  .thumb img{width:100%;height:100%;object-fit:cover;display:block;}
  .thumb .star{
    position:absolute;top:4px;left:4px;background:rgba(0,0,0,0.55);color:#fff;font-size:11px;
    padding:2px 6px;border-radius:6px;cursor:pointer;
  }
  .thumb .star.on{background:#F4C542;color:#12181D;}
  .thumb .del{position:absolute;top:4px;right:4px;background:rgba(0,0,0,0.55);color:#fff;font-size:11px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;}

  .ig-preview{
    background:#000;border-radius:16px;overflow:hidden;max-width:340px;margin:0 auto;color:#fff;
    font-family:'Manrope',sans-serif;
  }
  .ig-preview .ig-head{display:flex;align-items:center;gap:8px;padding:10px 12px;}
  .ig-preview .ig-head .av{width:26px;height:26px;border-radius:50%;background:var(--turf-light);}
  .ig-preview .ig-head b{font-size:12.5px;}
  .ig-preview .ig-img{width:100%;aspect-ratio:1;object-fit:cover;background:#222;display:block;}
  .ig-preview .ig-cap{padding:10px 12px 14px;font-size:12.5px;line-height:1.5;white-space:pre-wrap;}

  .empty{text-align:center;padding:50px 20px;color:#8A9790;}
  .empty .ico{font-size:34px;margin-bottom:10px;}

  .slot-opt{
    border:1.5px solid var(--line);border-radius:10px;padding:12px;display:flex;justify-content:space-between;
    align-items:center;margin-bottom:8px;cursor:pointer;
  }
  .slot-opt.sel{border-color:var(--turf);background:rgba(31,111,74,0.06);}
  .slot-opt .t{font-weight:600;font-size:13.5px;}
  .slot-opt .d{font-size:12px;color:#8A9790;}

  .roleselect{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px;}
  .roleselect .box{max-width:380px;width:100%;}
  .roleselect .logo{
    width:56px;height:56px;border-radius:16px;background:var(--forest);color:#fff;
    display:flex;align-items:center;justify-content:center;font-size:26px;margin:0 auto 18px;
  }
  .roleselect h1{text-align:center;font-size:22px;margin:0 0 4px;}
  .roleselect p.sub2{text-align:center;margin:0 0 26px;color:#728077;font-size:13.5px;}

  .toast{
    position:fixed;bottom:100px;left:50%;transform:translateX(-50%);
    background:var(--ink);color:#fff;padding:11px 18px;border-radius:10px;font-size:13.5px;
    z-index:99;opacity:0;transition:opacity .2s ease;pointer-events:none;
  }
  .toast.show{opacity:1;}

  textarea.captiontext{min-height:220px;font-family:'Manrope',sans-serif;line-height:1.55;}
  .spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,0.3);border-top-color:#fff;animation:spin .7s linear infinite;display:inline-block;}
  @keyframes spin{to{transform:rotate(360deg);}}
  .genwrap{text-align:center;padding:30px 10px;color:var(--forest);}
  .genwrap .spinner-lg{width:34px;height:34px;border:3px solid var(--line);border-top-color:var(--turf);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 14px;}

  a.linkbtn{color:var(--forest);font-size:13.5px;font-weight:600;text-decoration:underline;cursor:pointer;}
  .settings-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);}
  .settings-row:last-child{border-bottom:none;}
  .chip{background:var(--chalk);border:1px solid var(--line);padding:4px 10px;border-radius:16px;font-size:12px;display:inline-flex;align-items:center;gap:6px;margin:3px 4px 3px 0;}
  .chip .x{cursor:pointer;color:var(--red);font-weight:700;}


  .auth-card{max-width:430px;margin:0 auto;}
  .auth-error{background:#FBECEA;color:var(--red);border:1px solid rgba(180,72,58,.25);border-radius:10px;padding:10px 12px;font-size:13px;margin-top:12px;display:none;}
  .auth-error.show{display:block;}
  .notice{border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.5;margin-bottom:14px;}
  .notice-info{background:#EAF1FB;color:#2C5C8F;border:1px solid #C9DBF0;}
  .notice-warn{background:#FBF2E3;color:#8A5A13;border:1px solid #EDD9B7;}
  .notice-error{background:#FBECEA;color:var(--red);border:1px solid rgba(180,72,58,.25);}
  .kv{display:grid;grid-template-columns:minmax(120px,180px) 1fr;gap:8px 14px;font-size:13px;}
  .kv .k{color:#728077;}
  .kv .v{font-weight:600;overflow-wrap:anywhere;}
  .helper-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
  .hidden{display:none !important;}
  .small{font-size:12px;color:#728077;line-height:1.5;}
  .danger-zone{border-color:rgba(180,72,58,0.3);}
  .setup-screen{padding:32px 20px;max-width:760px;margin:0 auto;}
  .setup-screen code{background:#EEF0EC;padding:2px 5px;border-radius:5px;}
  .password-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
  @media (max-width:560px){.password-grid{grid-template-columns:1fr}.kv{grid-template-columns:1fr}.kv .k{margin-top:6px}}

  /* ===================== LOGO UND ICONS ===================== */

.icon{
  width:19px;
  height:19px;
  stroke-width:2;
  flex-shrink:0;
}

.icon-sm{
  width:16px;
  height:16px;
}

.icon-lg{
  width:26px;
  height:26px;
}

.brand-logo{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
}

.login-logo{
  width:110px;
  height:110px;
  object-fit:contain;
  display:block;
  margin:0 auto 18px;
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.icon-button{
  position:relative;
  width:38px;
  height:38px;
  padding:0;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.08);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.icon-button:hover{
  background:rgba(255,255,255,0.15);
}

.notification-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:19px;
  height:19px;
  padding:0 5px;
  border-radius:999px;
  background:#D94B3D;
  color:#fff;
  border:2px solid var(--forest);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:800;
}

.notification-panel{
  position:fixed;
  top:70px;
  right:16px;
  width:min(370px, calc(100vw - 32px));
  max-height:70vh;
  overflow-y:auto;
  z-index:50;
  background:var(--white);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 16px 45px rgba(11,61,46,0.22);
  padding:14px;
}

.notification-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.notification-item{
  display:block;
  width:100%;
  text-align:left;
  background:var(--white);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:10px;
  padding:11px;
  margin-top:8px;
  cursor:pointer;
  font-family:'Manrope',sans-serif;
}

.notification-item:hover{
  background:var(--chalk);
}

.notification-item b{
  display:block;
  margin-bottom:3px;
}

.empty-icon{
  width:38px;
  height:38px;
  margin:0 auto 10px;
  color:#8A9790;
  display:block;
}

.dropzone-content{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.btn .icon,
.navbtn .icon,
.userchip .icon{
  pointer-events:none;
}

.ig-preview .ig-head .av{
  background:#fff;
  padding:2px;
}

.ig-preview .ig-head .av img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

@media (max-width:560px){
  .topbar .userchip{
    max-width:150px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  .brand-logo{
    width:35px;
    height:35px;
  }

  .notification-panel{
    top:66px;
  }
}