/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "bilo", sans-serif;
}

/* =========================
   BASE
========================= */

body {
  background: #646759;
  padding: 40px;
}

h1 {
  font-family: "Limelight";
  text-align: center;
  color: #f6f3ee;
}

/* =========================
   HEADER
========================= */

header {
  width: 100%;
  background: #f6f3ee;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 30px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  width: auto;
}

nav a {
  color: #646759;
  margin-left: 20px;
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
}

nav a:hover {
  color: #000;
}

/* =========================
   FORM LAYOUT
========================= */

form {
  max-width: 700px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: #f6f3ee;
}

input,
textarea,
select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #f6f3ee;
  font-size: 16px;
  color: #646759;
  background-color: #f6f3ee;
}

input::placeholder,
textarea::placeholder {
  color: #646759;
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border: 2px solid #646759;
  box-shadow: 0 0 8px #646759;
}

/* =========================
   RADIO
========================= */
.radio-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #f6f3ee;
}

.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
  color: #646759;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #f6f3ee;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  background: #f6f3ee;
}

.radio-option:hover {
  border-color: #646759;
  background: #f5f5f5;
}

.radio-option input {
  accent-color: #646759;
  transform: scale(1.1);
  cursor: pointer;
}

#teacher_wrap {
  margin-top: 10px;
  transition: 0.2s ease;
}

/* =========================
   BUTTON
========================= */

.submit-btn {
  width: 100%;
  padding: 1rem;
  background-color: #f6f3ee;
  color: #646759;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

/* =========================
   ERROR
========================= */

.error-messages {
  margin-top: 6px;
  padding: 10px;
  background: #fce4e4;
  border: 1px solid #b00020;
  color: #b00020;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* =========================
   SUCCESS PAGE
========================= */

.success-page {
  background: #646759;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.success-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.success-card {
  background: #f6f3ee;
  max-width: 700px;
  width: 100%;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  color: #646759;
}

/* Titel */
.success-card h1 {
  margin-bottom: 10px;
  color: #646759;
}

/* kleine Beschreibung */
.subtitle {
  color: #646759;
  opacity: 0.8;
  margin-bottom: 30px;
}

/* 🔲 DIE KÄSTCHEN */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-grid div {
  background: #646759;
  border: 2px solid #f6f3ee;
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  transition: 0.3s;
}

.info-grid div:hover {
  border-color: #646759;
  transform: translateY(-2px);
}

.info-grid span {
  display: block;
  font-size: 0.75rem;
  color: #f6f3ee;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-grid p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f6f3ee;
}

.back-button {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 28px;
  background: #646759;
  color: #f6f3ee;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.back-button:hover {
  transform: translateY(-3px);
  background: #646759;
  border-color: #f6f3ee;
  box-shadow: 0 10px 20px #646759;
}

.back-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px #646759;
}

/* =========================
   FOOTER
========================= */

footer {
  width: 100%;
  background: #f6f3ee;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 30px;
  margin-top: 40px;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-links a {
  color: #646759;
  margin-left: 20px;
  text-decoration: none;
  font-size: 18px;

  padding: 5px 0;
  display: inline-block;
}

.footer-links a:hover {
  color: #000;
}

.names {
  color: #646759;
  font-family: "bilo", sans-serif;
  font-size: 18px;

  display: flex;
  align-items: flex-end;
  gap: 12px;
}

/* MOBILE */
@media (max-width: 600px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px 15px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
  }

  .footer-links a {
    margin-left: 0;
    font-size: 16px;
  }

  .names {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 14px;
  }

  .footer-logo img {
    height: 50px;
  }
}

/* TABLET */
@media (min-width: 601px) and (max-width: 1024px) {
  footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    text-align: center;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .names {
    justify-content: center;
    width: 100%;
  }
}
