/* Terminbuchung – Fenster (Handy: Vollbild von unten) */
.tm-open,.tm-open body{overflow:hidden}
.tm-shade{position:fixed;inset:0;z-index:200;background:rgba(5,30,24,.5);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:grid;place-items:center;padding:20px;opacity:0;transition:opacity .22s ease}
.tm-shade.on{opacity:1}
.tm{width:100%;max-width:560px;max-height:min(760px,calc(100dvh - 40px));background:#fff;border-radius:26px;box-shadow:var(--sh-float);display:flex;flex-direction:column;overflow:hidden;transform:translateY(16px) scale(.98);transition:transform .32s var(--ease)}
.tm-shade.on .tm{transform:none}
.tm-top{display:flex;align-items:center;gap:12px;padding:18px 20px 12px}
.tm-adv{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.tm-adv img{width:44px;height:44px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px var(--gold2)}
.tm-adv b{display:block;font-size:15px;line-height:1.3}.tm-adv span{font-size:13px;color:var(--mut)}
.tm-x{width:40px;height:40px;border:0;border-radius:50%;background:var(--cream);font-size:22px;line-height:1;cursor:pointer;flex:none}
.tm-prog{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:0 20px}
.tm-prog i{height:4px;border-radius:9px;background:var(--line)}.tm-prog i.on{background:var(--g6)}
.tm-body{padding:20px;overflow-y:auto;flex:1;-webkit-overflow-scrolling:touch}
.tm-body h2{font-size:clamp(22px,4vw,26px);font-weight:600;letter-spacing:-.025em;line-height:1.2}
.tm-sub{color:var(--mut);font-size:15px;margin:6px 0 16px}
.tm-sub b{color:var(--ink)}
.tm-link{border:0;background:none;color:var(--g6);font-weight:600;text-decoration:underline;cursor:pointer;padding:0;font-size:inherit}
.tm-int{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tm-int button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:92px;padding:14px;border:0;border-radius:16px;background:var(--cream);box-shadow:inset 0 0 0 1.5px var(--line);text-align:left;font-weight:600;font-size:15px;line-height:1.25;color:var(--ink);cursor:pointer;transition:box-shadow .2s,background-color .2s,transform .2s var(--spring)}
.tm-int button svg{color:var(--g6)}
.tm-int button em{position:absolute;top:12px;right:12px;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--line2);background:#fff}
.tm-int button[aria-pressed=true]{background:var(--g1);box-shadow:inset 0 0 0 2px var(--g6)}
.tm-int button[aria-pressed=true] em{background:var(--g6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;box-shadow:none}
.tm-int button:active{transform:scale(.97)}
.tm-days{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x mandatory;scrollbar-width:none}
.tm-days::-webkit-scrollbar{display:none}
.tm-days button{flex:none;scroll-snap-align:start;width:64px;padding:9px 0;border:0;border-radius:14px;background:var(--cream);box-shadow:inset 0 0 0 1.5px var(--line);display:flex;flex-direction:column;align-items:center;gap:1px;cursor:pointer;color:var(--ink)}
.tm-days button small{font-size:12px;color:var(--mut)}.tm-days button b{font-size:20px}
.tm-days button.on{background:var(--g8);box-shadow:none;color:#fff}.tm-days button.on small{color:#bfe0d3}
.tm-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:6px}
.tm-slots button{height:48px;border:0;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line2);font-weight:600;font-size:15px;cursor:pointer;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.tm-slots button small{font-size:10px;font-weight:500;color:var(--mut2)}
.tm-slots button.on{background:var(--g8);color:#fff;box-shadow:none}
.tm-slots button:disabled{opacity:.45;cursor:not-allowed;text-decoration:line-through}
.tm-form{display:flex;flex-direction:column;gap:12px}
.tm-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--ink2)}
.tm-form small{font-weight:400;color:var(--mut2)}
.tm-form input:not([type=checkbox]),.tm-form textarea{width:100%;font:inherit;font-size:16px;font-weight:400;padding:13px 14px;border:0;border-radius:12px;background:var(--cream);box-shadow:inset 0 0 0 1.5px var(--line);outline:none;color:var(--ink);resize:vertical}
.tm-form input:focus,.tm-form textarea:focus{box-shadow:inset 0 0 0 2px var(--g5);background:#fff}
.tm-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
.tm-consent{flex-direction:row!important;align-items:flex-start;gap:10px!important;font-weight:400!important;font-size:13px!important;line-height:1.45;color:var(--mut)!important}
.tm-consent input{width:20px;height:20px;flex:none;margin-top:1px;accent-color:var(--g8)}
.tm-ts:empty{display:none}
.tm-err{color:#b3261e;font-weight:600;font-size:14px;margin-top:12px;min-height:0}
.tm-err:empty{display:none}
.tm-foot{display:flex;gap:10px;padding:12px 20px;border-top:1px solid var(--line);background:#fff}
.tm-foot .btn{height:50px;flex:1}.tm-foot .tm-next{flex:2}
.tm-foot .btn:disabled{opacity:.45;pointer-events:none}
.tm-wa{display:flex;align-items:center;justify-content:center;gap:8px;padding:0 20px 16px;background:#fff;color:var(--g7);font-weight:600;font-size:14px;text-decoration:none}
.tm-done{text-align:center;padding:20px 0}
.tm-done p{color:var(--mut);margin:8px auto 18px;max-width:38ch}
.tm-ok{width:64px;height:64px;border-radius:50%;background:var(--g1);color:var(--g7);display:grid;place-items:center;margin:0 auto 14px}
@media(max-width:560px){
  .tm-shade{padding:0;place-items:end stretch}
  .tm{max-width:none;max-height:none;height:100dvh;border-radius:0;transform:translateY(30px)}
  .tm-top{padding-top:calc(14px + env(safe-area-inset-top))}
  .tm-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .tm-slots{grid-template-columns:repeat(3,1fr)}
}
.btn-wa{background:#1f9d55;color:#fff;box-shadow:0 8px 20px -8px rgba(31,157,85,.6)}
.hero-alt{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.row-btns{display:flex;gap:10px;flex-wrap:wrap}
.tm-foot[hidden],.tm-wa[hidden]{display:none!important}
.hd .nav a,.hd .tel{white-space:nowrap}
.hero-wa{margin-top:12px;font-size:14.5px;color:var(--mut)}.hero-wa a{color:var(--g7);font-weight:600}
