/* =========================================================================
   Sommerfest – Toastmasters Club Berliner Rhetorikmeister
   CSS recreation of the printed flyer.
   ========================================================================= */

:root {
  --navy: #14213b;
  --navy-2: #1d2e52;
  --navy-deep: #0f1830;
  --teal: #14524d;
  --teal-2: #0e3f3b;
  --kraft: #ead9b8;
  --kraft-2: #e2cb9e;
  --kraft-line: #c9ad77;
  --red: #c0322b;
  --red-2: #9e231d;
  --orange: #f08a24;
  --orange-2: #e2741a;
  --yellow: #ffd23f;
  --yellow-ink: #ffe07a;
  --green: #3a9d4a;
  --maroon: #8e2747;
  --cream: #fff8ea;
  --ink: #20304f;
  --shadow: 0 18px 40px rgba(15, 24, 48, .28);
  --radius: 22px;
  --maxw: 860px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

.is-hidden { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.5;
  background:
    radial-gradient(1200px 600px at 50% -120px, #9fd3ef 0%, #7cc0e6 30%, transparent 70%),
    linear-gradient(180deg, #8ec9e8 0%, #cfe3c4 28%, #e7c98f 60%, #d99f53 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 64px;
}

.card {
  background: rgba(255, 255, 255, .14);
  border-radius: var(--radius);
}

/* -------------------------------------------------------------- flyer hero */
.flyer-hero {
  position: relative;
  padding: 30px 0 4px;
  text-align: center;
}
.flyer-wrap {
  position: relative;
  display: inline-block;
  max-width: 820px;
  width: 100%;
}
.flyer-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 4px solid #fff;
}
/* CTA sits below the flyer (does not cover the graphic). */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow), #f0b400);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2.6vw, 22px);
  letter-spacing: .3px;
  text-decoration: none;
  border: 3px solid #fff;
  box-shadow: 0 12px 26px rgba(240,180,0,.45);
  transition: transform .08s, filter .15s;
}
.hero-cta:hover { filter: brightness(1.05); }
.hero-cta:active { transform: translateY(2px); }

/* -------------------------------------------------------------- form card */
.signup {
  margin-top: 26px;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.012) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, var(--kraft), var(--kraft-2));
  border: 2px solid var(--kraft-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 30px;
  color: #4a3a1d;
}
.signup h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  color: var(--navy);
  margin: 0;
  line-height: 1;
}
.signup .sub {
  font-family: var(--font-script);
  font-size: clamp(20px, 4vw, 28px);
  color: var(--red);
  margin: 2px 0 14px;
}
.signup .intro {
  font-size: 14.5px;
  color: #5a4625;
  max-width: 60ch;
  margin: 0 0 6px;
}
.signup .intro.small { font-size: 12.5px; color: #6b5631; margin-bottom: 18px; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--navy);
}
.field label .opt { color: #9a8554; font-weight: 700; text-transform: none; }
.field .req { color: var(--red); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #cdb583;
  border-radius: 12px;
  background: #fffdf7;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,138,36,.22);
}
.field input::placeholder { color: #b6a378; }

/* radio / choice chips */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative;
  display: inline-flex;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: 9px 16px;
  border: 2px solid #cdb583;
  border-radius: 999px;
  background: #fffdf7;
  font-weight: 700;
  font-size: 14px;
  color: #5a4625;
  cursor: pointer;
  transition: all .15s;
}
.choice input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.choice input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(240,138,36,.35);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* opt-in checkbox */
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  color: #4a3a1d;
  line-height: 1.35;
}
.check-field input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkmark {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border: 2px solid #cdb583;
  border-radius: 7px;
  background: #fffdf7;
  margin-top: 1px;
  position: relative;
  transition: all .15s;
}
.check-field input:checked + .checkmark {
  background: var(--navy);
  border-color: var(--navy);
}
.check-field input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 8px; top: 3px;
  width: 5px; height: 11px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.check-field input:focus-visible + .checkmark {
  box-shadow: 0 0 0 3px rgba(240,138,36,.35);
}
.check-text { padding-top: 1px; }

.submit {
  margin-top: 22px;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #1d2e52, var(--navy-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(15,24,48,.35);
  transition: transform .08s, filter .15s;
}
.submit:hover { filter: brightness(1.1); }
.submit:active { transform: translateY(2px); }
.submit:disabled { opacity: .6; cursor: progress; }

.form-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { background: #e2f6e4; color: #226b2c; border: 2px solid #a9dcae; }
.form-msg.err { background: #fde3e1; color: #8e231d; border: 2px solid #f0b3ae; }

/* calendar buttons (shown inside the success modal) */
.cal-title { font-weight: 800; color: var(--navy); margin: 0 0 10px; font-size: 14.5px; }
.cal-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cal-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px; border-radius: 12px;
  background: #fffdf7; border: 2px solid var(--navy);
  color: var(--navy); font-weight: 800; font-size: 14px; text-decoration: none;
  transition: background .15s, color .15s;
}
.cal-btn::before { content: "📅"; }
.cal-btn:hover { background: var(--navy); color: #fff; }
.cal-btn.google::before { content: "🗓️"; }

/* ----------------------------------------------------------------- location */
.location { margin-top: 22px; }
.loc-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #1d2e52, var(--navy-deep));
  border-radius: var(--radius) var(--radius) 0 0;
  color: #fff; text-decoration: none;
  box-shadow: var(--shadow);
}
.loc-pin { font-size: 26px; }
.loc-txt strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(17px, 3.4vw, 22px); color: #fff;
}
.loc-txt small { display: block; color: var(--yellow-ink); font-weight: 700; font-size: 13px; margin-top: 2px; }
.loc-bar:hover .loc-txt small { text-decoration: underline; }
.loc-map {
  line-height: 0;
  border: 0 solid #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.loc-map iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ----------------------------------------------------------------- venue alert */
.venue-alert {
  margin: 0 0 16px;
  padding: 16px 18px;
  background: #fff3f3;
  border: 2px solid #c0392b;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #1d2e52;
}
.venue-alert p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.va-head {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 4vw, 24px); color: #c0392b;
}
.va-list { margin: 0 0 10px; padding-left: 0; list-style: none; }
.va-list li { font-size: 15px; line-height: 1.6; }
.va-map-link {
  display: inline-block; font-weight: 700; color: #14524d;
  text-decoration: none; margin: 2px 0 10px;
}
.va-map-link:hover { text-decoration: underline; }
.va-note { font-weight: 700; margin-bottom: 0; }

/* ----------------------------------------------------------------- confetti */
.confetti-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}

/* ------------------------------------------------------------ success modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(15, 24, 48, .55);
  backdrop-filter: blur(3px);
  animation: ovIn .2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.012) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, var(--kraft), var(--kraft-2));
  border: 3px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(15,24,48,.5);
  padding: 26px 24px 24px;
  color: #4a3a1d;
  animation: cardIn .3s cubic-bezier(.2,.8,.3,1.2);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.06);
  color: var(--navy); font-size: 24px; line-height: 1;
  cursor: pointer; transition: background .15s;
}
.modal-close:hover { background: rgba(0,0,0,.14); }

.modal-emoji { font-size: 46px; line-height: 1; }
.modal-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 6vw, 32px); color: var(--navy);
  margin: 6px 0 4px;
}
.modal-sub { font-size: 14.5px; color: #5a4625; margin: 0 0 16px; }

.modal-summary {
  text-align: left;
  background: #fffdf7;
  border: 2px solid #d9c191;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
}
.modal-summary dt {
  font-weight: 800; font-size: 12px; text-transform: uppercase;
  letter-spacing: .4px; color: #9a8554; align-self: center;
}
.modal-summary dd {
  margin: 0; font-weight: 700; font-size: 15px;
  color: #8a8275;          /* grey, clearly non-editable */
}

.modal-cal { margin-bottom: 18px; }
.modal-done {
  width: 100%;
  padding: 14px 20px; border: 0; border-radius: 14px;
  background: linear-gradient(180deg, #1d2e52, var(--navy-deep));
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 18px; cursor: pointer;
  box-shadow: 0 10px 22px rgba(15,24,48,.35);
  transition: filter .15s, transform .08s;
}
.modal-done:hover { filter: brightness(1.1); }
.modal-done:active { transform: translateY(2px); }

.contact {
  text-align: center;
  margin-top: 22px;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}
.contact a { color: var(--red); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

.legal {
  text-align: center;
  color: #41506c;
  font-size: 12px;
  margin-top: 18px;
  opacity: .8;
}

/* ------------------------------------------------------- website builder credit */
.builder {
  text-align: center;
  margin-top: 14px;
  padding: 16px 16px 22px;
}
.builder-by {
  font-size: 12px;
  color: #41506c;
  margin: 0 0 8px;
}
.builder-by strong { color: #1d2e52; }
.builder-cta {
  font-size: 13px;
  font-weight: 700;
  color: #1d2e52;
  margin: 0 0 10px;
}
.builder-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.builder-links a {
  font-size: 13px;
  font-weight: 700;
  color: #1d2e52;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(29, 46, 82, .07);
  transition: background .15s ease, transform .15s ease;
}
.builder-links a:hover {
  background: rgba(29, 46, 82, .14);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------ mobile full-bleed */
@media (max-width: 640px) {
  /* Warm kraft background blends with the flyer's lower edge + the form,
     so almost no separate page background is visible. */
  body {
    background: var(--kraft);
    background-attachment: scroll;
  }

  .wrap {
    max-width: 100%;
    padding: 0;
  }

  /* Flyer fills the full screen width, edge to edge. */
  .flyer-hero { padding: 0 0 18px; }
  .flyer-wrap { max-width: 100%; display: block; }
  .flyer-img {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-cta { margin: 16px auto 0; font-size: 17px; padding: 13px 26px; }

  /* Location bar + map full width, no rounding. */
  .location { margin-top: 14px; }
  .loc-bar { border-radius: 0; }
  .loc-map { border-radius: 0; }
  .loc-map iframe { height: 220px; }

  /* Form fills the full width too, no rounded corners / side borders. */
  .signup {
    margin-top: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 24px 18px 26px;
  }

  .legal {
    margin-top: 0;
    padding: 18px 16px 24px;
  }
}

/* -------------------------------------------------------------- legal pages */
.legal-page {
  background:
    linear-gradient(0deg, rgba(255, 248, 234, .55), rgba(255, 248, 234, .55)),
    linear-gradient(180deg, var(--kraft), var(--kraft-2));
  border: 2px solid var(--kraft-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px clamp(20px, 5vw, 48px) 40px;
  margin: 26px 14px;
  color: #4a3a1d;
}
.legal-page .legal-head {
  text-align: center;
  margin-bottom: 26px;
}
.legal-page h1 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  margin: 0 0 6px;
}
.legal-page .legal-head p {
  font-family: var(--font-script);
  color: var(--red);
  font-size: 1.25rem;
  margin: 0;
}
.legal-page h2 {
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 1.18rem;
  margin: 26px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--kraft-line);
}
.legal-page h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.02rem;
  margin: 18px 0 6px;
}
.legal-page p,
.legal-page li {
  font-weight: 600;
  line-height: 1.6;
  margin: 8px 0;
}
.legal-page ul { padding-left: 1.2em; margin: 8px 0; }
.legal-page a { color: var(--red-2); font-weight: 700; }
.legal-page .legal-meta {
  font-size: .92rem;
  color: #6a5733;
  font-weight: 700;
}
.legal-page .legal-back {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  color: var(--navy);
  text-decoration: none;
  font-size: .98rem;
}
.legal-page .legal-back:hover { text-decoration: underline; }
.legal-page address {
  font-style: normal;
  font-weight: 700;
  line-height: 1.7;
}
.legal-links {
  text-align: center;
  margin: 10px 14px 0;
}
.legal-links a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  margin: 0 8px;
  font-size: .92rem;
}
.legal-links a:hover { text-decoration: underline; }
