/* =========================================================
   FERRA Festival × MiXery — Datenschutz & Anmeldung
   Light theme adapted from mixery.de:
   white surfaces, Inter (body 400 / headings 800),
   brand red #E01D30 (sampled from the X logo) and the
   berry ramp used for the hero band.
   ========================================================= */

:root {
  /* Brand */
  --red:        #e01d30;   /* logo + primary CTA          */
  --red-dark:   #b3121f;
  --berry:      #a81e4e;   /* hero band mid               */
  --plum:       #6e0a32;   /* hero band deep              */
  --magenta:    #c8285a;
  --berry-grad: linear-gradient(105deg, #6e0a32 0%, #932045 45%, #b02252 100%);

  /* Surfaces */
  --bg:         #ffffff;
  --surface:    #fafafa;
  --surface-2:  #f4f4f6;
  --line:       #eaeaea;
  --line-strong:#d8d8dd;

  /* Text */
  --text:       #171717;
  --muted:      #5c5c66;
  --dim:        #8a8a94;

  --radius:     4px;
  --radius-lg:  10px;
  --maxw:       1120px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  /* Lange Komposita ("Datenschutzinformationen") sprengen sonst auf
     schmalen Viewports die Zeile. lang="de" steht am <html>. */
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 29, 48, 0.30);
  transition: color .16s ease, border-color .16s ease;
}
a:hover { color: var(--red-dark); border-bottom-color: var(--red-dark); }

strong { font-weight: 700; color: var(--text); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Eyebrow / kicker ---------- */
/* Kicker sitting on the berry band */

/* ---------- Site header (white, like mixery.de) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  /* Deckend: bei Transparenz scheint der Inhalt durch und der
     multiply-Blend des Logos rechnet gegen den Scroll-Inhalt. */
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.brand { display: inline-flex; align-items: center; border: 0; }
.brand:hover { border: 0; }
.brand__logo {
  display: block;
  width: auto;
  height: 58px;
  /* The asset is a JPG on white — multiply keeps it seamless on the
     white header and on the sticky translucent state. */
  mix-blend-mode: multiply;
}

/* ---------- Hero: berry band ---------- */
.hero {
  position: relative;
  padding: 64px 0 60px;
  background: var(--berry-grad);
  color: #fff;
  overflow: hidden;
}
/* Oversized watermark X, echoing the mixery.de hero */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  background: url("mixery-x.jpg") center / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 0;
  color: #fff;
}

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Consent callout ---------- */
.req { color: var(--red); font-weight: 700; }

/* ---------- Info card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  border-color: rgba(224, 29, 48, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(23, 23, 23, 0.07);
}
.card h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.94rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 14px;
}
.card p, .card address {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  font-style: normal;
}
.card--wide { grid-column: 1 / -1; }

.rights { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.rights li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 44px 0 60px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer__legal { font-size: 12.5px; color: var(--dim); }

/* ---------- Buttons ---------- */

/* =========================================================
   Brevo form — restyled onto the light MiXery surface.
   The embed ships inline styles, so overrides need !important.
   ========================================================= */

.form-shell { max-width: none; }

.sib-form {
  padding: 0 !important;
  background: transparent !important;
  text-align: left !important;
  font-family: var(--font) !important;
}
.sib-form .sib-form-container { max-width: none !important; }

/* Die vier Textfelder liegen zweispaltig, alles andere ueber die volle
   Breite. Es werden nur Klassen an bestehende Divs gehaengt - die
   DOM-Struktur, auf die Brevos main.js zugreift, bleibt unveraendert. */
#sib-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
}
#sib-form > .fld--full { grid-column: 1 / -1; }

/* Brevo gibt jedem Block padding: 0 16px. Das schob Felder und Button
   gegenueber Trennlinie und Checkbox nach innen. */
#sib-container .sib-form-block { padding: 0 !important; }

/* Brevo legt um jedes Feld einen zweiten Rahmen (.entry__field: 1px
   Border + eigener Fokus-Schein in Hellblau). Der schob das Eingabefeld
   1px nach innen und doppelte unseren Rahmen. */
#sib-container .entry__field {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
#sib-container .entry__field:focus-within { box-shadow: none !important; }

#sib-container {
  max-width: none !important;
  padding: 34px 32px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  text-align: left !important;
  font-family: var(--font) !important;
}

/* Labels */
#sib-container .entry__label {
  font-family: var(--font) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  margin-bottom: 8px !important;
}
#sib-container .entry__label[data-required]::after {
  content: " *";
  color: var(--red);
}

/* Inputs */
#sib-container .input,
#sib-container input[type="text"] {
  width: 100% !important;
  padding: 14px 16px !important;
  background: #fff !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  transition: border-color .16s ease, box-shadow .16s ease;
}
#sib-container .input:hover { border-color: #b4b4bc !important; }
#sib-container .input:focus {
  outline: none !important;
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(224, 29, 48, 0.16) !important;
}
#sib-container input::placeholder { color: #a6a6ae !important; font-family: var(--font) !important; }
#sib-container input:-ms-input-placeholder { color: #a6a6ae !important; }

/* Helper text */
#sib-container .entry__specification {
  font-family: var(--font) !important;
  font-size: 12.5px !important;
  color: var(--dim) !important;
  margin-top: 7px !important;
}

/* Field-level errors */
#sib-container .entry__error {
  font-family: var(--font) !important;
  font-size: 13.5px !important;
  color: #8c1420 !important;
  background-color: #fdecee !important;
  border-color: rgba(224, 29, 48, 0.45) !important;
  border-radius: var(--radius) !important;
}

/* Brevos Haengeeinzug fuer das Inline-Layout aufheben, sonst schiebt
   text-indent:-1.5em die erste Textzeile unter das Kaestchen. */
#sib-container .entry__choice {
  padding-left: 0 !important;
  text-indent: 0 !important;
}
#sib-container .entry__choice .checkbox { margin-right: 0 !important; }

/* Checkboxes (Brevo swaps the native box for a styled span) */
#sib-container .entry_mcq .entry__choice label,
.consent-check {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
#sib-container .entry__choice span:not(.checkbox),
.consent-check__text {
  font-family: var(--font) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--muted) !important;
  background: transparent !important;
}
#sib-container .entry__choice p { margin: 0 !important; }

#sib-container .checkbox,
.consent-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
  margin: 2px 0 0 !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 3px !important;
  background: #fff !important;
  background-image: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
#sib-container .input_replaced:checked + .checkbox {
  background: var(--red) !important;
  border-color: var(--red) !important;
}
/* Fokus-Ring: Brevo liefert hier ein helles Blau (#c9e1f4). */
#sib-container .input_replaced:focus + .checkbox,
#sib-container .input_replaced:active + .checkbox {
  box-shadow: 0 0 0 3px rgba(224, 29, 48, 0.16) !important;
}
/* Eigene Checkbox: echtes input mit appearance:none -> SVG-Haken. */
.consent-check input[type="checkbox"]:checked {
  background: var(--red) !important;
  border-color: var(--red) !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
  background-size: 14px 14px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.consent-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Submit button */
#sib-container .sib-form-block__button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  justify-content: center !important;
  padding: 16px 30px !important;
  background: var(--red) !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  color: #fff !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
#sib-container .sib-form-block__button:hover {
  background: var(--red-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(224, 29, 48, 0.28);
}

/* Global success / error panels */
.sib-form-message-panel {
  max-width: none !important;
  margin: 0 0 18px !important;
  border-radius: var(--radius-lg) !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
}
#error-message {
  color: #8c1420 !important;
  background-color: #fdecee !important;
  border-color: rgba(224, 29, 48, 0.45) !important;
}
#success-message {
  color: #0d5c31 !important;
  background-color: #e9faf1 !important;
  border-color: rgba(19, 206, 102, 0.55) !important;
}

.form-divider {
  height: 1px;
  margin: 4px 0 6px;
  background: var(--line);
}

/* ---------- Thank-you page ---------- */
.thanks {
  padding: 92px 0 84px;
  text-align: center;
  background: var(--berry-grad);
  color: #fff;
}
.thanks__inner { max-width: 660px; margin-inline: auto; }
.thanks__badge {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 46px rgba(110, 10, 50, 0.35);
}
.thanks__badge svg { width: 42px; height: 42px; }
.thanks h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
}
.thanks__lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.90); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header__inner { min-height: 68px; }
  .brand__logo { height: 46px; }
  .hero { padding: 60px 0 54px; }
  .hero::after { width: 300px; right: -110px; opacity: 0.30; }
  .section { padding: 58px 0; }
  .wrap { padding-inline: 20px; }
  .consent { padding: 26px 22px; }
  #sib-container { padding: 26px 20px !important; }
  #sib-form { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
