/* ============================================================
   COMPONENTS.CSS – Wiederverwendbare Elemente
   Buttons, Postit-Cards und das Kontaktformular.
   Globale Styles und Sektionen stehen in style.css.
   ============================================================ */

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  border: none;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

/* Primär – Boxfarben (passend zum farbigen Balken der jeweiligen Postit-Card) */
.btn-lime { background: var(--c-lime); color: #111; }
.btn-lime:hover { background: #c8ff00; }

.btn-yellow { background: var(--c-yellow); color: #111; }
.btn-yellow:hover { background: #fffc1e; }

.btn-orange { background: var(--c-orange); color: #111; }
.btn-orange:hover { background: #ffc400; }

/* Sekundär – Umriss */
.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 2px solid var(--c-border2);
}
.btn-outline:hover { background: var(--c-bg2); }

/* Kleine Variante */
.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   POSTIT-CARDS (Angebote)
   Leicht gedrehte Cards mit farbigem Balken oben.
   Die Drehung ist bewusst minimal – subtile Tiefe, kein Chaos.
   ============================================================ */
.postit {
  position: relative;
  border-radius: 4px;
  padding: 2rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
/* Farbiger Balken oben */
.postit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: 4px 4px 0 0;
}
.postit-a { transform: rotate(-0.5deg); }
.postit-a::before { background: var(--c-yellow); }

.postit-b { transform: rotate(0.4deg); }
.postit-b::before { background: var(--c-lime); }

.postit-c { transform: rotate(-0.3deg); }
.postit-c::before { background: var(--c-orange); }

/* Hover: nur ruhige Schatten-Reaktion, kein Versatz (Buttons bleiben stabil) */
.postit:hover { box-shadow: 3px 8px 22px rgba(0, 0, 0, 0.1); }

.postit-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-muted2);
  margin-bottom: 0.75rem;
  display: block;
}
.postit h3 { font-size: 21px; color: var(--c-text); margin-bottom: 0.75rem; }
.postit > p { font-size: 14px; color: var(--c-muted); }

/* Feature-Liste in den Postit-Cards */
.postit-features {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.postit-features li {
  font-size: 14px;
  color: var(--c-muted);
  padding-left: 22px;
  position: relative;
}
.postit-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-lime-dark);
}

/* margin-top: auto verankert die Buttons am unteren Kartenrand,
   sodass sie über alle Karten auf einer Linie liegen. */
.postit-cta { margin-top: auto; align-self: flex-start; }

/* Zwei Buttons nebeneinander (Anfragen + Mehr erfahren) */
.postit-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Schlichte Zusatzzeile ohne Häkchen (z. B. "Remote & vor Ort möglich") */
.postit-note {
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 0.75rem;
}

/* Anklickbare Workshop-Formate – führen je auf eine Detail-Landingpage.
   Pill-Optik + ↗-Icon + Hover signalisieren: hier kann man klicken. */
.postit-formats {
  margin: 1.75rem 0 1.75rem;
}
.postit-formats-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--c-muted2);
  margin-bottom: 0.65rem;
}
.postit-format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.format-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-lime-dark);
  background: rgba(176, 230, 0, 0.12);
  border: 1px solid rgba(176, 230, 0, 0.55);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.format-chip:hover {
  background: rgba(176, 230, 0, 0.22);
  border-color: var(--c-lime);
  transform: translateY(-1px);
}
.format-chip .material-symbols-rounded {
  font-size: 16px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

/* ============================================================
   KONTAKTFORMULAR
   ============================================================ */
.kontakt-form {
  text-align: left;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid var(--c-border2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--c-muted2); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-lime-dark);
  box-shadow: 0 0 0 3px rgba(176, 230, 0, 0.2);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* Ungültige Felder (per JS markiert) */
.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #d0392b;
  box-shadow: 0 0 0 3px rgba(208, 57, 43, 0.12);
}

.form-status { font-size: 14px; margin-top: 1rem; min-height: 1.2em; }
.form-status.success { color: #3a6800; }
.form-status.error   { color: #c0392b; }

/* Formular auf Mobile einspaltig */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .kontakt-form { padding: 1.5rem; }
}
