body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:radial-gradient(circle at top,#7b0010,#000);
  color:#fff;
}

/* Layout */
.hero-center{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding-top:20px;
  text-align:center;
}

.logo{
  width:220px;
  margin-bottom:10px;
}

.headline{
  font-weight:400;
  font-size:32px;
  margin-bottom:14px;
}

/* Card */
.auth-card{
  background:rgba(10,10,15,.95);
  width:420px;
  padding:36px;
  border-radius:20px;
  margin-top:18px;
}

/* Tabs */
.tabs{
  display:flex;
  justify-content:center;
  gap:40px;
  margin-bottom:22px;
}

.tab{
  background:none;
  border:none;
  color:#aaa;
  font-size:18px;
  cursor:pointer;
}

.tab.active{
  color:#ff2b3e;
  border-bottom:1px solid #ff2b3e;
  padding-bottom:4px;
}

/* Forms */
.form{ display:none; }
.form.active{ display:block; }

label{
  display:block;
  text-align:left;
  margin-top:14px;
}

/* Allgemeines Input-Styling (Textfelder etc.) */
input{
  width:100%;
  padding:14px;
  border-radius:10px;
  border:1px solid #333;
  background:#0d0d0f;
  color:#fff;
}

/* =================================================================
   !!! WICHTIGER FIX !!!
   Verhindert, dass Checkboxen und Radiobuttons 100% Breite
   und das große Padding der Textfelder erben.
================================================================= */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0; /* Zurücksetzen */
}
/* ================================================================= */

input::placeholder{ color:#777; }

input:focus{
  outline:none;
  border-color:#555;
}

/* Checkbox Container (Allgemein) */
.checkbox{
  display:flex;
  /* align-items:center; <= Geändert zu flex-start für bessere Ausrichtung bei langen Texten */
  align-items: flex-start;
  gap:8px;
  margin-top:14px;
  font-size:14px;
  line-height: 1.4; /* Sorgt für sauberen Textfluss */
  cursor: pointer;
}

/* Feinjustierung der Checkbox im allgemeinen Container */
.checkbox input[type="checkbox"] {
  margin-top: 3px; /* Schiebt die Box optisch auf die Höhe der ersten Textzeile */
  flex-shrink: 0;
}

/* Buttons */
.btn{
  margin-top:22px;
  padding:16px;
  border-radius:12px;
  font-size:17px;
  cursor:pointer;
}

.btn.primary{
  background:#ff2b3e;
  border:none;
  color:#fff;
}

.btn.outline{
  background:none;
  border:2px solid #ff2b3e;
  color:#ff2b3e;
  margin-bottom:12px;
}

/* Forgot */
.forgot{
  display:block;
  margin-top:36px; /* verdreifacht */
  text-decoration:underline;
  color:#fff;
  font-size:14px;
}

/* Footer */
.footer{
  margin-top:60px;
  font-size:14px;
}

.footer a{
  color:#fff;
  text-decoration:none;
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999;

  /* ADD: Mindestabstand oben/unten + verhindert “kleben” am Rand */
  padding: 0 16px;
  box-sizing: border-box;
}

.modal.hidden{ display:none; }

.modal-inner{
  background:#111;
  padding:30px;
  border-radius:16px;
  max-width:420px;
  text-align:center;

/* ✅ DAS IST DER ENTSCHEIDENDE TEIL */
  margin: 5vh 0;        /* Abstand zu Ober- & Unterkante */
  max-height: 70vh;     /* verhindert Überlappen */
  overflow-y: auto;     /* Scroll bei langem Inhalt */
}

/* =================================================
   MODAL TYPO – Farbfeinschliff
   (additiv, nur für das zentrale Modal)
================================================= */

.modal-inner h2,
.modal-inner h3{
  color: #ff2b3e;
}

.modal-inner p,
.modal-inner li,
.modal-inner span{
  color: #aaa;
}

/* ===============================
   Registrierung AGB Checkbox
================================ */

.agb-row{
  width: 100%;
  max-width: 100%;

  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;

  gap: 14px;
  margin: 20px 0;

  /* robust gegen äußere Flex/Grid-Kontexte */
  align-self: stretch;
  text-align: left;

  cursor: pointer;
}

/* Checkbox */
.agb-row input[type="checkbox"]{
  flex: 0 0 auto;
  flex-shrink: 0;
  /* margin-top: 4px; <= Dieser Wert kann variieren, 3px ist oft sicherer */
  margin-top: 3px;
}

/* Text (egal ob span oder label) */
.agb-row span,
.agb-row label{
  flex: 1 1 auto;
  min-width: 0;          /* 🔴 KRITISCH gegen Wort-für-Wort-Umbruch */
  line-height: 1.4;
  color: #aaa;
}

/* AGB-Link */
.agb-row a{
  color: #ff2b3e;
  font-weight: 600;
  text-decoration: underline;
}
/* =========================================================
   AGB – finale Übersteuerung gegen globale Checkbox-Regeln
   (entscheidend & minimal)
========================================================= */

form#register .agb-row{
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
}

form#register .agb-row input[type="checkbox"]{
  flex: 0 0 auto !important;
  /* margin-top: 4px !important; <= Auch hier auf 3px angepasst für Konsistenz */
  margin-top: 3px !important;
}

form#register .agb-row span{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  line-height: 1.4;
  color: #aaa;
}

/* =========================================
   DATEI UPLOAD & CLEAR BUTTON
========================================= */

/* Container für Input + Button nebeneinander */
.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Das Input-Feld soll den verfügbaren Platz nutzen */
.file-input-wrapper input[type="file"] {
  flex: 1;
}

/* Der Löschen-Button (Kreis) */
.clear-file-btn {
  width: 38px;       /* Größe des Kreises */
  height: 38px;
  padding: 8px;      /* Abstand zum Icon innen */
  border-radius: 50%;
  border: none;
  background: #e5e7eb; /* Hellgrauer Hintergrund */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;      /* Verhindert Quetschen */
  margin-top: 0;       /* Reset von globalen Button-Styles */
  transition: background 0.2s;
}

.clear-file-btn:hover {
  background: #d1d5db; /* Etwas dunkler beim Drüberfahren */
}

/* Das Icon selbst */
.clear-file-btn img {
  width: 100%;
  height: 100%;
  display: block;
  /* SVG ist standardmäßig schwarz, das passt */
}

/* Falls der Button global versteckt wird durch das 'hidden' Attribut */
.clear-file-btn[hidden] {
  display: none;
}