/*
 * Landesforsten Rheinland-Pfalz survey theme
 * Target: LimeSurvey Community Edition 6.17.x
 * Parent: fruity_twentythree
 * Corporate colours from Landesforsten RLP CD colour sheet (26.03.2026).
 */

:root {
  --lf-eiche: #7AB51D;
  --lf-buche: #349F13;
  --lf-schwarz: #000000;
  --lf-web-green: #327C31;
  --lf-deep-green: #245242;
  --lf-brown: #8E765D;
  --lf-ochre: #C89834;
  --lf-water: #669DA9;
  --lf-warning: #A8393B;
  --lf-white: #FFFFFF;
  --lf-offwhite: #F7F9F4;
  --lf-light-green: #EEF6E2;
  --lf-line: #D9E2D3;
  --lf-muted: #5D655B;
  --lf-content-width: 1120px;
}

html,
body {
  background: var(--lf-white) !important;
  color: var(--lf-schwarz) !important;
}

body {
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1.55;
}

body::before {
  content: "";
  display: block;
  height: 7px;
  background: linear-gradient(90deg, var(--lf-eiche) 0 50%, var(--lf-buche) 50% 100%);
}

.container,
.container-lg,
.container-xl,
.container-xxl {
  max-width: var(--lf-content-width);
}

/* Header and official brand logo */
.navbar,
.navbar-light,
.navbar-default,
.top-container,
#survey-nav {
  background: var(--lf-white) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.navbar {
  border-bottom: 1px solid var(--lf-line) !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand img,
.logo-container img,
.brand-logo img,
img.logo {
  width: auto !important;
  height: auto !important;
  max-width: min(360px, 72vw) !important;
  max-height: 92px !important;
  object-fit: contain;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.survey-name,
.group-title,
.question-title-container {
  color: var(--lf-schwarz) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 700;
}

h1,
.survey-name {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2,
.group-title {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
}

.survey-description,
.survey-welcome,
.group-description {
  max-width: 52rem;
}

/* Visual accent used sparingly; LF Eiche is not used for white-on-green body text. */
.survey-name::after,
.group-title::after {
  content: "";
  display: block;
  width: 4.25rem;
  height: 5px;
  margin-top: .65rem;
  background: var(--lf-eiche);
}

/* Questions: clean, editorial layout inspired by wald.rlp.de */
.question-container,
.group-container,
.question-wrapper {
  background: var(--lf-white) !important;
  border: 0 !important;
  border-top: 1px solid var(--lf-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.question-container {
  padding-top: 1.5rem;
  margin-bottom: 1.25rem;
}

.question-text,
.ls-label-question {
  color: var(--lf-schwarz) !important;
  font-weight: 700;
}

.question-number,
.text-primary,
.text-success,
.text-info {
  color: var(--lf-web-green) !important;
}

/* Inputs */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="url"],
textarea,
select {
  min-height: 46px;
  border: 1px solid #7A8377 !important;
  border-radius: 0 !important;
  background: var(--lf-white) !important;
  color: var(--lf-schwarz) !important;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--lf-web-green) !important;
  box-shadow: 0 0 0 3px rgba(122, 181, 29, .38) !important;
}

.form-check-input {
  border-radius: 0 !important;
}

.form-check-input:checked,
.radio-item input:checked + label::before,
.checkbox-item input:checked + label::before {
  background-color: var(--lf-web-green) !important;
  border-color: var(--lf-web-green) !important;
}

/* Buttons: accessible website green for white text */
.btn {
  min-height: 44px;
  border-radius: 0 !important;
  font-weight: 700;
  padding: .65rem 1.15rem;
}

.btn-primary,
.btn-success,
.ls-move-next-btn,
.ls-move-submit-btn {
  background: var(--lf-web-green) !important;
  border-color: var(--lf-web-green) !important;
  color: var(--lf-white) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
.ls-move-next-btn:hover,
.ls-move-next-btn:focus,
.ls-move-submit-btn:hover,
.ls-move-submit-btn:focus {
  background: var(--lf-deep-green) !important;
  border-color: var(--lf-deep-green) !important;
  color: var(--lf-white) !important;
}

.btn-secondary,
.btn-light,
.btn-default,
.ls-move-previous-btn {
  background: var(--lf-white) !important;
  border: 1px solid var(--lf-web-green) !important;
  color: var(--lf-web-green) !important;
}

.btn-secondary:hover,
.btn-light:hover,
.btn-default:hover,
.ls-move-previous-btn:hover {
  background: var(--lf-light-green) !important;
  color: var(--lf-deep-green) !important;
}

/* Progress */
.progress {
  height: 8px;
  background: var(--lf-light-green) !important;
  border-radius: 0 !important;
}

.progress-bar {
  background: var(--lf-web-green) !important;
}

/* Matrix / table questions */
.table {
  --bs-table-striped-bg: var(--lf-offwhite);
  --bs-table-hover-bg: var(--lf-light-green);
}

.table thead th {
  background: var(--lf-deep-green) !important;
  color: var(--lf-white) !important;
  border-color: var(--lf-deep-green) !important;
}

.table td,
.table th {
  border-color: var(--lf-line) !important;
}

/* Alerts */
.alert {
  border-radius: 0 !important;
  border-width: 0 0 0 5px !important;
}

.alert-info,
.alert-success {
  background: var(--lf-light-green) !important;
  border-color: var(--lf-web-green) !important;
  color: var(--lf-schwarz) !important;
}

.alert-warning {
  border-color: var(--lf-ochre) !important;
}

.alert-danger,
.text-danger,
.em-error {
  border-color: var(--lf-warning) !important;
  color: var(--lf-warning) !important;
}

/* Links and accessibility */
a {
  color: var(--lf-web-green);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

a:hover,
a:focus {
  color: var(--lf-deep-green);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--lf-eiche) !important;
  outline-offset: 3px !important;
}

/* Footer */
footer,
.footer,
#footer {
  margin-top: 3rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--lf-line);
  background: var(--lf-offwhite) !important;
  color: var(--lf-muted) !important;
}

/* Mobile */
@media (max-width: 767.98px) {
  body::before { height: 5px; }
  .navbar { padding-top: .75rem; padding-bottom: .75rem; }
  .navbar-brand img,
  .logo-container img,
  .brand-logo img,
  img.logo { max-width: min(290px, 78vw) !important; max-height: 76px !important; }
  .btn { width: 100%; margin-bottom: .5rem; }
}

/* Print: avoid website-only green as a required information carrier. */
@media print {
  body::before { display: none; }
  .navbar,
  #survey-nav,
  .btn { display: none !important; }
  a { color: #000 !important; text-decoration: none !important; }
}
