.ashp_field_inactive .ashp_field_label {
  opacity: 0.5;
}

.ashp_formsection {
  --fs-green: #a9c308;
  --fs-text: #2b3535;
  --fs-label: #4a5c5c;
  --fs-border: #c9d2bf;
  --fs-focus: #5a7000;
  --fs-error: #b3261e;
  --fs-readonly: #f3f5ee;

  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: none;
}
.ashp_formsection_title {
  float: left;
  width: 100%;
  margin: 0 0 16px;
  padding: 0 0 0.3em;
  font-size: 90%;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #7f9206;
  text-transform: uppercase;
  border-bottom: 3px solid var(--fs-green);
}

.ashp_formsection_title::before {
  content: "\25A0\00A0";
}

.ashp_formsection_grid 
{
  clear: both;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 10px;
}
.ashp_formsection_compact .ashp_formsection_grid {
  gap: 0 8px;
}

.ashp_formsection_compact .ashp_field {
  gap: 0;
}

.ashp_formsection_compact .ashp_checkbox {
  min-height: 32px;
}

.ashp_formsection_compact .ashp_formsection_title {
  margin-bottom: 6px;
}
/* ---------- Feld ---------- */

.ashp_field {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ashp_field[hidden] {
  display: none;
}
.ashp_field_full      { grid-column: span 12; }
.ashp_field_twothirds { grid-column: span 8; }
.ashp_field_half      { grid-column: span 6; }
.ashp_field_third     { grid-column: span 4; }
.ashp_field_quarter   { grid-column: span 3; }

.ashp_field_label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fs-label);
}

.ashp_field_required {
  margin-left: 0.2em;
  color: var(--fs-error);
}

.ashp_field_input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0.55em 0.75em;
  font: inherit;
  font-size: 16px;            /* verhindert Auto-Zoom auf iOS */
  color: var(--fs-text);
  background-color: #fff;
  border: 1px solid var(--fs-border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ashp_field_input:focus {
  outline: none;
  border-color: var(--fs-focus);
  box-shadow: 0 0 0 3px rgba(169, 195, 8, 0.35);
}

.ashp_field_input::placeholder {
  color: #9aa5a5;
}

.ashp_field_input[readonly] {
  background-color: var(--fs-readonly);
}

.ashp_field_input:disabled {
  background-color: var(--fs-readonly);
  opacity: 0.6;
  cursor: not-allowed;
}

textarea.ashp_field_input {
  min-height: 6em;
  resize: vertical;
}

select.ashp_field_input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a5c5c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  background-size: 12px 8px;
  cursor: pointer;
}

input[type="date"].ashp_field_input::-webkit-date-and-time-value {
  text-align: left;           /* iOS zentriert Datumswerte sonst */
}

.ashp_field_hint {
  font-size: 0.85rem;
  color: #6b7a7a;
}

.ashp_field_error {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fs-error);
}

.ashp_field_error:empty {
  display: none;
}

.ashp_field_invalid .ashp_field_input {
  border-color: var(--fs-error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15);
}


/* Checkbox im Raster: an der Unterkante der Nachbarfelder ausrichten */
.ashp_field_checkbox 
{
  justify-content: flex-end;
  
}

.ashp_field_checkbox .ashp_checkbox {
  margin-right: 0;
}

.ashp_field_invalid .ashp_checkbox_box {
  outline: 2px solid var(--fs-error);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .ashp_field_third,
  .ashp_field_quarter { grid-column: span 6; }
  .ashp_field_twothirds { grid-column: span 12; }
}

@media (max-width: 600px) {
  .ashp_formsection_grid { gap: 12px; }
  .ashp_field,
  .ashp_field_half,
  .ashp_field_third,
  .ashp_field_quarter { grid-column: span 12; }
}

@media (prefers-reduced-motion: reduce) {
  .ashp_field_input { transition: none; }
}

.ashp_field_notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  padding: 0.7em 1em;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 8px;
}

.ashp_field_notice::before {
  flex: 0 0 auto;
  font-size: 1.1em;
  line-height: 1.25;
}

.ashp_field_notice_warning {
  color: #6b4a00;
  background: #fff4d6;
  
}

.ashp_field_notice_warning::before {
  content: "\26A0\FE0E";
}

.ashp_field_notice_info {
  color: #3d4a1a;
  background: #eef3e1;
  
}

.ashp_field_notice_info::before {
  content: "\2139\FE0E";
}

.ashp_field_status {
  justify-content: flex-end;
}

.ashp_status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 6px 12px 6px 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
/*
.ashp_status.is-ok {
  background: #eef3e1;
  border-color: #cfdca8;
}

.ashp_status.is-warning {
  background: #fff4d6;
  border-color: #f0d48a;
}

.ashp_status.is-info {
  background: #eaf5fd;
  border-color: #b6dbf5;
}*/


.ashp_status_icon {
  flex: 0 0 auto;
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ashp_status_caption {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  color: var(--fs-text);
}

@media (prefers-reduced-motion: reduce) {
  .ashp_status { transition: none; }
}


.ashp_formsection_compact {
  margin-bottom: 16px;
}

.ashp_formsection_compact .ashp_formsection_title {
  margin-bottom: 8px;
}

.ashp_formsection_compact .ashp_formsection_grid {
  gap: 2px 12px;
}

.ashp_formsection_compact .ashp_field {
  gap: 2px;
}

.ashp_formsection_compact .ashp_field_error:not(:empty) {
  margin-bottom: 4px;
}

/* mit Maus: auch die Mindesthöhen reduzieren */
@media (hover: hover) and (pointer: fine) {
  .ashp_formsection_compact .ashp_checkbox {
    min-height: 30px;
  }

  .ashp_formsection_compact .ashp_status {
    min-height: 34px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .ashp_formsection_compact .ashp_field_input {
    min-height: 36px;
    padding-top: 0.35em;
    padding-bottom: 0.35em;
  }
}