:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17202a;background:#f4f6f8;line-height:1.45;--brand:#0d6b8a;--border:#d8e0e6;--shadow:0 2px 10px rgba(0,0,0,.06)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:.65rem .95rem;background:var(--brand);color:#fff;font-weight:650}button.secondary{background:#e8eef2;color:#1d3541}button.danger{background:#a52a2a}.danger-link{background:transparent;color:#a52a2a;padding:.35rem 0}.hidden{display:none!important}.muted{color:#66737c}.error{color:#a52a2a}.hint{color:#5e6d76;margin-top:0}.app-header{background:#fff;border-bottom:1px solid var(--border);padding:1rem max(1rem,calc((100vw - 1320px)/2));display:flex;justify-content:space-between;gap:1rem;align-items:center}.app-header h1{margin:0;font-size:1.45rem}.app-header p{margin:.15rem 0 0;color:#5d6b73}.header-user{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}main{max-width:1320px;margin:1rem auto;padding:0 1rem}.card{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);padding:1rem;margin-bottom:1rem}.compact{padding:.85rem 1rem}.login-card{max-width:440px;margin:4rem auto}.login-card form,.userDialog form{display:grid;gap:.9rem}.tabs{display:flex;gap:.4rem;margin-bottom:1rem;flex-wrap:wrap}.tab{background:#dfe7eb;color:#29424f}.tab.active{background:var(--brand);color:#fff}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem}.toolbar h2,.toolbar p{margin:.1rem 0}.toolbar-actions,.toolbar>div:last-child{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}.inline-check{display:flex;align-items:center;gap:.35rem}.trip-list{display:grid;gap:.8rem}.trip-card{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.trip-card.archived{opacity:.72}.trip-main{min-width:0;flex:1}.trip-title-line{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}.trip-title-line h3{margin:0}.trip-meta{color:#485862;margin:.25rem 0}.trip-actions{display:flex;gap:.45rem;flex-wrap:wrap;justify-content:flex-end}.badge{display:inline-block;padding:.18rem .48rem;border-radius:999px;background:#e7edf0;color:#40525c;font-size:.82rem;font-weight:700}.status-approved{background:#d9f0df;color:#276638}.status-review{background:#fff0c7;color:#7a5700}.status-draft{background:#e8edf0}.sticky-actions{position:sticky;top:.5rem;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:.8rem}.sticky-actions>div{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}.form-section summary{font-size:1.08rem;font-weight:750;cursor:pointer}.form-section>summary{margin:-.1rem 0 .9rem}.grid{display:grid;gap:.85rem}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.span2{grid-column:1/-1}label{display:grid;gap:.3rem;font-weight:650}input,textarea,select{width:100%;border:1px solid #bcc8cf;border-radius:7px;padding:.62rem .7rem;background:#fff;color:#17202a}textarea{resize:vertical;min-height:2.7rem}input:focus,textarea:focus,select:focus{outline:2px solid rgba(13,107,138,.22);border-color:var(--brand)}input:disabled,textarea:disabled,select:disabled{background:#f1f3f5;color:#4d5960}.repeater-card{border:1px dashed #b7c6ce;border-radius:9px;padding:.85rem;margin:.75rem 0;background:#fbfcfd}.table-wrap{overflow:auto;padding:0}table{border-collapse:collapse;width:100%;min-width:900px}th,td{padding:.7rem;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}th{background:#f6f8f9;position:sticky;top:0}.history-value{max-width:330px;word-break:break-word}.history-value pre{white-space:pre-wrap;margin:0;font:inherit;font-size:.9rem}.empty{text-align:center;color:#64727b}.wide-dialog{width:min(1180px,96vw);max-height:92vh;border:0;border-radius:12px;padding:0;box-shadow:0 18px 60px rgba(0,0,0,.25)}dialog::backdrop{background:rgba(0,0,0,.4)}dialog form{padding:1rem}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:.2rem 0}.icon-btn{background:transparent;color:#222;font-size:1.5rem;padding:.2rem .5rem}.html-layout{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.dialog-actions{display:flex;gap:.7rem;align-items:center;margin-top:.8rem}.cms-preview{border:1px solid var(--border);border-radius:8px;padding:1rem;min-height:480px;max-height:65vh;overflow:auto;background:#fff}.cms-preview h1{font-size:1.8rem}.cms-preview p{margin:.85rem 0}.cms-preview .button{display:inline-block;background:#0d6b8a;color:#fff;padding:.55rem .85rem;border-radius:5px;text-decoration:none}.cms-preview ul{padding-left:1.25rem}#userDialog{border:0;border-radius:12px;width:min(520px,94vw);padding:0}#userDialog form{display:grid;gap:.8rem;padding:1.1rem}
@media(max-width:850px){.grid.two,.html-layout{grid-template-columns:1fr}.span2{grid-column:auto}.trip-card,.toolbar,.sticky-actions{flex-direction:column;align-items:stretch}.trip-actions{justify-content:flex-start}.app-header{align-items:flex-start;flex-direction:column}.wide-dialog{width:98vw}.cms-preview{min-height:300px}}
@media(max-width:540px){main{padding:0 .55rem}.card{border-radius:9px;padding:.8rem}.tabs{display:grid;grid-template-columns:1fr}.tab{width:100%}.trip-actions button{flex:1}.sticky-actions{top:0}.app-header{padding:.8rem}.toolbar-actions{align-items:stretch!important;flex-direction:column}.toolbar-actions button{width:100%}}

.form-intro h2{margin:.1rem 0 .25rem}.form-intro p{margin:.2rem 0;color:#52616a}.empty h3{margin:.1rem 0 .35rem}.empty p{margin:.35rem 0 .8rem}
.version-badge{display:inline-block;font-size:.68rem;font-weight:700;vertical-align:middle;background:#e8eef2;color:#35505e;border-radius:999px;padding:.2rem .45rem;margin-left:.35rem;white-space:nowrap}
#newTripTab{background:#0d6b8a;color:#fff}
#newTripTab.active{box-shadow:0 0 0 3px rgba(13,107,138,.18)}
.form-intro{border-left:5px solid #0d6b8a}
/* Gemeinsame Bereichsnavigation des VereinsCockpits */
.cockpit-nav{display:flex;gap:8px;margin:0 0 18px;padding:8px;background:#fff;border:1px solid #dbe4ea;border-radius:12px;overflow:auto}.cockpit-nav a{padding:9px 13px;border-radius:8px;color:#24445a;text-decoration:none;font-weight:700;white-space:nowrap}.cockpit-nav a.active{background:#176b87;color:#fff}
