/* CareManagement – Kontaktformular (nur care_management.php) */
.cm-contact{position:relative;padding:70px 0 90px;}
.cm-contact h2{font-size:36px;margin:0 0 10px;color:#2f3753;}
.cm-intro{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:25px;margin-bottom:40px;}
.cm-intro-text{flex:1 1 380px;}
.cm-intro-text p{margin:0;font-size:18px;}
.cm-person{display:flex;align-items:center;gap:16px;background:#f7f5fc;border-radius:12px;padding:14px 22px 14px 14px;}
.cm-person img{width:72px;height:72px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 3px #fff,0 0 0 5px #b8399f;}
.cm-person-quote{font-family:'Playfair Display',serif;font-style:italic;font-size:19px;color:#2f3753;line-height:1.3;}
.cm-person-name{font-weight:700;color:#2f3753;margin-top:4px;}
.cm-person-role{font-size:13px;color:#7f5bc6;letter-spacing:.03em;}

.cm-cards{display:flex;align-items:stretch;gap:0;}
.cm-card{position:relative;flex:1 1 0;display:flex;flex-direction:column;text-align:left;background:#fff;border:2px solid #e6e1f3;border-radius:14px;padding:30px 30px 26px;cursor:pointer;font:inherit;color:#2f3753;box-shadow:0 6px 24px rgba(47,55,83,.07);transition:border-color .3s,box-shadow .3s,opacity .3s,transform .3s;}
.cm-card:hover,.cm-card:focus{outline:none;border-color:#b9a6e8;box-shadow:0 10px 30px rgba(127,91,198,.18);transform:translateY(-2px);}
.cm-card-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:14px;margin-bottom:18px;background:linear-gradient(60deg,#b8399f 0%,#7f5bc6 55%,#4b7cc6 100%);color:#fff;font-size:26px;box-shadow:0 4px 12px rgba(127,91,198,.35);}
.cm-card-kicker{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#7f5bc6;font-weight:700;margin-bottom:6px;}
.cm-card-title{font-family:'Playfair Display',serif;font-size:26px;font-weight:700;line-height:1.2;margin-bottom:12px;}
.cm-card-text{font-size:16px;line-height:1.6;color:#555b6e;flex:1 0 auto;margin-bottom:20px;}
.cm-card-cta{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:#7f5bc6;text-transform:uppercase;font-size:14px;letter-spacing:.04em;}
.cm-card-cta .fas{transition:transform .3s;}
.cm-card.active{border-color:transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(60deg,#b8399f,#7f5bc6,#4b7cc6) border-box;box-shadow:0 12px 34px rgba(127,91,198,.25);}
.cm-card.active .cm-card-cta .fas{transform:rotate(180deg);}
.cm-card.active:after{content:"";position:absolute;left:50%;bottom:-13px;width:22px;height:22px;margin-left:-11px;background:#fff;border-right:2px solid #8a5cc0;border-bottom:2px solid #8a5cc0;transform:rotate(45deg);}
.cm-cards.has-active .cm-card:not(.active){opacity:.55;}
.cm-cards.has-active .cm-card:not(.active):hover{opacity:.9;}
.cm-or{flex:0 0 70px;display:flex;align-items:center;justify-content:center;}
.cm-or span{font-family:'Playfair Display',serif;font-style:italic;font-size:20px;color:#7f5bc6;background:#f7f5fc;border-radius:50%;width:54px;height:54px;display:flex;align-items:center;justify-content:center;}

.cm-panel{margin-top:30px;background:#fff;border:2px solid #e6e1f3;border-radius:14px;padding:35px 40px 30px;box-shadow:0 6px 24px rgba(47,55,83,.07);animation:cmIn .4s ease;}
@keyframes cmIn{from{opacity:0;transform:translateY(-10px);}to{opacity:1;transform:none;}}
.cm-panel h3{font-size:26px;margin:0 0 22px;color:#2f3753;}
.cm-field{margin-bottom:20px;}
.cm-field > label{display:block;font-weight:700;color:#2f3753;margin-bottom:6px;font-size:15px;}
.cm-field label small,.cm-topics legend small{font-weight:400;color:#7a8093;}
.cm-form input[type=text],.cm-form input[type=email],.cm-form input[type=tel],.cm-form textarea{display:block;width:100%;border:1px solid #d6d9e2;border-radius:8px;padding:11px 14px;font-size:16px;color:#2f3753;background:#fbfbfd;transition:border-color .2s,box-shadow .2s;}
.cm-form textarea{resize:vertical;min-height:140px;}
.cm-form input:focus,.cm-form textarea:focus{outline:none;border-color:#7f5bc6;box-shadow:0 0 0 3px rgba(127,91,198,.15);background:#fff;}
.cm-form .cm-invalid,.cm-form .cm-invalid:focus{border-color:#dc291a;box-shadow:0 0 0 3px rgba(220,41,26,.12);}
.cm-error-msg{display:block;color:#dc291a;font-size:13px;margin-top:5px;}

.cm-topics{border:0;padding:0;margin:0 0 24px;}
.cm-topics legend{font-size:15px;font-weight:700;color:#2f3753;margin-bottom:10px;border:0;width:auto;}
.cm-topics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.cm-topics legend{grid-column:1/-1;}
.cm-topic{position:relative;display:block;margin:0;cursor:pointer;}
.cm-topic input{position:absolute;opacity:0;}
.cm-topic > span{display:block;height:100%;border:2px solid #e6e1f3;border-radius:10px;padding:14px 16px 14px 46px;transition:all .2s;background:#fff;}
.cm-topic > span:before{content:"";position:absolute;left:16px;top:16px;width:20px;height:20px;border:2px solid #b9a6e8;border-radius:5px;background:#fff;transition:all .2s;}
.cm-topic strong{display:block;color:#2f3753;font-size:16px;}
.cm-topic em{display:block;font-style:normal;font-size:14px;line-height:1.45;color:#5b6275;margin-top:3px;}
.cm-topic input:checked + span{border-color:#7f5bc6;background:#f7f5fc;}
.cm-topic input:checked + span:before{background:#7f5bc6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center/14px no-repeat;border-color:#7f5bc6;}
.cm-topic input:focus-visible + span{box-shadow:0 0 0 3px rgba(127,91,198,.25);}
.cm-topics.cm-invalid .cm-topic > span{border-color:#f0b3ad;}

.cm-check,.cm-radio{display:flex;align-items:flex-start;gap:10px;font-weight:400;font-size:15px;line-height:1.5;color:#2f3753;margin:0 0 10px;cursor:pointer;}
.cm-check input,.cm-radio input{margin-top:4px;width:17px;height:17px;flex:0 0 17px;accent-color:#7f5bc6;}
.cm-check a{color:#7f5bc6;text-decoration:underline;}
.cm-field > label.cm-check,.cm-field > label.cm-radio{font-weight:400;}
.cm-form .cm-check.cm-invalid{color:#dc291a;border:0;box-shadow:none;}
.cm-callback{background:#f7f5fc;border-radius:10px;padding:14px 18px 6px;margin-left:15px;margin-right:15px;flex:0 0 calc(100% - 30px);max-width:calc(100% - 30px);}
.cm-callback-times{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;margin:0 0 10px 27px;font-size:15px;}
.cm-callback-times .cm-radio{margin:0;align-items:center;}
.cm-callback-times .cm-radio input{margin-top:0;}

.cm-submit{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:6px;}
.cm-submit small{color:#7a8093;}
.cm-send{display:inline-flex;align-items:center;gap:10px;border:0;border-radius:8px;padding:14px 32px;font-size:16px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#fff;cursor:pointer;background:linear-gradient(60deg,#b8399f 0%,#7f5bc6 55%,#4b7cc6 100%);background-size:160% 100%;box-shadow:0 4px 14px rgba(127,91,198,.35);transition:background-position .5s,box-shadow .3s,transform .3s;}
.cm-send:hover,.cm-send:focus{background-position:100% 0;box-shadow:0 6px 18px rgba(127,91,198,.5);transform:translateY(-1px);outline:none;}
.cm-send[disabled]{opacity:.6;cursor:wait;}

.cm-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden;}

.cm-alert{border-radius:10px;padding:16px 22px;margin-bottom:30px;font-size:16px;}
.cm-alert-ok{background:#ecf8ef;border:1px solid #9ad3a7;color:#22663a;}
.cm-alert-error{background:#fdeeed;border:1px solid #f0b3ad;color:#a3241a;}

@media (max-width:991px){
  .cm-cards{flex-direction:column;}
  .cm-or{flex:0 0 auto;padding:14px 0;}
  .cm-topics{grid-template-columns:1fr;}
  .cm-card.active:after{display:none;}
}
@media (max-width:575px){
  .cm-contact{padding:45px 0 60px;}
  .cm-card{padding:24px 22px 20px;}
  .cm-card-title{font-size:22px;}
  .cm-panel{padding:26px 20px 20px;}
  .cm-person{width:100%;}
}
