:root {
  --reimen-ink: #172033;
  --reimen-muted: #667085;
  --reimen-line: #e5e7eb;
  --reimen-surface: #ffffff;
  --reimen-soft: #f7f8fa;
  --reimen-accent: #f0b429;
  --reimen-accent-dark: #bf7b00;
  --reimen-primary: #214e72;
  --reimen-primary-dark: #173b57;
  --reimen-radius: 18px;
  --reimen-shadow: 0 14px 40px rgba(23, 32, 51, .08);
}

body.index-page {
  background: #fbfbfc;
  color: var(--reimen-ink);
}

.main .section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.main .container {
  max-width: 1180px;
}

.main h1 {
  color: var(--reimen-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 750;
  max-width: 980px;
  margin: 0 auto 16px;
}

.main h2 {
  color: var(--reimen-ink);
  letter-spacing: -.02em;
}

.main p {
  line-height: 1.7;
}

/* Search header and form */
.about.section > .container > .row > .col-lg-12 {
  background: var(--reimen-surface);
  border: 1px solid var(--reimen-line);
  border-radius: 24px;
  box-shadow: var(--reimen-shadow);
  padding: clamp(24px, 4vw, 48px);
}

.about.section h2.text-center {
  margin: 8px auto 28px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--reimen-muted);
  font-weight: 600;
  letter-spacing: 0;
}

.about.section form {
  max-width: 900px;
  margin: 24px auto 14px;
  padding: 22px;
  border-radius: var(--reimen-radius);
  background: var(--reimen-soft);
  border: 1px solid var(--reimen-line);
}

.about.section form .d-flex,
.about.section form p.text-center,
.about.section form.form-inline {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.about.section form p.text-center {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.about.section input[type="text"],
.about.section input[type="search"],
.about.section input[type="number"],
.about.section textarea,
.about.section select {
  min-height: 48px;
  border: 1px solid #cfd4dc;
  border-radius: 12px;
  background: #fff;
  color: var(--reimen-ink);
  padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.about.section textarea {
  min-height: 150px;
  width: 100%;
}

.about.section input[type="text"]:focus,
.about.section input[type="search"]:focus,
.about.section input[type="number"]:focus,
.about.section textarea:focus,
.about.section select:focus {
  border-color: var(--reimen-primary);
  box-shadow: 0 0 0 4px rgba(33, 78, 114, .11);
  outline: 0;
}

.main .btn {
  min-height: 44px;
  border-radius: 12px;
  border-width: 1px;
  font-weight: 700;
  padding: 10px 18px;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.main .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(23, 32, 51, .12);
}

.main .btn-primary,
.main .btn--primary {
  background: var(--reimen-primary);
  border-color: var(--reimen-primary);
  color: #fff;
}

.main .btn-primary:hover,
.main .btn--primary:hover {
  background: var(--reimen-primary-dark);
  border-color: var(--reimen-primary-dark);
}

.main .btn-warning {
  background: var(--reimen-accent);
  border-color: var(--reimen-accent);
  color: #261b00;
}

.main .btn-warning:hover {
  background: #dda018;
  border-color: #dda018;
  color: #1d1400;
}

.about.section hr {
  border: 0;
  height: 1px;
  background: var(--reimen-line);
  opacity: 1;
  margin-top: 26px;
}

/* Result lists */
.main section.text-center > .container > .row > .row {
  row-gap: 18px;
}

.main .feature_teaser.col-12.col-md-6.col-lg-3 {
  text-align: left;
}

.main .feature_teaser.col-12.col-md-6.col-lg-3 > p {
  background: var(--reimen-surface);
  border: 1px solid var(--reimen-line);
  border-radius: var(--reimen-radius);
  box-shadow: 0 8px 26px rgba(23, 32, 51, .055);
  padding: 18px 20px;
  margin: 0 0 12px;
  line-height: 1.9;
  min-height: 120px;
  word-break: break-word;
}

.main .feature_teaser.col-12.col-md-6.col-lg-3 > .btn {
  margin-bottom: 12px;
  width: 100%;
}

/* Content / image sections */
.switchable.feature-large {
  padding: 44px 0;
}

.switchable.feature-large .row {
  align-items: center;
  gap: 0;
}

.switchable.feature-large img {
  border-radius: 22px;
  box-shadow: var(--reimen-shadow);
}

.switchable__text {
  padding: clamp(14px, 3vw, 32px);
}

.switchable__text h2,
.switchable__text h3 {
  font-weight: 750;
  letter-spacing: -.025em;
}

/* Homepage tool cards */
.reimen-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 32px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--reimen-line);
  border-radius: 20px;
  background: var(--reimen-surface);
  box-shadow: 0 8px 28px rgba(23, 32, 51, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: #d1d7df;
  box-shadow: 0 16px 36px rgba(23, 32, 51, .10);
}

.tool-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff3cf;
  color: #7d5200;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.tool-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 750;
}

.tool-card p {
  color: var(--reimen-muted);
  margin-bottom: 22px;
}

.tool-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Promo menu */
.menu.section .menu-item {
  background: #fff;
  border: 1px solid var(--reimen-line);
  border-radius: var(--reimen-radius);
  padding: 24px;
  box-shadow: 0 8px 26px rgba(23, 32, 51, .05);
}

.menu.section .label {
  display: inline-block;
  background: #eef4f8;
  color: var(--reimen-primary);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Utility pages */
.main table {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 6px 22px rgba(23, 32, 51, .05);
}

.main table th,
.main table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--reimen-line);
}

.main table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 767.98px) {
  .main .section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .about.section > .container > .row > .col-lg-12 {
    border-radius: 18px;
    padding: 22px 16px;
  }

  .about.section form {
    padding: 16px;
  }

  .about.section form .d-flex,
  .about.section form p.text-center {
    flex-direction: column;
    align-items: stretch !important;
  }

  .about.section form input[type="text"],
  .about.section form input[type="search"],
  .about.section form input[type="number"],
  .about.section form .form-control,
  .about.section form .btn {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 0;
  }

  .switchable__text {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Kompaktere Seitentitel auf den Such- und Werkzeugseiten */
.about.section h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  max-width: 920px;
  margin-bottom: 14px;
}

@media (max-width: 767.98px) {
  .about.section h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    line-height: 1.22;
  }
}
