/* ============================================================
   Ihr-Nordseeurlaub – Gewinnspiel Microsite
   Gemeinsame Styles für index.html und teilnahmebedingungen.html
   ============================================================ */

:root {
  --ngs-primary: #436573;
  --ngs-primary-dark: #2f4954;
  --ngs-primary-light: #dde6e8;
  --ngs-sand: #f6f1e7;
  --ngs-sand-dark: #ece3d1;
  --ngs-accent: #c97b3d;
  --ngs-accent-dark: #a8632f;
  --ngs-ink: #233538;
  --ngs-success: #3f7a53;
  --ngs-success-bg: #e7f3ea;
  --ngs-error: #b23a3a;
  --ngs-error-bg: #fbeceb;
  --ngs-radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--ngs-ink);
  background: var(--ngs-sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ngs-primary); text-decoration: underline; }
a:hover { color: var(--ngs-primary-dark); }

/* ---------- Hero ---------- */
.ngs-hero {
  position: relative;
  background: linear-gradient(160deg, var(--ngs-primary), var(--ngs-primary-dark));
  color: #fff;
  padding: 2.75rem 1.25rem 0;
  text-align: center;
  overflow: hidden;
}
.ngs-hero-photo {
  background-size: cover;
  background-position: center;
}
.ngs-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(47, 73, 84, .92), rgba(47, 73, 84, .78) 55%, rgba(67, 101, 115, .55));
}
.ngs-hero-inner { position: relative; max-width: 640px; margin: 0 auto; z-index: 1; }
.ngs-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ngs-primary-light);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin-bottom: .9rem;
}
.ngs-title {
  font-family: 'Merienda', 'Lato', cursive, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 .6rem;
}
.ngs-subtitle { font-size: 1rem; margin: 0 0 1rem; color: #eef3f4; }
.ngs-dates {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 1.75rem;
}
.ngs-wave { display: block; width: 100%; height: 42px; color: var(--ngs-sand); position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.ngs-main { max-width: 640px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.ngs-card {
  background: #fff;
  border-radius: var(--ngs-radius);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(35, 53, 56, .08);
  margin-bottom: 1.5rem;
}
.ngs-card-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.15rem; font-weight: 700; margin: 0 0 1.1rem;
}
.ngs-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--ngs-primary); color: #fff;
  font-size: .85rem; font-weight: 800; flex-shrink: 0;
}

/* ---------- Steps overview ---------- */
.ngs-steps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin: -1.75rem 0 1.5rem; position: relative; z-index: 1;
}
.ngs-step {
  background: #fff; border-radius: var(--ngs-radius); padding: 1.1rem .9rem;
  box-shadow: 0 8px 20px rgba(35, 53, 56, .1); text-align: center;
}
.ngs-step-digit {
  font-weight: 800; font-size: 1.6rem; color: var(--ngs-primary-light);
  -webkit-text-stroke: 1px var(--ngs-primary); margin-bottom: .25rem;
}
.ngs-step h3 { font-size: .92rem; margin: .15rem 0 .25rem; }
.ngs-step p { font-size: .8rem; color: #5b6e71; margin: 0; }
@media (max-width: 640px) {
  .ngs-steps { grid-template-columns: 1fr; margin-top: -1.25rem; }
}

/* ---------- Prizes ---------- */
.ngs-prizes { display: grid; gap: 1rem; }
.ngs-prize {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--ngs-sand); border-radius: 12px; padding: 1rem 1.1rem;
}
.ngs-prize.is-main { background: linear-gradient(135deg, #fff4e8, #fce8d4); border: 1.5px solid var(--ngs-accent); }
.ngs-prize-icon {
  flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--ngs-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ngs-prize.is-main .ngs-prize-icon { background: var(--ngs-accent-dark); }
.ngs-prize-icon svg { width: 1.4rem; height: 1.4rem; }
.ngs-prize-body h3 { margin: 0 0 .2rem; font-size: 1rem; }
.ngs-prize-body p { margin: 0; font-size: .87rem; color: #5b6e71; }
.ngs-prize-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ngs-accent-dark); margin-bottom: .2rem;
}

/* ---------- Form ---------- */
.ngs-field { margin-bottom: 1rem; }
.ngs-field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .35rem; }
.ngs-field .ngs-optional { font-weight: 400; color: #80918f; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; padding: .7rem .8rem; border: 1.5px solid #d4dcdd; border-radius: 9px;
  font-size: .95rem; font-family: inherit; background: #fff; color: var(--ngs-ink);
}
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--ngs-accent); outline-offset: 2px;
}
.ngs-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ngs-row-plz { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
@media (max-width: 480px) {
  .ngs-row2 { grid-template-columns: 1fr; }
  .ngs-row-plz { grid-template-columns: 1fr; }
}

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

.ngs-checkline { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .9rem; font-size: .85rem; }
.ngs-checkline input { margin-top: .2rem; width: 18px; height: 18px; flex-shrink: 0; }
.ngs-checkline.is-optional { color: #5b6e71; }

/* ---------- Buttons ---------- */
.ngs-btn {
  border: none; border-radius: 999px; padding: .65rem 1.3rem; font-size: .9rem;
  font-weight: 700; cursor: pointer; font-family: inherit;
}
.ngs-btn-primary { background: var(--ngs-primary); color: #fff; }
.ngs-btn-primary:hover { background: var(--ngs-primary-dark); }
.ngs-btn-ghost { background: transparent; color: var(--ngs-primary); border: 1.5px solid var(--ngs-primary); }
.ngs-btn-secondary { background: var(--ngs-primary-light); color: var(--ngs-primary-dark); }
.ngs-btn-cta {
  background: var(--ngs-accent); color: #fff; width: 100%; padding: .85rem 1.3rem; font-size: 1rem;
}
.ngs-btn-cta:hover { background: var(--ngs-accent-dark); }
.ngs-btn[disabled] { opacity: .6; cursor: not-allowed; }
@media (prefers-reduced-motion: no-preference) {
  .ngs-btn { transition: background-color .15s ease, transform .1s ease; }
  .ngs-btn:active { transform: translateY(1px); }
}

/* ---------- Feedback ---------- */
.ngs-feedback { margin-top: 1rem; border-radius: 10px; padding: .9rem 1rem; font-size: .9rem; display: none; }
.ngs-feedback.is-error { display: block; background: var(--ngs-error-bg); color: var(--ngs-error); }
.ngs-feedback.is-success { display: block; background: var(--ngs-success-bg); color: var(--ngs-success); }

.ngs-success-panel { display: none; text-align: center; padding: 1rem .5rem; }
.ngs-success-panel.is-visible { display: block; }
.ngs-success-panel svg { width: 52px; height: 52px; color: var(--ngs-success); margin-bottom: .75rem; }
.ngs-success-panel h3 { margin: 0 0 .4rem; }
.ngs-success-panel p { color: #5b6e71; margin: 0; font-size: .9rem; }

.ngs-footnote { font-size: .78rem; color: #80918f; text-align: center; margin-top: -.5rem; }
.ngs-legal { font-size: .78rem; color: #80918f; text-align: center; }
.ngs-back-link { display: inline-block; margin-bottom: 1rem; font-size: .85rem; font-weight: 700; }

/* ---------- Legal/Terms content (Teilnahmebedingungen) ---------- */
.ngs-legal-content h2 {
  font-size: 1.05rem; margin: 1.6rem 0 .6rem; color: var(--ngs-primary-dark);
}
.ngs-legal-content h2:first-child { margin-top: 0; }
.ngs-legal-content p, .ngs-legal-content li { font-size: .92rem; color: var(--ngs-ink); }
.ngs-legal-content ul { padding-left: 1.2rem; margin: .4rem 0 .9rem; }
.ngs-legal-content .ngs-placeholder {
  background: #fff4e8; border: 1px dashed var(--ngs-accent); color: var(--ngs-accent-dark);
  border-radius: 6px; padding: 0 .3rem; font-style: italic;
}
.ngs-placeholder-inline {
  background: #fff4e8; border: 1px dashed var(--ngs-accent); color: var(--ngs-accent-dark);
  border-radius: 6px; padding: 0 .3rem; font-style: italic; font-size: .85em;
}
