/* CAGE QUESTS — B2B / Teamevent Anfrage-Formular (Shortcode [cq_b2b_anfrage])
   Aus dem Referenz-Prototyp, als einbettbare Sektion gescoped (.cq-b2b-section). */

.cq-b2b-section{
  position:relative;background:var(--black,#000);color:var(--white,#fff);
  padding:4rem 1.5rem;overflow:hidden;
  font-family:var(--font-primary,'Formular',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif);
  font-weight:300;line-height:1.6;
}
.cq-b2b-section *{box-sizing:border-box}

/* Ambient Orb + Grid */
.cq-b2b-section .cq-bg{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.cq-b2b-section .cq-bg::before{content:'';position:absolute;top:-20%;left:50%;transform:translateX(-50%);
  width:60vw;height:60vw;background:radial-gradient(circle,rgba(178,148,116,0.10),transparent 65%);
  /* Animation entfallen (Nadja A1, 07.09.2026): blur(60px) auf einer
     laufenden scale()-Animation rechnet in jedem Frame neu. Orb bleibt. */
  filter:blur(60px)}
.cq-b2b-section .cq-bg::after{content:'';position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,0.02) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,0.02) 1px,transparent 1px);
  background-size:60px 60px;opacity:0.5}

.cq-b2b-section .cq-form-wrap{position:relative;z-index:2;width:100%;max-width:720px;margin:0 auto}
.cq-b2b-section .cq-form-panel{
  background:rgba(255,255,255,0.04);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border:1px solid var(--glass-border,rgba(255,255,255,0.1));
  box-shadow:0 20px 50px rgba(0,0,0,0.5),inset 0 1px 0 rgba(255,255,255,0.1);
  padding:3.5rem 3rem;
}
@supports not (backdrop-filter:blur(1px)){.cq-b2b-section .cq-form-panel{background:var(--elevated,#111)}}

.cq-b2b-section .cq-eyebrow{
  display:inline-block;font-size:0.6rem;font-weight:500;letter-spacing:0.3em;
  text-transform:uppercase;color:var(--gold,#B29474);opacity:0.7;margin-bottom:0.9rem;
  border:1px solid rgba(178,148,116,0.35);padding:0.4rem 0.9rem;
}
.cq-b2b-section .cq-form-title{
  font-size:clamp(1.5rem,4vw,2.2rem);font-weight:100;letter-spacing:0.1em;
  text-transform:uppercase;line-height:1.15;margin-bottom:0.8rem;
  text-shadow:0 0 30px rgba(255,255,255,0.15),0 0 60px rgba(178,148,116,0.15);
}
.cq-b2b-section .cq-form-title em{color:var(--gold,#B29474);font-style:normal}
.cq-b2b-section .cq-form-intro{font-size:0.85rem;font-weight:300;color:rgba(255,255,255,0.55);
  line-height:1.7;margin-bottom:2.5rem;max-width:52ch}

.cq-b2b-section .cq-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem 1.4rem}
.cq-b2b-section .cq-field{display:flex;flex-direction:column;min-width:0}
.cq-b2b-section .cq-field.full{grid-column:1/-1}
/* Stern und Label sassen auf verschiedenen Groessen (0.62 vs. 0.8 rem) und
   verschiedenen Zeilenhoehen, mittig zentriert — ein Asterisk sitzt in
   seiner Glyphenbox aber oben, nicht mittig. Jetzt gleiche Groesse, keine
   eigene line-height, Ausrichtung an der Grundlinie. Der Selektor ist
   bewusst nicht mehr an .cq-label gebunden, damit der Consent-Stern
   dieselbe Regel trifft. (Nadja K4, 07.09.2026) */
.cq-b2b-section .cq-label{font-size:0.62rem;font-weight:500;letter-spacing:0.2em;text-transform:uppercase;
  color:var(--muted,#d4d4d4);margin-bottom:0.55rem;display:flex;align-items:baseline;gap:0.4rem}
.cq-b2b-section .req{color:var(--gold,#B29474);font-size:inherit}
/* W7 (Nadja R2, 17.09.2026): Der Zusatz „optional“ stand mit 30 % Weiss auf
   dem dunklen Formulargrund und war kaum noch zu lesen — wer ihn uebersieht,
   haelt das Feld fuer eine Pflichtangabe. 0.55 ist derselbe Wert, den das
   Theme sonst fuer untergeordnete Beschriftungen auf dunklem Grund nutzt
   (z. B. .cq-ev-section-sub) und hebt sich weiterhin klar vom Label ab.
   Die Checkout-Variante (.cq-optional in css/checkout.css) bleibt bewusst
   unberuehrt — anderes Gewerk. */
.cq-b2b-section .cq-label .opt{color:rgba(255,255,255,0.55);font-size:0.55rem;letter-spacing:0.15em}

.cq-b2b-section .cq-input,.cq-b2b-section .cq-select,.cq-b2b-section .cq-textarea{
  width:100%;background:rgba(0,0,0,0.4);border:1px solid var(--glass-border,rgba(255,255,255,0.1));
  color:var(--white,#fff);font-family:inherit;font-size:0.9rem;font-weight:300;
  padding:0.9rem 1rem;min-height:50px;transition:border-color .25s,background .25s;
  -webkit-appearance:none;appearance:none;border-radius:0;
}
.cq-b2b-section .cq-textarea{min-height:120px;resize:vertical;line-height:1.6}
.cq-b2b-section .cq-input::placeholder,.cq-b2b-section .cq-textarea::placeholder{color:rgba(255,255,255,0.25)}
.cq-b2b-section .cq-input:hover,.cq-b2b-section .cq-select:hover,.cq-b2b-section .cq-textarea:hover{border-color:rgba(178,148,116,0.4)}
.cq-b2b-section .cq-input:focus,.cq-b2b-section .cq-select:focus,.cq-b2b-section .cq-textarea:focus{
  outline:none;border-color:var(--gold,#B29474);background:rgba(178,148,116,0.06);
  box-shadow:0 0 0 1px rgba(178,148,116,0.3)}
.cq-b2b-section .cq-select{cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B29474' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 1rem center;padding-right:2.6rem}
.cq-b2b-section .cq-select option{background:var(--elevated,#111);color:var(--white,#fff)}

.cq-b2b-section .cq-seg{display:flex;gap:0}
.cq-b2b-section .cq-seg input{position:absolute;opacity:0;pointer-events:none}
.cq-b2b-section .cq-seg label{flex:1;text-align:center;padding:0.9rem 1rem;min-height:50px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  background:rgba(0,0,0,0.4);border:1px solid var(--glass-border,rgba(255,255,255,0.1));
  font-size:0.72rem;font-weight:500;letter-spacing:0.15em;text-transform:uppercase;
  color:rgba(255,255,255,0.6);transition:all .25s}
.cq-b2b-section .cq-seg label:first-of-type{border-right:none}
.cq-b2b-section .cq-seg label:hover{color:var(--white,#fff);border-color:rgba(178,148,116,0.4)}
.cq-b2b-section .cq-seg input:checked+label{background:linear-gradient(135deg,rgba(178,148,116,0.18),rgba(155,126,98,0.12));
  border-color:var(--gold,#B29474);color:var(--gold-light,#C8A886)}

.cq-b2b-section .cq-consent{grid-column:1/-1;display:flex;gap:0.8rem;align-items:flex-start;margin-top:0.4rem}
.cq-b2b-section .cq-consent input{appearance:none;-webkit-appearance:none;flex:0 0 20px;width:20px;height:20px;
  margin-top:2px;background:rgba(0,0,0,0.4);border:1px solid var(--glass-border,rgba(255,255,255,0.1));cursor:pointer;
  border-radius:0;transition:all .2s;position:relative}
.cq-b2b-section .cq-consent input:hover{border-color:rgba(178,148,116,0.5)}
.cq-b2b-section .cq-consent input:checked{background:var(--gold,#B29474);border-color:var(--gold,#B29474)}
.cq-b2b-section .cq-consent input:checked::after{content:'';position:absolute;left:6px;top:2px;width:5px;height:10px;
  border:solid var(--black,#000);border-width:0 2px 2px 0;transform:rotate(45deg)}
.cq-b2b-section .cq-consent label{font-size:0.72rem;font-weight:300;color:rgba(255,255,255,0.5);line-height:1.6;cursor:pointer}
.cq-b2b-section .cq-consent a{color:var(--gold,#B29474);text-decoration:underline;text-underline-offset:2px}

.cq-b2b-section .cq-error{color:var(--warn,#FFA500);font-size:0.62rem;letter-spacing:0.08em;margin-top:0.4rem;
  display:none;font-weight:400}
.cq-b2b-section .cq-field.invalid .cq-input,.cq-b2b-section .cq-field.invalid .cq-select{border-color:var(--warn,#FFA500)}
.cq-b2b-section .cq-field.invalid .cq-error{display:block}

/* Honeypot — für Menschen unsichtbar */
.cq-b2b-section .cq-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0;pointer-events:none}

.cq-b2b-section .cq-submit-row{grid-column:1/-1;margin-top:1.4rem;display:flex;flex-direction:column;gap:1rem}
.cq-b2b-section .cq-btn-primary{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  padding:1.15rem 2.2rem;min-height:56px;width:100%;
  background:linear-gradient(135deg,var(--gold,#B29474),var(--gold-dark,#9B7E62));
  border:2px solid var(--gold,#B29474);color:var(--black,#000);
  font-family:inherit;font-size:0.82rem;font-weight:600;letter-spacing:0.2em;
  text-transform:uppercase;cursor:pointer;position:relative;overflow:hidden;
  transition:all .3s;box-shadow:0 5px 20px rgba(178,148,116,0.3);border-radius:0}
.cq-b2b-section .cq-btn-primary:hover{transform:translateY(-3px);box-shadow:0 15px 40px rgba(178,148,116,0.5)}
.cq-b2b-section .cq-btn-primary:disabled{opacity:0.6;cursor:wait;transform:none}
.cq-b2b-section .cq-btn-primary span{position:relative;z-index:2}
.cq-b2b-section .cq-btn-primary .arrow{transition:transform .3s}
.cq-b2b-section .cq-btn-primary:hover .arrow{transform:translateX(5px)}
.cq-b2b-section .cq-reassure{font-size:0.66rem;color:rgba(255,255,255,0.35);letter-spacing:0.05em;
  text-align:center;line-height:1.7}
.cq-b2b-section .cq-reassure b{color:rgba(255,255,255,0.6);font-weight:500}
.cq-b2b-section .cq-formerror{grid-column:1/-1;color:var(--warn,#FFA500);font-size:0.78rem;text-align:center;display:none}

.cq-b2b-section .cq-success{display:none;text-align:center;padding:2rem 0}
.cq-b2b-section .cq-success.show{display:block;animation:cqb2bFade .6s}
@keyframes cqb2bFade{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.cq-b2b-section .cq-success-mark{width:72px;height:72px;margin:0 auto 1.8rem;border:1px solid var(--gold,#B29474);
  display:flex;align-items:center;justify-content:center;box-shadow:0 0 40px rgba(178,148,116,0.25)}
.cq-b2b-section .cq-success-mark svg{width:32px;height:32px}
.cq-b2b-section .cq-success h2{font-size:clamp(1.4rem,3.5vw,2rem);font-weight:100;letter-spacing:0.1em;
  text-transform:uppercase;margin-bottom:1rem}
.cq-b2b-section .cq-success p{font-size:0.85rem;color:rgba(255,255,255,0.55);line-height:1.8;max-width:44ch;margin:0 auto 0.6rem}
.cq-b2b-section .cq-ticket{margin-top:2rem;font-size:0.6rem;letter-spacing:0.25em;text-transform:uppercase;
  color:var(--gold,#B29474);opacity:0.6}

/* Eingebettet in die Firmenevents-CTA-Sektion: kein doppeltes Padding/Hintergrund */
.cq-cta-final .cq-b2b-section{padding:1.5rem 0 0;background:transparent}
.cq-cta-final .cq-b2b-section .cq-bg{display:none}

@media (max-width:600px){
  .cq-b2b-section .cq-form-panel{padding:2.5rem 1.5rem}
  .cq-b2b-section .cq-grid{grid-template-columns:1fr}
  .cq-b2b-section .cq-field.full,.cq-b2b-section .cq-field{grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){
  .cq-b2b-section *{animation-duration:0.01s!important;transition-duration:0.01s!important}
  .cq-b2b-section .cq-bg::before{animation:none}
}
