/*Grundeinstellungen für alle Elemente*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*Allgemeines Seitenlayout*/
body {
  font-family: Arial, sans-serif;
  background-color: #f4f7fa;
  color: #222222;
  padding: 20px;
  line-height: 1.5;
}

/*Header mit Hintergrundbild und overlay*/
header {
  background-image:
    linear-gradient(rgba(0, 20, 50, 0.6), rgba(0, 20, 50, 0.6)),
    url("../media/header_bild/headerbild_3.jpg");

  background-size: cover;
  background-position: center;

  color: white;

  text-align: center;

  padding: 130px 50px;

  border-radius: 16px;

  margin-bottom: 30px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
header p {
  font-size: 1.2rem;
}

/*Hauptbereich der Website*/
main {
  max-width: 900px;
  margin: 0 auto;
}

/*Formularcontainer*/
form {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
}

/*Formularbereiche die einzelnen Fieldsets*/
fieldset {
  border: 2px solid #d9d9d9;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
}

/*Titel der Formularbereiche*/
legend {
  font-weight: bold;
  padding: 0 10px;
}

/*Beschriftungen der Formularfelder*/
label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
}

/*Eingabefelder, Textbereiche und Auswahlfelder*/
input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1rem;
}

/*Radio Buttons und Checkboxen*/
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin-right: 8px;
}

/*Beschriftungen von Radio Buttons und checkboxen*/
input[type="radio"] + label,
input[type="checkbox"] + label {
  display: inline-block;
  margin-right: 20px;
  margin-top: 8px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/*Absendebutton*/
button {
  background-color: #2f3b4d;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: #0055aa;
}

/*Footerbereich*/
footer {
  background-color: #2f3b4d;
  color: white;
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  border-radius: 12px;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/*Fehlermeldungen bei ungültigen Eingaben*/
.error {
  color: #b00020;
  font-size: 0.9rem;
  margin-top: 5px;
}

/*Unterstützung durch ChatGPT: Gestaltung der Ticketvorschau*/
.ticket-preview {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fa 100%);
  padding: 0;
  border: none;
  border-radius: 18px;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 20, 50, 0.18);
  text-align: center;
}

/*Titelbereich der Ticketvorschau*/
.ticket-preview h2 {
  background-color: #2f3b4d;
  color: white;
  padding: 22px 30px;
  margin: 0;
  text-align: center;
  letter-spacing: 1px;
}

/*Tickettyp-Anzeige*/
.ticket-preview h3 {
  font-size: 2rem;
  color: #2f3b4d;
  text-align: center;
  padding: 28px 20px 10px;
  margin: 0;
}

/*Tichetinformationen*/
.ticket-preview p {
  margin: 0;
  padding: 6px 35px;
}

/*Hervorgehobene Beschriftungen im Ticket*/
.ticket-preview strong {
  display: inline-block;
  min-width: 150px;
  color: #2f3b4d;
}

/*Link zum neues Ticket erstellen*/
.ticket-preview a {
  display: block;
  margin: 25px 35px 35px;
  background-color: #2f3b4d;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.ticket-preview a:hover {
  background-color: #0055aa;
}

/*Responsive Design Desktop*/
@media (min-width: 768px) {
  main {
    max-width: 1000px;
  }

  form {
    padding: 35px;
  }

  fieldset {
    padding: 30px;
  }

  input,
  select,
  textarea {
    max-width: 100%;
  }
}

/* Unterstützung durch ChatGPT: Nach Fehler Hilfe bei Responsive Design Mobile (Richtwerte)*/
@media (max-width: 767px) {
  input[type="radio"] + label,
  input[type="checkbox"] + label {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 10px;
  }
}
