/*
 * Fundament Digital — Homepage clarity layer 1.6.3
 * A shorter, more visual homepage with flexible service entry points.
 */

.fd-page-startseite .hero .lead {
  max-width: 630px;
  font-size: clamp(18px, 1.55vw, 21px);
  font-weight: 560;
  line-height: 1.5;
}

.home-support-section,
.home-personal-section {
  background: #f8fafc;
}

.home-services-section,
.home-process-section {
  background: var(--fd-brand-mist);
}

.home-section-head {
  max-width: 830px;
  margin-bottom: 36px;
}

.home-section-head h2 {
  color: var(--fd-brand-navy);
}

.home-section-head > p {
  max-width: 760px;
  color: #4f6279;
  font-size: 18px;
  line-height: 1.68;
}

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

.home-support-card {
  position: relative;
  min-height: 200px;
  padding: 28px 28px 26px;
  overflow: hidden;
  border: 1px solid var(--fd-paper-edge);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(11, 30, 61, 0.055);
}

.home-support-card::before,
.home-personal-card::before,
.home-process-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--fd-accent-line);
}

.home-card-num,
.home-service-num {
  display: block;
  margin-bottom: 13px;
  color: var(--fd-readable-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.home-support-card h3,
.home-process-card h3 {
  margin-bottom: 10px;
  color: var(--fd-brand-navy);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 760;
  line-height: 1.2;
  text-transform: none;
}

.home-support-card p,
.home-process-card p {
  color: #56687d;
  font-size: 16px;
  line-height: 1.62;
}

.home-support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.home-secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  color: var(--fd-brand-navy);
  border: 1px solid rgba(11, 30, 61, 0.27);
  border-radius: 3px;
  background: transparent;
  font-size: 15px;
  font-weight: 720;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.home-secondary-action:hover,
.home-secondary-action:focus-visible {
  border-color: var(--fd-brand-blue);
  background: rgba(47, 95, 146, 0.07);
}

#leistungen {
  scroll-margin-top: 96px;
}

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

.home-service-card {
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--fd-paper-edge);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 30, 61, 0.06);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.home-service-card:hover {
  border-color: rgba(47, 95, 146, 0.46);
  box-shadow: 0 16px 38px rgba(11, 30, 61, 0.1);
  transform: translateY(-2px);
}

.home-service-card[open] {
  border-color: rgba(232, 96, 10, 0.62);
  box-shadow: 0 18px 40px rgba(11, 30, 61, 0.11);
}

.home-service-card summary {
  position: relative;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 38px;
  min-height: 158px;
  align-items: center;
  gap: 20px;
  padding: 0 20px 0 0;
  list-style: none;
  cursor: pointer;
}

.home-service-card summary::-webkit-details-marker {
  display: none;
}

.home-service-card summary::marker {
  content: "";
}

.home-service-card summary:focus-visible {
  outline: 3px solid rgba(184, 68, 0, 0.3);
  outline-offset: -4px;
}

.home-service-card summary > img {
  width: 168px;
  height: 158px;
  align-self: stretch;
  object-fit: cover;
}

.home-service-summary {
  display: block;
  min-width: 0;
  padding: 20px 0;
}

.home-service-summary strong {
  display: block;
  margin-bottom: 9px;
  color: var(--fd-brand-navy);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 770;
  line-height: 1.2;
}

.home-service-summary > span:last-child {
  display: block;
  color: #596b80;
  font-size: 14px;
  line-height: 1.5;
}

.home-service-num {
  margin-bottom: 8px;
  font-size: 10px;
}

.home-service-toggle {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(11, 30, 61, 0.2);
  border-radius: 50%;
  background: #f7f9fc;
}

.home-service-toggle::before,
.home-service-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--fd-brand-navy);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.home-service-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.home-service-card[open] .home-service-toggle {
  border-color: var(--fd-brand-orange);
  background: var(--fd-brand-orange);
}

.home-service-card[open] .home-service-toggle::before,
.home-service-card[open] .home-service-toggle::after {
  background: #fff;
}

.home-service-card[open] .home-service-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.home-service-detail {
  padding: 20px 24px 23px;
  border-top: 1px solid rgba(11, 30, 61, 0.12);
  background: #fbfcfe;
}

.home-service-detail p {
  margin: 0;
  color: #506378;
  font-size: 15px;
  line-height: 1.65;
}

.home-service-detail a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--fd-readable-orange);
  font-size: 14px;
  font-weight: 780;
}

.home-service-detail a:hover,
.home-service-detail a:focus-visible {
  color: var(--fd-brand-navy);
}

.home-personal-card {
  position: relative;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  max-width: 970px;
  min-height: 305px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  background-color: var(--fd-brand-navy);
  background-image:
    radial-gradient(circle at 92% 12%, rgba(47, 95, 146, 0.28), transparent 32%),
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.055) 1px, transparent 1.2px);
  background-size: auto, 25px 25px;
  box-shadow: 0 20px 48px rgba(11, 30, 61, 0.15);
}

.home-personal-portrait {
  align-self: end;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.home-personal-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.home-personal-copy {
  padding: 38px 42px 36px;
}

.home-personal-copy .section-kicker {
  color: var(--fd-orange-on-dark);
}

.home-personal-copy h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 49px);
}

.home-personal-copy h2 .accent {
  color: var(--fd-brand-orange-soft);
}

.home-personal-copy p {
  max-width: 660px;
  color: rgba(241, 246, 251, 0.82);
  font-size: 16px;
  line-height: 1.64;
}

.home-personal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 20px 0 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-personal-meta span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--fd-brand-orange-soft);
}

.home-personal-copy .btn-primary {
  min-height: 46px;
  padding: 12px 22px;
}

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

.home-process-card {
  position: relative;
  min-height: 190px;
  padding: 27px 27px 25px;
  border: 1px solid var(--fd-paper-edge);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
}

.home-process-card > span {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 9px;
  color: #fff;
  border-radius: 2px;
  background: var(--fd-action-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .home-support-grid,
  .home-process-grid {
    grid-template-columns: 1fr;
  }

  .home-support-card,
  .home-process-card {
    min-height: 0;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card summary {
    grid-template-columns: 190px minmax(0, 1fr) 38px;
  }

  .home-service-card summary > img {
    width: 190px;
  }
}

@media (max-width: 720px) {
  .fd-page-startseite .hero {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 102px;
  }

  .fd-page-startseite .hero h1 {
    font-size: clamp(43px, 13.5vw, 66px);
  }

  .fd-page-startseite .hero .lead {
    font-size: 16px;
    line-height: 1.52;
  }

  .home-support-section,
  .home-services-section,
  .home-personal-section,
  .home-process-section {
    padding: 58px 0;
  }

  .home-section-head {
    margin-bottom: 27px;
    text-align: center;
  }

  .home-section-head h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .home-section-head > p {
    font-size: 16px;
    line-height: 1.62;
  }

  .home-support-grid,
  .home-process-grid {
    gap: 13px;
  }

  .home-support-card,
  .home-process-card {
    padding: 23px 21px 21px;
    text-align: left;
  }

  .home-support-card p,
  .home-process-card p {
    font-size: 15px;
  }

  .home-support-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 23px;
  }

  .home-support-actions .btn-primary,
  .home-secondary-action {
    width: 100%;
  }

  .home-services-grid {
    gap: 13px;
  }

  .home-service-card:hover {
    transform: none;
  }

  .home-service-card summary {
    grid-template-columns: 112px minmax(0, 1fr) 30px;
    min-height: 116px;
    gap: 13px;
    padding-right: 13px;
  }

  .home-service-card summary > img {
    width: 112px;
    height: 116px;
  }

  .home-service-summary {
    padding: 13px 0;
  }

  .home-service-summary strong {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.18;
  }

  .home-service-summary > span:last-child {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-service-num {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .home-service-toggle {
    width: 29px;
    height: 29px;
  }

  .home-service-detail {
    padding: 17px 18px 20px;
  }

  .home-service-detail p {
    font-size: 14px;
  }

  .home-personal-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 0;
  }

  .home-personal-portrait {
    min-height: 180px;
  }

  .home-personal-copy {
    padding: 25px 18px 24px;
  }

  .home-personal-copy .section-kicker {
    width: auto;
    margin-right: 0;
    margin-left: 0;
    justify-content: flex-start;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-align: left;
  }

  .home-personal-copy .section-kicker::before,
  .home-personal-copy .section-kicker::after {
    width: 13px;
    flex-basis: 13px;
  }

  .home-personal-copy h2 {
    font-size: clamp(25px, 7.2vw, 34px);
  }

  .home-personal-copy p {
    font-size: 14px;
    line-height: 1.55;
  }

  .home-personal-copy p + p {
    display: none;
  }

  .home-personal-meta {
    margin: 15px 0 17px;
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  .home-personal-meta span {
    display: block;
    width: 100%;
  }

  .home-personal-meta span + span::before {
    content: none;
  }

  .home-personal-copy .btn-primary {
    width: auto;
    min-height: 40px;
    padding: 9px 13px;
    font-size: 12px;
  }
}

@media (max-width: 470px) {
  .home-service-card summary {
    grid-template-columns: 96px minmax(0, 1fr) 27px;
    min-height: 106px;
    gap: 10px;
    padding-right: 10px;
  }

  .home-service-card summary > img {
    width: 96px;
    height: 106px;
  }

  .home-service-summary strong {
    font-size: 15px;
  }

  .home-service-toggle {
    width: 27px;
    height: 27px;
  }

  .home-personal-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .home-personal-portrait {
    min-height: 170px;
  }

  .home-personal-copy {
    padding: 22px 14px 21px;
  }

  .home-personal-copy h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card,
  .home-service-toggle::before,
  .home-service-toggle::after {
    transition: none;
  }
}
