/* Aus Handover statistiken.html (Inline-CSS), unverändert. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; background: #f4f7f5; color: #1a1a1a; line-height: 1.6; }
.entry-content, .entry-content > *, .wp-block-html { max-width: 100% !important; }

:root {
  --gp: #1a7a3a; --gd: #0d4f24; --gdd: #0a3319; --gl: #3dd178;
  --bg: #f4f7f5; --card: #ffffff; --line: #e8ede9;
  --muted: #6b7280; --radius: 12px;
  --sh: 0 4px 20px rgba(0,0,0,0.08);
  --shm: 0 8px 32px rgba(0,0,0,0.13);
  --c1: #1a7a3a; --c2: #d97706; --c3: #2563eb; --c4: #be185d;
}
button { font: inherit; }

/* ── HERO ── */
.pw-hero { background: linear-gradient(135deg, var(--gp) 0%, var(--gd) 55%, var(--gdd) 100%); padding: 48px 24px 40px; text-align: center; position: relative; overflow: hidden; }
.pw-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 20%, rgba(61,209,120,0.12) 0%, transparent 60%); pointer-events: none; }
.pw-hero > * { position: relative; }
.pw-hero-logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 14px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.pw-hero-eyebrow { font-family: 'Montserrat',sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gl); margin-bottom: 12px; }
.pw-hero-title { font-family: 'Montserrat',sans-serif; font-size: clamp(24px,5vw,42px); font-weight: 900; color: #fff; line-height: 1.15; max-width: 820px; margin: 0 auto 14px; }
.pw-hero-subtitle { font-size: 15px; color: rgba(255,255,255,0.78); max-width: 640px; margin: 0 auto; }

/* ── BREADCRUMB ── */
.pw-crumbs { background: #fff; border-bottom: 1px solid var(--line); }
.pw-crumbs-inner { max-width: 1100px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: 'Montserrat',sans-serif; font-size: 12px; font-weight: 700; }
.pw-crumbs a { color: var(--gp); text-decoration: none; }
.pw-crumbs a:hover { text-decoration: underline; }
.pw-crumbs .sep { color: #c5d3c9; }
.pw-crumbs .cur { color: var(--gdd); }

.pw-wrap { max-width: 1100px; margin: 0 auto; padding: 36px 24px 56px; }
.pw-section-title { font-family: 'Montserrat',sans-serif; font-size: 20px; font-weight: 800; color: var(--gdd); margin-bottom: 6px; }
.pw-section-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

/* ── HUB TILES ── */
.pw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.pw-tiles.two { grid-template-columns: repeat(2, 1fr); }
.pw-tile { background: #fff; border-radius: var(--radius); box-shadow: var(--sh); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; position: relative; }
a.pw-tile:hover { transform: translateY(-3px); box-shadow: var(--shm); }
.pw-tile-head { height: 150px; background: linear-gradient(135deg, var(--gp), var(--gdd)); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pw-tile-head.tall { height: 240px; }
.pw-tile-head.tall::after { background: linear-gradient(180deg, rgba(10,51,25,.35) 0%, transparent 35%); }
@media(max-width:600px){ .pw-tile-head.tall { height: 190px; } }
.pw-tile-head::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 15%, rgba(61,209,120,.22), transparent 60%); }
.pw-tile-head img.thumb { width: 100%; height: 100%; object-fit: cover; }
.pw-tile-head .ico { font-size: 54px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); position: relative; z-index: 1; }
.pw-tile-head svg { position: relative; z-index: 1; width: 64px; height: 64px; }
.pw-tile-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.95); color: var(--gd); font-family: 'Montserrat',sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 10px; border-radius: 20px; }
.pw-tile-badge.soon { background: rgba(10,51,25,.75); color: #d1fae5; }
.pw-tile-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pw-tile-eyebrow { font-family: 'Montserrat',sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gp); }
.pw-tile-title { font-family: 'Montserrat',sans-serif; font-size: 18px; font-weight: 800; color: var(--gdd); line-height: 1.3; }
.pw-tile-text { font-size: 13.5px; color: #4b5563; flex: 1; }
.pw-tile-cta { font-family: 'Montserrat',sans-serif; font-size: 12px; font-weight: 800; color: var(--gp); margin-top: 8px; }
.pw-tile.disabled { opacity: .62; }
.pw-tile.disabled .pw-tile-head { filter: grayscale(.6); }
.pw-tile.disabled .pw-tile-cta { color: var(--muted); }

/* ── KPI ── */
.pw-kpi-bar { background: #fff; border-bottom: 1px solid var(--line); }
.pw-kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); max-width: 1100px; margin: 0 auto; }
.pw-kpi-tile { padding: 20px 18px; text-align: center; border-right: 1px solid var(--line); position: relative; }
.pw-kpi-tile:last-child { border-right: none; }
.pw-kpi-tile::before { content: ''; position: absolute; top: 0; left: 18px; right: 18px; height: 4px; border-radius: 0 0 4px 4px; background: var(--pc); }
.pw-kpi-label { font-family: 'Montserrat',sans-serif; font-size: 12px; font-weight: 800; color: var(--gdd); margin-bottom: 2px; }
.pw-kpi-rank { font-family: 'Montserrat',sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gp); margin-bottom: 8px; }
.pw-kpi-number { font-family: 'Montserrat',sans-serif; font-size: clamp(28px,4vw,40px); font-weight: 900; color: var(--pc); line-height: 1; margin-bottom: 4px; }
.pw-kpi-unit { font-size: 10px; font-family: 'Montserrat',sans-serif; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pw-kpi-desc { font-size: 11px; color: var(--muted); line-height: 1.45; margin-top: 6px; }
.pw-kpi-empty { color: #9ca3af; font-size: 12px; display: flex; align-items: center; justify-content: center; min-height: 120px; }

/* ── CONTROL PANEL ── */
.pw-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--sh); padding: 18px 22px 8px; margin-bottom: 24px; }
.pw-panel-toggle { display: none; width: 100%; border: none; background: none; cursor: pointer; text-align: left; flex-direction: column; gap: 6px; padding: 2px 0 10px; }
.pw-panel-toggle-head { display: flex; justify-content: space-between; align-items: center; }
.pw-panel-toggle .ttl { font-family: 'Montserrat',sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gp); display: inline-flex; align-items: center; gap: 8px; }
.pw-panel-toggle .ttl::before { content: ''; width: 14px; height: 10px; background: linear-gradient(var(--gp),var(--gp)) 0 0/14px 2px no-repeat, linear-gradient(var(--gp),var(--gp)) 2px 4px/10px 2px no-repeat, linear-gradient(var(--gp),var(--gp)) 4px 8px/6px 2px no-repeat; }
.pw-panel-toggle .chev { width: 28px; height: 28px; border-radius: 50%; background: #f0faf4; color: var(--gp); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: transform .2s; }
.pw-panel.open .pw-panel-toggle .chev { transform: rotate(180deg); }
.pw-panel-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-panel-sum span { font-family: 'Montserrat',sans-serif; font-size: 11px; font-weight: 700; color: var(--gdd); background: #f4f7f5; border-radius: 12px; padding: 3px 9px; display: inline-flex; align-items: center; gap: 5px; }
.pw-panel-sum span i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.pw-panel.open .pw-panel-sum { display: none; }
.pw-ctl-row { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.pw-ctl-row:last-child { border-bottom: none; }
.pw-ctl-label { font-family: 'Montserrat',sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gp); width: 92px; flex-shrink: 0; padding-top: 8px; }
.pw-ctl-body { flex: 1; min-width: 240px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pw-filter-btn { font-family: 'Montserrat',sans-serif; font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 20px; border: 2px solid #d1d5db; background: #fff; color: var(--muted); cursor: pointer; transition: all .15s; white-space: nowrap; }
.pw-filter-btn:hover { border-color: var(--gp); color: var(--gp); }
.pw-filter-btn.active { background: var(--gp); border-color: var(--gp); color: #fff; }
.pw-filter-btn.ghost { border-style: dashed; }
.pw-select { font-family: 'Montserrat',sans-serif; font-size: 12px; font-weight: 700; padding: 6px 30px 6px 12px; border-radius: 20px; border: 2px solid #d1d5db; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231a7a3a'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--gdd); appearance: none; cursor: pointer; max-width: 100%; }
.pw-select:focus { outline: none; border-color: var(--gp); }
.pw-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 20px; background: #fff; border: 2px solid var(--pc); font-family: 'Montserrat',sans-serif; font-size: 12px; font-weight: 800; color: var(--gdd); }
.pw-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.pw-chip button { border: none; background: #f3f4f6; color: #6b7280; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1; }
.pw-chip button:hover { background: #fee2e2; color: #dc2626; }
.pw-hint { font-size: 11.5px; color: var(--muted); }
.pw-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.pw-preset { font-size: 11px; font-weight: 600; color: var(--gp); background: #f0faf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 3px 10px; cursor: pointer; }
.pw-preset:hover { background: #dcfce7; }
.pw-preset.act { background: var(--gp); border-color: var(--gp); color: #fff; }
.pw-share { margin-left: auto; }

/* ── TABS ── */
.pw-tabs { display: flex; gap: 4px; background: #fff; border-radius: 40px; padding: 5px; box-shadow: var(--sh); margin-bottom: 22px; overflow-x: auto; position: sticky; top: 8px; z-index: 5; }
.pw-tab { flex: 1; border: none; background: none; font-family: 'Montserrat',sans-serif; font-size: 12px; font-weight: 800; color: var(--muted); padding: 10px 14px; border-radius: 30px; cursor: pointer; white-space: nowrap; }
.pw-tab:hover { color: var(--gp); }
.pw-tab.active { background: linear-gradient(135deg, var(--gp), var(--gd)); color: #fff; }

/* ── CHART CARD ── */
.pw-stack { display: flex; flex-direction: column; gap: 24px; }
.pw-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pw-chart-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--sh); overflow: hidden; }
.pw-chart-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--gp); color: #fff; font-family: 'Montserrat',sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 14px; border-radius: 0 0 8px 0; }
.pw-chart-body { padding: 18px 24px 8px; }
.pw-chart-title { font-family: 'Montserrat',sans-serif; font-size: 18px; font-weight: 800; color: var(--gdd); margin-bottom: 4px; }
.pw-chart-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.pw-chart-canvas-wrap { position: relative; width: 100%; height: 360px; }
.pw-chart-canvas-wrap.h420 { height: 420px; }
.pw-chart-canvas-wrap.h560 { height: 560px; }
.pw-chart-canvas-wrap canvas { width: 100% !important; height: 100% !important; position: relative; z-index: 1; }
.pw-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.07; width: 120px; height: 120px; object-fit: contain; pointer-events: none; z-index: 0; }
.pw-chart-footer { padding: 10px 24px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid #f0f0f0; margin-top: 8px; }
.pw-chart-footer strong { color: #374151; font-weight: 600; }
.pw-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.pw-axis-guide { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; background: #f0faf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 9px 14px; font-size: 12px; color: var(--gd); }
.pw-axis-guide span { display: flex; align-items: center; gap: 6px; }
.pw-axis-guide span::before { content: '→'; font-weight: 700; color: var(--gp); }
.pw-switch { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat',sans-serif; font-size: 11px; font-weight: 700; color: var(--gdd); cursor: pointer; margin-left: auto; }
.pw-switch input { accent-color: var(--gp); width: 16px; height: 16px; }

/* ── H2H TABLE ── */
.pw-table-wrap { overflow-x: auto; }
table.pw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pw-table th { font-family: 'Montserrat',sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--gd); text-align: right; padding: 10px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; background: #fafcfb; }
.pw-table th:first-child, .pw-table td:first-child { text-align: left; }
.pw-table th.sortable { cursor: pointer; user-select: none; }
.pw-table th.sortable:hover { color: var(--gp); }
.pw-table th .arr { color: var(--gl); }
.pw-table td { padding: 9px 10px; border-bottom: 1px solid #f1f4f2; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pw-table tr:hover td { background: #f8fbf9; }
.pw-table .pname { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--gdd); }
.pw-table .pname i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); display: inline-block; }
.h2h td.metric { font-weight: 700; color: #374151; }
.h2h td.metric small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.h2h .cell { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 96px; }
.h2h .cell .v { font-weight: 600; }
.h2h .cell.lead .v { font-weight: 800; color: var(--pc); }
.h2h .cell.lead .v::after { content: ' ★'; font-size: 10px; }
.h2h .bar { height: 5px; border-radius: 3px; background: #eef2ef; width: 100%; overflow: hidden; }
.h2h .bar span { display: block; height: 100%; background: var(--pc); border-radius: 3px; }
.h2h.compact { table-layout: fixed; font-size: 12px; }
.h2h.compact th, .h2h.compact td { padding: 4px 5px; text-align: right !important; }
.h2h.compact th { padding: 8px 3px; font-family: 'Open Sans',sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; }
.h2h.compact th .pname { flex-direction: column; align-items: flex-end; gap: 3px; line-height: 1.2; max-width: 100%; }
.h2h.compact tr.mhead td { text-align: left !important; padding: 9px 5px 1px; border-bottom: none; font-family: 'Montserrat',sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); background: none; }
.h2h.compact tbody tr:not(.mhead) td { padding-bottom: 8px; }
.h2h.compact .cell { min-width: 0; gap: 3px; }
.h2h.compact .bar { height: 4px; }
.h2h.compact tfoot tr.mhead td { border-top: 2px solid var(--line); background: #fafcfb; }
.h2h.compact tfoot tr:not(.mhead) td { border-top: none; }
.h2h tfoot td { font-family: 'Montserrat',sans-serif; font-weight: 800; color: var(--gdd); border-top: 2px solid var(--line); background: #fafcfb; }
.cov { font-family: 'Montserrat',sans-serif; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.cov.v { background: #dcfce7; color: #166534; }
.cov.t { background: #fef3c7; color: #92400e; }
.cov.k { background: #f3f4f6; color: #6b7280; }
.pw-table tr.nodata td { color: #9ca3af; }

/* ── BETWEEN / NOTE ── */
.pw-between-text { background: #fff; border-left: 4px solid var(--gp); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 24px; font-size: 14.5px; line-height: 1.7; color: #374151; box-shadow: var(--sh); }
.pw-between-text strong { color: var(--gd); }

/* ── FAQ ── */
.pw-faq { margin-top: 36px; }
.pw-faq-title { font-family: 'Montserrat',sans-serif; font-size: 20px; font-weight: 800; color: var(--gdd); margin-bottom: 16px; }
.pw-faq-item { border: 1px solid #e5e7eb; border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: #fff; }
.pw-faq-question { width: 100%; text-align: left; background: none; border: none; padding: 16px 20px; font-family: 'Montserrat',sans-serif; font-size: 14px; font-weight: 700; color: var(--gdd); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pw-faq-question:hover { background: #f9fafb; }
.pw-faq-icon { width: 20px; height: 20px; background: var(--gp); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 900; flex-shrink: 0; transition: transform .2s; }
.pw-faq-item.open .pw-faq-icon { transform: rotate(45deg); }
.pw-faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .2s ease; font-size: 13.5px; line-height: 1.7; color: #374151; padding: 0 20px; }
.pw-faq-item.open .pw-faq-answer { max-height: 900px; padding: 4px 20px 18px; }
.pw-faq-answer ul { padding-left: 18px; }
.pw-faq-answer li { margin-bottom: 4px; }

/* ── TOAST ── */
.pw-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(80px); background: var(--gdd); color: #fff; font-family: 'Montserrat',sans-serif; font-size: 12.5px; font-weight: 700; padding: 10px 18px; border-radius: 24px; box-shadow: var(--shm); transition: transform .25s; z-index: 50; }
.pw-toast.show { transform: translateX(-50%) translateY(0); }

[hidden] { display: none !important; }

/* ── RESPONSIVE ── */
@media(max-width:900px){ .pw-grid2 { grid-template-columns: 1fr; } }
@media(max-width:768px){
  .pw-tiles.two { grid-template-columns: 1fr; }
  .pw-kpi-grid { grid-template-columns: repeat(2,1fr); }
  .pw-kpi-tile { border-bottom: 1px solid var(--line); }
  .pw-kpi-tile:nth-child(2n) { border-right: none; }
  .pw-ctl-label { width: 100%; padding-top: 0; }
  .pw-presets, .pw-share { margin-left: 0; }
  .pw-panel-toggle { display: flex; }
  .pw-panel:not(.open) { padding-bottom: 4px; }
  .pw-panel:not(.open) .pw-panel-rows { display: none; }
  .pw-panel.open .pw-panel-rows { border-top: 1px solid var(--line); }
}
@media(max-width:600px){
  .pw-wrap { padding: 24px 16px 40px; }
  .pw-panel { padding: 14px 16px 6px; }
  .pw-chart-body { padding: 16px 16px 8px; }
  .pw-chart-footer { padding: 10px 16px 14px; }
  .pw-chart-canvas-wrap, .pw-chart-canvas-wrap.h420 { height: 300px; }
  .pw-chart-canvas-wrap.h560 { height: 520px; }
  .pw-watermark { opacity: .06; width: 80px; height: 80px; }
  .pw-tiles { grid-template-columns: 1fr; }
  .pw-ctl-body { min-width: 0; }
}
