/* =====================================================================
   Kostenlose Trainer-Vorlagen auf fussball-trainer-app.de
   (Spielvorbereitung, Spielanalyse, Trainingseinheit, Übersicht)
   Wird von den HTML-Blöcken der Hauptseite geladen. Alles mit .ftv-Präfix.
   ===================================================================== */
.ftv{--g:#0B6E4F;--g2:#16a34a;--lime:#a3e635;--ink:#0f172a;--muted:#5b6474;--line:#e3e8ee;--soft:#f4f7f6;--navy:#0a1220;--warn:#d97706;--bad:#b42318;
  --font:Raleway,"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;font-family:var(--font);color:var(--ink);font-size:16px;line-height:1.55;overflow-x:clip}
.ftv *{box-sizing:border-box}
.ftv h1,.ftv h2,.ftv h3{font-family:var(--font);color:inherit;text-transform:none;letter-spacing:-.015em;font-weight:800;margin:0;line-height:1.15}
.ftv p{margin:0 0 .8em}
.ftv a{color:var(--g)}
.ftv ul,.ftv ol{margin:0;padding:0;list-style:none}
.ftv li{list-style:none !important;margin-left:0}
.ftv li::marker{content:none}
.ftv-wrap{max-width:1040px;margin:0 auto;padding:0 20px}

/* Kopf */
.ftv-head{background:radial-gradient(900px 400px at 85% -20%,rgba(34,197,94,.32),transparent 60%),var(--navy);color:#fff;padding:64px 0 120px}
.ftv-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--lime)}
.ftv-head h1{font-size:clamp(32px,4.4vw,52px);margin:12px 0 14px;color:#fff}
.ftv-head p{color:#c7d2e0;font-size:clamp(16px,1.4vw,19px);max-width:720px}
.ftv-points{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:18px;font-size:14px;color:#b8c4d4}
.ftv-points span::before{content:"✓";color:var(--lime);font-weight:800;margin-right:7px}

/* Werkzeugleiste */
.ftv-bar{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:-74px auto 22px;max-width:1000px;padding:12px 14px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:0 18px 40px rgba(15,23,42,.12)}
.ftv-bar-info{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}
.ftv-bar-info i{width:8px;height:8px;border-radius:50%;background:var(--g2);display:inline-block}
.ftv-bar-acts{display:flex;flex-wrap:wrap;gap:8px}
.ftv-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:12px;font:inherit;font-weight:700;font-size:15px;cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--ink);text-decoration:none}
.ftv-btn:hover{border-color:var(--g);color:var(--g)}
.ftv-btn.is-main{background:linear-gradient(135deg,#22c55e,var(--g));border:0;color:#fff}
.ftv-btn.is-main:hover{color:#fff;filter:brightness(1.05)}
.ftv-btn svg{width:18px;height:18px}

/* Blatt */
.ftv-sheet{max-width:1000px;margin:0 auto 40px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px;box-shadow:0 20px 50px rgba(15,23,42,.06)}
.ftv-sheet-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding-bottom:18px;margin-bottom:24px;border-bottom:3px solid var(--g)}
.ftv-sheet-head .ftv-kicker{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--g)}
.ftv-sheet-head h2{font-size:28px;margin-top:4px}
.ftv-sheet-head .ftv-club{min-width:220px}
.ftv-sec{margin-top:26px;break-inside:avoid;page-break-inside:avoid}
.ftv-sec-title{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.ftv-sec-title::after{content:"";flex:1;height:1px;background:var(--line)}
.ftv-grid{display:grid;gap:12px 16px}
.ftv-g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ftv-g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ftv-g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ftv-span2{grid-column:span 2}
.ftv-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.ftv-field > span,.ftv-lbl{font-size:12.5px;font-weight:700;color:var(--muted)}
.ftv input[type=text],.ftv input[type=date],.ftv input[type=time],.ftv input[type=number],.ftv select,.ftv textarea{width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--soft);font:inherit;font-size:15px;color:var(--ink);margin:0;box-shadow:none}
.ftv textarea{min-height:84px;resize:vertical;line-height:1.5;overflow:hidden}
.ftv input:focus,.ftv select:focus,.ftv textarea:focus{outline:2px solid var(--g);outline-offset:0;background:#fff;border-color:transparent}
.ftv input::placeholder,.ftv textarea::placeholder{color:#97a1ae}

/* Kernbotschaften */
.ftv-key{border:2px solid var(--g);border-radius:16px;padding:16px}
.ftv-key li{display:flex;align-items:center;gap:12px;margin:8px 0}
.ftv-key b{flex:0 0 34px;height:34px;border-radius:50%;background:var(--g);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px}
.ftv-key input{font-weight:700;font-size:16px !important}

/* Spielfeld mit Formation */
.ftv-lineup{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start}
.ftv-pitch{width:100%;height:auto;border-radius:12px;background:#2a8447}
.ftv-pitch text{font-family:var(--font);font-weight:800}
.ftv-pos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.ftv-pos label{display:flex;align-items:center;gap:8px}
.ftv-pos b{flex:0 0 48px;height:32px;border-radius:8px;background:#e7f5ee;color:var(--g);display:flex;align-items:center;justify-content:center;font-size:12px}
.ftv-pos input{min-height:34px !important;padding:5px 10px !important}

/* Tabellen */
.ftv-table{width:100%;border-collapse:collapse;font-size:14px}
.ftv-table th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);text-align:left;padding:6px 6px;border-bottom:2px solid var(--line);font-weight:800}
.ftv-table td{padding:4px 4px;border-bottom:1px solid var(--line);vertical-align:middle}
.ftv-table input,.ftv-table select{min-height:34px !important;padding:5px 8px !important;background:transparent !important;border-color:transparent !important}
.ftv-table input:focus,.ftv-table select:focus{background:#fff !important}
.ftv-table .c{text-align:center}
.ftv-stats td:first-child{font-weight:700}
.ftv-stats input{text-align:center}

/* Bewertung gut / ok / schwach */
.ftv-rate{display:grid;grid-template-columns:180px auto minmax(0,1fr);gap:10px 14px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.ftv-rate > b{font-size:14px}
.ftv-rate-opts{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.ftv-rate-opts label{position:relative;cursor:pointer}
.ftv-rate-opts input{position:absolute;opacity:0;pointer-events:none}
.ftv-rate-opts span{display:block;padding:7px 12px;font-size:13px;font-weight:700;color:var(--muted);border-right:1px solid var(--line);white-space:nowrap}
.ftv-rate-opts label:last-child span{border-right:0}
.ftv-rate-opts input:checked + span{color:#fff}
.ftv-rate-opts .is-good input:checked + span{background:var(--g2)}
.ftv-rate-opts .is-ok input:checked + span{background:var(--warn)}
.ftv-rate-opts .is-bad input:checked + span{background:var(--bad)}
.ftv-rate-opts input:focus-visible + span{outline:2px solid var(--g);outline-offset:-2px}
.ftv-rate input[type=text]{min-height:36px}

/* gut / besser */
.ftv-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ftv-list li{display:flex;gap:10px;align-items:center;margin:6px 0}
.ftv-list li::before{content:"+";flex:0 0 28px;height:28px;border-radius:50%;background:#dcfce7;color:var(--g);font-weight:800;display:flex;align-items:center;justify-content:center}
.ftv-list.is-minus li::before{content:"–";background:#fee2e2;color:var(--bad)}

/* Training: Phasen */
.ftv-phase{border:1px solid var(--line);border-left:5px solid var(--g);border-radius:14px;padding:12px 14px;margin-top:12px}
.ftv-phase.is-main{border-left-color:var(--ink)}
.ftv-phase.is-end{border-left-color:#94a3b8}
.ftv-phase h3{font-size:16px;display:flex;justify-content:space-between;margin-bottom:6px}
.ftv-phase h3 small{font-size:13px;color:var(--muted);font-weight:700}
.ftv-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ftv-sum div{background:var(--soft);border-radius:12px;padding:10px 12px}
.ftv-sum span{display:block;font-size:12px;font-weight:700;color:var(--muted)}
.ftv-sum strong{font-size:20px}
.ftv-drawbox{height:220px;border:2px dashed var(--line);border-radius:12px;background:repeating-linear-gradient(0deg,#fff,#fff 27px,#f1f5f9 28px)}
.ftv-hint{font-size:12.5px;color:var(--muted);margin-top:6px}

/* Werbung für die App */
.ftv-cta{max-width:1000px;margin:0 auto 60px;border-radius:22px;padding:30px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;color:#fff;background:radial-gradient(500px 200px at 90% 0,rgba(163,230,53,.25),transparent 70%),linear-gradient(135deg,var(--g),#064e3b)}
.ftv-cta h3{font-size:22px;margin-bottom:6px;color:#fff}
.ftv-cta p{margin:0;color:#d1fae5}
.ftv-cta .ftv-btn{background:#fff;color:var(--g);border:0}
.ftv-print-foot{display:none}

/* Übersicht */
.ftv-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:1040px;margin:-70px auto 40px;padding:0 20px;position:relative;z-index:2}
.ftv-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;text-decoration:none !important;color:var(--ink) !important;box-shadow:0 18px 40px rgba(15,23,42,.08);transition:transform .2s ease,box-shadow .2s ease}
.ftv-card:hover{transform:translateY(-4px);box-shadow:0 24px 50px rgba(15,23,42,.14)}
.ftv-card-top{height:150px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e7f5ee,#f7fee7)}
.ftv-card-top svg{width:120px;height:auto}
.ftv-card-body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.ftv-card-body h3{font-size:20px}
.ftv-card-body p{color:var(--muted);font-size:15px;margin:0;flex:1}
.ftv-card-go{font-weight:800;color:var(--g)}

/* Info-Seiten (Kontakt, Danke, Neuigkeiten) */
.ftv-panel{max-width:1000px;margin:-70px auto 30px;position:relative;z-index:2;background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:0 20px 50px rgba(15,23,42,.08)}
.ftv-panel + .ftv-panel{margin-top:0}
.ftv-panel h2{font-size:24px;margin-bottom:14px}
.ftv-mail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ftv-mail > div{border:1px solid var(--line);border-radius:16px;padding:20px;background:var(--soft)}
.ftv-mail h3{font-size:18px;margin-bottom:6px}
.ftv-mail p{color:var(--muted);font-size:15px}
.ftv-mail a.ftv-mail-addr{display:inline-block;margin-top:4px;font-weight:800;font-size:17px;word-break:break-all;text-decoration:none}
.ftv-check li{position:relative;padding-left:28px;margin:0 0 8px}
.ftv-check li::before{content:"✓";position:absolute;left:4px;top:0;color:var(--g);font-weight:900}
.ftv-steps{counter-reset:st;display:grid;gap:14px}
.ftv-steps > li{counter-increment:st;position:relative;padding:16px 18px 16px 70px;border:1px solid var(--line);border-radius:16px;min-height:64px}
.ftv-steps > li::before{content:counter(st);position:absolute;left:16px;top:14px;width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:18px;color:#fff;background:linear-gradient(135deg,#22c55e,var(--g))}
.ftv-steps h3{font-size:17px;margin-bottom:4px}
.ftv-steps p{margin:0;color:var(--muted);font-size:15px}
.ftv-steps kbd{font:inherit;font-weight:700;background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:1px 7px;color:var(--ink)}
.ftv-note{margin-top:18px;padding:14px 18px;border-radius:14px;background:#fff7ed;border:1px solid #fed7aa;font-size:15px}
.ftv .ftv-log{position:relative;padding-left:30px}
.ftv-log::before{content:"";position:absolute;left:11px;top:6px;bottom:6px;width:2px;background:var(--line)}
.ftv-log > li{position:relative;margin:0 0 26px}
.ftv-log > li::before{content:"";position:absolute;left:-25px;z-index:1;top:6px;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--g)}
.ftv-log-tag{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--g);background:#e7f5ee;border-radius:999px;padding:3px 10px;margin-bottom:6px}
.ftv-log h3{font-size:19px;margin-bottom:8px}
.ftv-log ul{display:grid;gap:6px}
.ftv-log ul li{position:relative;padding-left:18px;color:#334155}
.ftv-log ul li::before{content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--g2)}
.ftv-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}

@media screen and (max-width:860px){
 .ftv-g3,.ftv-g4{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ftv-lineup{grid-template-columns:1fr}
 .ftv-pitch{max-width:260px;margin:0 auto}
 .ftv-rate{grid-template-columns:1fr;gap:6px}
 .ftv-two{grid-template-columns:1fr}
 .ftv-cards{grid-template-columns:1fr}
 .ftv-cta{grid-template-columns:1fr}
 .ftv-mail{grid-template-columns:1fr}
 .ftv-panel{margin-left:12px;margin-right:12px;padding:22px 18px}
 .ftv-sum{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:600px){
 .ftv-sheet{padding:20px 16px;border-radius:16px}
 .ftv-g2,.ftv-g3,.ftv-g4,.ftv-pos{grid-template-columns:1fr}
 .ftv-span2{grid-column:auto}
 .ftv-sheet-head{flex-direction:column;align-items:stretch}
 .ftv-bar{margin-left:12px;margin-right:12px}
 .ftv-bar-acts{width:100%}
 .ftv-bar-acts .ftv-btn{flex:1}
 .ftv-table{font-size:13px}
 .ftv-scroll{overflow-x:auto}
 .ftv-scroll .ftv-table{min-width:560px}
 /* Trainingsablauf: jede Zeile als kleine Karte statt breiter Tabelle */
 .ftv-phase .ftv-scroll{overflow:visible}
 .ftv-phase .ftv-table{min-width:0}
 .ftv-phase .ftv-table tbody{display:block}
 .ftv-phase .ftv-table tr{display:grid;grid-template-columns:44px 1fr 1fr;grid-template-areas:"t ex ex" ". m i" ". o o";gap:4px 6px;padding:8px 0;border-bottom:1px solid var(--line)}
 .ftv-phase .ftv-table td{display:block;width:auto !important;padding:0;border:0}
 .ftv-phase .ftv-table td:nth-child(1){grid-area:t;align-self:center}
 .ftv-phase .ftv-table td:nth-child(2){grid-area:ex}
 .ftv-phase .ftv-table td:nth-child(3){grid-area:m}
 .ftv-phase .ftv-table td:nth-child(4){grid-area:i}
 .ftv-phase .ftv-table td:nth-child(5){grid-area:o}
}

/* ============ Druckblatt (eigenes Dokument, vom Knopf „Drucken / PDF“ erzeugt) ============ */
.ftv-print-body{margin:0;background:#fff}
.ftv-print-body .ftv{overflow:visible}
.ftv-print-body .ftv-sheet{max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;font-size:10.5pt}
.ftv-pv{display:block;min-height:1.55em;padding:2px 2px;border-bottom:1px solid #cbd5e1;font-size:10pt;line-height:1.4;white-space:pre-wrap;word-break:break-word;color:var(--ink)}
.ftv-pv-area{min-height:16mm;border:1px solid #cbd5e1;border-radius:4px;padding:4px 6px}
.ftv-table .ftv-pv{border-bottom:0;min-height:1.3em}
.ftv-key .ftv-pv{flex:1;font-weight:700}
.ftv-pos .ftv-pv{flex:1}
.ftv-list .ftv-pv{flex:1}
.ftv-print-body .ftv-print-foot{display:flex;justify-content:space-between;margin-top:10px;padding-top:6px;border-top:1px solid #e2e8f0;font-size:8pt;color:#64748b}
.ftv-print-body .ftv-sec{margin-top:12px}
.ftv-print-body .ftv-sheet-head{margin-bottom:12px;padding-bottom:10px}
.ftv-print-body .ftv-sheet-head h2{font-size:20pt}
.ftv-print-body .ftv-drawbox{height:60mm}
.ftv-print-body .ftv-scroll{overflow:visible}

/* =========================== DRUCK (A4) =========================== */
@media print{
 /* eigenes Druckblatt: nichts verstecken, normal fließen lassen */
 body.ftv-print-body *{visibility:visible !important}
 body.ftv-print-body .ftv-sheet{position:static !important}
 @page{size:A4 portrait;margin:11mm}
 body *{visibility:hidden !important}
 .ftv-sheet,.ftv-sheet *{visibility:visible !important}
 .ftv-sheet{position:absolute;left:0;top:0;width:100%;max-width:none;margin:0;padding:0;border:0;box-shadow:none;border-radius:0;font-size:10.5pt}
 .ftv-no-print,.ftv-bar,.ftv-cta,.ftv-head{display:none !important}
 .ftv-sheet-head{margin-bottom:12px;padding-bottom:10px}
 .ftv-sheet-head h2{font-size:20pt}
 .ftv-sec{margin-top:12px}
 .ftv input,.ftv select,.ftv textarea{background:transparent !important;border:0 !important;border-bottom:1px solid #cbd5e1 !important;border-radius:0 !important;padding:2px 2px !important;min-height:0 !important;font-size:10pt !important;-webkit-appearance:none;appearance:none}
 .ftv textarea{min-height:16mm !important;border:1px solid #cbd5e1 !important;border-radius:4px !important;padding:4px !important}
 .ftv select{background-image:none !important}
 .ftv-table input,.ftv-table select{border-bottom:0 !important}
 .ftv-table td,.ftv-table th{padding:2px 4px}
 .ftv-rate-opts span{padding:3px 8px}
 .ftv-rate-opts input:checked + span{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .ftv-key b,.ftv-pitch,.ftv-pos b,.ftv-phase,.ftv-list li::before{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .ftv-drawbox{height:60mm}
 .ftv-print-foot{display:flex !important;justify-content:space-between;margin-top:10px;padding-top:6px;border-top:1px solid #e2e8f0;font-size:8pt;color:#64748b}
 .ftv-page-break{break-before:page;page-break-before:always}
}
