@charset "utf-8";

/* =========================================================
   Diver on Tour – Veranstaltungsbuchung
   Datei: /assets/css/veranstaltung-buchen.css
   ========================================================= */

:root {
  --dot-bg: #f4f8f9;
  --dot-card: #ffffff;
  --dot-primary: #063f46;
  --dot-primary-soft: #0b5f68;
  --dot-primary-dark: #042f35;
  --dot-accent: #f4b23f;
  --dot-text: #13282d;
  --dot-muted: #64757a;
  --dot-border: #d8e5e8;
  --dot-danger: #b3261e;
  --dot-success: #116b35;
  --dot-radius: 18px;
  --dot-shadow: 0 16px 38px rgba(6, 63, 70, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--dot-bg);
  color: var(--dot-text);
}

.dot-booking-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 72px;
}

.dot-booking-intro,
.dot-booking-card {
  background: var(--dot-card);
  border: 1px solid var(--dot-border);
  border-radius: var(--dot-radius);
  box-shadow: var(--dot-shadow);
  padding: clamp(20px, 3vw, 34px);
  min-width: 0;
  max-width: 100%;
}

.dot-booking-intro {
  margin-bottom: 24px;
}

.dot-booking-intro h2,
.dot-booking-card h2 {
  margin: 0 0 16px;
  color: var(--dot-primary);
  line-height: 1.2;
}

.dot-booking-card h3 {
  margin: 24px 0 14px;
  color: var(--dot-primary);
  font-size: 1.15rem;
  line-height: 1.25;
}

.dot-booking-intro p,
.dot-booking-card p {
  color: var(--dot-text);
  line-height: 1.7;
}

.dot-booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  gap: 24px;
  align-items: start;
  max-width: 100%;
  min-width: 0;
}

.dot-booking-form {
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
}

.dot-booking-summary {
  position: sticky;
  top: 18px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.dot-two,
.dot-three {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
}

.dot-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dot-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: block;
  margin: 0 0 7px;
  color: var(--dot-primary);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--dot-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--dot-text);
  font: inherit;
  padding: 12px 13px;
  outline: none;
  min-width: 0;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--dot-primary-soft);
  box-shadow: 0 0 0 3px rgba(11, 95, 104, 0.14);
}

.dot-selected-event {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef7f8;
  border: 1px solid var(--dot-border);
  line-height: 1.55;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dot-selected-event strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dot-primary);
}

.dot-muted {
  color: var(--dot-muted);
  font-size: 0.96rem;
}

.dot-check-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dot-check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--dot-text);
  font-weight: 400;
  line-height: 1.55;
}

.dot-check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.dot-check-row a {
  color: var(--dot-primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dot-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.dot-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 14px 24px;
  min-height: 50px;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dot-btn:hover {
  transform: translateY(-2px);
}

.dot-btn-primary {
  background: var(--dot-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(6, 63, 70, 0.24);
}

.dot-btn-primary:hover {
  background: var(--dot-primary-soft);
}

.dot-btn-secondary {
  background: #eef7f8;
  color: var(--dot-primary);
  border: 1px solid var(--dot-border);
}

.dot-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.dot-msg {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.dot-ok {
  background: #e8f7ee;
  color: var(--dot-success);
  border: 1px solid rgba(17, 107, 53, 0.22);
}

.dot-err {
  background: #fff0ee;
  color: var(--dot-danger);
  border: 1px solid rgba(179, 38, 30, 0.22);
}

/* =========================================================
   Buchungsübersicht – eng, sauber innerhalb der Karte
   ========================================================= */

.dot-summary-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
}

.dot-summary-card h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

#summaryRows {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 14px 0;
  overflow: hidden;
}

.dot-summary-row {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 0 10px;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--dot-border);
  overflow: hidden;
}

.dot-summary-row span {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: normal !important;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.35;
}

.dot-summary-row span:first-child {
  margin-bottom: 3px;
  color: var(--dot-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dot-summary-row span:last-child {
  color: var(--dot-primary);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
}

.dot-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 14px;
  border-top: 3px solid var(--dot-accent);
  color: var(--dot-primary);
  font-size: 1rem;
  font-weight: 900;
  overflow: hidden;
}

.dot-total span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dot-total span:last-child {
  text-align: right;
  white-space: nowrap;
  font-size: 1.02rem;
}

.dot-summary-card .dot-muted {
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#availablePlaces,
#availablePlacesAside {
  color: var(--dot-primary);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .dot-booking-grid {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
    gap: 18px;
  }

  .dot-summary-card {
    padding: 16px;
  }

  .dot-summary-row span:last-child {
    font-size: 0.82rem;
  }
}

@media (max-width: 980px) {
  .dot-booking-grid {
    grid-template-columns: 1fr;
  }

  .dot-booking-summary {
    position: static;
  }

  .dot-summary-card {
    padding: 20px;
  }

  .dot-summary-row span:first-child {
    font-size: 0.86rem;
  }

  .dot-summary-row span:last-child {
    font-size: 0.95rem;
  }
}

@media (max-width: 720px) {
  .dot-booking-wrap {
    width: min(100% - 20px, 1180px);
    margin: 24px auto 48px;
  }

  .dot-two,
  .dot-three {
    grid-template-columns: 1fr;
  }

  .dot-btns {
    flex-direction: column;
  }

  .dot-btn {
    width: 100%;
  }

  .dot-total {
    grid-template-columns: 1fr;
  }

  .dot-total span:last-child {
    text-align: left;
    white-space: normal;
  }
}