/*
Theme Name: Firmenchronik Design
Theme URI: https://example.com/
Author: Codex
Description: A WordPress landing page theme matching the supplied Firmenchronik design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: firmenchronik-design
*/

:root {
  --fc-ink: #171711;
  --fc-muted: #5f5f58;
  --fc-line: #dfded7;
  --fc-soft: #f5f5f2;
  --fc-olive: #8b8507;
  --fc-olive-dark: #706b00;
  --fc-white: #ffffff;
  --fc-max: 1060px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--fc-ink);
  background: var(--fc-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
}

body,
button,
input,
textarea {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.fc-page {
  overflow: hidden;
  background: #fff;
}

.fc-container {
  width: min(var(--fc-max), calc(100% - 48px));
  margin: 0 auto;
}

.fc-btn,
.wp-block-button.fc-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 24px;
  border: 0;
  border-radius: 5px;
  background: var(--fc-olive);
  color: #fff;
  font: 700 10px/1 "Inter", Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(112, 107, 0, .18);
}

.fc-btn:hover,
.fc-btn:focus-visible,
.wp-block-button.fc-btn .wp-block-button__link:hover,
.wp-block-button.fc-btn .wp-block-button__link:focus-visible { background: var(--fc-olive-dark); }

.wp-block-button.fc-btn {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.fc-kicker {
  display: block;
  width: 52px;
  height: 1px;
  margin: 0 auto 18px !important;
  padding: 0;
  background: var(--fc-olive);
  line-height: 0;
  font-size: 0;
}

.fc-section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.08;
  text-align: center;
}

.fc-copy {
  color: var(--fc-muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.85;
}

.fc-hero {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #252825;
}

.fc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/images/hero-background-clean.png") center / cover no-repeat;
  filter: grayscale(1);
}

.fc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 18, 17, .54);
}

.fc-hero__inner {
  width: min(1240px, calc(100% - 48px));
  margin-top: 10px;
  color: #fff;
  text-align: center;
}

.wp-block-cover.fc-hero::before,
.wp-block-cover.fc-hero::after {
  display: none;
}

.wp-block-cover.fc-hero .wp-block-cover__background {
  opacity: .46 !important;
}

.wp-block-cover.fc-hero .wp-block-cover__inner-container {
  color: #fff;
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
}

.fc-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 4.2vw, 66px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.fc-hero p {
  margin: 0 0 28px;
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.25;
}

.fc-services {
  padding: 88px 0 110px;
}

.fc-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 52px;
  margin-top: 54px;
}

.fc-service svg,
.fc-service::before {
  width: 23px;
  height: 23px;
  margin-bottom: 22px;
  color: var(--fc-olive);
  stroke-width: 1.45;
}

.fc-service::before {
  display: block;
  font-family: "Inter", Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
}

.fc-service:nth-child(1)::before { content: "⌕"; }
.fc-service:nth-child(2)::before { content: "✎"; }
.fc-service:nth-child(3)::before { content: "◌"; }
.fc-service:nth-child(4)::before { content: "▣"; }

.fc-service h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.fc-service p {
  margin: 0;
  color: var(--fc-muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.7;
}

.fc-trust {
  padding: 112px 0 116px;
  background: var(--fc-soft);
}

.fc-trust__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.05fr);
  gap: 92px;
  align-items: center;
}

.fc-trust h2 {
  max-width: 400px;
  margin: 0 0 22px;
  font-size: clamp(30px, 3.3vw, 43px);
  font-weight: 500;
  line-height: 1.08;
}

.fc-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 32px;
}

.fc-stat {
  min-height: 96px;
  padding: 17px 0 10px;
  border-top: 1px solid var(--fc-line);
}

.fc-stat strong,
.fc-stat h3 {
  display: block;
  color: var(--fc-olive);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.fc-stat span,
.fc-stat p {
  display: block;
  color: var(--fc-muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 11px;
  margin: 0;
}

.fc-refs {
  padding: 132px 0 142px;
}

.fc-ref-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 38px;
}

.fc-ref-strip img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.fc-ref-strip figure,
.fc-feature figure {
  margin: 0;
}

.fc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.fc-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dbd9a9;
}

.fc-dots:empty::before {
  content: "";
}

.fc-refs__action { text-align: center; }

.fc-process {
  padding: 122px 0 128px;
  background: var(--fc-soft);
}

.fc-process__grid {
  display: grid !important;
  grid-template-columns: minmax(330px, .9fr) minmax(500px, 1fr);
  gap: 86px;
  align-items: start;
}

.fc-process .fc-process__grid {
  width: min(var(--fc-max), calc(100% - 48px));
  max-width: var(--fc-max);
  margin-left: auto;
  margin-right: auto;
}

.fc-process__grid > .wp-block-column {
  flex-basis: auto !important;
  flex-grow: 0 !important;
  min-width: 0;
}

.fc-process__grid > .wp-block-column:first-child {
  max-width: 430px;
}

.fc-process h2,
.fc-feature h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 500;
  line-height: 1.1;
}

.fc-steps {
  display: grid !important;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.fc-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--fc-line);
  margin-bottom: 0;
}

.fc-step:first-child { border-top: 1px solid var(--fc-line); }

.fc-step.wp-block-columns {
  flex-wrap: nowrap !important;
}

.fc-step.wp-block-columns,
.fc-step.wp-block-columns:not(.is-not-stacked-on-mobile) {
  gap: 18px;
}

.fc-step__num-col {
  flex: 0 0 44px !important;
  max-width: 44px;
}

.fc-step__content {
  flex: 1 1 auto !important;
  min-width: 0;
}

.fc-step > .wp-block-group,
.fc-step > div {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-width: 0;
}

.fc-step > .wp-block-group > *,
.fc-step > div > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.fc-process .is-layout-constrained > .fc-step,
.fc-process .fc-step.is-layout-constrained,
.fc-process .fc-step .is-layout-constrained {
  max-width: none !important;
}

.fc-step__num {
  color: var(--fc-olive);
  font-family: "Inter", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
}

.fc-step h3 {
  margin: 0 0 4px;
  color: var(--fc-olive);
  font-family: "Inter", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.fc-step p {
  margin: 0;
  color: var(--fc-muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.fc-features {
  padding: 130px 0 126px;
}

.fc-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center;
  margin: 0 auto 86px;
  width: min(960px, calc(100% - 48px));
}

.fc-feature:last-child { margin-bottom: 0; }

.fc-feature img {
  width: 100%;
  aspect-ratio: 1.36 / 1;
  object-fit: cover;
}

.fc-feature__text {
  max-width: 430px;
}

.fc-faq {
  padding: 96px 0 112px;
  background: var(--fc-soft);
}

.fc-faq__list {
  width: min(760px, 100%);
  margin: 62px auto 0;
}

.fc-faq details {
  border-bottom: 1px solid var(--fc-line);
}

.fc-faq details:first-child {
  border-top: 1px solid var(--fc-line);
}

.fc-faq summary {
  position: relative;
  display: block;
  padding: 20px 34px 20px 0;
  cursor: pointer;
  font-size: 15px;
  list-style: none;
}

.fc-faq summary::-webkit-details-marker { display: none; }

.fc-faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  color: var(--fc-olive);
  font-family: "Inter", Arial, sans-serif;
  transform: translateY(-50%);
}

.fc-faq details[open] summary::after { content: "-"; }

.fc-faq p {
  margin: -6px 0 20px;
  padding-right: 44px;
}

.fc-cta {
  padding: 142px 0 150px;
  text-align: center;
}

.fc-cta h2 {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: clamp(40px, 5vw, 60px);
  font-style: italic;
  font-weight: 500;
  line-height: .98;
}

.fc-cta p {
  max-width: 680px;
  margin: 0 auto 34px;
}

@media (max-width: 900px) {
  .fc-services__grid,
  .fc-ref-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .fc-trust__grid,
  .fc-process__grid,
  .fc-feature {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .fc-process__grid > .wp-block-column:first-child {
    max-width: none;
  }

  .fc-feature:nth-child(even) .fc-feature__text {
    order: 2;
  }
}

@media (max-width: 620px) {
  .fc-container,
  .fc-feature,
  .fc-hero__inner {
    width: min(100% - 30px, var(--fc-max));
  }

  .fc-hero { min-height: 420px; }

  .fc-hero h1 {
    white-space: normal;
  }

  .fc-services,
  .fc-trust,
  .fc-refs,
  .fc-process,
  .fc-features,
  .fc-faq,
  .fc-cta {
    padding-top: 72px;
    padding-bottom: 78px;
  }

  .fc-services__grid,
  .fc-ref-strip,
  .fc-stats {
    grid-template-columns: 1fr;
  }

  .fc-service { text-align: center; }
  .fc-service svg { margin-left: auto; margin-right: auto; }

  .fc-step {
    grid-template-columns: 34px 1fr;
  }
}
