:root{
  --agency-bg:#07090d;
  --agency-panel:#11151c;
  --agency-panel-2:#151a23;
  --agency-panel-3:#1c222d;
  --agency-border:rgba(255,255,255,.085);
  --agency-border-strong:rgba(255,255,255,.13);
  --agency-text:#f8f9fb;
  --agency-muted:#929aa8;
  --agency-red:#ff443a;
  --agency-red-2:#d91f19;
  --agency-orange:#ff8a31;
  --agency-green:#4cdf8a;
  --agency-radius:28px;
  --agency-shadow:0 30px 80px rgba(0,0,0,.38);
}

.agency-public{
  margin:0;
  min-height:100vh;
  overflow-x:hidden;
  color:var(--agency-text);
  background:
    radial-gradient(900px 540px at 82% -10%,rgba(255,68,58,.15),transparent 63%),
    radial-gradient(700px 400px at 8% 62%,rgba(255,138,49,.045),transparent 70%),
    var(--agency-bg);
}

.agency-public:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom,black,transparent 72%);
}

.agency-container{
  width:min(1180px,calc(100% - 48px));
  margin:0 auto;
}

.agency-header{
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid rgba(255,255,255,.055);
  background:rgba(7,9,13,.72);
  backdrop-filter:blur(24px) saturate(130%);
}

.agency-header-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.agency-brand{
  display:flex;
  align-items:center;
  max-width:285px;
}

.agency-brand img{
  display:block;
  width:100%;
  height:auto;
  max-height:54px;
  object-fit:contain;
  object-position:left center;
}

.agency-nav{
  display:flex;
  align-items:center;
  gap:8px;
}

.agency-nav a{
  padding:10px 13px;
  border-radius:12px;
  color:#a7afbc;
  font-size:.84rem;
  font-weight:760;
  transition:.2s ease;
}

.agency-nav a:hover{
  color:#fff;
  background:rgba(255,255,255,.05);
}

.agency-nav .agency-login{
  margin-left:4px;
  color:#fff;
  border:1px solid var(--agency-border-strong);
  background:rgba(255,255,255,.055);
}

.agency-hero{
  position:relative;
  padding:96px 0 58px;
}

.agency-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(1px);
  pointer-events:none;
}

.agency-orb-one{
  width:460px;height:460px;
  right:-170px;top:-100px;
  background:radial-gradient(circle,rgba(255,68,58,.12),transparent 68%);
}

.agency-orb-two{
  width:380px;height:380px;
  left:-230px;top:260px;
  background:radial-gradient(circle,rgba(255,138,49,.055),transparent 70%);
}

.agency-hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.72fr);
  gap:84px;
  align-items:center;
}

.agency-eyebrow,
.agency-section-kicker{
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.7rem;
  font-weight:900;
}

.agency-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:#ff9a94;
}

.agency-live-dot{
  width:7px;height:7px;
  border-radius:50%;
  background:var(--agency-red);
  box-shadow:0 0 0 5px rgba(255,68,58,.1);
}

.agency-hero-copy h1{
  margin:22px 0 22px;
  max-width:760px;
  font-size:clamp(4.2rem,7vw,7.4rem);
  line-height:.88;
  letter-spacing:-.075em;
  font-weight:900;
}

.agency-hero-copy h1 span{
  color:transparent;
  background:linear-gradient(95deg,#ff6a61 0%,#ff3f35 42%,#ff8736 110%);
  -webkit-background-clip:text;
  background-clip:text;
}

.agency-lead{
  margin:0;
  max-width:620px;
  color:#a0a8b6;
  font-size:1.08rem;
  line-height:1.72;
}

.agency-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:30px;
}

.agency-btn{
  min-height:48px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border-radius:15px;
  font-size:.88rem;
  font-weight:850;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.agency-btn:hover{
  transform:translateY(-2px);
}

.agency-btn-primary{
  color:#fff;
  border:1px solid rgba(255,92,82,.42);
  background:linear-gradient(135deg,#ff4c42,#d9221c);
  box-shadow:0 12px 30px rgba(217,34,28,.22),inset 0 1px rgba(255,255,255,.18);
}

.agency-btn-secondary{
  color:#d7dce4;
  border:1px solid var(--agency-border);
  background:rgba(255,255,255,.035);
}

.agency-microfacts{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
  color:#687180;
  font-size:.74rem;
  font-weight:650;
}

.agency-microfacts i{
  width:3px;height:3px;border-radius:50%;background:#414956;
}

.agency-money-card{
  position:relative;
  min-height:350px;
  padding:30px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border:1px solid rgba(255,255,255,.11);
  border-radius:32px;
  background:
    linear-gradient(155deg,rgba(255,255,255,.075),rgba(255,255,255,.015) 38%,rgba(255,68,58,.035)),
    #12161e;
  box-shadow:0 40px 100px rgba(0,0,0,.44),inset 0 1px rgba(255,255,255,.08);
}

.agency-money-card:before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.12),transparent 25%,transparent 70%,rgba(255,68,58,.08));
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  padding:1px;
}

.agency-money-top{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#8992a0;
  font-size:.78rem;
}

.agency-status{
  display:inline-flex;
  align-items:center;
  padding:6px 9px;
  border-radius:999px;
  color:#9ef0bc;
  background:rgba(76,223,138,.09);
  border:1px solid rgba(76,223,138,.15);
  font-weight:800;
}

.agency-money-value{
  position:relative;
  z-index:2;
  margin:22px 0;
  font-size:clamp(3.8rem,6vw,5.9rem);
  letter-spacing:-.065em;
  font-weight:900;
}

.agency-money-footer{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.agency-money-footer div{
  padding:15px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(5,7,10,.26);
}

.agency-money-footer small{
  display:block;
  margin-bottom:5px;
  color:#6e7785;
  font-size:.68rem;
}

.agency-money-footer strong{
  font-size:.88rem;
}

.agency-card-glow{
  position:absolute;
  width:260px;height:260px;
  right:-110px;bottom:-120px;
  border-radius:50%;
  background:rgba(255,68,58,.12);
  filter:blur(38px);
}

.agency-overview{
  padding:30px 0 24px;
  border-top:1px solid rgba(255,255,255,.055);
}

.agency-overview-label{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:17px;
}

.agency-overview-label span{
  font-size:.72rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:#ff918b;
}

.agency-overview-label p{
  margin:0;
  color:#66707e;
  font-size:.78rem;
}

.agency-stat-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.agency-stat{
  min-height:112px;
  padding:20px;
  display:flex;
  align-items:center;
  gap:15px;
  border:1px solid var(--agency-border);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.032),rgba(255,255,255,.012));
  transition:.2s ease;
}

.agency-stat:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.13);
}

.agency-stat-icon{
  flex:0 0 auto;
  width:42px;height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  color:#ff766e;
  background:rgba(255,68,58,.09);
  border:1px solid rgba(255,68,58,.14);
  font-size:1rem;
  font-weight:900;
}

.agency-stat-icon.crown{
  color:#ffd271;
  background:rgba(255,188,75,.08);
  border-color:rgba(255,188,75,.16);
}

.agency-stat small{
  display:block;
  margin-bottom:4px;
  color:#747d8b;
  font-size:.72rem;
}

.agency-stat strong{
  display:block;
  font-size:1.55rem;
  letter-spacing:-.04em;
}

.agency-stat-name{
  font-size:1.15rem!important;
}

.agency-goal{
  margin-top:24px;
  padding:30px 32px;
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:50px;
  align-items:center;
  border:1px solid var(--agency-border);
  border-radius:28px;
  background:
    radial-gradient(380px 180px at 0 0,rgba(255,68,58,.07),transparent 70%),
    #10141b;
  box-shadow:var(--agency-shadow);
}

.agency-section-kicker{
  color:#ff8b84;
}

.agency-goal h2,
.agency-panel h2,
.agency-app-banner h2{
  margin:8px 0 0;
  font-size:1.7rem;
  letter-spacing:-.045em;
}

.agency-goal p{
  margin:9px 0 0;
  color:#727b89;
  font-size:.84rem;
}

.agency-goal p strong{
  color:#f2f4f7;
}

.agency-progress-meta{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
  color:#757f8d;
  font-size:.72rem;
}

.agency-progress-meta strong{
  color:#fff;
}

.agency-progress-track{
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:#07090d;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}

.agency-progress-track span{
  display:block;
  height:100%;
  min-width:5px;
  border-radius:inherit;
  background:linear-gradient(90deg,#ff443a,#ff7a35);
  box-shadow:0 0 24px rgba(255,68,58,.32);
}

.agency-goal-progress>small{
  display:block;
  margin-top:9px;
  color:#5f6977;
  font-size:.69rem;
}

.agency-content-grid{
  display:grid;
  grid-template-columns:.86fr 1.14fr;
  gap:18px;
  padding:22px 0;
}

.agency-panel{
  padding:24px;
  border:1px solid var(--agency-border);
  border-radius:28px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.02),transparent 28%),
    #10141b;
  box-shadow:0 22px 60px rgba(0,0,0,.2);
}

.agency-panel-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  padding-bottom:17px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.agency-panel-head a{
  color:#7d8795;
  font-size:.75rem;
  font-weight:800;
}

.agency-panel-head a:hover{
  color:#fff;
}

.agency-list{
  display:grid;
}

.agency-rank-row,
.agency-payment-row{
  min-height:64px;
  display:grid;
  align-items:center;
  gap:13px;
  border-bottom:1px solid rgba(255,255,255,.055);
}

.agency-rank-row:last-child,
.agency-payment-row:last-child{
  border-bottom:0;
}

.agency-rank-row{
  grid-template-columns:35px 1fr auto;
}

.agency-rank-number{
  width:30px;height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#a3abba;
  background:#191f29;
  font-size:.73rem;
  font-weight:900;
}

.agency-rank-row.top-1 .agency-rank-number{
  color:#1c1400;
  background:linear-gradient(145deg,#ffd86d,#cf9c26);
}

.agency-rank-row.top-2 .agency-rank-number{
  color:#111;
  background:linear-gradient(145deg,#e4e8ed,#8d98a7);
}

.agency-rank-row.top-3 .agency-rank-number{
  color:#1e0e03;
  background:linear-gradient(145deg,#d99862,#945530);
}

.agency-rank-person,
.agency-payment-person{
  min-width:0;
}

.agency-rank-person strong,
.agency-payment-person strong{
  display:block;
  font-size:.88rem;
}

.agency-rank-person small,
.agency-payment-person small{
  display:block;
  margin-top:4px;
  color:#666f7d;
  font-size:.7rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.agency-rank-row>b,
.agency-payment-row>b{
  color:#ff7770;
  font-size:.82rem;
}

.agency-payment-row{
  grid-template-columns:36px 1fr auto;
}

.agency-payment-avatar{
  width:34px;height:34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#d8dde4;
  background:#1a202a;
  border:1px solid rgba(255,255,255,.055);
  font-size:.75rem;
  font-weight:900;
}

.agency-empty{
  padding:28px 0 10px;
  color:#717a87;
  font-size:.83rem;
}

.agency-app-banner{
  margin-top:4px;
  margin-bottom:72px;
  padding:24px 26px;
  display:grid;
  grid-template-columns:68px 1fr auto;
  gap:20px;
  align-items:center;
  border:1px solid rgba(255,255,255,.1);
  border-radius:28px;
  background:
    linear-gradient(125deg,rgba(255,68,58,.075),rgba(255,255,255,.018) 38%,rgba(255,138,49,.03)),
    #10141b;
}

.agency-app-icon{
  width:64px;height:64px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:20px;
  box-shadow:0 12px 28px rgba(0,0,0,.25);
}

.agency-app-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.agency-app-copy p{
  margin:8px 0 0;
  color:#78818f;
  font-size:.82rem;
  line-height:1.5;
}

.agency-footer{
  padding:22px 0 28px;
  border-top:1px solid rgba(255,255,255,.045);
  color:#535c69;
  font-size:.69rem;
}

.agency-footer .agency-container{
  display:flex;
  justify-content:space-between;
  gap:16px;
}

/* Admin polish without changing functionality */
.admin-body{
  background:
    radial-gradient(650px 430px at 90% -12%,rgba(255,68,58,.1),transparent 70%),
    #080a0f!important;
}

.sidebar{
  background:rgba(10,12,17,.94)!important;
  border-right:1px solid rgba(255,255,255,.06)!important;
  backdrop-filter:blur(20px);
}

.sidebar .brand{
  padding-bottom:22px;
  border-bottom:1px solid rgba(255,255,255,.055);
}

.sidebar .brand-mark{
  background:linear-gradient(145deg,#ff5147,#c9211b)!important;
  box-shadow:0 12px 28px rgba(255,68,58,.18)!important;
}

.side-nav a{
  border:1px solid transparent;
  transition:.18s ease!important;
}

.side-nav a:hover{
  color:#fff!important;
  background:rgba(255,255,255,.035)!important;
}

.side-nav a.active{
  color:#fff!important;
  border-color:rgba(255,255,255,.07)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.025))!important;
  box-shadow:inset 3px 0 #ff443a;
}

.admin-body .card,
.admin-body .metric{
  border-color:rgba(255,255,255,.075)!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.022),transparent 34%),
    #11151c!important;
  box-shadow:0 18px 48px rgba(0,0,0,.17)!important;
}

.admin-body .page-heading h1{
  font-size:clamp(2.2rem,4vw,3.5rem)!important;
  letter-spacing:-.055em!important;
}

.admin-body .btn-primary{
  background:linear-gradient(135deg,#ff4c42,#d9221c)!important;
  box-shadow:0 10px 22px rgba(217,34,28,.15)!important;
}

@media(max-width:900px){
  .agency-container{width:min(100% - 30px,720px)}
  .agency-header-inner{min-height:68px}
  .agency-brand{max-width:220px}
  .agency-nav a:not(.agency-login){display:none}
  .agency-hero{padding:56px 0 35px}
  .agency-hero-grid{grid-template-columns:1fr;gap:30px}
  .agency-hero-copy h1{font-size:clamp(3.45rem,14vw,5.5rem)}
  .agency-money-card{min-height:270px}
  .agency-stat-grid{grid-template-columns:1fr 1fr}
  .agency-stat:last-child{grid-column:1/-1}
  .agency-goal{grid-template-columns:1fr;gap:24px}
  .agency-content-grid{grid-template-columns:1fr}
  .agency-app-banner{grid-template-columns:56px 1fr}
  .agency-app-banner>.agency-btn{grid-column:1/-1;width:100%}
  .agency-app-icon{width:54px;height:54px;border-radius:17px}
}

@media(max-width:560px){
  .agency-container{width:calc(100% - 22px)}
  .agency-header-inner{min-height:64px}
  .agency-brand{max-width:190px}
  .agency-nav .agency-login{padding:9px 11px;font-size:.75rem}
  .agency-hero{padding-top:42px}
  .agency-hero-copy h1{font-size:clamp(3rem,15vw,4.3rem)}
  .agency-lead{font-size:.95rem;line-height:1.6}
  .agency-actions{display:grid;grid-template-columns:1fr}
  .agency-btn{width:100%}
  .agency-microfacts{gap:7px;font-size:.67rem}
  .agency-money-card{padding:22px;min-height:250px;border-radius:25px}
  .agency-money-value{font-size:3.7rem}
  .agency-money-footer{grid-template-columns:1fr}
  .agency-stat-grid{grid-template-columns:1fr}
  .agency-stat:last-child{grid-column:auto}
  .agency-overview-label{display:block}
  .agency-overview-label p{margin-top:7px}
  .agency-goal{padding:23px;border-radius:23px}
  .agency-panel{padding:18px;border-radius:23px}
  .agency-panel h2,.agency-goal h2{font-size:1.45rem}
  .agency-rank-row{grid-template-columns:33px 1fr auto}
  .agency-payment-row{grid-template-columns:34px 1fr auto}
  .agency-rank-person small,.agency-payment-person small{max-width:180px}
  .agency-app-banner{padding:20px;gap:14px;border-radius:23px;margin-bottom:50px}
  .agency-app-copy h2{font-size:1.4rem}
  .agency-footer .agency-container{display:block;text-align:center}
  .agency-footer span{display:block;margin:4px 0}
}


/* HERO TEXT FIX – mehr Luft für "Eine faire" */
.agency-hero-copy h1{
  max-width: 700px;
  font-size: clamp(4rem, 6.6vw, 6.9rem) !important;
  line-height: .94 !important;
  letter-spacing: -.06em !important;
  padding-right: 14px;
}

.agency-hero-copy h1 span{
  display:block;
  padding-right: 6px;
}

@media(max-width:900px){
  .agency-hero-copy h1{
    max-width: 100%;
    font-size: clamp(3.25rem, 12vw, 5rem) !important;
    line-height: .95 !important;
    padding-right: 8px;
  }
}

@media(max-width:560px){
  .agency-hero-copy h1{
    font-size: clamp(2.9rem, 13vw, 4.15rem) !important;
    line-height: .96 !important;
    letter-spacing: -.05em !important;
    padding-right: 4px;
  }
}


/* =========================================================
   FINAL POLISH – Feinschliff Designagentur
   ========================================================= */

/* Header-Logo etwas präsenter */
.agency-brand{
  max-width: 335px !important;
}

.agency-brand img{
  max-height: 62px !important;
}

/* Hero: rechte Karte näher an den Text holen */
.agency-hero-grid{
  grid-template-columns: minmax(0,1.12fr) minmax(350px,.72fr) !important;
  gap: 54px !important;
}

/* Geldkarte etwas kompakter und hochwertiger */
.agency-money-card{
  min-height: 322px !important;
  padding: 27px !important;
}

.agency-money-value{
  font-size: clamp(3.6rem,5.5vw,5.35rem) !important;
}

/* Stats etwas enger, damit alles ruhiger wirkt */
.agency-stat{
  min-height: 104px !important;
  padding: 18px 19px !important;
}

/* Sparziel stärker betonen */
.agency-progress-track{
  height: 11px !important;
}

.agency-progress-track span{
  box-shadow:
    0 0 18px rgba(255,68,58,.32),
    0 0 42px rgba(255,122,53,.14) !important;
}

/* Rangliste und Zahlungen kompakter */
.agency-panel{
  padding: 22px !important;
}

.agency-panel-head{
  padding-bottom: 14px !important;
}

.agency-rank-row,
.agency-payment-row{
  min-height: 56px !important;
}

.agency-rank-person strong,
.agency-payment-person strong{
  font-size: .84rem !important;
}

.agency-rank-person small,
.agency-payment-person small{
  margin-top: 2px !important;
  font-size: .66rem !important;
}

/* Platz 1: Krone statt Zahl */
.agency-rank-row.top-1 .agency-rank-number{
  font-size:0 !important;
  position:relative;
}

.agency-rank-row.top-1 .agency-rank-number::before{
  content:"♛";
  font-size:1rem;
  line-height:1;
  color:#2a1b00;
}

/* Platz 1 leicht hervorheben */
.agency-rank-row.top-1{
  position:relative;
}

.agency-rank-row.top-1::after{
  content:"";
  position:absolute;
  left:-10px;
  right:-10px;
  top:5px;
  bottom:5px;
  border-radius:14px;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(255,205,88,.055),transparent 68%);
  z-index:0;
}

.agency-rank-row.top-1 > *{
  position:relative;
  z-index:1;
}

/* App-Banner etwas edler */
.agency-app-banner{
  border-color:rgba(255,255,255,.12) !important;
  box-shadow:0 24px 70px rgba(0,0,0,.24);
}

/* Mobile Feinschliff */
@media(max-width:900px){
  .agency-brand{
    max-width:250px !important;
  }

  .agency-brand img{
    max-height:56px !important;
  }

  .agency-hero-grid{
    grid-template-columns:1fr !important;
    gap:26px !important;
  }

  .agency-money-card{
    min-height:260px !important;
  }
}

@media(max-width:560px){
  .agency-brand{
    max-width:215px !important;
  }

  .agency-brand img{
    max-height:50px !important;
  }

  .agency-panel{
    padding:17px !important;
  }

  .agency-rank-row,
  .agency-payment-row{
    min-height:53px !important;
  }
}


/* Footer-Link zum BS-Notfallportal */
.agency-footer a{
  color:#7d8795;
  font-weight:800;
  transition:color .18s ease;
}

.agency-footer a:hover{
  color:#ff6c64;
}


/* Rechtliche Footer-Navigation */
.agency-footer .legal-footer-links{
  display:flex;
  align-items:center;
  gap:9px;
}

.agency-footer .legal-footer-links i{
  width:3px;
  height:3px;
  border-radius:50%;
  background:#4d5662;
}

@media(max-width:560px){
  .agency-footer .legal-footer-links{
    justify-content:center;
    flex-wrap:wrap;
  }
}
