:root{
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;

  --border: #d1d5db;

  --yes: #1a7f37;
  --no:  #b00020;

  --primary: #2563eb;
  --primaryHover: #1d4ed8;

  --heart: #e11d48;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden; /* NIE scrollen */
}

/* =========================
   LAYOUT
   ========================= */

.layout2{
  height: 100vh;
  width: 100vw;
  display: grid;
  grid-template-columns: 1fr 1fr; /* links Poster, rechts Formular */
  align-items: center;
  padding: 32px;
}

/* =========================
   POSTER (PC & Handy gleiches Verhältnis)
   ========================= */

.video-tile{
  width: 520px;              /* PC Größe */
  max-width: 92vw;

  aspect-ratio: 1 / 1;      /* GENAU wie Bild 2 */
  border-radius: 22px;
  overflow: hidden;

  background: #000;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);

  margin: 0 auto;
}

.video-tile video,
.video-tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* NEU: sichtbarer Bereich nach unten verschieben */
  object-position: center 75%;

  display: block;
}


/* =========================
   FORMULAR
   ========================= */

.form-area2{
  display: grid;
  place-items: center;
}

.form-card{
  width: 100%;
  max-width: 460px;
  background: var(--card);
  padding: 34px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 18px 55px rgba(0,0,0,0.16);
}

/* Typo */
h1{
  margin: 0 0 6px 0;
  font-size: 28px;
}

p{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 14px;
}

/* Inputs */
.input-wrap{
  display: flex;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 11px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  align-items: center;
  background: #fff;
}

.input-wrap i{
  color: var(--muted);
  width: 18px;
  text-align: center;
}

input{
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}

/* Buttons */
.btn-row{
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

button{
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
}

.yes{ background: var(--yes); }
.no{  background: var(--no); }

.status{
  margin-top: 12px;
  min-height: 18px;
  color: #374151;
}

/* =========================
   MOBILE (FINAL FIX)
   ========================= */

@media (max-width: 980px){

  body{
    overflow: hidden;
  }

  .layout2{
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
    align-content: start;
    justify-items: center;
  }

  /* Poster bleibt quadratisch, wird nur kleiner */
  .video-tile{
    width: 92vw;
    max-width: 360px;

    aspect-ratio: 1 / 1;
    max-height: 38vh;      /* SCHLÜSSEL: kein Scrollen */

    margin-top: 22px;      /* weiter nach unten */
  }

  .form-card{
    max-width: 360px;
    padding: 22px;
  }

  h1{ font-size: 22px; }
  p{ font-size: 13px; margin-bottom: 12px; }

  .btn-row{
    flex-direction: column;
    gap: 10px;
  }

  button{
    width: 100%;
  }
}

/* Sehr kleine Geräte */
@media (max-height: 720px){
  .video-tile{
    max-height: 32vh;
  }

  .form-card{
    padding: 18px;
  }
}

/* =========================
   DANKE-SEITE (FINAL)
   ========================= */

body.thanks-page{
  background: #f3f4f6;
  overflow: hidden;
}

.thanks-wrap{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.thanks-card{
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 18px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 18px 55px rgba(0,0,0,0.16);
}

.thanks-icon{
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.thanks-icon i{
  font-size: 44px;
  color: #e11d48;
}

.thanks-title{
  margin: 0 0 8px 0;
  font-size: 24px;
  color: #111827;
}

.thanks-text{
  margin: 0 0 16px 0;
  color: #6b7280;
  font-size: 14px;
}

.thanks-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;

  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}

.thanks-btn:hover{
  background: #1d4ed8;
}

@media (max-width: 600px){
  .thanks-card{
    padding: 22px;
    border-radius: 16px;
  }

  .thanks-title{
    font-size: 20px;
  }

  .thanks-icon i{
    font-size: 40px;
  }
}

.site-footer{
  margin-top: 16px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.site-footer a{
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover{
  text-decoration: underline;
}

/* Damit der Footer auf der Startseite wirklich unten klebt */
.site-footer-absolute{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  padding: 0 12px;
}


