/* Lato — Originaldateien direkt aus dem plange.de-Theme (lokal) */
@font-face { font-display: swap; font-family: "Lato"; font-style: normal; font-weight: 300;
  src: url("assets/fonts/lato/lato-v24-latin-300.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "Lato"; font-style: normal; font-weight: 400;
  src: url("assets/fonts/lato/lato-v24-latin-regular.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "Lato"; font-style: italic; font-weight: 400;
  src: url("assets/fonts/lato/lato-v24-latin-italic.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "Lato"; font-style: normal; font-weight: 700;
  src: url("assets/fonts/lato/lato-v24-latin-700.woff2") format("woff2"); }
@font-face { font-display: swap; font-family: "Lato"; font-style: normal; font-weight: 900;
  src: url("assets/fonts/lato/lato-v24-latin-900.woff2") format("woff2"); }

/* Honeypot — versteckt vor Nutzern, sichtbar für Bots */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; border: 0; }
figure { margin: 0; padding: 0; line-height: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

:root {
  --c-text: #525456;          /* Logo-Grau, Body-Text + Headlines */
  --c-orange: #f9b002;        /* Logo-Orange, Submit-Button */
  --c-orange-hover: #f5a800;
  --c-input-border: #dadada;
  --c-input-text: #5a5a5a;
  --c-link: #525456;
  --c-error: #b3261e;
  --shadow-card: 0 0 7px rgba(0, 0, 0, 0.3);
  --max-content: 980px;
  --arrow-right: url("assets/icons/arrow_right.svg");
}

body {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--c-text);
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1 0 auto;
  width: 100%;
  padding: 4rem 1.25rem 2rem;
}

#main { width: 100%; }
.article { max-width: var(--max-content); margin: 0 auto; }

/* ------ Logo ------ */
.ce_logo { text-align: center; margin-bottom: 2rem; }
.ce_logo .image_container { display: inline-block; max-width: 300px; }

/* ------ Headline + Intro ------ */
.ce_text { text-align: center; margin-bottom: 2rem; padding: 0 1rem; }
.ce_text h2 {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-text);
  margin: 0 0 1.5rem;
}
.ce_text p { margin: 0; font-size: 20px; line-height: 1.5; }

/* ------ Form Card ------ */
.ce_form {
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 64px 32px;
}

form.cff,
form#anmeldungForm { display: block; }

.formbody { display: block; }
.formbody::after,
fieldset.conditional::after,
.kind-row::after { content: ""; display: table; clear: both; }

/* ------ Widgets ------ */
.widget {
  margin-bottom: 2rem;
  width: 100%;
}
.widget.w50  { float: left; width: calc((100% - 2rem) / 2); margin-right: 2rem; margin-bottom: 1.5rem; }
.widget.w50.clr { margin-right: 0; }
.widget.w33  { float: left; width: calc((100% - 2rem) / 3); margin-right: 1rem; margin-bottom: 1.5rem; }
.widget.w33.clr { margin-right: 0; }
.widget.clear, .widget.nofloat { float: none; clear: both; }

/* ------ Text Inputs ------ */
.widget-text input,
.widget-text input[type="text"],
.widget-text input[type="email"] {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 400;
  background: #ffffff;
  color: var(--c-input-text);
  border: 2px solid var(--c-input-border);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s;
}
.widget-text input:focus {
  outline: none;
  border-color: var(--c-orange);
}
.widget-text input::placeholder { color: #9a9a9a; }

/* ------ Radios & Checkboxes ------ */
.widget-radio fieldset,
.widget-checkbox fieldset { border: 0; padding: 0; margin: 0; }

.widget-radio { margin-bottom: 1.25rem; }
.widget-radio legend {
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: 2rem;
  padding: 0;
}
.widget-radio span,
.widget-checkbox span {
  display: block;
  margin-bottom: 0.5rem;
  padding-left: 0;
  font-size: 16px;
  line-height: 1.2;
}
.widget-radio span { display: inline-block; margin-right: 1.5rem; }
.widget-radio label,
.widget-checkbox label {
  font-size: 16px;
  font-weight: 400;
  color: var(--c-text);
  cursor: pointer;
  padding-left: 10px;
  vertical-align: middle;
}
.widget-radio input[type="radio"],
.widget-checkbox input[type="checkbox"] {
  vertical-align: middle;
  accent-color: var(--c-orange);
  width: 14px;
  height: 14px;
  margin: 0;
}

.widget-checkbox { margin-bottom: 1rem; }
.widget-checkbox.datenschutz { margin-top: 1rem; }
.widget-checkbox.datenschutz span { display: block; margin-bottom: 0.85rem; align-items: flex-start; }
.widget-checkbox.datenschutz label { display: inline; font-size: 14px; line-height: 1.5; }
.widget-checkbox a { color: var(--c-link); text-decoration: underline; }

/* ------ Conditional Groups ------ */
fieldset.conditional { border: 0; padding: 0 0 0.5rem; margin: 0 0 1rem; }
fieldset.conditional[hidden] { display: none; }
fieldset.group { border: 0; padding: 0; margin: 0; }
.kind-row { position: relative; margin-bottom: 0.5rem; }

.button.add { width: 100%; margin-top: 0.25rem; }
.button.add .addfieldset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--c-text);
  font-size: 14px;
}
.button.add .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-orange);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: background .15s;
}
.button.add .addfieldset:hover .icon { background: var(--c-orange-hover); }
.button.add[hidden] { display: none; }

/* ------ Hinweistexte ------ */
.widget-explanation { color: var(--c-text); font-size: 14px; margin-top: 1rem; }
.widget-explanation p { margin: 0 0 0.5rem; line-height: 1.5; }
.widget-explanation a { color: var(--c-link); text-decoration: underline; }
.widget-explanation + .widget-explanation { text-align: right; }

/* ------ Submit Button (Pille mit Pfeil rechts) ------ */
.widget-submit {
  margin-top: 2.5rem;
  text-align: center;
  width: 100%;
  float: none;
  clear: both;
}

.submit {
  position: relative;
  display: inline-block;
  background: var(--c-orange);
  color: var(--c-text);
  border: 0;
  border-radius: 40px;
  padding: 20px 70px 20px 30px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  min-width: 180px;
  max-width: 300px;
  cursor: pointer;
  transition: background .2s;
}
.submit::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: var(--arrow-right) no-repeat 0 0 / contain;
  transition: transform .35s;
}
.submit:hover { background: var(--c-orange-hover); }
.submit:hover::after { transform: translateX(8px); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: 0.6; cursor: not-allowed; }
.submit:disabled::after { display: none; }

/* ------ Status messages ------ */
.form-message {
  margin: 1rem 0 0;
  font-size: 15px;
  min-height: 1.2em;
}
.form-message.success {
  padding: 14px 16px;
  background: #eaf4ec;
  color: #1f6b35;
}
.form-message.error {
  padding: 14px 16px;
  background: #fdecea;
  color: var(--c-error);
}

/* ------ Footer ------ */
.page-footer {
  text-align: center;
  font-size: 13px;
  color: var(--c-text);
  padding: 2rem 1rem;
  opacity: 0.7;
}
.page-footer a { color: var(--c-text); text-decoration: underline; }

/* ------ Responsive ------ */
@media (max-width: 700px) {
  .container { padding: 2rem 1rem; }
  .ce_form { padding: 2rem 1.25rem; }
  .ce_text h2 { font-size: 28px; }
  body, .ce_text p { font-size: 18px; }
  .widget.w50, .widget.w33 { float: none; width: 100%; margin-right: 0; }
}

/* ------ Inline-Validierung ------ */
.widget.has-error input[type="text"],
.widget.has-error input[type="email"] {
  border-color: var(--c-error);
}
.widget.has-error input[type="checkbox"],
.widget.has-error input[type="radio"] {
  outline: 2px solid var(--c-error);
  outline-offset: 2px;
  border-radius: 2px;
}
.field-error {
  display: block;
  margin-top: 6px;
  color: var(--c-error);
  font-size: 13px;
  line-height: 1.4;
}
.widget-radio.has-error .field-error,
.widget-checkbox.has-error .field-error {
  margin-top: 8px;
  margin-left: 0;
}

/* ------ Thank-you screen ------ */
body.submitted #anmeldungForm { display: none; }
.thanks {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 540px;
  margin: 0 auto;
  animation: thanks-in .35s ease-out both;
}
.thanks-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: thanks-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.thanks h3 {
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-text);
  margin: 0 0 1rem;
}
.thanks p {
  margin: 0 0 1rem;
  font-size: 18px;
  line-height: 1.5;
}
.thanks .thanks-mail {
  color: var(--c-text);
  opacity: 0.75;
  font-size: 16px;
}
.thanks .thanks-redirect {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
  opacity: 0.85;
}
.thanks .thanks-redirect a {
  color: var(--c-orange);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--c-orange);
  padding-bottom: 1px;
}
.thanks .thanks-redirect a:hover { color: var(--c-orange-hover); border-bottom-color: var(--c-orange-hover); }
.redirect-counter {
  display: inline-block;
  min-width: 1.2em;
  font-weight: 700;
  color: var(--c-orange);
}

@keyframes thanks-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes thanks-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
