/* Termin: reduzierte Konversion. Alles unter body.p-termin, Präfix tm- */
/* Navigation-Lärm weg: nur Logo und Menü-Knopf bleiben */
body.p-termin .kh nav, body.p-termin .kh .anm, body.p-termin .kh .krechts .kb { display: none; }
body.p-termin .kh .krechts { margin-left: auto; }

body.p-termin { background: var(--k-alt); }
body.p-termin .tm-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(64px, 8vw, 112px); }
body.p-termin .tm-links { position: sticky; top: 100px; }
body.p-termin .tm-kopf h1 { font-size: clamp(32px, 3.8vw, 48px); }
body.p-termin .tm-lead { margin: 20px 0 0; font-size: 18px; color: var(--k-ink2); max-width: 40ch; }
body.p-termin .tm-info { margin-top: 44px; display: grid; gap: 36px; }
body.p-termin .tm-info h2 { font-size: 19px; letter-spacing: -.012em; margin-bottom: 14px; }
body.p-termin .tm-fakten { margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--k-ink); }
body.p-termin .tm-fakten > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--k-line2); }
body.p-termin .tm-fakten dt { font-size: 14px; color: var(--k-mut); }
body.p-termin .tm-fakten dd { margin: 2px 0 0; font: 600 20px/1.3 var(--sans); color: var(--k-ink); letter-spacing: -.015em; }
body.p-termin .tm-liste { list-style: none; margin: 0; padding: 0; }
body.p-termin .tm-liste li { padding: 12px 0; border-top: 1px solid var(--k-line2); font-size: 15.5px; color: var(--k-text); }
body.p-termin .tm-liste li:last-child { border-bottom: 1px solid var(--k-line2); }
body.p-termin .tm-liste b { color: var(--k-ink); }

body.p-termin .tm-rechts { display: grid; gap: 24px; min-width: 0; }
body.p-termin .tm-kal { background: var(--k-ink); color: #c9d1ca; border-radius: 16px; padding: 32px 32px 32px; box-shadow: 0 30px 60px -34px rgba(13, 21, 18, .55); }
body.p-termin .tm-kal h2 { color: #f4f1ea; font-size: clamp(22px, 2.4vw, 28px); }
body.p-termin .tm-kal p { margin: 10px 0 0; color: #9aa59d; font-size: 15px; }
body.p-termin .tm-kal .cal-box { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
body.p-termin .tm-kal .cal-frame, html body.p-termin .tm-kal .cal-frame { display: block; width: 100%; height: 900px; border: 0; border-radius: 12px; background: #fff; }
body.p-termin .tm-hell { background: transparent; color: #f4f1ea; border-color: rgba(244, 241, 234, .28); }
body.p-termin .tm-hell:hover { border-color: #f4f1ea; }
body.p-termin .tm-kal .tm-hell { color: #f4f1ea; }
body.p-termin .tm-noscript { margin: 0; padding: 14px 18px; background: #fff; border: 1px solid var(--k-line2); border-radius: 12px; }

body.p-termin .tm-schrift { background: #fff; border: 1px solid var(--k-line2); border-radius: 16px; padding: 32px; }
body.p-termin .tm-schrift h2 { font-size: clamp(22px, 2.4vw, 28px); }
body.p-termin .tm-fl { margin: 8px 0 24px; color: var(--k-text); font-size: 15px; }
body.p-termin .tm-form { display: grid; gap: 22px; }
body.p-termin .feld label, body.p-termin .feld legend { display: block; margin: 0 0 8px; padding: 0; font: 600 14px/1.4 var(--sans); color: var(--k-ink); }
body.p-termin .feld .opt { font-weight: 400; color: var(--k-mut); }
body.p-termin fieldset.feld { border: 0; margin: 0; padding: 0; min-width: 0; }
body.p-termin .feld input[type=text], body.p-termin .feld input[type=email], body.p-termin .feld input[type=tel], body.p-termin .feld input[type=number], body.p-termin .feld select, body.p-termin .feld textarea { width: 100%; min-height: 52px; padding: 13px 14px; font: 400 16px/1.4 var(--sans); color: var(--k-ink); background: #fff; border: 1px solid #8b9490; border-radius: 10px; box-shadow: none; }
body.p-termin .feld textarea { min-height: 120px; resize: vertical; }
body.p-termin .feld input:focus-visible, body.p-termin .feld select:focus-visible, body.p-termin .feld textarea:focus-visible { outline: 2px solid var(--k-acc); outline-offset: 2px; border-color: var(--k-acc); box-shadow: none; }
body.p-termin .feld ::placeholder { color: #6f7872; }
body.p-termin .feld [aria-invalid=true] { border-color: #b4452b; }
body.p-termin .f2 { display: grid; gap: 22px; grid-template-columns: 1fr; }
body.p-termin .zeiten { display: flex; flex-wrap: wrap; gap: 8px; }
body.p-termin .zeiten label { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 48px; padding: 0 16px; border: 1px solid #8b9490; border-radius: 10px; font-weight: 500; color: var(--k-text); background: #fff; cursor: pointer; }
body.p-termin .zeiten label:has(input:checked) { border-color: var(--k-ink); box-shadow: inset 0 0 0 1px var(--k-ink); color: var(--k-ink); }

body.p-termin .zeiten label { position: relative; }
body.p-termin .zeiten label::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid #8b9490; background: #fff; }
body.p-termin .zeiten label:has(input:checked)::before { border-color: var(--k-ink); background: radial-gradient(circle, var(--k-ink) 0 4px, #fff 5px); }
body.p-termin .zeiten input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body.p-termin .zeiten label:has(input:focus-visible) { outline: 2px solid var(--k-acc); outline-offset: 3px; }
body.p-termin .zust { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--k-text); }
body.p-termin .zust { position: relative; min-height: 48px; }
body.p-termin .zust::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 5px; border: 1.5px solid #8b9490; background: #fff; }
body.p-termin .zust:has(input:checked)::before { border-color: var(--k-ink); background: var(--k-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
body.p-termin .zust input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body.p-termin .zust:has(input:focus-visible) { outline: 2px solid var(--k-acc); outline-offset: 4px; border-radius: 6px; }
body.p-termin .zust a { position: relative; z-index: 1; }
body.p-termin .falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.p-termin .falle input { width: 44px; height: 44px; }
body.p-termin .note { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--k-mut); }
body.p-termin .note.bad, body.p-termin .fehl { color: #a63a22; font-weight: 600; }
body.p-termin .fehl { margin: 6px 0 0; font-size: 14px; }
body.p-termin .tm-form .kb { width: auto; }

body.p-termin .tm-box[hidden], body.p-termin .tm-danke[hidden], body.p-termin #tform-box[hidden] { display: none; }
body.p-termin .tm-danke { padding: 8px 0 0; }
body.p-termin .tm-danke h2 { font-size: 26px; margin-bottom: 12px; }
body.p-termin .tm-danke textarea { width: 100%; min-height: 160px; font: 14px/1.5 var(--sans); padding: 12px; border: 1px solid #8b9490; border-radius: 10px; background: #fff; color: var(--k-ink); }
body.p-termin .tm-danke .tm-hell, body.p-termin .tm-schrift .tm-hell { color: var(--k-ink); border-color: var(--k-line2); background: #fff; }
body.p-termin .tm-danke .tm-hell:hover { border-color: var(--k-ink); }
body.p-termin .tm-akt { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
body.p-termin .tm-danke:focus-visible { outline: 2px solid var(--k-acc); outline-offset: 4px; }

/* Handy: erst Kalender, dann Formular, dann die Erklärungen */
@media (min-width: 640px) { body.p-termin .f2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) {
  body.p-termin .tm-grid { display: flex; flex-direction: column; gap: 24px; }
  body.p-termin .tm-links, body.p-termin .tm-rechts, body.p-termin .tm-info { display: contents; }
  body.p-termin .tm-kopf { order: 1; padding-bottom: 8px; }
  body.p-termin .tm-rechts > .tm-kal { order: 2; }
  body.p-termin .tm-rechts > noscript { order: 2; }
  body.p-termin .tm-rechts > .tm-schrift { order: 3; }
  body.p-termin .tm-info > section { order: 4; }
  body.p-termin .tm-info > section + section { order: 5; }
  body.p-termin .tm-info > section { margin-top: 16px; }
}
@media (max-width: 640px) {
  body.p-termin .tm-kal, body.p-termin .tm-schrift { padding: 24px 20px; }
  body.p-termin .tm-kal .kb { width: 100%; }
  body.p-termin .tm-form .kb { width: 100%; }
  body.p-termin .tm-kal .cal-frame, html body.p-termin .tm-kal .cal-frame { height: 1120px; }
  body.p-termin .tm-fakten dd { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { body.p-termin * { transition: none !important; } }

body.p-termin .tm-kal p a { color: #e0bd62; }

/* Mobil-Feinschliff (Runde 1) */
/* globale Regel "form label { min-height: 44px }" streckte Feldbeschriftungen; Tippziel liegt am Feld selbst */
body.p-termin .tm-form .feld > label, body.p-termin .tm-form fieldset.feld legend { min-height: 0; }
body.p-termin .feld label, body.p-termin .feld legend { font-size: 15px; }
body.p-termin .tm-lead { hyphens: none; text-wrap: pretty; }
body.p-termin .tm-fl { font-size: 16px; }
body.p-termin .zust { font-size: 16px; line-height: 1.5; padding-block: 2px; }
body.p-termin .zust a { display: inline-block; padding: 9px 2px; margin: -9px -2px; }
body.p-termin .feld input, body.p-termin .feld select, body.p-termin .feld textarea { transition: border-color .18s ease-out, box-shadow .18s ease-out; }
body.p-termin .feld input:focus-visible, body.p-termin .feld select:focus-visible, body.p-termin .feld textarea:focus-visible { box-shadow: 0 0 0 4px rgba(201, 162, 75, .24); }
body.p-termin .feld [aria-invalid=true] { border-color: #b4452b; box-shadow: 0 0 0 3px rgba(180, 69, 43, .12); }
body.p-termin .fehl { color: #a63a22; }
body.p-termin .note.bad { padding: 12px 14px; border-radius: 10px; background: #fdf1ed; border: 1px solid #e8c3b8; line-height: 1.5; }
body.p-termin .zeiten label { transition: border-color .18s ease-out, background-color .18s ease-out, transform .16s ease-out; }
body.p-termin .zeiten label:active, body.p-termin .tm-form .kb:active, body.p-termin .tm-kal .kb:active { transform: scale(.98); }
body.p-termin .tm-form .kb, body.p-termin .tm-kal .kb { transition: transform .16s ease-out, background-color .2s, border-color .2s, color .2s; }
body.p-termin .zust::before { transition: background-color .18s ease-out, border-color .18s ease-out; }
body.p-termin .tm-kal .cal-frame { animation: tm-ein .35s cubic-bezier(.23, 1, .32, 1) both; }
body.p-termin .tm-danke:not([hidden]), body.p-termin .tm-box:not([hidden]) { animation: tm-ein .35s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes tm-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  body.p-termin .tm-form { gap: 20px; }
  body.p-termin .f2 { gap: 20px; }
  body.p-termin .zeiten-v { display: grid; grid-template-columns: 1fr; }
  body.p-termin .zeiten { gap: 8px; }
  body.p-termin .zeiten:not(.zeiten-v) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.p-termin .zeiten:not(.zeiten-v) label { padding: 0 12px; gap: 8px; justify-content: flex-start; font-size: 15px; }
  body.p-termin .tm-kopf h1 { font-size: 32px; }
  body.p-termin .tm-grid { padding-top: 28px; gap: 20px; }
}
@media (max-width: 330px) { body.p-termin .zeiten:not(.zeiten-v) { grid-template-columns: 1fr; } }
@media (min-width: 641px) and (max-width: 960px) { body.p-termin .tm-lead { max-width: 52ch; } body.p-termin .tm-kal, body.p-termin .tm-schrift { padding: 28px; } }
@media (prefers-reduced-motion: reduce) { body.p-termin .tm-kal .cal-frame, body.p-termin .tm-danke, body.p-termin .tm-box { animation: none !important; } body.p-termin .tm-form .kb:active, body.p-termin .zeiten label:active { transform: none; } }
