.fww-app{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#fff;border:1px solid #d9e0e5;border-radius:18px;overflow:hidden;box-shadow:0 12px 35px rgba(0,0,0,.08);margin:24px 0;color:#14212b}
.fww-header{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 22px;background:linear-gradient(135deg,var(--fww-primary),#0b4b72);color:#fff}
.fww-brand{display:flex;align-items:center;gap:14px}.fww-brand img{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:50%;padding:5px}.fww-brand h2{margin:0;font-size:24px;color:#fff}.fww-brand p{margin:3px 0 0;opacity:.85}
.fww-controls{display:flex;align-items:end;justify-content:flex-end;gap:10px;flex-wrap:wrap}.fww-controls label{font-size:12px;font-weight:700}.fww-controls input,.fww-controls select,.fww-controls button{display:block;margin-top:5px;border:0;border-radius:8px;padding:10px 12px;min-height:40px}.fww-controls input{width:220px}.fww-controls button{cursor:pointer;background:#fff;color:var(--fww-primary);font-weight:800}
.fww-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:18px;padding:20px;background:#f4f7f9}
.fww-pitch-wrap{min-width:0}.fww-presentation{text-align:center;margin:0 0 10px}.fww-presentation strong,.fww-presentation span{display:block}.fww-presentation strong{font-size:20px;color:var(--fww-primary)}.fww-presentation span{font-size:13px;letter-spacing:.05em;text-transform:uppercase;color:#7b858d;opacity:.78;margin-top:3px}
.fww-pitch{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;background-image:none;background-repeat:no-repeat;background-position:center center;background-size:100% 100%;border-radius:12px}
.fww-slot{position:absolute;transform:translate(-50%,-50%);width:92px;min-height:78px;z-index:2;text-align:center;border-radius:12px;padding:4px;transition:.2s}.fww-slot.dragover{background:rgba(255,255,255,.32);transform:translate(-50%,-50%) scale(1.06)}
.fww-slot-empty{box-sizing:border-box;width:48px;height:48px;margin:0 auto;border:2px dashed rgba(255,255,255,.95);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;font-weight:500;line-height:1;padding:0 0 3px 0;background:rgba(0,0,0,.15);text-align:center}
.fww-onfield{cursor:grab}.fww-avatar{width:54px;height:54px;border-radius:50%;margin:auto;border:3px solid #fff;background:var(--fww-primary);color:#fff;display:grid;place-items:center;font-weight:900;overflow:hidden;box-shadow:0 3px 10px rgba(0,0,0,.25)}.fww-avatar img{width:100%;height:100%;object-fit:cover}.fww-player-name{margin-top:3px;color:#fff;font-size:12px;font-weight:800;line-height:1.1;text-shadow:0 1px 3px #000;background:rgba(0,0,0,.32);border-radius:5px;padding:3px}
.fww-help{font-size:13px;color:#66737d;text-align:center}.fww-squad{background:#fff;border-radius:14px;padding:16px;box-shadow:0 3px 15px rgba(0,0,0,.06)}.fww-squad h3{margin-top:0}.fww-filter{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:12px}.fww-filter button{border:1px solid #ccd6dd;background:#fff;border-radius:999px;padding:6px 10px;cursor:pointer}.fww-filter button.active{background:var(--fww-primary);color:#fff;border-color:var(--fww-primary)}
.fww-player-list{display:grid;gap:8px;max-height:610px;overflow:auto}.fww-card{display:grid;grid-template-columns:42px 38px minmax(0,1fr);align-items:center;column-gap:10px;min-height:60px;border:1px solid #dce3e8;border-radius:10px;padding:8px;cursor:grab;background:#fff}.fww-card:hover{border-color:var(--fww-primary)}.fww-card.used{opacity:.4}.fww-card .fww-avatar{width:42px;height:42px;min-width:42px}.fww-list-number{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--fww-primary);color:#fff;font-weight:900;font-variant-numeric:tabular-nums}.fww-card-info{min-width:0;text-align:left}.fww-card-info strong,.fww-card-info span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fww-card-info strong{line-height:1.25}.fww-card-info span{margin-top:3px;font-size:12px;color:#6c7881}.fww-unavailable{margin-top:16px;border-top:1px solid #e4eaee;padding-top:12px}.fww-unavailable h4{margin:0 0 8px}.fww-out{font-size:12px;padding:7px 9px;background:#fff2f2;border-left:3px solid var(--fww-secondary);margin:5px 0}
.fww-actions{display:flex;justify-content:center;gap:12px;padding:18px}.fww-actions button{border:0;border-radius:10px;padding:12px 18px;font-weight:800;cursor:pointer}.fww-download{background:var(--fww-primary);color:#fff}.fww-share{background:var(--fww-secondary);color:#fff}.fww-toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);padding:10px 16px;background:#111;color:#fff;border-radius:8px;opacity:0;pointer-events:none;transition:.25s;z-index:99999}.fww-toast.show{opacity:1}
@media(max-width:900px){.fww-header{align-items:flex-start;flex-direction:column}.fww-controls{width:100%;justify-content:flex-start}.fww-controls input{width:min(260px,70vw)}.fww-layout{grid-template-columns:1fr;padding:10px}.fww-player-list{max-height:320px}.fww-actions{flex-direction:column}.fww-actions button{width:100%}.fww-slot{width:76px}.fww-avatar{width:48px;height:48px}.fww-slot-empty{width:42px;height:42px;font-size:25px}}
/* Version 1.5.0: neues Torwarttrikot und ausgerichtete Kaderliste */
.fww-field-watermark{position:absolute;left:50%;top:50%;width:42%;max-height:34%;object-fit:contain;transform:translate(-50%,-50%);opacity:.09;pointer-events:none;user-select:none;z-index:1}
.fww-shirt{position:relative;width:70px;height:70px;margin:0 auto;filter:drop-shadow(0 4px 5px rgba(0,0,0,.35));display:flex;align-items:center;justify-content:center}
.fww-shirt img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.fww-shirt span{position:relative;z-index:2;color:#fff;font-size:20px;font-weight:900;line-height:1;text-shadow:-1px -1px 0 rgba(0,0,0,.7),1px -1px 0 rgba(0,0,0,.7),-1px 1px 0 rgba(0,0,0,.7),1px 1px 0 rgba(0,0,0,.7);transform:translateY(2px)}
.fww-shirt-gk img{object-fit:contain}
.fww-shirt-gk span{font-size:21px}
.fww-onfield{position:relative;z-index:2}
.fww-slot{width:108px;min-height:96px}
.fww-player-name{margin-top:-2px}
@media(max-width:620px){.fww-shirt{width:58px;height:58px}.fww-shirt span{font-size:17px}.fww-slot{width:92px;min-height:82px}}


/* Version 1.9.1: weiße Informationsflächen nur im Bildexport */
.fww-brand>div{background:transparent;color:inherit;border-radius:0;padding:0;box-shadow:none}
.fww-brand h2{color:#fff}
.fww-brand p{color:#fff;opacity:.85}
.fww-controls label{background:transparent;color:#fff;border-radius:0;padding:0;box-shadow:none}
.fww-controls label input,.fww-controls label select{border:0;background:#fff}
.fww-presentation{display:block;position:static;left:auto;transform:none;background:transparent;border-radius:0;padding:0;box-shadow:none}
.fww-presentation .fww-owner-title{color:#002a47}.fww-presentation .fww-owner-prefix{color:#002a47}.fww-presentation .fww-owner-name{color:#d71920}
.fww-slot-empty,.fww-onfield{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.fww-slot-empty{cursor:pointer}
@media(max-width:620px){
  .fww-slot{width:62px;min-height:62px;padding:0;pointer-events:none}
  .fww-slot .fww-slot-empty,.fww-slot .fww-onfield{pointer-events:auto}
  .fww-slot-empty{width:46px;height:46px;font-size:27px;padding:0;line-height:46px}
  .fww-onfield{width:72px;display:flex;flex-direction:column;align-items:center}
  .fww-player-name{max-width:78px}
  .fww-presentation{width:auto;box-sizing:border-box}
}

/* Version 1.10.0: neue Spielfeldgrafik und Überschrift in KSV-Blau */

/* V1.10.6: Überschriftsheader im Stil des KSV-Spieler-Votings */
.fww-section-head-feature{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 18px;padding:26px 28px;border-radius:26px;background:#002a47;border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 45px rgba(16,24,40,.14);position:relative;overflow:hidden;color:#fff}
.fww-section-head-feature:before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:6px;border-radius:0 999px 999px 0;background:#dd3333}
.fww-section-kicker{display:inline-flex;align-items:center;gap:8px;margin:0 0 9px;color:#fff;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.12em}
.fww-section-kicker:before{content:"";width:9px;height:9px;border-radius:50%;background:#dd3333;box-shadow:0 0 0 5px rgba(221,51,51,.18)}
.fww-section-head-feature h2{margin:0;font-size:clamp(28px,4vw,46px);line-height:1;letter-spacing:-.045em;font-weight:950;color:#fff}
.fww-section-head-feature p{max-width:720px;margin:10px 0 0;font-size:clamp(14px,1.5vw,17px);line-height:1.5;color:#fff;font-weight:700}
.fww-app>.fww-header{margin:0 18px 18px;padding:14px 16px;border-radius:14px;background:#fff;color:#14212b;border:1px solid #e1e7ea;box-shadow:none}
.fww-app>.fww-header .fww-controls{width:100%;justify-content:flex-start;flex-wrap:wrap}
.fww-app>.fww-header .fww-controls label{color:#002a47}
.fww-app>.fww-header .fww-controls button{background:#002a47;color:#fff}
@media(max-width:760px){.fww-section-head-feature{padding:20px 18px;border-radius:18px}.fww-section-head-feature:before{top:16px;bottom:16px;width:5px}.fww-section-head-feature h2{font-size:28px}.fww-section-head-feature p{font-size:13px}.fww-app>.fww-header{margin:0 9px 12px;padding:11px}}


/* v1.10.7 – Eingabefeld für den Namen deutlicher hervorheben */
.fww-app input[type="text"].fww-username,
.fww-app .fww-username input,
.fww-app input.fww-name,
.fww-app input[name="fww_username"],
.fww-app input[name="username"] {
    background: #fff !important;
    color: #002a47 !important;
    border: 2px solid #002a47 !important;
    border-radius: 10px !important;
    min-height: 46px !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 0 0 3px rgba(0,42,71,.08) !important;
}
.fww-app input[type="text"].fww-username:focus,
.fww-app .fww-username input:focus,
.fww-app input.fww-name:focus,
.fww-app input[name="fww_username"]:focus,
.fww-app input[name="username"]:focus {
    outline: none !important;
    border-color: #dd3333 !important;
    box-shadow: 0 0 0 4px rgba(221,51,51,.14) !important;
}
.fww-app input[type="text"].fww-username::placeholder,
.fww-app .fww-username input::placeholder,
.fww-app input.fww-name::placeholder,
.fww-app input[name="fww_username"]::placeholder,
.fww-app input[name="username"]::placeholder {
    color: #667784 !important;
    opacity: 1 !important;
}


/* Tatsächlich im Plugin verwendetes Namensfeld */
.fww-app .fww-username,
.fww-app input[name="<?php echo self::OPT; ?>[team_name]"] {
    background:#fff !important;
    color:#002a47 !important;
    border:2px solid #002a47 !important;
    border-radius:10px !important;
    min-height:46px !important;
    padding:10px 14px !important;
    font-size:16px !important;
    font-weight:600 !important;
    box-shadow:0 0 0 3px rgba(0,42,71,.08) !important;
}
