@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

/* ==========================================================================
   M307 – Niklens Buchungsformular | MMA24aL | Aregger Nik
   style.css – Erstellt in Zusammenarbeit mit Claude (claude.ai)
   ========================================================================== */

/* ==========================================================================
   1. VARIABLEN
   ========================================================================== */

:root {
  --bg: #0d1117;
  --accent: #f6f2ec;
  --blue: #4a7fa5;
  --text: #f0ece6;
  --muted: #a0aab8;
  --border: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --error: #e05555;
}

/* ==========================================================================
   2. RESET
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   3. BODY & LAYOUT
   ========================================================================== */

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  width: 100%;
}

/* ==========================================================================
   4. HINTERGRUND
   ========================================================================== */

/* Quellenangabe 13 Start */

#bg-blur {
  position: fixed;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: url("../assets/bg.jpg") center/cover no-repeat;
  opacity: 0.4;
  z-index: -3;
  transition: background-position 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  filter: saturate(1.2) contrast(1.05);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      ellipse at 20% 20%,
      rgba(100, 160, 220, 0.25) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(140, 100, 200, 0.2) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 60% 10%,
      rgba(80, 180, 220, 0.15) 0%,
      transparent 50%
    );
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    rgba(8, 12, 20, 0.75) 0%,
    rgba(8, 12, 20, 0.6) 100%
  );
  z-index: -1;
  pointer-events: none;
}
/* Quellenangabe 13 Ende */
/* ==========================================================================
   5. HEADER
   ========================================================================== */

header {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-logo {
  height: 64px;
  margin-bottom: 8px;
}

.header-sub {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ==========================================================================
   6. PFLICHTFELD
   ========================================================================== */

.required-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}

.required {
  color: var(--error);
}

/* ==========================================================================
   7. FORM SECTIONS
   ========================================================================== */

.form-section {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   8. FELDER & LABELS
   ========================================================================== */

.field {
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.field-row .field {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ==========================================================================
   9. INPUTS, TEXTAREA, SELECT
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  padding: 13px 14px;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  backdrop-filter: blur(8px);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(74, 127, 165, 0.6);
  background: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 0 0 3px rgba(74, 127, 165, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

select {
  /* Quellenangabe 14 Start */
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a0aab8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  /* Quellenangabe 14 Ende */
}

/* ==========================================================================
   10. FEHLERMELDUNGEN
   ========================================================================== */

.error {
  display: block;
  font-size: 11px;
  color: var(--error);
  margin-top: 5px;
}

/* ==========================================================================
   11. FILE UPLOAD
   ========================================================================== */

.file-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.file-label:hover {
  border-color: var(--blue);
}

.file-icon {
  font-size: 18px;
}

/* ==========================================================================
   12. RADIO BUTTONS
   ========================================================================== */

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

input[type="radio"] {
  display: none;
}

input[type="radio"] + label {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--muted);
  margin: 0;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

input[type="radio"] + label:hover {
  border-color: var(--blue);
  color: var(--text);
  background: rgba(74, 127, 165, 0.1);
}

input[type="radio"]:checked + label {
  background: rgba(74, 127, 165, 0.3);
  border-color: rgba(74, 127, 165, 0.6);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   13. CHECKBOXES
   ========================================================================== */

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"] + label {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  color: var(--muted);
  margin: 0;
  transition: all 0.2s;
}

input[type="checkbox"] + label:hover {
  border-color: var(--blue);
  color: var(--text);
}

input[type="checkbox"]:checked + label {
  border-color: rgba(74, 127, 165, 0.6);
  background: rgba(74, 127, 165, 0.2);
  color: var(--text);
  font-weight: 600;
}

/* ==========================================================================
   14. KALENDER
   ========================================================================== */

/* Quellenangabe 15 Start */

.cal-wrap {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-header button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-header button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cal-header span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.cal-weekdays span {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  cursor: default;
  transition: all 0.15s;
}

.cal-day.empty {
  background: none;
}
.cal-day.disabled {
  color: #2a3040;
}

.cal-day.available {
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
}

.cal-day.available:hover {
  background: rgba(74, 127, 165, 0.3);
  color: var(--white);
}

.cal-day.selected {
  background: rgba(74, 127, 165, 0.4);
  color: var(--white);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Quellenangabe 15 Ende */

/* ==========================================================================
   15. ZEITSLOTS
   ========================================================================== */

/* Quellenangabe 16 Start */

.slots-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 10px;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.slot-item {
  padding: 9px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.slot-item:hover {
  border-color: rgba(74, 127, 165, 0.5);
  background: rgba(74, 127, 165, 0.15);
}

.slot-item.selected {
  background: rgba(74, 127, 165, 0.35);
  border-color: rgba(74, 127, 165, 0.6);
  color: var(--white);
  font-weight: 600;
}

.avail-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

/* Quellenangabe 16 Ende */

/* ==========================================================================
   16. CUSTOM DROPDOWN
   ========================================================================== */

/* Quellenangabe 17 Start */

.custom-select {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.custom-select-selected {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  padding: 13px 40px 13px 14px;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a0aab8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.custom-select.open .custom-select-selected {
  border-color: rgba(74, 127, 165, 0.6);
  border-radius: 0 0 10px 10px;
}

.custom-select-options {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 28, 42, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(74, 127, 165, 0.4);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  z-index: 100;
  overflow: hidden;
  max-height: 200px;
  overflow-y: auto;
}

.custom-select.open .custom-select-options {
  display: block;
}

.custom-option {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
}

.custom-option:hover {
  background: rgba(74, 127, 165, 0.15);
  color: var(--text);
}

.custom-option.selected {
  color: var(--accent);
  font-weight: 500;
}

/* Quellenangabe 17 Ende */

/* ==========================================================================
   17. SUBMIT BUTTON
   ========================================================================== */

button[type="submit"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */

footer {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  margin-top: 40px;
}

footer p {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
}

/* ==========================================================================
   19. BESTÄTIGUNGSSEITE
   ========================================================================== */

.confirm-wrap {
  text-align: center;
  padding: 48px 28px;
}

.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(74, 127, 165, 0.3);
  border: 1px solid rgba(74, 127, 165, 0.5);
  color: var(--white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(74, 127, 165, 0.2);
}

.confirm-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.confirm-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.confirm-details {
  text-align: left;
  margin-bottom: 32px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.confirm-row:last-child {
  border-bottom: none;
}

.confirm-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.confirm-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s;
}

.confirm-btn:hover {
  border-color: var(--blue);
}

/* ==========================================================================
   20. RESPONSIVE – DESKTOP
   ========================================================================== */

@media (min-width: 768px) {
  main {
    padding: 48px 24px 80px;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .slot-list {
    grid-template-columns: repeat(6, 1fr);
  }

  .header-logo {
    height: 80px;
  }
}
