/* assets/app_modern.css – finale Version mit perfekter Checkbox-Ausrichtung */

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #222;
  margin: 0;
  padding: 0;
}

/* ==== HEADER ==== */
header.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 2px solid #e9e9e9;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: all 0.3s ease;
}

header .logo {
  width: 70px;
  height: auto;
  transition: width 0.3s ease;
}

header h1 {
  font-size: 1.9rem;
  line-height: 1.3;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 0;
}

header h1 span {
  color: #32CD32;
  font-weight: 400;
  font-size: 1.1rem;
}

/* ==== FORMULAR ==== */
.form-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem 2rem;
}

section {
  margin-bottom: 2rem;
  background: #f9f9f9;
  padding: 1.8rem 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease;
}

section:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

h2 {
  color: #32CD32;
  border-left: 5px solid #32CD32;
  padding-left: 0.8rem;
  margin-bottom: 1.4rem;
  font-weight: 500;
}

label {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
  font-weight: 400;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  font-size: 1rem;
  margin-top: 0.4rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s;
  font-family: 'Poppins', sans-serif;
  background: #fff;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #a9e6a9;
  background-color: #fcfffc;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #32CD32;
  box-shadow: 0 0 8px rgba(50, 205, 50, 0.3);
  outline: none;
  background-color: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* ==== GRID ==== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  width: 100%;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==== BUTTON ==== */
button[type="submit"] {
  background-color: #32CD32;
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s ease-in-out;
  box-shadow: 0 4px 10px rgba(50, 205, 50, 0.2);
  width: 100%;
  max-width: 350px;
  display: block;
  margin: 2rem auto 0;
}

button[type="submit"]:hover {
  background-color: #2bb22b;
  transform: scale(1.02);
}

/* ==== SCHÖNERE CHECKBOX ==== */
.checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  margin: 2rem 0 1rem;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
  width: 100%;
  text-align: left;
}

.checkbox input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #32CD32;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  top: 0;
}

.checkbox input[type="checkbox"]:checked {
  background-color: #32CD32;
  border-color: #32CD32;
}

.checkbox input[type="checkbox"]:checked::after {
  content: "✔";
  color: #fff;
  position: absolute;
  top: 0;
  left: 4px;
  font-size: 15px;
}

.checkbox input[type="checkbox"]:hover {
  box-shadow: 0 0 4px rgba(50, 205, 50, 0.4);
}

/* ==== SCHMERZSKALA ==== */
.skalaOutput {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  color: #32CD32;
}

/* ==== RESPONSIVE ANPASSUNGEN ==== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
  }

  header .logo {
    width: 55px;
  }

  header h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .form-container {
    padding: 1rem;
  }

  section {
    padding: 1.2rem;
  }

  input, select, textarea {
    font-size: 1rem;
  }

  button[type="submit"] {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
  }
}

/* ==== DESKTOP-OPTIMIERUNG ==== */
@media (min-width: 1024px) {
  .modern-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  section {
    padding: 2rem 3rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
  }

  textarea {
    min-height: 130px;
  }

  label {
    font-size: 1rem;
  }

  button[type="submit"] {
    font-size: 1.15rem;
  }
}

/* ==== TOUCH-OPTIMIERUNG ==== */
input, select, textarea { touch-action: manipulation; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
