/* Email is readable, selectable and screen-reader-friendly without JavaScript. */
a.fb7-email {
  overflow-wrap: anywhere;
  word-break: normal;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a.fb7-email:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.fb7-contact-note {
  width: min(100% - 40px, 1120px);
  margin: 0 auto 28px;
  line-height: 1.6;
}

.fb7-footer-email {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

/* Production SEO, Reference Projects & Contact Sections */
.fb-seo-section {
  background: #f7f9fc;
  border-top: 1px solid #e2e8f0;
  padding: clamp(38px, 5vw, 64px) 0;
  font-family: Lato, 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #162330;
}

.fb-seo-container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.fb-seo-section h2,
.fb-ref-projects-section h2 {
  margin: 0 0 18px !important;
  font: 700 clamp(22px, 2.2vw, 29px)/1.25 Lato, 'Segoe UI', Arial, Helvetica, sans-serif !important;
  color: #162b60 !important;
  letter-spacing: -0.015em;
}

.fb-seo-section h2::after,
.fb-seo-section h3::after,
.fb-ref-projects-section h2::after,
.fb-contact-prod-grid h2::after {
  display: none !important;
  content: none !important;
}

.fb-seo-prose {
  max-width: 920px;
  margin-bottom: 28px;
}

.fb-seo-prose p,
.fb-seo-card p,
.fb-seo-faq-item p,
.fb-ref-lead {
  margin: 0 0 14px;
  font: 400 16px/1.68 Lato, 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #243447;
}

.fb-seo-prose p:last-child,
.fb-seo-card p:last-child,
.fb-seo-faq-item p:last-child {
  margin-bottom: 0;
}

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

.fb-seo-card {
  background: #fff;
  border: 1px solid #dde5ee;
  border-top: 3px solid #c7a082;
  border-radius: 4px;
  padding: 22px 24px;
}

.fb-seo-card h3,
.fb-seo-faq-item h3 {
  margin: 0 0 10px !important;
  font: 700 18px/1.32 Lato, 'Segoe UI', Arial, Helvetica, sans-serif !important;
  color: #162b60 !important;
}

.fb-seo-linkrow {
  margin-top: 12px !important;
  font-weight: 700;
}

.fb-seo-section a {
  color: #24458c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fb-seo-section a:hover {
  color: #162b60;
}

.fb-seo-cat-strip {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #dde5ee;
}

.fb-seo-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.fb-seo-pill-row a {
  display: inline-block;
  padding: 9px 15px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  color: #162b60;
  font: 700 14px/1.3 Lato, 'Segoe UI', Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.fb-seo-pill-row a:hover {
  border-color: #24458c;
  background: #eff6ff;
  color: #24458c;
}

.fb-seo-faq {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #dde5ee;
}

.fb-seo-faq-item {
  background: #fff;
  border: 1px solid #dde5ee;
  border-radius: 4px;
  padding: 18px 22px;
}

.fb-seo-faq-item + .fb-seo-faq-item {
  margin-top: 14px;
}

/* Reference Projects Grid on /referenzen */
.fb-ref-projects-section {
  padding: 12px 0 32px;
  font-family: Lato, 'Segoe UI', Arial, Helvetica, sans-serif;
}

.fb-ref-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.fb-ref-project-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 18px;
  background: #f8fafc;
  border: 1px solid #dde5ee;
  border-left: 4px solid #24458c;
  border-radius: 4px;
}

.fb-ref-project-item strong {
  font-size: 16px;
  font-weight: 700;
  color: #162b60;
}

.fb-ref-project-item span {
  font-size: 14.5px;
  line-height: 1.5;
  color: #334155;
}

/* Production Contact Grid & Inquiry Form on /kontakt */
.fb-contact-prod-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.3fr);
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}

.fb-contact-direct-card,
.fb-contact-form-card {
  background: #f8fafc;
  border: 1px solid #dde5ee;
  border-top: 3px solid #24458c;
  border-radius: 4px;
  padding: 24px;
  box-sizing: border-box;
}

.fb-contact-form-card {
  background: #fff;
  border-top-color: #c7a082;
}

.fb-contact-prod-grid h2 {
  margin: 0 0 14px !important;
  font: 700 21px/1.28 Lato, 'Segoe UI', Arial, Helvetica, sans-serif !important;
  color: #162b60 !important;
}

.fb-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.fb-form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fb-form-row label {
  font: 700 14px/1.3 Lato, 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #1e293b;
}

.fb-form-row input,
.fb-form-row select,
.fb-form-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #fff;
  color: #162330;
  font: 400 15px/1.45 Lato, 'Segoe UI', Arial, Helvetica, sans-serif;
}

.fb-form-row input:focus-visible,
.fb-form-row select:focus-visible,
.fb-form-row textarea:focus-visible {
  outline: 2px solid #24458c;
  outline-offset: 0;
  border-color: #24458c;
}

.fb-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.fb-form-status {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #162b60;
}

@media (max-width: 860px) {
  .fb-seo-grid-2,
  .fb-ref-project-grid,
  .fb-contact-prod-grid,
  .fb-form-split {
    grid-template-columns: 1fr;
  }
}
