/* ================================
   STL-Bongame – Frontend Styles
   ================================ */

/* Blöcke */
.stlbg-block {
  margin: 0;
  padding: 0px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Messages */
.stlbg-msg {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.stlbg-msg.stlbg-success {
  background: #e6f7ed;
  border: 1px solid #00a32a;
  color: #0a3d15;
}
.stlbg-msg.stlbg-error {
  background: #fde8e8;
  border: 1px solid #d63638;
  color: #5c0002;
}

/* Form */
.stlbg-form label {
  display: block;
  margin-bottom: 4px;
}
.stlbg-form input[type=text],
.stlbg-form input[type=email],
.stlbg-form input[type=date],
.stlbg-form input[type=file],
.stlbg-form select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background: #fff;
}
.stlbg-form .description {
  font-size: 12px;
  color: #666;
}
.stlbg-form button {
  padding: 10px 20px;
  background: #2271b1;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}
.stlbg-form button:hover {
  background: #135e96;
}

/* Rot-Markierung bei fehlenden Pflichtfeldern */
.stlbg-field.stlbg-invalid input[type=text],
.stlbg-field.stlbg-invalid input[type=email],
.stlbg-field.stlbg-invalid input[type=date],
.stlbg-field.stlbg-invalid input[type=file],
.stlbg-field.stlbg-invalid select {
  border-color: #d63638;
  box-shadow: 0 0 0 1px rgba(214,54,56,.15);
}
.stlbg-field.stlbg-invalid label {
  color: #d63638;
}

/* Highlight für BON-Nr. */
.stlbg-bon-highlight {
  margin: 20px 0;
  padding: 20px;
  border: 2px dashed #2271b1;
  background: #f0f6fc;
  text-align: center;
}
.stlbg-bon-highlight div:first-child {
  font-size: 14px;
  margin-bottom: 8px;
}
.stlbg-bon-highlight div:last-child {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #000;
}

/* Grid-Felder */
.stlbg-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

/* Buttons */
.stlbg-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.stlbg-btn-primary {
  background: #2271b1;
  color: #fff;
}
.stlbg-btn-primary:hover {
  background: #135e96;
}
.stlbg-btn-secondary {
  background: #f6f7f7;
  border: 1px solid #ccc;
  color: #222;
}
.stlbg-btn-secondary:hover {
  background: #eee;
}

/* Kleinere Screens: 1-Spalten-Layout */
@media (max-width: 600px) {
  .stlbg-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Card/Farbfläche */
.stlbg-surface.stlbg-card {
  background: #fffdf7;          /* zarte Farbfläche (helles Creme) */
  border: 1px solid #eadcc7;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 18px;
  margin: 20px 0;
}

/* Zeittext-Box im Formular */
.stlbg-timebox {
  background: #fff7ea;
  border: 1px solid #f1d6b5;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.stlbg-timelead {
  font-weight: 700;
  margin-bottom: 6px;
}
.stlbg-timebody p {
  margin: 0 0 8px 0;
}

/* Bon-Highlight (etwas entschlackt, nutzt bereits vorhandene Klasse) */
.stlbg-bon-highlight {
  margin: 20px 0;
  padding: 20px;
  border: 2px dashed #2271b1;
  background: #f0f6fc;
  text-align: center;
}
.stlbg-bon-highlight div:first-child {
  font-size: 14px;
  margin-bottom: 8px;
}
.stlbg-bon-highlight div:last-child {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #000;
}


.rules-box {
  background: #fff8f2;
  border: 2px solid #f47c20;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.rules-box h2 {
  color: #f47c20;
  margin-bottom: 20px;
}

.rule {
  display: flex;
  align-items: flex-start;
  margin: 15px 0;
}

.rule i {
  font-size: 24px;
  color: #f47c20;
  margin-right: 12px;
  min-width: 30px;
  text-align: center;
}

.rule p {
  margin: 0;
}

.rules-box .highlight {
  color: #d62828;
  font-weight: bold;
}

.rules-box .examples {
  margin-top: 20px;
  padding: 10px 15px;
  background: #fef2e6;
  border-left: 4px solid #f47c20;
}
