/* ============================================================
   FC AUGSBURG – Zentrales Stylesheet für CloudPages
   Einbindung: <link rel="stylesheet" href="https://cloud.1907.fcaugsburg.de/styleCSS_test">
   Aufbau: .fca-body (Hintergrund) > .fca-glass (Karte)
           .fca-glass enthält .fca-bildslot (Bild bündig oben) + .fca-inhalt
   ============================================================ */

/* ---------- VARIABLEN ---------- */
:root {
  --fca-rot: #D80E16;
  --fca-rot-dunkel: #79242F;
  --fca-gruen: #00462D;
  --fca-dunkelgruen: #062D22;
  --fca-weiss: #FFFFFF;
  --fca-grau: #F4F6F5;
  --fca-linie: #E3E6E8;
  --fca-text: #1A1A1A;
  --fca-muted: #6B7280;
  --fca-font: 'Segoe UI', Verdana, Geneva, Arial, Helvetica, sans-serif;
  --fca-bg: url("https://www.fcaugsburg.de/media/fca/default/0002/24/29e9449f64d747cdbf9e8b93e15249898d71e74f.jpeg");
}

/* ---------- BASICS ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
}

body {
  font-family: var(--fca-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fca-text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- HINTERGRUND ---------- */
.fca-body {
  background: var(--fca-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  border: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ---------- WEISSE KARTE ---------- */
.fca-glass {
  background: var(--fca-bg);
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
  margin: 40px 20px 50px 20px;
  width: 100%;
  max-width: 760px;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

/* Bild bündig am oberen Kartenrand */
.fca-bildslot {
  width: 100%;
  line-height: 0;
}

.fca-bildslot img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
}

/* Innenabstand für den Inhalt */
.fca-inhalt {
  padding: 40px 44px 44px 44px;
}

/* ---------- TYPOGRAFIE ---------- */
h1 {
  font-family: var(--fca-font);
  font-size: 28px;
  line-height: 1.25;
  color: var(--fca-dunkelgrün);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
  color: var(--fca-dunkelgrün);
  font-weight: 700;
  margin-bottom: 16px;
}

h3 {
  font-size: 19px;
  color: var(--fca-dunkelgruen);
  font-weight: 700;
  margin: 32px 0 6px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--fca-linie);
}

h4 {
  font-size: 17px;
  color: var(--fca-dunkelgrün);
  margin: 16px 0 10px 0;
}

p {
  margin-bottom: 12px;
}

a {
  color: var(--fca-dunkelgruen);
}

.subtitle {
  color: var(--fca-muted);
  font-size: 16px;
  margin-bottom: 22px;
}

.intro-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fca-text);
  margin-bottom: 20px;
  text-align: justify;
  hyphens: auto;
}

.intro-text a {
  color: var(--fca-dunkelgruen);
  text-decoration: underline;
}

.hint {
  font-size: 14px;
  color: var(--fca-muted);
  margin: 0 0 12px 0;
  font-style: italic;
}

.kleingedruckt {
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.h3notbold {
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 5px;
}

.ueschrift {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- INFOBOXEN ---------- */
.fca-facts {
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--fca-grau);
  border-left: 4px solid var(--fca-gruen);
  border-radius: 6px;
}

.fca-facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 8px;
}

.fca-facts dt {
  font-weight: 700;
  color: var(--fca-dunkelgruen);
  font-size: 14px;
}

.fca-facts dd {
  margin: 0;
  font-size: 15px;
}

.fca-hinweis {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 6px;
  background: #FDF2F4;
  border-left: 4px solid var(--fca-rot);
  font-size: 15px;
}

/* ---------- AUFKLAPPER (DETAILS) ---------- */
details {
  margin-bottom: 12px;
  border: 1px solid var(--fca-linie);
  border-radius: 8px;
  padding: 14px 18px;
  background: var(--fca-grau);
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fca-dunkelgruen);
  list-style: none;
  position: relative;
  padding-right: 26px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--fca-rot);
  line-height: 1;
}

details[open] summary::after {
  content: "\2013";
}

details[open] summary {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fca-linie);
}

details img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---------- FORMULAR-LAYOUT ---------- */
form {
  margin: 0;
  padding: 0;
  background: transparent;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin-bottom: 6px;
}

.row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 20px;
  margin-bottom: 6px;
}

.field,
.field-single {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: 14px;
}

.form_background {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eingabepaar {
  margin-right: 20px;
}

/* ---------- LABELS ---------- */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fca-text);
  letter-spacing: 0.01em;
}

.req,
.pflicht {
  color: var(--fca-rot);
}

/* ---------- EINGABEFELDER ---------- */
input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select {
      width: 350px !important;
      padding: 16px !important;
      border: 1.5px solid var(--fca-gruen);
      border-radius: 8px;
      margin-bottom: none;
      background: var(--fca-weiss);
      color: var(--fca-dunkelgruen);
      font-size: 1rem;
      transition: border 0.2s;
      outline: none;
      box-sizing: border-box;
    }
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    input[type="number"]:focus,
    select:focus {
      border: 1.5px solid var(--fca-rot);
    }

input::placeholder,
textarea::placeholder {
  color: #A8AFB5;
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1;
}

select {
  appearance: none;
  -webkit-appearance: none;
  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='%2300462D' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
/* ---------- SELECT AN INPUT ANGLEICHEN ---------- */
.fca-glass .smartcapture-controls input[type="text"],
.fca-glass .smartcapture-controls input[type="email"],
.fca-glass .smartcapture-controls input[type="tel"],
.fca-glass .smartcapture-controls input[type="date"],
.fca-glass .smartcapture-controls input[type="number"],
.fca-glass .smartcapture-controls select {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 13px !important;
  line-height: normal !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

/* Textarea von der festen Höhe ausnehmen */
.fca-glass .smartcapture-controls textarea {
  height: auto !important;
  min-height: 100px !important;
  max-height: none !important;
  padding: 11px 13px !important;
}
/* ---------- DATUMSFELDER IN EINER ZEILE ---------- */
.fca-glass .date-dropdown-select-boxes {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  width: 32.5% !important;
}

.fca-glass .date-dropdown-select-boxes select {
  flex: 1;
  min-width: 0;
  max-width: 100% !important;
}

/* Das versteckte Input darf keinen Platz einnehmen */
.fca-glass .date-dropdown-select-boxes input.hidden-field,
.fca-glass .date-dropdown-select-boxes input.hidden {
  display: none !important;
}
.fca-glass .date-dropdown-select-boxes > div {
  flex: 1;
  min-width: 0;
}
/* ---------- SMARTCAPTURE ---------- */
.smartcapture-controls {
  margin-bottom: none;
}

.sc-formfield-label {
  margin-bottom: 6px;
}

.sc-formfield-label label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--fca-text);
  margin: 0;
}

/* Der <br> im Label erzeugt einen unschönen Umbruch */
.sc-formfield-label label br {
  display: none;
}

.sc-formfield-input {
  width: 100%;
}
/* ============================================================
   ZWEISPALTIGES SMARTCAPTURE-FORMULAR
   form.smartcapture-content-wrapper  <- Grid
     > table.stylingblock-content-wrapper  <- je ein Feld
     > div.smartcapture-submit-button-wrapper
   ============================================================ */

.fca-glass .smartcapture-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  align-items: start;
}

/* Jede Feld-Tabelle füllt ihre Spalte */
.fca-glass .smartcapture-content-wrapper > table {
  width: 100% !important;
  min-width: 0 !important;
  margin-bottom: 14px;
}

/* Über beide Spalten */
.fca-glass .smartcapture-content-wrapper > table:has(.sc-formfield-input-wrapper),
.fca-glass .smartcapture-content-wrapper > table:has(textarea),
.fca-glass .smartcapture-content-wrapper > .smartcapture-submit-button-wrapper,
.fca-glass .smartcapture-content-wrapper > input {
  grid-column: 1 / -1;
}

/* Optionen innerhalb einer Gruppe nebeneinander */
.fca-glass .sc-formfield-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.fca-glass .sc-formfield-input-wrapper .sc-formfield-input {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
}

/* Labels */
.fca-glass .sc-formfield-label {
  margin-bottom: 6px;
}

.fca-glass .sc-formfield-label label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--fca-text);
  margin: 0;
}

.fca-glass .sc-formfield-label label br {
  display: none;
}

/* Felder füllen ihre Spalte */
.fca-glass .smartcapture-controls input[type="text"],
.fca-glass .smartcapture-controls input[type="email"],
.fca-glass .smartcapture-controls input[type="tel"],
.fca-glass .smartcapture-controls input[type="date"],
.fca-glass .smartcapture-controls input[type="number"],
.fca-glass .smartcapture-controls select,
.fca-glass .smartcapture-controls textarea {
  max-width: 100% !important;
}

@media only screen and (max-width: 600px) {
  .fca-glass .smartcapture-content-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
/* ---------- CHECKBOXEN UND RADIOS ---------- */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 15px;
}

.checkbox-row input[type="checkbox"],
.checkbox-row input[type="radio"] {
  margin-top: 3px;
  min-width: 18px;
  min-height: 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--fca-rot);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row label {
  margin: 0;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}

.checkbox-row label a {
  color: var(--fca-dunkelgruen);
  text-decoration: underline;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--fca-rot);
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline;
  font-weight: 400;
  font-size: 15px;
}

.radio-inline {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.radio-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.radio-buttons .opt {
  flex: 1;
  min-width: 130px;
  position: relative;
}

.radio-buttons .opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-buttons .opt span {
  display: block;
  text-align: center;
  padding: 11px 8px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--fca-gruen);
  border-radius: 8px;
  cursor: pointer;
  background: var(--fca-weiss);
  color: var(--fca-dunkelgruen);
  transition: all 0.15s;
}

.radio-buttons .opt input:checked + span {
  background: var(--fca-rot);
  border-color: var(--fca-rot);
  color: var(--fca-weiss);
}

/* ---------- BEDINGTE BLOECKE ---------- */
.conditional-block {
  display: none;
  padding: 20px 20px 6px 20px;
  background: var(--fca-grau);
  border-radius: 8px;
  margin-bottom: 16px;
}

.conditional-block.show {
  display: block;
}

.conditional-block .block-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fca-dunkelgruen);
  margin-bottom: 14px;
}

/* ---------- BUTTONS ---------- */
.submit-btn,
input[type="submit"],
button[type="submit"],
.sc-submit-button,
.sc-form-submit {
  width: 100%;
  background: var(--fca-rot);
  color: var(--fca-weiss);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 8px;
  padding: 15px 0;
  margin-top: 22px;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: none;
  height: auto;
  line-height: 1.2;
}

.submit-btn:hover,
.submit-btn:focus,
input[type="submit"]:hover,
button[type="submit"]:hover,
.sc-submit-button:hover,
.sc-form-submit:hover {
  background: var(--fca-gruen);
}

.submit-btn:disabled,
input[type="submit"]:disabled,
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button1 {
  background-color: var(--fca-rot);
  color: var(--fca-weiss);
  border: 2px solid var(--fca-rot);
  border-radius: 8px;
  padding: 16px 20px;
  width: 250px;
  margin: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.2s;
}

.button1:hover {
  background-color: var(--fca-dunkelgruen);
  border-color: var(--fca-dunkelgruen);
}

.button-2 {
  border: none;
  background-color: transparent;
  position: relative;
  padding: 20px;
  max-width: 280px;
  min-width: 280px;
}

.button-2 span {
  display: block;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  background-color: var(--fca-rot);
  color: var(--fca-weiss);
  font-size: 1.6rem;
  transition: all 250ms;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.button-2 span:hover {
  background-color: var(--fca-dunkelgruen);
}

/* ---------- STATUS / DANKE-SEITEN ---------- */
.status-box {
  text-align: center;
  padding: 20px 0;
}

.status-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: var(--fca-weiss);
  font-size: 32px;
  line-height: 62px;
  margin: 0 auto 20px;
}

.status-icon.ok {
  background: var(--fca-gruen);
}

.status-icon.err {
  background: var(--fca-rot);
}

.status-box h2 {
  margin-bottom: 10px;
}

.status-box p {
  color: var(--fca-muted);
  font-size: 15px;
}

/* ---------- FOOTER ---------- */
hr {
  display: none;
}

footer {
  bottom: 0;
  width: 100%;
  display: flex;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(to bottom right, #910305, #79242f);
}

.left-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 5px;
}

.social-links {
  margin: 30px 0 0 30px;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.social-links a {
  margin-right: 10px;
}

.left-box .social-links a span {
  height: 40px;
  width: 40px;
  background: #2c0000;
  line-height: 40px;
  text-align: center;
  font-size: 18px;
  border-radius: 5px;
  transition: 0.3s;
  color: var(--fca-weiss);
  display: inline-block;
}

.left-box .social-links a span:hover {
  background: #f12020;
}

.social-links img {
  width: 100px;
  height: auto;
}

.links {
  margin: 30px 0 30px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link {
  text-decoration: none;
  color: var(--fca-weiss);
  margin-right: 60px;
}

.links-neu {
  display: none;
}

.center-box {
  flex: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container-footer {
  display: flex;
  padding: 30px;
}

.logo-footer {
  max-width: 150px;
  height: auto;
}

.logo-footer img {
  display: block;
  width: 100%;
  height: 100%;
}

.right-box {
  flex: 1;
  display: flex;
  text-align: center;
  color: #c9c4c4;
  text-transform: uppercase;
}

.two-col {
  flex: 1;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100px;
  width: auto;
}

.sponsor-desc {
  margin-bottom: 20px;
}

.sponsor img {
  width: 100px;
}

/* ---------- PROFILEBUILDING (Lieblingsspieler) ---------- */
.favoritPlayer,
.favPlayerSelected {
  background-color: #fafafa;
  background-repeat: no-repeat;
  background-size: cover;
  border: 2px solid #f0f1f2;
  border-radius: 50%;
  cursor: pointer;
  float: left;
  font-size: 13px;
  height: 75px;
  width: 75px;
  line-height: 13px;
  margin: 25px 15px 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.favoritPlayer {
  opacity: 0.7;
  z-index: 1;
}

.favPlayerSelected {
  opacity: 1;
  z-index: 2;
}

.favoritPlayer:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.favoritPlayer label {
  padding-top: 75px;
  text-align: center;
  cursor: pointer;
  display: flex;
}

.favoritPlayer input[type='checkbox'] {
  cursor: pointer;
  opacity: 0;
  position: absolute;
}

/* ---------- HONEYPOT ---------- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media only screen and (max-width: 2017px) {
  .two-col {
    flex-direction: column;
  }
}

@media only screen and (max-width: 1200px) {
  .center-box {
    display: none;
  }
}

@media only screen and (max-width: 1024px) {
  footer {
    flex-direction: column;
  }
  .left-box {
    align-items: center;
    justify-content: center;
  }
  .links {
    margin: 0;
    padding: 0;
  }
  .link {
    display: none;
  }
  .links-neu {
    display: flex;
    margin: 20px 0 20px 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .link-neu {
    display: flex;
    margin-right: 20px;
    color: var(--fca-weiss);
    text-decoration: none;
  }
  .hr1 {
    display: flex;
    margin: 0 30px;
    border-top: 1px solid var(--fca-weiss);
  }
}

@media only screen and (max-width: 768px) {
  .fca-glass {
    padding: 0;
    margin: 24px 16px 30px 16px;
    max-width: 100%;
  }
  .fca-inhalt {
    padding: 28px 22px 32px 22px;
  }
}

@media only screen and (max-width: 600px) {
  .row,
  .row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .fca-facts dl {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }
  .fca-facts dt {
    margin-top: 8px;
  }
  .two-columnform {
    display: flex;
    flex-direction: column;
  }
}

@media only screen and (max-width: 480px) {
  .mobile-hidden {
    display: none !important;
  }
  .responsive-td {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
  }
  .fca-glass {
    padding: 0;
    margin: 16px 10px 24px 10px;
    border-radius: 12px;
  }
  .fca-inhalt {
    padding: 22px 16px 26px 16px;
  }
  h1 {
    font-size: 23px;
  }
  h2 {
    font-size: 20px;
  }
  .right-box {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .two-col {
    max-width: 150px;
  }
  .sponsor-desc {
    font-size: 12px;
    margin-bottom: 0;
  }
  .sponsor {
    padding: 10px;
  }
  .link-neu {
    font-size: 12px;
  }
}

@media only screen and (max-width: 375px) {
  .link-neu a {
    display: block;
  }
  .link-neu {
    margin-bottom: 15px;
  }
  .links-neu {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
  }
  .sponsor {
    padding: 5px;
  }
  .sponsor img {
    width: 75px;
  }
}