.agentur-shell{min-height:100vh;display:grid;grid-template-columns:280px 1fr;background:#f6f6f3;color:#111;font-family:Arial,Helvetica,sans-serif}.agentur-sidebar{background:#101010;color:#fff;padding:28px;position:sticky;top:0;height:100vh}.agentur-brand{display:grid;gap:10px;margin-bottom:34px}.agentur-brand img{width:72px;height:72px;object-fit:contain;background:#fff;padding:10px}.agentur-brand strong{font-size:20px}.agentur-brand span,.agentur-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.16em;opacity:.62}.agentur-nav{display:grid;gap:6px}.agentur-nav a{color:#fff;text-decoration:none;padding:12px 10px;border-top:1px solid rgba(255,255,255,.12);opacity:.72}.agentur-nav a.is-active,.agentur-nav a:hover{opacity:1;background:rgba(255,255,255,.08)}.agentur-main{padding:42px;max-width:1480px}.agentur-hero,.agentur-public-hero{display:flex;justify-content:space-between;gap:32px;align-items:flex-start;border-bottom:1px solid #d8d8d2;padding-bottom:34px;margin-bottom:26px}.agentur-hero h1,.agentur-public-hero h1{font-size:clamp(38px,6vw,86px);line-height:.9;margin:0 0 18px}.agentur-hero p,.agentur-public-text{max-width:820px;color:#444;line-height:1.65}.agentur-rating-card{background:#fff;padding:26px;min-width:250px;border:1px solid #ddd;box-shadow:0 20px 50px rgba(0,0,0,.06)}.agentur-rating-card span,.agentur-rating-card small{display:block;color:#666}.agentur-rating-card strong{font-size:42px}.agentur-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.agentur-kpis article{background:#fff;border:1px solid #ddd;padding:22px}.agentur-kpis span{display:block;text-transform:uppercase;letter-spacing:.13em;font-size:11px;color:#666}.agentur-kpis strong{display:block;font-size:28px;margin-top:8px}.agentur-panel{background:#fff;border:1px solid #ddd;padding:26px;margin-top:20px}.agentur-panel h2{font-size:26px;margin:0 0 20px}.agentur-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.agentur-talent-card{border:1px solid #ddd;background:#fafafa}.agentur-talent-image{display:block;aspect-ratio:4/5;background:#e7e7e2;overflow:hidden;color:#111;text-decoration:none;display:grid;place-items:center;font-size:42px}.agentur-talent-image img{width:100%;height:100%;object-fit:cover;display:block}.agentur-talent-body{padding:16px}.agentur-talent-body h3{margin:0 0 6px;font-size:18px}.agentur-talent-body a{color:inherit;text-decoration:none}.agentur-talent-body p{margin:0 0 12px;color:#555}.agentur-stars{font-weight:bold;margin-bottom:14px}.agentur-stars span{color:#777;font-weight:normal}.agentur-button{display:inline-flex;padding:10px 14px;background:#111!important;color:#fff!important;text-decoration:none!important;font-size:13px;letter-spacing:.08em;text-transform:uppercase}.agentur-table{width:100%;border-collapse:collapse}.agentur-table th,.agentur-table td{text-align:left;border-bottom:1px solid #ddd;padding:13px 10px}.agentur-table th{text-transform:uppercase;letter-spacing:.12em;font-size:11px;color:#666}.agentur-public{max-width:1480px;margin:0 auto;padding:clamp(24px,5vw,70px);background:#f6f6f3}.agentur-public-logo{width:130px;height:130px;background:#fff;border:1px solid #ddd;display:grid;place-items:center;flex:0 0 auto}.agentur-public-logo img{max-width:110px;max-height:110px;object-fit:contain}.agentur-public-logo span{font-size:58px}.agentur-public-rating{font-size:24px;font-weight:bold}.agentur-public-rating span{font-size:14px;color:#666;font-weight:normal}.agentur-public-text{font-size:18px;margin:30px 0}.agentur-logo-display{display:inline-flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #ddd;background:#fff;text-decoration:none;color:#111}.agentur-logo-display img{width:32px;height:32px;object-fit:contain}.agentur-empty{color:#666}@media(max-width:900px){.agentur-shell{grid-template-columns:1fr}.agentur-sidebar{position:relative;height:auto}.agentur-main{padding:24px}.agentur-hero,.agentur-public-hero{display:block}.agentur-kpis{grid-template-columns:1fr 1fr}}@media(max-width:520px){.agentur-kpis{grid-template-columns:1fr}.agentur-grid{grid-template-columns:1fr}}

/* Dashboard forms */
.agentur-muted{color:#666;line-height:1.6;margin:0 0 18px}.agentur-form-panel{max-width:980px}.agentur-form-panel form{display:grid;gap:22px;margin:0}.agentur-form-panel .form-item{margin:0}.agentur-form-panel label,.agentur-form-panel .form-item__label{display:block;margin:0 0 8px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#555;font-weight:700}.agentur-form-panel input[type="text"],.agentur-form-panel input[type="email"],.agentur-form-panel input[type="url"],.agentur-form-panel input[type="number"],.agentur-form-panel textarea,.agentur-form-panel select{width:100%;border:1px solid #d8d8d2;background:#f7f7f4;color:#111;padding:14px 16px;font:inherit;line-height:1.4;outline:none;border-radius:0;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.agentur-form-panel textarea{min-height:140px;resize:vertical}.agentur-form-panel input:focus,.agentur-form-panel textarea:focus,.agentur-form-panel select:focus{border-color:#111;background:#fff;box-shadow:0 0 0 3px rgba(0,0,0,.06)}.agentur-form-panel .description,.agentur-form-panel .form-item__description{margin-top:8px;color:#777;font-size:13px;line-height:1.5}.agentur-form-panel .managed-file,.agentur-form-panel .form-managed-file{display:grid;gap:10px;padding:18px;border:1px dashed #cfcfca;background:#fafaf8}.agentur-form-panel .form-actions{display:flex;gap:12px;align-items:center;margin-top:6px;padding-top:20px;border-top:1px solid #e0e0da}.agentur-form-panel input[type="submit"],.agentur-form-panel button[type="submit"],.agentur-form-panel .button--primary{display:inline-flex;align-items:center;justify-content:center;background:#111!important;color:#fff!important;border:1px solid #111!important;padding:13px 18px!important;text-decoration:none!important;font-size:12px!important;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;border-radius:0!important}.agentur-form-panel input[type="submit"]:hover,.agentur-form-panel button[type="submit"]:hover{background:#333!important;border-color:#333!important}.agentur-form-panel input[type="file"]{font:inherit}.agentur-form-panel .ajax-progress{font-size:13px;color:#555}.agentur-form-panel .messages{margin:0 0 20px;padding:14px 16px;border:1px solid #d8d8d2;background:#fff}.agentur-form-panel details{border:1px solid #ddd;background:#fff;padding:14px}.agentur-form-panel summary{cursor:pointer;font-weight:700}.agentur-form-panel .form-wrapper{margin:0}

@media(max-width:900px){.agentur-form-panel{max-width:none}.agentur-form-panel .form-actions{display:grid}}


/* Public agency profile – mockup-based frontend */
.tg-agency-page{--tg-bg:#f6f5f2;--tg-line:#e4e1dc;--tg-gold:#f4b52b;--tg-blue:#e8f1ff;max-width:1480px;margin:0 auto;padding:0 clamp(18px,3vw,42px) 54px;background:var(--tg-bg);color:#111;font-family:Arial,Helvetica,sans-serif}.tg-agency-page *{box-sizing:border-box}.tg-agency-page a{color:inherit;text-decoration:none}.tg-agency-hero{position:relative;min-height:430px;display:grid;grid-template-columns:260px minmax(0,1fr) 292px;gap:34px;align-items:center;padding:64px 42px;overflow:hidden;background:#ddd;border:1px solid var(--tg-line);box-shadow:0 24px 60px rgba(0,0,0,.06)}.tg-agency-hero-media{position:absolute;inset:0;background:linear-gradient(135deg,#f4f1ea,#d3d0c8 45%,#82796d);overflow:hidden}.tg-agency-hero-img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;display:block}.tg-agency-hero-bg{position:absolute;inset:0;background:linear-gradient(90deg,rgba(247,246,243,.96),rgba(247,246,243,.88) 42%,rgba(247,246,243,.45) 65%,rgba(20,20,18,.45)),radial-gradient(circle at 82% 32%,rgba(255,255,255,.75),rgba(255,255,255,0) 28%)}.tg-agency-hero-bg:after{content:"";position:absolute;right:0;top:0;width:42%;height:100%;background:repeating-linear-gradient(90deg,rgba(0,0,0,.22) 0 4px,transparent 4px 58px);opacity:.25}.tg-agency-logo-card,.tg-agency-hero-content,.tg-agency-actions{position:relative;z-index:1}.tg-agency-logo-card{width:240px;height:240px;border-radius:10px;background:#fff;display:grid;place-items:center;box-shadow:0 22px 55px rgba(0,0,0,.08);overflow:hidden}.tg-agency-logo-card img{width:82%;height:82%;object-fit:contain}.tg-agency-logo-card span{font-size:94px;font-weight:900}.tg-agency-title-row{display:flex;align-items:center;gap:12px}.tg-agency-title-row h1{margin:0;font-size:clamp(36px,4vw,58px);line-height:.96;letter-spacing:-.055em}.tg-agency-verified{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#111;color:#fff;font-weight:900}.tg-agency-meta{margin:12px 0 22px;color:#444;font-size:16px}.tg-agency-badges{display:flex;align-items:center;gap:12px;margin-bottom:22px;flex-wrap:wrap}.tg-agency-badge{display:inline-flex;padding:8px 13px;border-radius:999px;font-size:13px;font-weight:800}.tg-agency-badge-blue{background:var(--tg-blue);color:#24518a}.tg-agency-since{font-weight:700;color:#555}.tg-agency-rating-inline{display:flex;align-items:center;gap:9px;margin-bottom:24px;color:#555}.tg-agency-stars{color:var(--tg-gold);letter-spacing:1px;font-size:20px}.tg-agency-rating-inline strong{color:#111}.tg-agency-claim{max-width:580px;margin:0;color:#333;font-size:16px;line-height:1.75;font-weight:600}.tg-agency-actions{display:grid;gap:12px}.tg-agency-action{height:56px;border-radius:8px;background:#fff;border:1px solid rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;font-weight:900;box-shadow:0 12px 28px rgba(0,0,0,.08)}.tg-agency-action-dark{background:#070707;color:#fff;border-color:#070707}.tg-agency-actions small{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.55);text-align:center;font-weight:800}.tg-agency-kpis{position:relative;z-index:2;margin:-8px auto 44px;width:calc(100% - 88px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--tg-line);border-radius:10px;box-shadow:0 18px 45px rgba(0,0,0,.08);overflow:hidden}.tg-agency-kpis article{display:flex;align-items:center;gap:18px;padding:28px 36px;border-right:1px solid var(--tg-line)}.tg-agency-kpis article:last-child{border-right:0}.tg-agency-kpi-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#fff6e3;color:var(--tg-gold);font-size:28px}.tg-agency-kpis strong{display:block;font-size:36px;line-height:1;font-weight:900}.tg-agency-kpis small{display:block;margin-top:8px;color:#555;font-size:13px}.tg-agency-section{margin:42px 0}.tg-agency-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.tg-agency-section-head h2,.tg-agency-info-card h2,.tg-agency-reviews h2{margin:0;font-size:23px;line-height:1;text-transform:uppercase}.tg-agency-section-head a{font-weight:800;color:#575757}.tg-agency-talent-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}.tg-agency-talent-card{background:#fff;border:1px solid var(--tg-line);border-radius:9px;overflow:hidden;box-shadow:0 14px 32px rgba(0,0,0,.04)}.tg-agency-talent-image{display:grid;place-items:center;aspect-ratio:1/1.1;background:#ddd;overflow:hidden;font-size:54px;font-weight:900}.tg-agency-talent-image img{width:100%;height:100%;object-fit:cover;display:block}.tg-agency-talent-info{padding:16px 18px}.tg-agency-talent-info h3{margin:0 0 6px;font-size:16px}.tg-agency-talent-info p{margin:0 0 12px;color:#555}.tg-agency-casting-grid{display:grid;grid-template-columns:1fr 1fr 320px;gap:18px}.tg-agency-casting-card,.tg-agency-upgrade-card,.tg-agency-review-summary,.tg-agency-reviews,.tg-agency-info-card,.tg-agency-empty-card{background:#fff;border:1px solid var(--tg-line);border-radius:10px;box-shadow:0 14px 36px rgba(0,0,0,.04)}.tg-agency-casting-card{min-height:170px;padding:28px;display:flex;align-items:center}.tg-agency-empty-state h3,.tg-agency-upgrade-card h3{margin:8px 0 10px;font-size:22px}.tg-agency-empty-state p,.tg-agency-upgrade-card p{margin:0;color:#666;line-height:1.55}.tg-agency-plan-label{display:inline-flex;padding:6px 11px;border-radius:7px;background:#f8d15c;font-size:12px;font-weight:900;text-transform:uppercase}.tg-agency-upgrade-card{padding:30px;display:grid;align-content:center}.tg-agency-upgrade-card span{font-size:31px}.tg-agency-upgrade-card a{display:inline-flex;width:max-content;margin-top:18px;background:#111;color:#fff;border-radius:6px;padding:13px 18px;font-weight:900}.tg-agency-bottom-grid{display:grid;grid-template-columns:1.05fr 1.1fr .95fr;gap:18px;margin-top:42px}.tg-agency-review-summary{display:grid;grid-template-columns:150px 1fr;gap:22px;padding:34px}.tg-agency-review-score strong{display:block;font-size:58px;line-height:.9}.tg-agency-review-score span{display:block;color:var(--tg-gold);font-size:20px;margin:12px 0 8px}.tg-agency-review-score small{color:#555}.tg-agency-bars{display:grid;gap:13px}.tg-agency-bars p{display:grid;grid-template-columns:72px 1fr 42px;align-items:center;gap:13px;margin:0;font-size:13px;color:#555}.tg-agency-bars i{height:8px;border-radius:99px;background:linear-gradient(90deg,#111 var(--w),#eceae6 var(--w));display:block}.tg-agency-bars b{text-align:right;color:#555}.tg-agency-reviews{padding:28px}.tg-agency-review-item{border-top:1px solid var(--tg-line);padding-top:18px;margin-top:18px}.tg-agency-review-item span{float:right;color:var(--tg-gold)}.tg-agency-review-item p{clear:both;margin:12px 0 0;line-height:1.65;color:#333}.tg-agency-info-card{padding:28px}.tg-agency-info-card h2{margin-bottom:24px}.tg-agency-info-card p{display:grid;grid-template-columns:105px 1fr;gap:16px;margin:0 0 18px;font-size:14px}.tg-agency-info-card span{color:#555}.tg-agency-info-card strong,.tg-agency-info-card a{font-weight:800;overflow-wrap:anywhere}.tg-agency-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.tg-agency-tags span{display:inline-flex;background:#f0eee9;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:800;color:#333}.tg-agency-empty-card{grid-column:1/-1;padding:36px;color:#666}@media(max-width:1180px){.tg-agency-hero{grid-template-columns:210px minmax(0,1fr);padding:44px 30px}.tg-agency-logo-card{width:210px;height:210px}.tg-agency-actions{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}.tg-agency-actions small{grid-column:1/-1;color:#333;text-shadow:none}.tg-agency-kpis,.tg-agency-talent-row,.tg-agency-casting-grid,.tg-agency-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tg-agency-kpis{width:100%;margin-top:20px}.tg-agency-kpis article:nth-child(2){border-right:0}}@media(max-width:760px){.tg-agency-page{padding:0 14px 36px}.tg-agency-hero{grid-template-columns:1fr;min-height:0;padding:26px 20px}.tg-agency-logo-card{width:170px;height:170px}.tg-agency-actions{grid-template-columns:1fr}.tg-agency-title-row h1{font-size:38px}.tg-agency-kpis,.tg-agency-talent-row,.tg-agency-casting-grid,.tg-agency-bottom-grid,.tg-agency-review-summary{grid-template-columns:1fr}.tg-agency-kpis article{border-right:0;border-bottom:1px solid var(--tg-line);padding:22px}.tg-agency-kpis article:last-child{border-bottom:0}.tg-agency-section-head{align-items:flex-start;flex-direction:column}.tg-agency-info-card p{grid-template-columns:1fr}.tg-agency-bars p{grid-template-columns:64px 1fr 38px}}

/* FIX: Lighthouse-Kontrast für den dunklen Agentur-CTA. Nicht auf Vererbung verlassen. */
.tg-agency-page .tg-agency-action.tg-agency-action-dark,
.tg-agency-page .tg-agency-action.tg-agency-action-dark:link,
.tg-agency-page .tg-agency-action.tg-agency-action-dark:visited,
.tg-agency-page .tg-agency-action.tg-agency-action-dark:hover,
.tg-agency-page .tg-agency-action.tg-agency-action-dark:focus {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
.tg-agency-page .tg-agency-action.tg-agency-action-dark:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
  box-shadow: 0 0 0 3px #000;
}

/* FIX16: Logo-Datei wird mit 300px hochgeladen, Frontend bleibt scharf bei 220x220. */
.tg-agency-page {
  overflow-x: clip;
}

.tg-agency-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-left: 0;
  border-right: 0;
}

.tg-agency-hero-bg::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.tg-agency-logo-card {
  width: 220px;
  height: 220px;
  min-width: 220px;
  min-height: 220px;
  align-self: center;
  justify-self: start;
}

.tg-agency-logo-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tg-agency-logo-card span {
  font-size: 86px;
}

@media (max-width: 1180px) {
  .tg-agency-hero {
    grid-template-columns: 260px minmax(0,1fr);
  }
  .tg-agency-logo-card {
    width: 220px;
    height: 220px;
    min-width: 220px;
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .tg-agency-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tg-agency-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 20px;
    padding-right: 20px;
    grid-template-columns: 1fr;
  }

  .tg-agency-logo-card {
    width: 220px;
    height: 220px;
    min-width: 220px;
    min-height: 220px;
  }
}

/* FIX17: Logo/Banner bleiben in hoher Quellauflösung, Ausgabe bleibt kontrolliert. */
.tg-agency-logo-card,
.tg-agency-logo-card img,
.tg-agency-hero-img {
  filter: none !important;
  -webkit-filter: none !important;
  image-rendering: auto;
}
