/* ===== IGH SCHADENSMELDUNG PLUGIN CSS ===== */
:root {
  --igh-dark:   #1a1a2e;
  --igh-accent: #c8a96e;
  --igh-light:  #f7f5f2;
  --igh-white:  #ffffff;
  --igh-border: #ddd;
  --igh-text:   #333;
  --igh-muted:  #666;
  --igh-radius: 6px;
}

.igh-wrap {
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--igh-text);
}

.igh-wrap * { box-sizing: border-box; }

/* SECTION TITLES */
.igh-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--igh-accent);
  border-left: 3px solid var(--igh-accent);
  padding-left: 10px;
  margin: 28px 0 16px;
}

/* GRIDS */
.igh-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.igh-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* FIELDS */
.igh-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.igh-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--igh-muted);
}
.igh-field .req { color: var(--igh-accent); }
.igh-muted { color: #aaa; font-size: 0.8rem; font-weight: 400; }

/* INPUTS */
.igh-wrap input[type="text"],
.igh-wrap input[type="email"],
.igh-wrap input[type="tel"],
.igh-wrap input[type="date"],
.igh-wrap select,
.igh-wrap textarea {
  width: 100%;
  border: 1.5px solid var(--igh-border) !important;
  border-radius: var(--igh-radius) !important;
  padding: 10px 14px !important;
  font-size: 0.95rem !important;
  color: var(--igh-text) !important;
  background: #fafafa !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit !important;
  box-shadow: none !important;
}
.igh-wrap input:focus,
.igh-wrap select:focus,
.igh-wrap textarea:focus {
  border-color: var(--igh-accent) !important;
  box-shadow: 0 0 0 3px rgba(200,169,110,0.15) !important;
  background: #fff !important;
}
.igh-wrap select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
}
.igh-wrap textarea { resize: vertical; min-height: 120px; }

/* RADIO */
.igh-radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.igh-radio-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--igh-text);
  cursor: pointer;
}
.igh-wrap input[type="radio"],
.igh-wrap input[type="checkbox"] {
  accent-color: var(--igh-accent);
  width: 16px !important;
  height: 16px !important;
  cursor: pointer;
}

/* NOTFALL HINT */
.igh-notfall-hint {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--igh-radius);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #856404;
  margin-top: 8px;
  display: none;
}
.igh-notfall-hint.show { display: block; }

/* CHAR COUNT */
.igh-char-count {
  text-align: right;
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 2px;
}

/* UPLOAD AREA */
.igh-upload-area {
  border: 2px dashed var(--igh-border);
  border-radius: var(--igh-radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  background: #fafafa;
  margin-bottom: 14px;
}
.igh-upload-area:hover { border-color: var(--igh-accent); background: rgba(200,169,110,0.04); }
.igh-upload-area input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.igh-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.igh-upload-area p { color: var(--igh-muted); font-size: 0.88rem; margin: 2px 0; }
.igh-upload-area strong { color: var(--igh-accent); }
#igh-file-name { margin-top: 8px; font-size: 0.82rem; color: var(--igh-muted); font-style: italic; }

/* DATENSCHUTZ */
.igh-datenschutz {
  background: var(--igh-light);
  border-radius: var(--igh-radius);
  padding: 18px 20px;
  font-size: 0.84rem;
  color: var(--igh-muted);
  line-height: 1.6;
  margin: 20px 0;
}
.igh-datenschutz-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.igh-datenschutz-check label {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--igh-muted);
  cursor: pointer;
}
.igh-datenschutz a { color: var(--igh-accent); text-decoration: none; }
.igh-datenschutz a:hover { text-decoration: underline; }

/* MESSAGES */
.igh-msg {
  border-radius: var(--igh-radius);
  padding: 16px 20px;
  font-size: 0.95rem;
  margin: 16px 0;
  text-align: center;
}
.igh-error { background: #fdecea; border: 1.5px solid #e53935; color: #b71c1c; }
.igh-success { background: #eaf6ea; border: 1.5px solid #5cb85c; color: #2d6a2d; }
.igh-success strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }

/* SUBMIT */
.igh-submit-row { display: flex; justify-content: flex-end; margin-top: 24px; }
.igh-wrap button[type="submit"] {
  background: var(--igh-accent) !important;
  color: var(--igh-dark) !important;
  border: none !important;
  border-radius: var(--igh-radius) !important;
  padding: 14px 48px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
  box-shadow: none !important;
}
.igh-wrap button[type="submit"]:hover { background: #b8923e !important; transform: translateY(-1px); }
.igh-wrap button[type="submit"]:disabled { background: #aaa !important; cursor: not-allowed !important; }

/* INPUT ERROR */
.igh-wrap .igh-input-error { border-color: #e53935 !important; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .igh-grid-2 { grid-template-columns: 1fr; }
  .igh-grid-3 { grid-template-columns: 1fr; }
  .igh-wrap button[type="submit"] { width: 100% !important; }
}
