/* Booking slot, request, and confirmation styles for index.html. */

/* --- Booking Slot Grid (überarbeitet) --- */
.booking-slot-alert {
  max-width: 500px;
  margin: 0.25rem auto 0.6rem;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
}
.booking-slot-alert[hidden] {
  display: none;
}
.booking-slot-alert[data-variant="warning"] {
  border-color: rgba(148, 163, 184, 0.35);
  border-left: 4px solid var(--tb-green, #365945);
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  text-align: left;
  font-weight: 600;
}
.booking-slot-alert[data-variant="error"] {
  border-color: rgba(148, 163, 184, 0.35);
  border-left: 4px solid var(--app-banner-error, #593936);
  background: rgba(255, 255, 255, 0.96);
  color: var(--app-banner-error, #593936);
  text-align: left;
  font-weight: 600;
}
.booking-slot-alert[data-variant="info"] {
  border-color: rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.2);
  background: rgba(237, 243, 239, 0.92);
  color: var(--app-color-primary-active, #244130);
}
.booking-slot-alert:focus-visible {
  outline: 2px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.45);
  outline-offset: 2px;
}

.booking-slot-alert__message {
  display: inline;
}

.booking-slot-alert__actions {
  display: inline-flex;
  margin-left: 0.65rem;
}

.booking-slot-alert__button,
.slots-load-error__button {
  appearance: none;
  border: 1px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--app-color-primary, #365945);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.booking-slot-alert__button {
  padding: 0.2rem 0.55rem;
}

.booking-slot-alert__button:disabled,
.slots-load-error__button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.booking-slot-grid {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: nowrap;
  cursor: default;
  gap: 0.55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  user-select: none; /* verhindert Textmarkierung beim Drag */
  padding: 3px 12px 8px;
  scroll-padding-inline: 12px;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable both-edges; /* reserviert Platz, wo unterstützt */
}

.booking-slot-grid .no-slots-hint {
  flex: 1 0 100%;
  align-self: center;
  text-align: center;
  color: #64748b;
}

.booking-slot-grid:has(.slots-load-error) {
  width: min(100%, 560px);
  justify-content: center;
  overflow-x: visible;
}

.booking-slot-grid .slots-load-error {
  flex: 1 1 100%;
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 0.38rem;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.16);
  border-radius: 8px;
  background: rgba(247, 251, 248, 0.86);
  color: #516173;
}

.slots-load-error__title {
  color: var(--app-color-primary, #365945);
  font-weight: 800;
}

.slots-load-error__detail {
  max-width: 34rem;
  font-size: 0.94rem;
}

.slots-load-error__button {
  margin-top: 0.18rem;
  padding: 0.44rem 0.78rem;
}

.no-slots-hint__actions {
  margin-top: .35rem;
}

.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--app-color-primary, #365945);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.btn-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  text-decoration: none;
}

@media (max-width: 550px){
  .booking-slot-grid:hover,
  .booking-slot:hover {
cursor: pointer;
  }

  .booking-slot-grid.is-dragging {
  cursor: grabbing;
}

}

.booking-slot {
  flex: 0 0 auto;
  min-width: 112px;
  text-align: center;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--guided-control-border, #c6cec8);
  border-radius: var(--guided-control-radius, 12px);
  background: #fff;
  box-shadow: var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  scroll-snap-align: start;
}

.booking-slot:focus-visible {
  outline: none;
  box-shadow:
    var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
    0 0 0 3px rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.12);
}

.booking-slot .slot-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.15;
  white-space: normal;
}

.booking-slot .slot-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.booking-slot .slot-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.booking-slot.selected {
  border-color: var(--app-color-primary, #365945);
  background: rgba(237, 243, 239, 0.9);
  box-shadow:
    var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
    0 0 0 3px rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.08);
}

.booking-slot.selected .slot-date,
.booking-slot.selected .slot-time {
  color: var(--app-color-primary-active, #244130);
}

/* --- Breiter Modus: Grid-Darstellung ab 551px --- */
@media (min-width: 551px){

  .booking-slot-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow: visible;
		max-width: 540px;
		margin: 0 auto;
		justify-items: center;
  }

  .booking-slot {
    width: 100%;
    max-width: 168px;
  }

  .booking-slot:hover {
	border-color: rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.32);
	background: #f6f8f6;
  }

  /* Desktop begrenzen wir auf 12 Slots, Rest bleibt im DOM für mobile Scroll */
  .booking-slot-grid .booking-slot:nth-child(n+13) { display: none !important; }
}

/* --- Immer: Spezialfall für 1–2 Slots → mittig --- */
.booking-slot-grid:has(.booking-slot:nth-child(-n+2):last-child){
  display: flex !important;
  justify-content: center !important;
  gap: 1rem;
  overflow-x: visible;
}

/* === Slot Skeleton Loader === */
.slots-skeleton {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 120px;
}

.slots-skeleton .shimmer,
.skeleton-slot .slot-date,
.skeleton-slot .slot-time {
  background: linear-gradient(90deg, #e8eeeb 0%, #f6f8f6 42%, #e8eeeb 84%);
  background-size: 220% 100%;
  animation: slot-skeleton-shimmer 1.25s ease-in-out infinite;
}

.slots-skeleton .shimmer {
  width: 80px;
  height: 22px;
  border: 1px solid #e3ebe6;
  border-radius: 8px;
}

.skeleton-slot {
  flex: 0 0 auto;
  color: transparent;
  pointer-events: none;
  cursor: default;
  overflow: hidden;
}

.booking-slot.skeleton-slot {
  border-color: #d8e1dc;
  background: #fbfcfb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.skeleton-slot .slot-line {
  width: 100%;
  gap: 0.28rem;
}

.skeleton-slot .slot-date,
.skeleton-slot .slot-time {
  display: block;
  color: transparent;
  border-radius: 999px;
}

.skeleton-slot .slot-date {
  width: 4.6rem;
  height: 0.78rem;
}

.skeleton-slot .slot-time {
  width: 3.2rem;
  height: 0.86rem;
}

.skeleton-slot::after {
  content: none;
}

@keyframes slot-skeleton-shimmer {
  0% { background-position: 140% 0; }
  100% { background-position: -140% 0; }
}

@media (min-width: 551px) {
  .skeleton-slot {
    flex: initial;
    width: 100%;
  }
}

/* Booking Senden / Formular darunter */
/* Formular */
.booking-contact {
  display: flex;
  flex-direction: column;
  max-width: 540px;
  align-items: stretch;
  margin: 0 auto;
}

#bookingForm {
  display: none;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}
.form-status:focus-visible {
  outline: 2px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.22);
  outline-offset: 4px;
  border-radius: 10px;
}
.form-status[hidden] {
  display: none;
}
.form-status[data-state="loading"] {
  color: var(--app-color-primary, #365945);
}
.form-status[data-state="success"] {
  color: var(--app-color-primary, #365945);
}
.form-status[data-state="error"] {
  color: var(--app-banner-error, #593936);
}

input.booking-input,
textarea.booking-textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  margin-bottom: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--guided-control-border, #c6cec8);
  border-radius: var(--guided-control-radius, 12px);
  background: #fff;
  box-shadow: var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input.booking-input:-webkit-autofill,
input.booking-input:-webkit-autofill:hover{
  box-shadow:
    var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
    0 0 0 1000px #fff inset;
  -webkit-box-shadow:
    var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
    0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #111;
}

#bookingClientMessage {
  color: #000;
  font-size: 1rem;
  margin-top: 0;
  width: 100%;
  line-height: 1.4;
  resize: none;
  box-sizing: border-box;
  height: 88px;
}

.form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-field[data-invalid="true"] label {
  color: #333;
}

.booking-input:focus-visible,
.booking-textarea:focus-visible {
  outline: none;
  border-color: rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.42);
  box-shadow:
    var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
    0 0 0 3px rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.08);
}

input.booking-input:-webkit-autofill:focus-visible{
  box-shadow:
    var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
    0 0 0 3px rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.08),
    0 0 0 1000px #fff inset;
  -webkit-box-shadow:
    var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
    0 0 0 3px rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.08),
    0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #111;
}

.form-field[data-invalid="true"] .booking-input,
.form-field[data-invalid="true"] .booking-textarea {
  border-color: #64748b;
  background: #f8fafc;
}

.form-field[data-invalid="true"] .booking-input:focus-visible,
.form-field[data-invalid="true"] .booking-textarea:focus-visible {
  outline-color: rgba(100, 116, 139, 0.18);
  border-color: #475569;
  box-shadow:
    var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
    0 0 0 3px rgba(100, 116, 139, 0.14);
}

@supports not selector(:focus-visible) {
  .booking-input:focus,
  .booking-textarea:focus {
    outline: none;
    border-color: rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.42);
    box-shadow:
      var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
      0 0 0 3px rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.08);
  }

  input.booking-input:-webkit-autofill:focus{
    box-shadow:
      var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
      0 0 0 3px rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.08),
      0 0 0 1000px #fff inset;
    -webkit-box-shadow:
      var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
      0 0 0 3px rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.08),
      0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #111;
  }

  .form-field[data-invalid="true"] .booking-input:focus,
  .form-field[data-invalid="true"] .booking-textarea:focus {
    outline: none;
    border-color: #475569;
    box-shadow:
      var(--guided-control-shadow, 0 1px 2px rgba(15, 23, 42, 0.06)),
      0 0 0 3px rgba(100, 116, 139, 0.14);
  }

  .booking-slot:focus {
    outline: 2px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.45);
    outline-offset: 4px;
  }

  .booking-slot-alert:focus {
    outline: 2px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.45);
    outline-offset: 2px;
  }

  .form-status:focus {
    outline: 2px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.22);
    outline-offset: 4px;
    border-radius: 10px;
  }

  .confirm-status:focus {
    outline: 3px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.2);
    outline-offset: 3px;
  }
}

.form-field label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #333;
}

.booking-field-error {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #475569;
  text-align: left;
}

.booking-field-error[hidden] {
  display: none;
}

.booking-textarea {
  resize: none;
  box-sizing: border-box;
  height: 88px;
}

.booking-submit {
  margin: 0.5rem auto 0;
  width: min(100%, 360px);
  min-height: 44px;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--app-color-primary, #365945);
  border-radius: var(--guided-control-radius, 12px);
  background-color: var(--app-color-primary, #365945);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-family-base);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--guided-cta-shadow, 0 12px 24px rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.18));
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  text-align: center;
}
.booking-submit:hover { background-color: var(--app-color-primary-hover, #2d4a39); border-color: var(--app-color-primary-hover, #2d4a39); }

.booking-submit:active { transform: translateY(1px); box-shadow: none; }

.booking-submit[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}
.booking-submit[disabled]:hover {
  background-color: var(--app-color-primary, #365945);
  border-color: var(--app-color-primary, #365945);
}

.booking-row {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  margin: 0.85rem 0 0;
}
.booking-input.half {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .booking-row {
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.75rem;
  }
}

@media (max-width: 520px) {
  #bookingClientMessage,
  textarea.booking-textarea {
    height: 72px;
  }
}

/* Confirmation Modal */
.confirm-backdrop{
  padding:24px;
  background:rgba(17,24,39,.48);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}

.confirm-modal{
  width:min(560px, 100%);
  max-height:calc(100vh - 48px);
  max-height:calc(100dvh - 48px);
  overflow:auto;
  padding:30px 34px 28px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  box-shadow:0 24px 70px rgba(15,23,42,.28);
  gap:0;
}

.confirm-close{
  position:absolute;
  top:12px;
  right:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  padding:0;
  color:#64748b;
  opacity:1;
}

.confirm-close svg{
  width:18px;
  height:18px;
}

.confirm-close[disabled]{
  cursor:not-allowed;
  opacity:.35;
}

.confirm-header{
  display:grid;
  grid-template-columns:48px minmax(0, 1fr);
  column-gap:16px;
  row-gap:4px;
  align-items:start;
  padding-right:38px;
  text-align:left;
}

.confirm-icon{
  grid-row:1 / span 3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:999px;
  background:#edf7f1;
  color:var(--app-color-primary, #365945);
  box-shadow:inset 0 0 0 1px rgba(var(--app-color-primary-rgb, 54, 89, 69), .14);
}

.confirm-icon svg{
  width:27px;
  height:27px;
}

.confirm-kicker{
  margin:1px 0 0;
  color:var(--app-color-primary, #365945);
  font-size:.92rem;
  font-weight:700;
  line-height:1.2;
}

.confirm-header h2{
  margin:0;
  color:#16231b;
  font-size:1.38rem;
  font-weight:700;
  line-height:1.18;
  letter-spacing:0;
}

.confirm-sub{
  margin:0;
  color:#475569;
  font-size:1rem;
  font-weight:400;
  line-height:1.5;
}

.confirm-header .confirm-sub{
  margin-top:4px;
}

.confirm-sub strong{
  color:#16231b;
  font-weight:700;
  overflow-wrap:anywhere;
}

.confirm-body{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:22px;
  text-align:left;
}

.confirm-email-panel{
  display:grid;
  grid-template-columns:30px minmax(0, 1fr);
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border:1px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), .16);
  border-radius:8px;
  background:#f7fbf8;
}

.confirm-email-panel__icon{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:999px;
  background:#fff;
  color:var(--app-color-primary, #365945);
  box-shadow:inset 0 0 0 1px rgba(var(--app-color-primary-rgb, 54, 89, 69), .14);
}

.confirm-email-panel__icon svg{
  width:18px;
  height:18px;
}

.confirm-email-panel__copy{
  align-self:center;
}

.confirm-summary{
  display:grid;
  gap:0;
  margin:0;
  padding:2px 0;
  color:#1f2937;
  font-size:1rem;
  line-height:1.35;
  text-align:left;
  border-top:1px solid rgba(148,163,184,.28);
  border-bottom:1px solid rgba(148,163,184,.28);
}

.confirm-summary[hidden]{
  display: none;
}

.confirm-summary__row{
  display:grid;
  grid-template-columns:92px minmax(0, 1fr);
  column-gap:12px;
  align-items:baseline;
  padding:11px 0;
  border-top:1px solid rgba(148,163,184,.2);
}

.confirm-summary__row[hidden]{
  display: none;
}

.confirm-summary__row:first-child{
  border-top:0;
}

.confirm-summary dt,
.confirm-summary dd{
  margin: 0;
}

.confirm-summary dt{
  color:#64748b;
  font-size:.94rem;
  font-weight:700;
}

.confirm-summary dd{
  min-width:0;
  color:#16231b;
  font-weight:600;
  overflow-wrap:anywhere;
}

.confirm-footer{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-top:2px;
}

.confirm-actions{
  margin-top:0;
}

.confirm-actions .modal-shell__btn{
  min-width:148px;
}

.confirm-secondary-actions{
  display:flex;
  justify-content:center;
  gap:12px 18px;
  flex-wrap:wrap;
  max-width:100%;
}

.confirm-text-action{
  background:none;
  border:0;
  padding:0;
  font:inherit;
  max-width:100%;
  color:var(--app-color-primary, #365945);
  cursor:pointer;
  font-weight:600;
  line-height:1.35;
  text-decoration:none;
  border-bottom:1px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), .38);
  white-space:normal;
  overflow-wrap:anywhere;
}

.confirm-text-action:hover,
.confirm-text-action:focus-visible{
  color:var(--app-color-primary-active, #244130);
  border-bottom-color:currentColor;
}

.confirm-text-action--danger{
  color:var(--app-banner-error, #593936);
  border-bottom-color:currentColor;
}

.confirm-text-action--danger:hover,
.confirm-text-action--danger:focus-visible{
  color:var(--app-banner-error, #593936);
}

.confirm-text-action[disabled],
.confirm-text-action[aria-disabled="true"],
.confirm-text-action[data-state="loading"]{
  color:#64748b;
  cursor:wait;
  opacity:1;
  border-bottom-color:transparent;
}

.overlay-dismiss-modal{
  width: min(460px, 92vw);
  padding: 1.5rem;
  text-align: center;
}

.overlay-dismiss-title{
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  color: #111827;
}

.overlay-dismiss-copy{
  margin: 0;
  line-height: 1.5;
  color: #334155;
}

.confirm-status{
  margin: 0;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 0.96rem;
  line-height: 1.45;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.9);
  color: #334155;
}

.confirm-status[hidden]{
  display: none;
}

.confirm-status[data-state="loading"]{
  border-color: rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.22);
  background: rgba(240, 247, 243, 0.98);
  color: var(--app-color-primary, #365945);
}

.confirm-status[data-state="success"]{
  border-color: rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.24);
  background: rgba(240, 247, 243, 0.98);
  color: var(--app-color-primary, #365945);
}

.confirm-status[data-state="error"]{
  border-color: rgba(148, 163, 184, 0.35);
  border-left: 4px solid var(--app-banner-error, #593936);
  background: rgba(248, 250, 252, 0.9);
  color: var(--app-banner-error, #593936);
  font-weight: 600;
}

.confirm-status:focus-visible{
  outline: 3px solid rgba(var(--app-color-primary-rgb, 54, 89, 69), 0.2);
  outline-offset: 3px;
}

.sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Link-Button im Fließtext */
.link-like:not(.confirm-text-action){
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--app-color-primary, #365945); text-decoration: underline; cursor: pointer;
}

.link-like[disabled]:not(.confirm-text-action){
  cursor: not-allowed;
  opacity: .6;
}

/* Mobile: kein Vollbild, wie Overlay – nur niedriger */
@media (max-width: 500px){
  .confirm-backdrop{
    box-sizing: border-box;
    padding: 20px;
  }

  .confirm-modal{
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    border-radius: 16px;
    padding: 24px 20px 22px;
  }

  .confirm-header{
    grid-template-columns:42px minmax(0, 1fr);
    column-gap:12px;
    padding-right:30px;
  }

  .confirm-icon{
    width:42px;
    height:42px;
  }

  .confirm-icon svg{
    width:24px;
    height:24px;
  }

  .confirm-header h2{
    font-size:1.22rem;
  }

  .confirm-body{
    gap:14px;
    margin-top:18px;
  }

  .confirm-email-panel{
    padding:13px 14px;
  }

  .confirm-summary__row{
    grid-template-columns:76px minmax(0, 1fr);
  }

  .confirm-actions,
  .confirm-actions .modal-shell__btn{
    width:100%;
  }

  .confirm-secondary-actions{
    flex-direction:column;
    align-items:center;
    gap:10px;
  }

  .overlay-dismiss-modal{
    width: min(520px, 92vw);
    padding: 16px 16px 20px;
  }

  .overlay-dismiss-actions{
    flex-direction: column;
  }
}
