/* VfL Nauen – Kader & Ausrüstung: Handy-Seiten, „Mein Bereich“, Kader, Druck */
:root {
	--vfl-blau: #0B3B8C;
	--vfl-blau-dunkel: #072A66;
	--vfl-blau-hell: #E8EFFA;
	--vfl-linie: #D7E0EE;
	--vfl-text: #14213D;
	--vfl-grau: #5B6B85;
	--vfl-gruen: #1A8F5A;
	--vfl-rot: #C0392B;
	--vfl-gelb: #F4B400;
	--vfl-radius: 14px;
}

/* ---------- Grundbausteine (auch im Theme genutzt) */
.vfl-karte { background: #fff; border: 1px solid var(--vfl-linie); border-radius: var(--vfl-radius); padding: 18px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(11, 59, 140, .05); }
.vfl-karte h2 { margin: 0 0 8px; font-size: 1.35rem; color: var(--vfl-blau-dunkel); }
.vfl-karte h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--vfl-blau-dunkel); display: flex; align-items: center; gap: 8px; }
.vfl-knopf { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--vfl-blau); color: #fff !important; font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none !important; cursor: pointer; }
.vfl-knopf:hover, .vfl-knopf:focus-visible { background: var(--vfl-blau-dunkel); }
.vfl-knopf:disabled { opacity: .6; }
.vfl-knopf--hell { background: var(--vfl-blau-hell); color: var(--vfl-blau) !important; width: auto; min-height: 44px; font-size: .95rem; }
.vfl-knopf--hell:hover { background: #d5e2f6; }
.vfl-avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.vfl-avatar--ini { display: inline-flex; align-items: center; justify-content: center; background: var(--vfl-blau); color: #fff; font-weight: 800; letter-spacing: .02em; }
.vfl-zahl { background: var(--vfl-rot); color: #fff; border-radius: 999px; font-size: .8rem; padding: 1px 8px; }
.vfl-meldung { background: #E6F5EC; color: #0E5A37; border-radius: 10px; padding: 10px 14px; }
.vfl-fehler { background: #FDECEA; color: var(--vfl-rot); border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.vfl-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.vfl-feld { margin: 0 0 10px; display: flex; flex-direction: column; gap: 4px; }
.vfl-feld label { font-size: .85rem; font-weight: 700; color: var(--vfl-grau); }
.vfl-feld input:not([type=checkbox]), .vfl-feld select, .vfl-feld textarea, .vfl-eingabe { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid var(--vfl-linie); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--vfl-text); }
.vfl-feld--checkbox label { color: var(--vfl-text); font-weight: 600; display: flex; gap: 8px; align-items: center; }

/* ---------- Eigenständige Handy-Seite (Quittieren) */
body.vfl-mobil { margin: 0; background: #F2F5FA; color: var(--vfl-text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
.vfl-mobil-kopf { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--vfl-blau); color: #fff; box-shadow: 0 2px 10px rgba(7, 42, 102, .25); }
.vfl-mobil-kopf img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: #fff; }
.vfl-mobil-kopf strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.vfl-mobil-kopf span { font-size: .85rem; opacity: .85; }
.vfl-mobil-inhalt { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
.vfl-ueber { margin: 0; font-size: .8rem; color: var(--vfl-grau); font-weight: 700; letter-spacing: .04em; }
.vfl-label { display: block; font-weight: 700; font-size: .9rem; margin: 12px 0 6px; }
.vfl-label-zeile { display: flex; justify-content: space-between; align-items: baseline; }
.vfl-text-knopf { background: none; border: 0; color: var(--vfl-blau); font: inherit; font-weight: 700; padding: 8px 0; cursor: pointer; }
.vfl-pad-rahmen { position: relative; height: 190px; border: 2px dashed #A9BBDA; border-radius: 12px; background: #fff; touch-action: none; transition: border-color .2s; }
.vfl-pad-rahmen.hat-strich { border-style: solid; border-color: var(--vfl-blau); }
.vfl-pad-rahmen.fehlt { border-color: var(--vfl-rot); animation: vfl-wackeln .4s; }
.vfl-pad-rahmen canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.vfl-pad-hinweis { position: absolute; left: 0; right: 0; bottom: 36px; text-align: center; color: #9AA9C2; pointer-events: none; border-top: 1px solid #E3E9F3; margin: 0 24px; padding-top: 6px; font-size: .9rem; }
.vfl-pad-rahmen.hat-strich .vfl-pad-hinweis { opacity: 0; }
@keyframes vfl-wackeln { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.vfl-schalter { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.vfl-schalter input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--vfl-blau); }
.vfl-bestaetigen { margin: 16px 0; font-weight: 600; }
.vfl-klein-text { font-size: .8rem; color: var(--vfl-grau); margin: 12px 0 0; }
.vfl-erfolg { text-align: center; }
.vfl-haken { width: 72px; height: 72px; margin: 8px auto 12px; border-radius: 50%; background: var(--vfl-gruen); color: #fff; font-size: 40px; line-height: 72px; font-weight: 900; }
.vfl-erfolg .vfl-knopf--hell { width: 100%; }

/* ---------- Beleg-Inhalt */
.vfl-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0 16px; padding: 12px; background: var(--vfl-blau-hell); border-radius: 10px; }
.vfl-kopf dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--vfl-grau); font-weight: 700; }
.vfl-kopf dd { margin: 0; font-weight: 700; }
.vfl-positionen { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: .95rem; }
.vfl-positionen th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--vfl-grau); border-bottom: 2px solid var(--vfl-blau); padding: 6px 6px 6px 0; }
.vfl-positionen td { border-bottom: 1px solid var(--vfl-linie); padding: 8px 6px 8px 0; vertical-align: top; }
.vfl-positionen tfoot td { font-weight: 800; border-bottom: 0; }
.vfl-positionen .zahl { text-align: right; }
.vfl-bedingungen { padding-left: 20px; margin: 0 0 12px; font-size: .92rem; }
.vfl-bedingungen li { margin-bottom: 4px; }
.vfl-erklaerung { font-weight: 600; background: #F7F9FC; border-left: 4px solid var(--vfl-blau); padding: 10px 12px; border-radius: 0 8px 8px 0; }
.vfl-fragen { list-style: none; padding: 0; margin: 12px 0; }
.vfl-fragen li { padding: 12px 0; border-bottom: 1px solid var(--vfl-linie); }
.vfl-kreuz { font-weight: 700; margin-right: 8px; white-space: nowrap; }
.vfl-daten { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 16px; margin: 0 0 12px; }
.vfl-daten dt { font-size: .75rem; color: var(--vfl-grau); font-weight: 700; }
.vfl-daten dd { margin: 0; }
.vfl-unterschrift-block { margin-top: 16px; }
.vfl-unterschrift { display: block; max-width: 320px; width: 100%; height: auto; border-bottom: 1px solid var(--vfl-text); }
.vfl-unterschrift-zeile { margin: 4px 0 0; font-weight: 700; }
.vfl-pruef { font-size: .72rem; color: var(--vfl-grau); margin: 4px 0 0; word-break: break-all; }
.vfl-storniert { color: var(--vfl-rot); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; border: 3px solid; display: inline-block; padding: 4px 12px; transform: rotate(-4deg); }

/* ---------- Mein Bereich */
.vfl-bereich { max-width: 720px; margin: 0 auto; }
.vfl-profil-kopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vfl-profil-kopf > div { flex: 1; min-width: 160px; }
.vfl-profil-kopf h2 { margin: 0; }
.vfl-profil-kopf p { margin: 2px 0 0; color: var(--vfl-grau); }
.vfl-offen { border-color: var(--vfl-gelb); box-shadow: 0 0 0 3px rgba(244, 180, 0, .18); }
.vfl-liste { list-style: none; margin: 0; padding: 0; }
.vfl-liste li { border-top: 1px solid var(--vfl-linie); }
.vfl-liste li:first-child { border-top: 0; }
.vfl-liste a, .vfl-liste li > span { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 12px 0; text-decoration: none; color: inherit; }
.vfl-liste strong { grid-column: 1; }
.vfl-liste span span, .vfl-liste a > span { grid-column: 1; font-size: .85rem; color: var(--vfl-grau); }
.vfl-liste em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 800; color: var(--vfl-blau); }
.vfl-profil-form .vfl-knopf, .vfl-hochladen-form .vfl-knopf { margin-top: 8px; }
.vfl-abmelden { text-align: center; }
.vfl-bereich #loginform p { margin: 0 0 12px; }
.vfl-bereich #loginform label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.vfl-bereich #loginform input[type=text], .vfl-bereich #loginform input[type=password] { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 12px; border: 1px solid var(--vfl-linie); border-radius: 10px; font-size: 16px; }
.vfl-bereich #loginform .button { width: 100%; min-height: 52px; border-radius: 999px; border: 0; background: var(--vfl-blau); color: #fff; font-weight: 800; font-size: 1.05rem; cursor: pointer; }

/* ---------- Kader (öffentlich) */
.vfl-kader { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.vfl-kader-karte { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(7, 42, 102, .08); border: 1px solid var(--vfl-linie); }
.vfl-kader-bild { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--vfl-blau) 0%, var(--vfl-blau-dunkel) 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vfl-kader-bild img.vfl-avatar { width: 100%; height: 100%; border-radius: 0; }
.vfl-kader-bild .vfl-avatar--ini { width: 46% !important; height: auto !important; aspect-ratio: 1; background: rgba(255, 255, 255, .14); font-size: 2.4rem !important; }
.vfl-kader-nr { position: absolute; left: 10px; bottom: 4px; font-size: 3.2rem; font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); font-style: italic; }
.vfl-kader-text { padding: 10px 12px 12px; }
.vfl-kader-text strong { display: block; color: var(--vfl-blau-dunkel); }
.vfl-kader-text span { font-size: .85rem; color: var(--vfl-grau); }

/* ---------- Druck / A4 */
body.vfl-druck { margin: 0; background: #E9EDF3; color: #111; font: 11pt/1.45 -apple-system, "Segoe UI", Arial, sans-serif; }
.vfl-druck-leiste { position: sticky; top: 0; text-align: center; padding: 10px; background: var(--vfl-blau); }
.vfl-druck-leiste button { background: #fff; color: var(--vfl-blau); border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 800; font-size: 15px; cursor: pointer; }
.vfl-blatt { box-sizing: border-box; width: 210mm; max-width: 100%; min-height: 297mm; margin: 16px auto; padding: 16mm 16mm 14mm; background: #fff; box-shadow: 0 4px 24px rgba(0, 0, 0, .12); display: flex; flex-direction: column; }
.vfl-blatt-kopf { display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--vfl-blau); padding-bottom: 10px; margin-bottom: 14px; }
.vfl-blatt-logo { width: 60px; height: 60px; object-fit: contain; }
.vfl-blatt-kopf strong { display: block; font-size: 15pt; color: var(--vfl-blau); }
.vfl-blatt-kopf span { color: #555; }
.vfl-blatt h1 { font-size: 18pt; margin: 0 0 4px; color: var(--vfl-blau-dunkel); }
.vfl-blatt h3 { font-size: 11.5pt; margin: 14px 0 6px; color: var(--vfl-blau-dunkel); }
.vfl-blatt-unter { margin: 0 0 10px; color: #555; }
.vfl-blatt-fuss { margin-top: auto; padding-top: 10px; border-top: 1px solid #ccc; font-size: 8.5pt; color: #666; }
.vfl-blatt .vfl-kopf { background: #F1F5FB; }
.vfl-blatt .vfl-erklaerung { background: #F5F7FA; }
.vfl-positionen--leer td { height: 9mm; }
.vfl-klein { font-size: 9pt; }
.vfl-linien { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4mm 8mm; margin: 6px 0 10px; }
.vfl-linie span, .vfl-unterschriften span { display: block; height: 9mm; border-bottom: 1px solid #333; }
.vfl-linie, .vfl-unterschriften > div { font-size: 8.5pt; color: #555; }
.vfl-ankreuz { font-size: 10pt; padding: 2mm 0; grid-column: 1 / -1; }
.vfl-unterschriften { display: grid; grid-template-columns: 1fr 2fr; gap: 6mm 10mm; margin-top: 12mm; }
.vfl-unterschriften > div:nth-child(3) { grid-column: 2; }
@media print {
	@page { size: A4; margin: 0; }
	body.vfl-druck { background: #fff; }
	.vfl-druck-leiste { display: none; }
	.vfl-blatt { margin: 0; box-shadow: none; width: auto; min-height: 297mm; }
	.vfl-positionen tr { break-inside: avoid; }
}
@media (max-width: 700px) {
	.vfl-blatt { padding: 18px 16px; min-height: 0; margin: 0; }
	.vfl-linien, .vfl-unterschriften { grid-template-columns: 1fr; }
	.vfl-unterschriften > div:nth-child(3) { grid-column: 1; }
}
.vfl-positionen td.zahl, .vfl-positionen th.zahl { white-space: nowrap; }
.vfl-inv-mobil { display: none; color: var(--vfl-grau); font-size: .8rem; }
@media (max-width: 520px) {
	.vfl-mobil .vfl-inv, .vfl-bereich .vfl-inv { display: none; }
	.vfl-mobil .vfl-inv-mobil, .vfl-bereich .vfl-inv-mobil { display: block; }
	.vfl-mobil .vfl-positionen tfoot td:first-child { }
}
.vfl-pad-rahmen{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* Formulare kompakter, damit alles auf eine A4-Seite passt */
.vfl-blatt { padding: 13mm 15mm 11mm; }
.vfl-linien { gap: 1.5mm 8mm; }
.vfl-linie span, .vfl-unterschriften span { height: 7.5mm; }
.vfl-positionen--leer td { height: 7.5mm; }
.vfl-blatt h3 { margin: 10px 0 4px; }
.vfl-blatt .vfl-bedingungen { font-size: 9.5pt; }
.vfl-unterschriften { margin-top: 8mm; }
@media print { .vfl-blatt { min-height: 296mm; } }
.vfl-linien--drei { grid-template-columns: repeat(3, 1fr); } .vfl-linien--drei .vfl-ankreuz { padding: 1mm 0; font-size: 9.5pt; }
@media print { .vfl-blatt { min-height: 0; } .vfl-blatt-fuss { margin-top: 6mm; } }
.vfl-unterschriften--drei { grid-template-columns: 1fr 1.5fr 1.5fr; } .vfl-unterschriften--drei > div:nth-child(3) { grid-column: auto; } .vfl-positionen--leer td { padding-top: 0; padding-bottom: 0; }


/* ---------- Kader: Motto auf der Karte, Profil-Fenster */
.vfl-kader-motto { display: block; margin-top: 6px; font-size: .85rem; font-style: italic; line-height: 1.35; color: var(--vfl-blau); quotes: "„" "“"; }
.vfl-kader-karte.hat-profil { cursor: pointer; }
.vfl-kader-karte.hat-profil:focus-visible { outline: 3px solid #E8317F; outline-offset: 3px; }
.vfl-kader-karte.hat-profil .vfl-kader-text::after { content: "Profil ansehen ›"; display: block; margin-top: 8px; font-size: .78rem; font-weight: 800; color: #E8317F; }
dialog.vfl-profil { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); display: grid; grid-template-columns: minmax(0, 300px) 1fr; animation: vfl-profil-ein .35s cubic-bezier(.2,.8,.2,1.2); }
dialog.vfl-profil:not([open]) { display: none; }
dialog.vfl-profil::backdrop { background: rgba(7, 20, 46, .75); }
@keyframes vfl-profil-ein { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.vfl-profil-bild .vfl-kader-bild { height: 100%; min-height: 320px; aspect-ratio: auto; }
.vfl-profil-text { padding: 28px 28px 24px; }
.vfl-profil-text h3 { margin: 0 0 4px; font-size: 1.7rem; font-style: italic; color: var(--vfl-blau-dunkel); }
.vfl-profil-ueber { margin: 0 0 16px; color: var(--vfl-grau); font-weight: 700; font-size: .9rem; }
.vfl-profil-motto { margin: 0 0 16px; padding: 12px 16px; border-left: 5px solid #E8317F; background: #FFF0F6; border-radius: 0 12px 12px 0; font-size: 1.15rem; font-weight: 800; font-style: italic; color: var(--vfl-blau-dunkel); }
.vfl-profil-motto::before { content: "„"; }
.vfl-profil-motto::after { content: "“"; }
.vfl-profil-body p { margin: 0 0 10px; line-height: 1.6; }
.vfl-profil-zu { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--vfl-blau-dunkel); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
@media (max-width: 640px) {
	dialog.vfl-profil { grid-template-columns: 1fr; }
	.vfl-profil-bild .vfl-kader-bild { min-height: 220px; max-height: 260px; }
	.vfl-profil-text { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { dialog.vfl-profil { animation: none; } }
.vfl-bereich .vfl-feld--textarea { grid-column: 1 / -1; } .vfl-bereich .vfl-feld textarea { min-height: 96px; }

.vfl-kader-motto { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vfl-kader-spitz { display: block; margin-bottom: 2px; font-size: .8rem; font-weight: 900; font-style: italic; letter-spacing: .02em; color: #E8317F; }
.vfl-kader-spitz::before { content: "„"; } .vfl-kader-spitz::after { content: "“"; }
.vfl-profil-text .vfl-kader-spitz { font-size: 1rem; margin: 0 0 2px; }
.vfl-profil-leer { color: var(--vfl-grau); font-style: italic; }
