/* ===========================================================
   TERMINE – Stil wie anamnese.css (inkl. optimierter Options-UI)
   =========================================================== */

/* Grundfarben & Typo wie im Anamnesebogen */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #222;
  margin: 0;
  padding: 0;
}

/* ==== HEADER (wie Anamnese) ==== */
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;     /* lime-green Akzent wie Anamnese */
  font-weight: 400;
  font-size: 1.1rem;
}

/* ==== FORMULAR-CONTAINER & SECTIONS (wie Anamnese) ==== */
.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);
}

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

/* ==== LABELS & FELDER ==== */
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"],
input[type="number"],
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 (wie Anamnese) ==== */
.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 (wie Anamnese) ==== */
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);
}

/* ==== DSGVO-Checkbox (wie Anamnese) ==== */
.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);
}

/* ==== MULTIPLE-CHOICE (verbessertes Raster) ==== */
/* Gleichmäßig verteilte „Kärtchen“-Optionen für Radios/Checkboxen */
fieldset {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

legend {
  font-weight: 500;
  color: #32CD32;
  margin-bottom: 0.6rem;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem 1.2rem;
  margin-top: 0.4rem;
}

.options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.96rem;
  color: #333;
  cursor: pointer;
  background: #fafafa;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.options label:hover {
  background: #f5fff0;
  border-color: #a9e6a9;
  box-shadow: 0 2px 6px rgba(50,205,50,0.12);
}

/* Einheitliches Kästchen/Radio links mit perfekter Ausrichtung */
.options input[type="checkbox"],
.options input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #32CD32;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin: 0;
}

.options input[type="radio"] { border-radius: 50%; }

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

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

.options input[type="checkbox"]:checked::after,
.options input[type="radio"]:checked::after {
  content: "✔";
  color: #fff;
  font-size: 13px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}

/* ==== RESPONSIVE ANPASSUNGEN ==== */
@media (max-width: 768px) {
  header.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; }

/* (Optional) Smiley-Ausgabe wie beim Anamnesebogen, falls genutzt */
.skalaOutput {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  color: #32CD32;
}

.hint{
  display:block;
  color:#9aa8b6;      /* leichtes Grau */
  font-size:12px;
  margin-top:4px;
  line-height:1.4;
}