@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

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

body {
  background: radial-gradient(ellipse at center, #1a2a1a 0%, #0a0f0a 100%);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  color: #d0e8d0;
}

/* ── Wrapper ── */
.wrapper {
  max-width: 660px;
  margin: 32px auto;
  background: #0e1a0e;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #c9a84c,
    0 0 0 4px #0e1a0e,
    0 0 0 5px #c9a84c40,
    0 20px 80px rgba(0,0,0,0.8);
}

/* ── Header image ── */
.header-img {
  width: 100%;
  display: block;
  max-height: 320px;
  object-fit: cover;
  object-position: center 30%;
}

/* ── Glitter bar ── */
.glitter-bar {
  height: 3px;
  background: linear-gradient(90deg,
    #0e1a0e 0%, #c9a84c 15%, #fff8e0 30%,
    #f0d060 45%, #c9a84c 50%, #f0d060 55%,
    #fff8e0 70%, #c9a84c 85%, #0e1a0e 100%
  );
}

/* ── Title section ── */
.title-section {
  background: linear-gradient(180deg, #0e1a0e 0%, #132013 100%);
  text-align: center;
  padding: 32px 32px 24px;
}

.disco-sparkle {
  font-size: 1.2rem;
  letter-spacing: 8px;
  color: #c9a84c;
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}

.title-section h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #f0d878;
  letter-spacing: 1px;
  line-height: 1.15;
  text-shadow: 0 0 20px rgba(240,216,120,0.4), 0 2px 4px rgba(0,0,0,0.6);
}

.title-section .subtitle {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #a8c8a0;
  margin-top: 10px;
}

/* ── Content ── */
.content {
  padding: 40px 48px;
  background: #0e1a0e;
}

/* ── Section heading ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 18px;
}
.section-heading span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a8c8a0;
  flex-shrink: 0;
}
.section-heading::before,
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2a4a2a);
}
.section-heading::after {
  background: linear-gradient(90deg, #2a4a2a, transparent);
}

/* ── Info block ── */
.info-block {
  background: linear-gradient(135deg, #132013, #1a2e1a);
  border: 1px solid #2a4a2a;
  border-left: 3px solid #c9a84c;
  border-radius: 0 4px 4px 0;
  padding: 24px 28px;
  margin: 24px 0;
  position: relative;
}
.info-block::before {
  content: "✦";
  position: absolute;
  top: -10px;
  left: 20px;
  background: #0e1a0e;
  color: #c9a84c;
  font-size: 1rem;
  padding: 0 6px;
}
.info-block .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: #c9a84c;
  margin-bottom: 16px;
}
.info-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #d0e8d0;
  line-height: 1.5;
}
.info-line:last-child { margin-bottom: 0; }
.info-line .icon { flex-shrink: 0; margin-top: 2px; }
.info-line .icon svg { width: 17px; height: 17px; stroke: #c9a84c; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.info-line strong { color: #f0d878; }

/* ── Weekend box ── */
.weekend-box {
  background: #132013;
  border: 1px solid #2a4a2a;
  border-top: 2px solid #c9a84c;
  border-radius: 0 0 4px 4px;
  padding: 18px 22px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #b0ceb0;
  margin-bottom: 12px;
}
.weekend-box strong { color: #f0d878; }

/* ── Form card ── */
.form-card {
  background: #132013;
  border: 1px solid #2a4a2a;
  border-radius: 4px;
  padding: 28px 32px;
  margin-top: 8px;
}

/* ── Status toggle (Zusage / Absage) ── */
.status-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.status-toggle input[type="radio"] { display: none; }
.status-toggle label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 1px solid #2a4a2a;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  color: #7a9a7a;
  text-align: center;
  background: #0e1a0e;
}
.status-toggle label .toggle-icon { display: flex; align-items: center; justify-content: center; }
.status-toggle label .toggle-icon svg { width: 32px; height: 32px; stroke: #3a5a3a; transition: stroke 0.2s; }
.status-toggle label .toggle-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #a8c8a0;
}
.status-toggle input[value="zusage"]:checked + label {
  border-color: #c9a84c;
  background: linear-gradient(135deg, #1a2a10, #253a18);
  color: #d0e8d0;
}
.status-toggle input[value="zusage"]:checked + label .toggle-title { color: #f0d878; }
.status-toggle input[value="zusage"]:checked + label .toggle-icon svg { stroke: #c9a84c; }
.status-toggle input[value="absage"]:checked + label {
  border-color: #6a3a2a;
  background: #1a0e0e;
  color: #d0e8d0;
}
.status-toggle input[value="absage"]:checked + label .toggle-title { color: #e0a080; }
.status-toggle input[value="absage"]:checked + label .toggle-icon svg { stroke: #c07a5a; }

/* ── Form fields ── */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6a8a6a;
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  background: #0e1a0e;
  border: 1px solid #2a4a2a;
  border-radius: 3px;
  color: #d0e8d0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #c9a84c;
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* Begleitung row */
.begleitung-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.begleitung-row .form-group { margin-bottom: 0; }
.begleitung-row .form-group:last-child { min-width: 120px; }

/* ── Checkboxes (Tage) ── */
.day-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.day-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.day-check input[type="checkbox"] { display: none; }
.day-check-box {
  width: 20px;
  height: 20px;
  border: 1px solid #2a4a2a;
  border-radius: 3px;
  background: #0e1a0e;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.day-check input:checked + .day-check-box {
  background: #c9a84c;
  border-color: #c9a84c;
}
.day-check input:checked + .day-check-box::after {
  content: "✓";
  color: #0e1a0e;
  font-size: 0.75rem;
  font-weight: 700;
}
.day-check .day-label {
  font-size: 0.93rem;
  color: #b0ceb0;
  line-height: 1.4;
}
.day-check .day-label strong { color: #f0d878; }
.day-check .day-label small {
  display: block;
  font-size: 0.8rem;
  color: #5a7a5a;
}

/* ── Kinder ── */
.kinder-list { display: flex; flex-direction: column; gap: 8px; }
.kind-row {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  gap: 8px;
  align-items: center;
}
.kind-row input {
  background: #0e1a0e;
  border: 1px solid #2a4a2a;
  border-radius: 3px;
  color: #d0e8d0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 8px 10px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.kind-row input:focus { border-color: #c9a84c; }
.btn-remove-kind {
  background: none;
  border: 1px solid #3a2020;
  color: #7a4a4a;
  border-radius: 3px;
  width: 32px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-remove-kind:hover { border-color: #c06040; color: #c06040; }

.btn-add-kind {
  background: none;
  border: 1px dashed #2a4a2a;
  color: #5a7a5a;
  border-radius: 3px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  margin-top: 6px;
  transition: all 0.15s;
}
.btn-add-kind:hover { border-color: #c9a84c; color: #c9a84c; }

/* ── Submit button ── */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #1a2a10, #253a18);
  border: 1px solid #c9a84c;
  border-radius: 3px;
  color: #f0d878;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  height: 52px;
  padding: 0 24px;
  cursor: pointer;
  margin-top: 0;
  transition: all 0.2s;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-submit:hover {
  background: linear-gradient(135deg, #253a18, #2e4a20);
  box-shadow: 0 0 16px rgba(201,168,76,0.3);
}

/* ── Summary card (Bestätigungsansicht) ── */
.summary-card {
  background: #132013;
  border: 1px solid #2a4a2a;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.summary-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #1a2a1a;
  align-items: baseline;
}
.summary-row:last-child { border-bottom: none; }
.summary-label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a7a5a;
  font-weight: 500;
  padding-top: 2px;
}
.summary-value {
  font-size: 0.95rem;
  color: #d0e8d0;
  line-height: 1.5;
}
.summary-kommentar {
  font-style: italic;
  color: #a8c8a0;
}
.summary-meta .summary-label,
.summary-meta .summary-value { color: #3a5a3a; font-size: 0.78rem; }
.summary-kind {
  display: inline-block;
}
.tag-zusage-inline {
  color: #7ac87a;
  font-weight: 500;
}
.tag-absage-inline {
  color: #c07a7a;
  font-weight: 500;
}

/* ── Edit / Cancel button ── */
.btn-edit {
  width: 100%;
  background: #0e1a0e;
  border: 1px dashed #2a4a2a;
  border-radius: 3px;
  color: #6a8a6a;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 12px 24px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.btn-edit:hover { border-color: #c9a84c; color: #c9a84c; }

.btn-cancel {
  background: #0e1a0e;
  border: 1px solid #2a4a2a;
  border-radius: 3px;
  color: #5a7a5a;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  height: 52px;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-cancel:hover { border-color: #4a6a4a; color: #7a9a7a; }

/* ── Info hint (Daten bereits vorhanden) ── */
.info-hint {
  background: #0e1a0e;
  border: 1px solid #2a4a2a;
  border-left: 3px solid #5a7a5a;
  border-radius: 0 4px 4px 0;
  padding: 12px 16px;
  font-size: 0.87rem;
  color: #7a9a7a;
  margin-bottom: 16px;
}

/* ── Success banner ── */
.success-banner {
  background: linear-gradient(135deg, #1a2a10, #253a18);
  border: 1px solid #c9a84c;
  border-radius: 4px;
  padding: 20px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.success-banner .success-icon { display: flex; justify-content: center; margin-bottom: 10px; }
.success-banner .success-icon svg { width: 40px; height: 40px; }
.success-banner p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #f0d878;
}
.success-banner small { font-size: 0.82rem; color: #7a9a7a; }
.success-banner.absage {
  background: #1a0e0e;
  border-color: #6a3a2a;
}
.success-banner.absage p { color: #e0a080; }
.success-banner.absage small { color: #6a4a3a; }

/* ── Error banner ── */
.error-banner {
  background: #1a0e0e;
  border: 1px solid #6a3a2a;
  border-radius: 4px;
  padding: 14px 18px;
  color: #e0a080;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* ── Login form ── */
.login-intro {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #b0ceb0;
  margin-bottom: 24px;
}
.login-intro strong { color: #f0d878; }

/* ── Footer ── */
.footer {
  background: #080f08;
  padding: 20px 48px;
  text-align: center;
  border-top: 1px solid #1a2a1a;
}
.footer .gold-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 4px;
  color: #c9a84c;
  display: block;
  margin-bottom: 5px;
}
.footer p {
  font-size: 0.73rem;
  color: #3a5a3a;
  line-height: 1.7;
}
.footer a { color: #5a7a5a; text-decoration: none; }
.footer a:hover { color: #c9a84c; }

/* ── Hidden sections ── */
.zusage-fields { display: none; }

/* ── Unterkunft-Teaser (auf RSVP-Seite) ── */
.unterkunft-teaser {
  display: flex;
  align-items: center;
  gap: 0;
  background: #132013;
  border: 1px solid #2a4a2a;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 24px;
  transition: border-color 0.15s;
}
.unterkunft-teaser:hover { border-color: #c9a84c; }
.unterkunft-teaser-img {
  flex-shrink: 0;
  width: 100px;
  height: 72px;
  overflow: hidden;
}
.unterkunft-teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.unterkunft-teaser-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.unterkunft-teaser-label {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a7a5a;
}
.unterkunft-teaser-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #f0d878;
  line-height: 1.2;
}
.unterkunft-teaser-sub {
  font-size: 0.78rem;
  color: #5a7a5a;
}
.unterkunft-teaser-arrow {
  flex-shrink: 0;
  padding: 0 14px;
  color: #3a5a3a;
}
.unterkunft-teaser:hover .unterkunft-teaser-arrow { color: #c9a84c; }
.unterkunft-teaser-arrow svg { width: 18px; height: 18px; }

/* ── Hotel cards ── */
.hotel-card {
  background: #132013;
  border: 1px solid #2a4a2a;
  border-radius: 4px;
  padding: 20px 22px;
  margin-bottom: 14px;
  position: relative;
  transition: border-color 0.15s;
}
.hotel-card:hover { border-color: #3a5a3a; }
.hotel-card-recommended {
  border-color: #c9a84c;
}
.hotel-card-recommended:hover { border-color: #f0d878; }
.hotel-recommended-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: #c9a84c;
  color: #0e1a0e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 4px 4px;
}
.hotel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.hotel-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f0d878;
  line-height: 1.2;
}
.hotel-stars {
  font-size: 0.82rem;
  color: #c9a84c;
  margin-top: 2px;
  letter-spacing: 1px;
}
.hotel-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #f0d878;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}
.hotel-price span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: #5a7a5a;
  display: block;
}
.hotel-price-na {
  font-size: 0.75rem;
  color: #5a7a5a;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  padding-top: 4px;
}
.hotel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.htag {
  background: #0e1a0e;
  border: 1px solid #2a4a2a;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  color: #7a9a7a;
}
.hotel-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #8aaa8a;
  margin-bottom: 14px;
}
.hotel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #1a2a1a;
}
.hotel-addr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #5a7a5a;
}
.hotel-addr svg { width: 13px; height: 13px; stroke: #3a5a3a; flex-shrink: 0; }
.hotel-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #c9a84c;
  text-decoration: none;
  border: 1px solid #3a4a2a;
  border-radius: 3px;
  padding: 4px 10px;
  transition: all 0.15s;
  white-space: nowrap;
}
.hotel-link:hover { border-color: #c9a84c; color: #f0d878; }
.hotel-link svg { width: 12px; height: 12px; }
.hotel-link-phone { color: #7a9a7a; border-color: #2a3a2a; }
.hotel-link-phone:hover { color: #a8c8a0; border-color: #3a5a3a; }

/* ── Back button ── */
.btn-back {
  display: inline-flex;
  align-items: center;
  background: #0e1a0e;
  border: 1px solid #2a4a2a;
  border-radius: 3px;
  color: #7a9a7a;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-back:hover { border-color: #c9a84c; color: #c9a84c; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .wrapper { margin: 0; border-radius: 0; }
  .content { padding: 28px 24px; }
  .form-card { padding: 20px 18px; }
  .status-toggle { grid-template-columns: 1fr 1fr; }
  .begleitung-row { grid-template-columns: 1fr; }
  .footer { padding: 18px 24px; }
}
