/* Reitsport-Erweiterung – ans bestehende App-Design angelehnt */
.horse-grid{display:grid;gap:14px;margin-bottom:18px}.horse-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:16px}.horse-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:var(--app-surface-soft);font-size:1.8rem}.horse-copy h2{margin:5px 0 4px;text-align:left}.horse-copy p{margin:0;color:var(--app-muted)}.horse-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}.horse-facts span{padding:10px;border:1px solid var(--app-border);border-radius:12px;background:#fffefa;font-size:.78rem}.horse-facts b{display:block;margin-bottom:3px;color:var(--app-muted);font-size:.64rem;text-transform:uppercase}.horse-form-card{margin-bottom:24px}.horse-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.horse-field-wide{grid-column:1/3}.horse-treadmill-box{margin:18px 0;padding:18px;border:1px solid var(--app-border);border-radius:17px;background:#fffefa}.horse-treadmill-box h3{margin:4px 0;text-align:left}.horse-treadmill-box p{margin:0 0 14px;color:var(--app-muted);font-size:.8rem}.treadmill-head{display:flex;align-items:center;gap:9px;margin:0 0 10px 76px;padding:10px 14px;border-radius:14px;background:var(--app-surface-soft)}.treadmill-dot{width:10px;height:10px;border-radius:50%;background:var(--app-primary)}.treadmill-schedule{display:grid;gap:8px}.treadmill-row{display:grid;grid-template-columns:66px minmax(0,1fr);gap:10px;align-items:stretch}.treadmill-slot{min-height:72px}.treadmill-booking-form{display:grid;gap:16px}.treadmill-booking-form select{width:100%;height:50px;padding:0 12px;border:1px solid var(--app-border);border-radius:13px;background:#fffefa;color:var(--app-text);font:inherit}
@media(max-width:760px){.horse-card{grid-template-columns:52px minmax(0,1fr)}.horse-card>.btn{grid-column:1/3;width:100%}.horse-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.horse-form-grid{grid-template-columns:1fr}.horse-field-wide{grid-column:auto}.treadmill-head{margin-left:0}.treadmill-row{grid-template-columns:54px minmax(0,1fr)}}
/* Pferdeformular: gleiche Geburtsdatum-Auswahl wie im Mitgliederprofil */
.horse-form .member-birth-selects select,.horse-form .term-field select{display:block;width:100%;min-width:0;max-width:100%;height:50px;padding:0 10px;border:1px solid var(--app-border);border-radius:13px;background:#fffefa;color:var(--app-text);font:inherit;box-sizing:border-box;outline:none}
.horse-form .member-birth-selects select:focus,.horse-form .term-field select:focus{border-color:#8fa184;box-shadow:0 0 0 3px rgba(97,117,90,.11)}

/* v3: Pferd bearbeiten klar hervorheben */
.horse-edit-button{white-space:nowrap;align-self:flex-start}
@media(max-width:700px){.horse-edit-button{width:100%;justify-content:center;text-align:center}}


/* Kompakte Pferdekarten */
.horse-grid{display:grid;gap:12px;margin-bottom:18px}
.horse-card{display:grid;grid-template-columns:84px minmax(0,1fr) auto;align-items:center;gap:18px;padding:18px 20px}
.horse-photo-wrap{width:84px;height:84px;border-radius:18px;overflow:hidden;background:var(--app-surface-soft);border:1px solid var(--app-border)}
.horse-photo{width:100%;height:100%;display:block;object-fit:cover}
.horse-photo-placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--app-primary)}
.horse-photo-placeholder .ui-icon{width:36px;height:36px}
.horse-copy h2{margin:4px 0 4px;font-size:1.28rem;text-align:left}
.horse-copy p{margin:0;color:var(--app-muted);font-size:.86rem}
.horse-summary{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.horse-summary span{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:999px;background:var(--app-surface-soft);color:var(--app-text);font-size:.7rem;font-weight:750}
.horse-farrier-summary{color:var(--app-primary-dark)!important}
.horse-edit-button{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid var(--app-border);border-radius:12px;background:#fff;color:var(--app-primary)!important;font-size:.78rem;font-weight:850;white-space:nowrap;box-shadow:none}
.horse-edit-button:hover{background:var(--app-surface-soft);border-color:#cbd6c4}
.horse-edit-button .ui-icon{width:16px;height:16px}
.horse-photo-field>span{margin-bottom:8px}
.horse-photo-upload{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--app-border);border-radius:15px;background:#f6f6f0}
.horse-photo-preview{width:92px;height:92px;display:grid;place-items:center;flex:0 0 auto;overflow:hidden;border-radius:16px;background:var(--app-surface-soft);color:var(--app-primary)}
.horse-photo-preview img{width:100%;height:100%;object-fit:cover}
.horse-photo-preview .ui-icon{width:31px;height:31px}
.horse-photo-controls{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.horse-photo-controls>small{color:var(--app-muted);font-size:.68rem}
.horse-upload-button{position:relative;display:inline-flex!important;align-items:center;gap:8px;cursor:pointer;margin:0!important}
.horse-upload-button input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}
.horse-upload-button .ui-icon{width:17px;height:17px}
.horse-remove-photo{display:flex!important;align-items:center;gap:7px;margin:0!important;color:var(--app-muted)!important;font-size:.7rem!important;font-weight:700!important}
.horse-remove-photo input{width:auto!important;height:auto!important;accent-color:var(--app-primary)}
.horse-treadmill-box{background:#f6f6f0}
@media(max-width:680px){
 .horse-card{grid-template-columns:68px minmax(0,1fr);gap:13px;padding:15px}
 .horse-photo-wrap{width:68px;height:68px;border-radius:15px}
 .horse-edit-button{grid-column:1/3;justify-content:center;width:100%;box-sizing:border-box}
 .horse-summary{margin-top:8px}
 .horse-photo-upload{align-items:flex-start}
}
@media(max-width:460px){.horse-photo-upload{flex-direction:column}.horse-photo-preview{width:100%;height:150px}.horse-photo-controls{width:100%}.horse-upload-button{width:100%;justify-content:center}}

.horse-card-readonly{grid-template-columns:84px minmax(0,1fr)}
@media(max-width:680px){.horse-card-readonly{grid-template-columns:68px minmax(0,1fr)}}


/* Pferdekarten – bewusst reduziert und ruhiger */
.horse-card{background:#fffefa;border-color:var(--app-border);box-shadow:0 10px 28px rgba(70,90,66,.06)}
.horse-photo-wrap{background:#edf1e8;border-color:#d8dfd3}
.horse-photo-placeholder{color:#52684d}
.horse-summary span{background:#f1f3ed;color:#465047}
.horse-farrier-summary{color:#52684d!important}
.horse-edit-button{background:#fffefa;color:#52684d!important;border-color:#d8dfd3}
.horse-edit-button:hover{background:#edf1e8;border-color:#c4d0bf}
.horse-photo-upload,.horse-treadmill-box{background:#f7f7f2;border-color:#dce2d7}

/* Pferdebereich: Anlegen bewusst auf eigener Seite */
.horse-page-actions{display:flex;justify-content:flex-end;margin:0 0 16px}
.horse-new-button{display:inline-flex;align-items:center;gap:8px}
.horse-new-button .ui-icon{width:18px;height:18px}
.horse-delete-form{margin-top:14px}
@media(max-width:620px){.horse-page-actions{justify-content:stretch}.horse-new-button{width:100%;justify-content:center}}


/* Laufbandbuchung – Aktionen mittig untereinander */
.treadmill-booking-actions{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;margin-top:6px;padding-top:18px;border-top:1px solid var(--app-border)}
.treadmill-booking-actions .btn{width:220px;min-width:220px;max-width:100%;justify-content:center;text-align:center;box-sizing:border-box}
.treadmill-booking-actions .btn-danger{background:#c63d3d!important;color:#fff!important;border:1px solid #c63d3d!important;box-shadow:none}
.treadmill-booking-actions .btn-danger:hover{background:#ad3232!important;border-color:#ad3232!important}
@media(max-width:480px){.treadmill-booking-actions .btn{width:min(220px,100%);min-width:0}}

/* Gesundheit, gemeinsame Termine & Aktivitaetskalender */
.health-list,.activity-list{display:grid;gap:9px;margin-top:14px}.health-row{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(130px,1fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--app-border);border-radius:14px;background:#fafaf6}.health-row small,.health-row span,.muted{display:block;color:var(--app-muted);font-size:.72rem}.mini-danger{border:0;background:#f8e4e4;color:#a52f2f;border-radius:10px;padding:8px 10px;font-weight:800;cursor:pointer}.planning-grid{display:grid;gap:12px;margin-top:16px}.planning-card{padding:17px;border:1px solid var(--app-border);border-radius:16px;background:#fafaf6}.planning-card h3{margin:5px 0}.planning-card p{margin:0;color:var(--app-muted);font-size:.78rem}.planning-type{font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--app-primary)}.planning-members{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0}.planning-members span{padding:6px 9px;border-radius:999px;background:var(--app-surface-soft);font-size:.7rem}.planning-join{display:flex;gap:8px}.planning-join select{min-width:180px;padding:0 10px;border:1px solid var(--app-border);border-radius:11px;background:#fff}.activity-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:13px;align-items:center;padding:13px;border:1px solid var(--app-border);border-radius:14px;background:#fafaf6}.activity-date{width:54px;height:54px;border-radius:13px;background:var(--app-surface-soft);display:grid;place-items:center;align-content:center}.activity-date strong{font-size:1rem}.activity-date small{font-size:.62rem;color:var(--app-muted)}.activity-row p{margin:3px 0;color:var(--app-muted);font-size:.72rem}.activity-row>div>small{color:var(--app-muted)}.horse-health-button{background:#eef2ea!important;color:var(--app-primary)!important;border:1px solid var(--app-border)}
@media(max-width:650px){.health-row{grid-template-columns:1fr auto}.health-row>div:nth-child(2){grid-column:1/2}.planning-join{flex-direction:column}.planning-join select{height:44px;width:100%}.activity-row{grid-template-columns:54px minmax(0,1fr)}.activity-row form{grid-column:1/3}.activity-row .mini-danger{width:100%}}

.horse-card-actions{margin-left:auto;display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.horse-action-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 13px;border:1px solid #d5ddd0;border-radius:12px;background:#f8f9f5;color:#3f5943!important;text-decoration:none!important;font-size:.76rem;font-weight:800;white-space:nowrap}.horse-action-btn svg{width:16px;height:16px}
.activity-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.horse-filter{display:flex;gap:7px;overflow-x:auto;padding-bottom:5px}.horse-filter a{flex:0 0 auto;padding:9px 13px;border:1px solid #d5ddd0;border-radius:999px;background:#fffefa;color:#506252;text-decoration:none;font-size:.74rem;font-weight:800}.horse-filter a.active{background:#52684d;color:#fff;border-color:#52684d}.calendar-head{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;text-align:center;margin-bottom:18px}.calendar-head>a{width:40px;height:40px;border:1px solid #d5ddd0;border-radius:12px;display:grid;place-items:center;text-decoration:none;color:#3f5943;font-size:1.5rem;background:#fff}.calendar-head h2{margin:3px 0}.activity-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-weekday{text-align:center;padding:5px;color:#7a8479;font-size:.68rem;font-weight:850}.calendar-day{position:relative;min-height:82px;border:1px solid #e0e5dc;border-radius:13px;background:#fbfbf7;text-align:left;padding:9px;cursor:pointer;color:#26352a}.calendar-day.empty{border:0;background:transparent;pointer-events:none}.calendar-day.today{box-shadow:inset 0 0 0 2px #81977b}.calendar-day.has-activity{background:#f1f5ed}.day-number{font-weight:850}.day-count{position:absolute;right:7px;top:7px;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:#52684d;color:#fff;display:grid;place-items:center;font-size:.62rem;font-weight:900}.day-dots{position:absolute;left:9px;bottom:9px;display:flex;gap:4px}.day-dots i{width:7px;height:7px;border-radius:50%;background:#81977b}.calendar-day-details{margin-top:14px;padding:14px 16px;border-radius:14px;background:#f7f8f4;border:1px solid #e0e5dc;min-height:52px}.day-detail-title{font-size:.74rem;font-weight:900;color:#52684d;margin-bottom:8px}.day-detail-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #e3e7df;font-size:.76rem}#activityForm{display:none}#activityForm.is-open{display:block}
@media(max-width:760px){.horse-card-actions{width:100%;margin-left:0}.horse-action-btn{flex:1 1 30%}}@media(max-width:650px){.activity-toolbar{flex-direction:column;align-items:stretch}.activity-toolbar>.btn{width:100%}.activity-calendar{gap:3px}.calendar-day{min-height:59px;padding:6px;border-radius:9px}.day-count{right:4px;top:4px;min-width:18px;height:18px}.day-dots{left:6px;bottom:6px}.day-dots i{width:5px;height:5px}}
