/* =========================
   ARCHIVO VARIABLE FONT (local)
   Place files here:
   /assets/fonts/Archivo-VariableFont_wdth,wght.ttf
   /assets/fonts/Archivo-Italic-VariableFont_wdth,wght.ttf
   ========================= */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root{
  --bg:#0f0f0f;
  --panel:#171717;
  --panel2:#1d1d1d;
  --text:#f1f1f1;
  --muted:#bdbdbd;
  --accent:#f0822b;
  --accent2:#f59d4c;
  --highlight:#ffe066;
}

*{ box-sizing:border-box; font-family:"Archivo", Arial, sans-serif; }

html, body { margin:0; padding:0; background:var(--bg); color:var(--text); overflow-x:hidden; }

/* HERO */
.hero{
  min-height: 260px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 56px 20px 36px;
  background:
    linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.75)),
    url("https://begeisterungsland.de/wp-content/uploads/2025/06/flux-1.1-pro-ultra_2025-06-10_15-25-49_0-scaled.jpg");
  background-size: cover;
  background-position: 50% 46%;
}
.hero-inner{ max-width: 980px; }

.team-logo{
  width: 260px;
  max-width: 70vw;
  margin: 0 auto 10px;
  display:block;
}

/* Titel-Optik kannst du später feinjustieren – aktuell: all-italic möglich via hero-title */
.hero-title{
  margin: 10px 0 10px;
  font-weight: 800;
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero-title .accent{ color: var(--accent); }
.hero-title .light{ color: #fff; }

.hero-subtitle{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 400;
}
.hero-intro{
  margin: 0 auto;
  max-width: 720px;
  font-size: 16px;
  opacity:.95;
}

/* MAIN */
.main{ padding: 10px 20px 60px; }
.bereit{
  max-width: 900px;
  margin: 0 auto;
  padding-top: 40px;
  text-align:center;
  overflow: visible;
}
.ready-title{
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 18px;
}

/* FORM/WIDGET container */
#form-or-widget{
  width:100%;
  max-width: 720px;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
  overflow: visible;
}

/* Form */
#name-form{
  width:100%;
  max-width: 500px;
  background: var(--panel);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: 34px 28px 32px;
  border-radius: 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 14px;
}

#name-form > div{ width:100%; }

#name-form input[type="text"]{
  width:100%;
  background:#000;
  padding: 16px 17px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 18px;
  color:#e5e5e5;
}

.scenario-select-wrapper{ width:100%; margin-top: 6px; }
.scenario-label{
  display:block;
  margin: 0 0 8px;
  font-size:14px;
  color: var(--muted);
  text-align:left;
}

#name-form select{
  width:100%;
  background:#000;
  padding: 16px 17px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  color:#e5e5e5;
  appearance:none;
}

/* Intro Box (Original look: dark + green glow) */
.challenge-intro {
  background: rgba(26, 26, 26, 0.82);
  border-radius: 14px;
  padding: 30px;
  max-width: 700px;
  margin: 18px auto 18px auto;
  text-align: left;
  box-shadow: 0 8px 42px rgba(0,0,0,.25), 0 0 18px rgba(91,176,47,.6);
  color: #fafafa;
}
.challenge-intro p {
  margin: 0.3em 0 !important;
  color: #e1e1e1 !important;
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: 10px !important;
}
.challenge-headline{
  font-size:24px !important;
  font-weight:700;
  margin: 0 0 10px;
}
.challenge-highlight{ color: var(--highlight); }
.challenge-subheadline{
  font-size:18px;
  font-weight:500;
  color:#e1e1e1;
  margin-bottom:15px;
}
.challenge-intro .challenge-person{ font-weight:600; }
.challenge-intro .challenge-cta{ margin-top:15px !important; }

/* Widget wrapper – bottom centered, no huge height */
#widget-center-wrapper{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:flex-end;     /* unten */
  margin-top: 18px;
  padding-bottom: 30px;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}
elevenlabs-convai{
  display:block;
  margin: 0 auto;
  position: relative;
  z-index: 50;
}

/* Buttons */
button.custom-challenge-button{
  background-image: linear-gradient(to bottom, var(--accent2), var(--accent));
  color:#fff;
  border: 1px solid #d87325;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight:700;
  font-size:16px;
  cursor:pointer;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  box-shadow: 0 4px 6px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.3);
  transition: all .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
}
button.custom-challenge-button:hover:not(:disabled){
  transform: translateY(-1px);
}
button.custom-challenge-button.secondary{
  background-image: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  color:#343a40;
  border-color:#ced4da;
  text-shadow:none;
}
button.custom-challenge-button:disabled{ opacity:.7; cursor:not-allowed; }

.custom-challenge-button .spinner{
  width: 0;
  height: 0;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,1);
  opacity: 0;
  transition: all .15s ease;
}
.custom-challenge-button.loading .spinner{
  width: 16px;
  height: 16px;
  opacity: 1;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg);} }

/* Feedback hint / waiting / button */
.feedback-hint{
  margin-top:20px;
  font-size:14px;
  color:#9a9a9a;
  line-height:1.4;
  text-align:center;
  max-width:650px;
  margin-left:auto;
  margin-right:auto;
  opacity:.9;
  display:none;
}
#feedback-container{
  width:100%;
  text-align:center;
  margin-top:25px;
  display:none;
}

.feedback-waiting{
  width:100%;
  text-align:center;
  margin-top:30px;
  display:none;
}
.feedback-waiting-inner{
  display:inline-flex;
  align-items:center;
  padding: 20px 35px;
  border-radius:14px;
  background: var(--panel2);
  box-shadow: 0 8px 28px rgba(0,0,0,.35), 0 0 20px rgba(240,130,43,.5);
  transform: scale(1.05);
}
.feedback-waiting-text{
  color:#fff;
  font-size:16px;
  font-weight:700;
  letter-spacing:.3px;
}
.feedback-waiting-spinner{
  width:34px;height:34px;
  margin-right:10px;
  animation: rotate-spinner 1s linear infinite;
}
.feedback-waiting-spinner .path{
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 1,150;
  stroke-dashoffset: 0;
  animation: dash-spinner 1.5s ease-in-out infinite;
}
@keyframes rotate-spinner{ 100%{ transform: rotate(360deg)} }
@keyframes dash-spinner{
  0%{ stroke-dasharray:1,150; stroke-dashoffset:0 }
  50%{ stroke-dasharray:110,150; stroke-dashoffset:-40 }
  100%{ stroke-dasharray:110,150; stroke-dashoffset:-120 }
}

/* Pulse when new feedback ready */
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(240,130,43,.7) }
  70%{ box-shadow:0 0 0 10px rgba(240,130,43,0) }
  100%{ box-shadow:0 0 0 0 rgba(240,130,43,0) }
}
button.new-feedback-indicator{ animation: pulse 2s infinite; }

/* Modal */
.feedback-modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.6);
  z-index:10000;
  justify-content:center;
  align-items:center;
  padding:20px;
}
.feedback-modal-overlay.visible{ display:flex; }
.feedback-modal-content{
  background:#fff;
  border-radius:12px;
  padding:30px;
  width:100%;
  max-width:650px;
  max-height:90vh;
  overflow-y:auto;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  text-align:left;
  color:#333;
}

.feedback-modal-header{
  display:flex;
  align-items:center;
  margin-bottom:25px;
  border-bottom:1px solid #e0e0e0;
  padding-bottom:20px;
}
.feedback-avatar{
  width:60px;height:60px;
  border-radius:50%;
  object-fit:cover;
  margin-right:20px;
  border:2px solid var(--accent);
  flex-shrink:0;
}
.feedback-intro-text{
  font-size:16px;
  line-height:1.5;
  color:#333;
}
.feedback-intro-text span{
  font-weight:700;
  color: var(--accent);
}
.feedback-modal-body{
  line-height:1.6;
  color:#444;
}
.feedback-modal-body h3{
  font-size:18px;
  margin:10px 0;
  color:#1a1a1a;
  border-bottom:2px solid var(--accent);
  padding-bottom:8px;
}
.feedback-modal-body h4{
  font-size:14px;
  font-weight:750;
  margin:10px 0;
  color:#333;
}
.feedback-modal-body ul{
  list-style:none;
  padding-left:20px;
  margin-bottom:10px;
  font-size:14px;
}
.feedback-modal-body li{
  padding-left:10px;
  position:relative;
  color:#444;
  font-size:14px;
  padding-bottom:5px;
}
.feedback-modal-body li::before{
  content:"■";
  position:absolute;
  left:-15px;
  top:1px;
  color: var(--accent);
  font-size:12px;
}
.feedback-modal-body p{
  margin-bottom:8px;
  color:#444;
  font-size:14px;
}
.feedback-modal-footer{
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid #e0e0e0;
  text-align:center;
}
.feedback-copy-hint{
  margin-bottom:20px;
  font-style:italic;
  font-size:14px;
  color:#6c757d;
}
.footer-buttons{
  display:flex;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
}

/* Footer */
.footer-brand{ margin-top: 34px; opacity: .9; }
.footer-text{ margin: 0 0 8px; color:#d9d9d9; font-size: 14px; }
.bgl-logo{ width: 240px; max-width: 70vw; }

/* Responsive */
@media (max-width: 1023px){
  .hero-title{ font-size: 46px; }
}
@media (max-width: 767px){
  .hero-title{ font-size: 36px; }
  .ready-title{ font-size: 28px; }
  #name-form{ padding: 28px 18px 24px; }
}