/* =====================================================================
   Buttons & Formulare · Board „Basis 3/4“
   Regeln: Gelb (.rt-btn--book) NUR für Buchen/Verfügbarkeit, Header-Suche, Newsletter.
   Buttons rechtsbündig, nie volle Breite (Ausnahme: mobile Sheets). Icon-Buttons immer mit aria-label.
   ===================================================================== */
.rt-btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--ff-body); font-size: 16px; font-weight: 700; line-height: 1.1; text-decoration: none; white-space: nowrap;
  background: var(--c-navy); color: #fff; cursor: pointer; transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-1);
}
.rt-btn:hover { background: #142B48; color: #fff; }
.rt-btn:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
.rt-btn svg { flex: none; }
.rt-btn--book { background: var(--c-book); color: var(--c-on-book); }
.rt-btn--book:hover { background: #EDB52F; color: var(--c-on-book); }
.rt-btn--secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line-strong); }
.rt-btn--secondary:hover { background: var(--c-navy-tint); color: var(--c-ink); border-color: var(--c-navy); }
.rt-btn--ghost { background: transparent; color: var(--c-ink); }
.rt-btn--ghost:hover { background: var(--c-navy-tint); color: var(--c-ink); }
.rt-btn--link { background: transparent; color: var(--c-link); padding: 0 4px; min-height: var(--touch); text-decoration: none; font-weight: 700; }
.rt-btn--link:hover { background: transparent; color: var(--c-ink); }
.rt-btn--danger { background: var(--c-surface); color: var(--c-error); border-color: var(--c-error); }
.rt-btn--danger:hover { background: var(--c-error-bg); color: var(--c-error); }
.rt-btn--danger-solid { background: var(--c-error); color: #fff; }
.rt-btn--danger-solid:hover { background: #8C1D18; }
.rt-btn--on-dark { background: #fff; color: var(--c-ink); }
.rt-btn--on-dark:hover { background: var(--c-navy-tint); color: var(--c-ink); }
.rt-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.rt-btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.rt-btn--l { --btn-h: 56px; font-size: 17px; padding: 0 28px; }
.rt-btn--s { --btn-h: 44px; font-size: 15px; padding: 0 16px; border-radius: var(--r-sm); }
.rt-btn--block { width: 100%; }
.rt-btn[disabled], .rt-btn[aria-disabled="true"] { background: var(--c-surface-2); color: #8A97A5; border-color: transparent; cursor: not-allowed; }
.rt-btn[aria-busy="true"] { cursor: progress; pointer-events: none; }
.rt-btn[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rt-spin .8s linear infinite; }
.rt-icon-btn {
  width: var(--touch); height: var(--touch); flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border-radius: var(--r-pill); border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-navy); cursor: pointer;
}
.rt-icon-btn:hover { background: var(--c-navy-tint); }
.rt-icon-btn--solid { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.rt-icon-btn--solid:hover { background: #142B48; }
.rt-icon-btn--plain { border-color: transparent; background: transparent; }
.rt-icon-btn--on-image { border: 0; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(20,36,58,.18); width: 40px; height: 40px; }
.rt-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.rt-actions--between { justify-content: space-between; }

/* Herz / Merken */
.rt-heart[aria-pressed="true"] svg { fill: var(--c-heart); stroke: var(--c-heart); }
.rt-heart[aria-pressed="true"] { color: var(--c-heart); }
@keyframes rt-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.rt-heart.is-popping svg { animation: rt-pop var(--dur-3) var(--ease); }

/* ---------- Felder ---------- */
.rt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rt-label { font-size: 15px; font-weight: 700; color: var(--c-ink); }
.rt-label .rt-req { color: var(--c-error); margin-left: 2px; }
.rt-hint { font-size: var(--fs-caption); color: var(--c-muted); line-height: 1.45; }
.rt-input, .rt-select, .rt-textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--c-line-field); border-radius: var(--r-md);
  background: var(--c-surface); color: var(--c-ink); font-size: 16px; transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.rt-textarea { padding: 14px 16px; min-height: 120px; line-height: 1.6; resize: vertical; }
.rt-input::placeholder, .rt-textarea::placeholder { color: var(--c-placeholder); }
.rt-input:hover, .rt-select:hover, .rt-textarea:hover { border-color: var(--c-ink); }
.rt-input:focus-visible, .rt-select:focus-visible, .rt-textarea:focus-visible, .rt-input:focus, .rt-select:focus, .rt-textarea:focus { outline: none; border: 2px solid var(--c-link); box-shadow: var(--focus-halo); padding-left: 15px; }
.rt-textarea:focus { padding: 13px 15px; }
.rt-select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231E3D63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.rt-input[disabled], .rt-select[disabled], .rt-textarea[disabled] { background: var(--c-surface-2); border-color: #DDE4EA; color: #8A97A5; cursor: not-allowed; }
.rt-input[readonly] { background: var(--c-bg); border-style: dashed; border-color: var(--c-line-strong); }
.rt-field.is-invalid .rt-input, .rt-field.is-invalid .rt-select, .rt-field.is-invalid .rt-textarea, [aria-invalid="true"].rt-input, [aria-invalid="true"].rt-select, [aria-invalid="true"].rt-textarea { border: 2px solid var(--c-error); padding-left: 15px; }
.rt-field.is-valid .rt-input { border: 2px solid var(--c-success); padding-left: 15px; }
.rt-field-msg { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; font-weight: 600; line-height: 1.45; }
.rt-field-msg--error { color: var(--c-error); }
.rt-field-msg--success { color: var(--c-success); }
.rt-field-msg svg { flex: none; margin-top: 2px; }
.rt-input-wrap { position: relative; display: flex; align-items: stretch; }
.rt-input-wrap > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--c-muted); }
.rt-input-wrap > .rt-input--icon { padding-left: 44px; }
.rt-input-wrap > .rt-unit { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--c-line-field); border-left: 0; border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--c-surface-2); color: var(--c-muted); font-weight: 600; }
.rt-input-wrap > .rt-unit + .rt-input, .rt-input-wrap > .rt-input:has(+ .rt-unit) { border-radius: var(--r-md) 0 0 var(--r-md); }
.rt-counter { font-size: var(--fs-caption); color: var(--c-muted); text-align: right; }
.rt-counter.is-over { color: var(--c-error); font-weight: 700; }
.rt-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 767px) { .rt-form-grid { grid-template-columns: minmax(0, 1fr); } }
.rt-form-grid > .is-full { grid-column: 1 / -1; }

/* Checkbox / Radio / Switch (nativ, gestylt) */
.rt-check { display: flex; align-items: center; gap: 12px; min-height: var(--touch); cursor: pointer; font-size: 16px; }
.rt-check input { appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border: 2px solid var(--c-line-field); border-radius: 6px; background: var(--c-surface); display: grid; place-content: center; cursor: pointer; }
.rt-check input[type="radio"] { border-radius: 50%; }
.rt-check input:checked { background: var(--c-navy); border-color: var(--c-navy); }
.rt-check input[type="checkbox"]:checked::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.rt-check input[type="checkbox"]:indeterminate { background: var(--c-navy); border-color: var(--c-navy); }
.rt-check input[type="checkbox"]:indeterminate::after { content: ""; width: 10px; height: 2.5px; background: #fff; }
.rt-check input[type="radio"]:checked { background: var(--c-surface); border-color: var(--c-navy); }
.rt-check input[type="radio"]:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-navy); }
.rt-check input:disabled { border-color: #DDE4EA; background: var(--c-surface-2); cursor: not-allowed; }
.rt-check:has(input:disabled) { color: #8A97A5; cursor: not-allowed; }
.rt-check .rt-count { margin-left: auto; color: var(--c-muted); font-size: 14px; }
.rt-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; min-height: var(--touch); }
.rt-switch input { appearance: none; width: 52px; height: 32px; flex: none; margin: 0; border-radius: var(--r-pill); background: var(--c-line-strong); position: relative; cursor: pointer; transition: background var(--dur-2); }
.rt-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform var(--dur-2) var(--ease); }
.rt-switch input:checked { background: var(--c-navy); }
.rt-switch input:checked::after { transform: translateX(20px); }
.rt-switch__text { display: flex; flex-direction: column; }
.rt-switch__text b { font-size: 16px; }
.rt-switch__text span { font-size: 14px; color: var(--c-muted); }

/* Stepper (Gäste) */
.rt-stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.rt-stepper + .rt-stepper { border-top: 1px solid var(--c-line); }
.rt-stepper__label { display: flex; flex-direction: column; }
.rt-stepper__label b { font-size: 16px; color: var(--c-ink); }
.rt-stepper__label span { font-size: 14px; color: var(--c-muted); }
.rt-stepper__ctrl { display: flex; align-items: center; gap: 14px; }
.rt-stepper__ctrl button { width: var(--touch); height: var(--touch); border-radius: 50%; border: 1px solid var(--c-line-field); background: var(--c-surface); color: var(--c-navy); display: grid; place-items: center; padding: 0; }
.rt-stepper__ctrl button:hover { background: var(--c-navy-tint); }
.rt-stepper__ctrl button[aria-disabled="true"], .rt-stepper__ctrl button:disabled { opacity: .4; cursor: not-allowed; }
.rt-stepper__ctrl output { min-width: 20px; text-align: center; font-weight: 700; font-size: 18px; }

/* Upload */
.rt-drop { border: 2px dashed var(--c-line-field); border-radius: var(--r-lg); padding: 28px; text-align: center; background: var(--c-bg); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rt-drop.is-over { border-color: var(--c-link); background: var(--c-navy-tint); }
.rt-upload-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rt-upload-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.rt-upload-item__thumb { width: 44px; height: 36px; border-radius: 8px; background: var(--c-surface-2) center / cover; }
.rt-progress { height: 6px; border-radius: 3px; background: var(--c-surface-2); overflow: hidden; margin-top: 6px; }
.rt-progress > span { display: block; height: 100%; background: var(--c-navy); }
.rt-progress.is-done > span { background: var(--c-success); }
.rt-progress.is-error > span { background: var(--c-error); }

/* Formular-Fehlerzusammenfassung (Typ B, siehe feedback.css) */
.rt-form-summary a { color: inherit; font-weight: 700; }
