/* Startseite: fünf Situationen auf einen Blick, darunter der Ansatz.
   Gelb bleibt die vorläufige Bildschirmfarbe aus styles.css (--yellow). */

@font-face {
  font-family: "Azeret Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/azeret-mono-300.ttf") format("truetype");
}

body.home {
  --home-header: 5.25rem;
  background: var(--paper);
  padding-bottom: 0;
}

body.home h1,
body.home h2,
body.home h3 {
  max-width: none;
  font-weight: 400;
}

body.home .site-header {
  min-height: var(--home-header);
  padding: 0.35rem clamp(1rem, 2vw, 1.6rem) 0.4rem;
  border-bottom: 0;
  background: var(--paper);
}

body.home .logo {
  padding: 0.3rem 0.4rem 0.3rem 0.05rem;
}

body.home .logo img {
  height: 2.7rem;
}

body.home .site-nav {
  gap: 0.05rem;
  margin-left: 0.2rem;
}

body.home .menu > button,
body.home .nav-direct {
  background: transparent;
  font-weight: 500;
  font-size: 1.02rem;
  padding-inline: 0.7rem;
}

body.home .menu > button:hover,
body.home .menu:hover > button,
body.home .menu:focus-within > button,
body.home .menu > button[aria-expanded="true"],
body.home .nav-direct:hover,
body.home .nav-direct:focus-visible {
  background: var(--yellow);
}

body.home .menu.is-current > button {
  background: transparent;
}

body.home .header-actions {
  gap: 1.15rem;
}

body.home .header-phone {
  display: none;
}

body.home .header-google {
  display: block;
  width: calc(2.6rem * 472 / 152 + 80px);
  height: auto;
}

.first {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: calc(100svh - var(--home-header));
  background: var(--paper);
}

.claim-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.7fr);
  align-items: end;
  gap: 1.5rem 2.5rem;
  padding: calc(clamp(3.3rem, 9vh, 5.5rem) + 80px) clamp(1.05rem, 2vw, 1.6rem) 1.1rem;
}

body.home .claim {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(3.1rem, 6.4vw, 5.4rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.claim-lead,
.claim-alt {
  margin: 0.8rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.claim-alt {
  margin: 0 0 0.15rem;
  max-width: 16rem;
  justify-self: end;
}

.claim-alt a {
  font-weight: 700;
  text-decoration: none;
}

.facts {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 1rem;
  row-gap: 0.5rem;
  align-items: baseline;
  justify-self: end;
  margin: 0 15px 0 0;
  padding: 0 0 0.35rem 1rem;
  border-left: 3px solid var(--yellow);
  background: transparent;
  color: var(--ink);
  list-style: none;
}

.facts-kicker {
  grid-column: 1 / -1;
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.facts li:not(.facts-kicker) {
  display: contents;
}

.facts strong,
.facts li span {
  justify-self: start;
  text-align: left;
}

.facts strong {
  display: inline-grid;
  color: var(--ink);
  font-size: calc(clamp(1.7rem, 2.5vw, 2.45rem) + 1pt);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.facts .count-num,
.facts .count-sizer {
  grid-area: 1 / 1;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.facts .count-sizer {
  visibility: hidden;
}

.facts li span {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.15;
}

.situations {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.28rem;
  flex: 0 0 auto;
  height: 28vh;
  min-height: 11.5rem;
  padding: 0 0.28rem 0.28rem;
}

.problems {
  display: flex;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  margin-top: 0.28rem;
  container-type: inline-size;
}

.problems .situation {
  flex: 1 1 0;
  min-width: 0;
}


.situations h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.situation {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #cfc8bc;
}

.situation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.situation::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 32%, rgba(0, 0, 0, 0) 58%);
  pointer-events: none;
}

.situation-title {
  position: absolute;
  z-index: 1;
  top: auto;
  bottom: calc(clamp(0.7rem, 2vh, 1.15rem) + 2.35rem + 0.55rem);
  left: clamp(0.55rem, 1vw, 0.95rem);
  right: 0.4rem;
  font-size: clamp(1.05rem, 1.75vw, 1.95rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.situation-tag {
  position: absolute;
  z-index: 1;
  top: 42%;
  padding: 0.22rem 0.42rem;
  font-size: clamp(0.62rem, 0.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.situation-tag-before {
  left: 8%;
  background: var(--ink);
  color: var(--paper);
}

.situation-tag-after {
  right: 8%;
  background: var(--yellow);
  color: var(--ink);
}

.situation-go {
  position: absolute;
  z-index: 1;
  left: clamp(0.55rem, 1vw, 0.95rem);
  bottom: clamp(0.7rem, 2vh, 1.15rem);
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.situation:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -3px;
}

.ansatz {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) 1.3fr;
  align-items: end;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.1rem, 3vw, 2.4rem);
  background: var(--yellow);
}

.ansatz .kicker,
.ansatz h2,
.ansatz p {
  grid-column: 2;
}

.ansatz-check {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-height: 5.2rem;
  padding: 1.15rem 1.85rem;
  background: var(--ink);
  color: var(--yellow);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.1;
}

.ansatz-check span {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.ansatz-check:hover,
.ansatz-check:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.person {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(36rem - 200px);
  height: calc(82vh - 200px);
  overflow: hidden;
  color: #fff;
  background: #222 url("../assets/img/dila-mensch.jpg?v=2") 72% 0% / cover no-repeat fixed;
}

.person::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 46%, transparent 68%);
}

.person-copy {
  position: relative;
  z-index: 1;
  width: min(34rem, 52%);
  padding: 1.4rem clamp(1.1rem, 3vw, 2.4rem);
}

.person p {
  margin: 0.7rem 0 0;
  max-width: 32rem;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.4;
}

.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.problems .situation-title {
  text-transform: none;
  font-size: calc(clamp(1.05rem, 1.45vw, 1.65rem) - 2pt);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

@media (min-width: 861px) {
  .problems .situation-title {
    right: auto;
    width: calc((100cqi - 4 * 0.28rem) / 5 - clamp(0.55rem, 1vw, 0.95rem) - 0.4rem);
  }
}

.solutions {
  padding: calc(clamp(4rem, 9vh, 6rem) + 50px) clamp(1.05rem, 2vw, 1.6rem) clamp(2.2rem, 5vh, 3.2rem);
  background: var(--paper);
}

.solutions h2 {
  margin: 0 0 1.4rem;
  padding: 0;
}

.solution-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 1.15rem 0 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.solution-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: 6.4rem;
  padding: 0.9rem 0.85rem;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.solution-mark {
  display: block;
  width: calc(2.45rem + 10px);
  height: calc(2.45rem + 10px);
  object-fit: contain;
  background: var(--paper);
}

.solution-links a:hover,
.solution-links a:focus-visible {
  background: var(--yellow);
  color: var(--ink);
}

.solution-links a:hover .solution-mark,
.solution-links a:focus-visible .solution-mark {
  background: var(--yellow);
}

body.home .ansatz h2,
body.home .solutions h2,
body.home .keep h2,
body.home .way h2,
body.home .compare-block h2,
body.home .person h2 {
  margin: 0;
  font-size: calc(clamp(2.4rem, 5vw, 4.6rem) - 2pt);
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--ink);
}

body.home .way h2,
body.home .person h2 {
  color: #fff;
}

.ansatz p:not(.kicker),
.keep p,
.compare-copy p {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 300;
}

.keep {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) 1.1fr;
  align-items: center;
  min-height: 0;
  padding: 0;
  background: #f4f0ea;
}

.keep div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: clamp(2.5rem, 7vh, 5.5rem) clamp(1.2rem, 3vw, 2.8rem);
}

.keep figure {
  position: relative;
  margin: 0;
  min-height: 0;
  background: #f4f0ea;
}

.keep img {
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  object-position: center;
  display: block;
}

.way {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.8rem, 4vh, 2.8rem);
  min-height: 0;
  padding: clamp(2.4rem, 6vh, 4rem) clamp(1.1rem, 3vw, 2.4rem) clamp(2.2rem, 5vh, 3.4rem);
  overflow: hidden;
  background: #111 url("../assets/img/dila-weg-abend.jpg") 68% center / cover no-repeat;
  color: var(--paper);
}

.way::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 34%, rgba(0, 0, 0, 0.12) 62%);
}

.way::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: min(18vw, 13.5rem);
  height: min(14vw, 10rem);
  background: var(--yellow);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 68%);
}

.way h2,
.way ol {
  position: relative;
  z-index: 1;
}

.way h2 {
  max-width: 12ch;
}

.way ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 16rem));
  justify-content: start;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  width: min(100%, 52rem);
  margin: clamp(2.4rem, 6vh, 3.6rem) 0 0;
  padding: 0;
  list-style: none;
}

.way li {
  display: grid;
  justify-items: start;
  gap: 0.28rem;
  font-weight: 500;
  line-height: 1.35;
}

.way .dila-mark {
  display: block;
  width: 1.7rem;
  height: auto;
  margin-bottom: 0.7rem;
  mix-blend-mode: screen;
}

.way .step-no {
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.way li strong {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.way li p {
  max-width: 16rem;
  margin: 0.35rem 0 0.7rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.4;
}

.way-go {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.way-go:hover,
.way-go:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.compare-block {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.72fr);
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3rem);
  padding: calc(clamp(4.4rem, 9vh, 6.6rem) + 40px) clamp(1.1rem, 3vw, 2.4rem) calc(clamp(4.4rem, 9vh, 6.6rem) + 50px);
}

.compare-copy {
  grid-column: 2;
  grid-row: 1;
}

.compare {
  --pos: 54%;
  container-type: inline-size;
  position: relative;
  grid-column: 1;
  grid-row: 1;
  height: calc(56vh + 60px);
  max-height: calc(32rem + 60px);
  margin-top: 0;
  overflow: hidden;
  background: #e7e1d6;
}

.compare > img,
.compare-before img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100cqi;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.compare-before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pos);
  overflow: hidden;
  border-right: 3px solid var(--yellow);
}

.compare-tag {
  position: absolute;
  z-index: 2;
  top: 0.8rem;
  padding: 0.22rem 0.4rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-tag-before { left: 0.8rem; }
.compare-tag-after { right: 0.8rem; }

.compare input {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  bottom: 0.9rem;
  width: 84%;
  margin: 0;
  accent-color: #ffed00;
}

.ask {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem 1.4rem;
  padding: calc(0.7rem + 9px) clamp(1.1rem, 3vw, 2.4rem);
  background: var(--yellow);
}

.ask h2 {
  flex: 1 1 auto;
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ask .btn {
  align-self: center;
  min-height: 2.35rem;
  padding-block: 0.35rem;
  padding-inline: 1.1rem;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 700;
}

.ask .btn:hover,
.ask .btn:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.ask-phone {
  align-self: center;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body.home .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.55rem clamp(1rem, 2vw, 1.7rem) 2.85rem;
}

body.home .footer-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

body.home .footer-phone,
body.home .footer-links a {
  font-weight: 500;
  text-decoration: none;
}

body.home .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .situation img {
    transition: transform 0.6s ease;
  }

  .situation:hover img,
  .situation:focus-visible img {
    transform: scale(1.04);
  }

  .problems .situation:hover img,
  .problems .situation:focus-visible img {
    transform: none;
  }

  .problems .situation {
    transition: flex-grow 0.45s ease;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 861px) {
  .problems:hover .situation,
  .problems:focus-within .situation {
    flex-grow: 0.92;
  }

  .problems .situation:hover,
  .problems .situation:focus-visible {
    flex-grow: 1.32;
  }
}

@media (max-width: 860px) {
  body.home {
    padding-bottom: 0;
  }

  body.home .header-google {
    width: calc(2.05rem * 472 / 152 + 24px);
  }

  body.home .site-nav {
    border-bottom: 1px solid var(--ink);
  }

  .first {
    height: auto;
    min-height: calc(100svh - var(--home-header));
  }

  body.home .claim {
    margin-top: 0.4rem;
  }

  .claim-row {
    grid-template-columns: 1fr;
    padding-top: calc(1.8rem + 48px);
  }

  .facts {
    justify-self: start;
    margin: 1.4rem 0 0;
  }

  .person {
    height: calc(34rem - 200px);
    background-attachment: scroll;
  }

  .person-copy {
    width: min(18rem, 78%);
  }

  .person p {
    font-size: 0.82rem;
  }

  .problems {
    flex: none;
    height: calc(46vh - 80px);
    min-height: 13rem;
  }

  .solution-links {
    grid-template-columns: 1fr;
  }

  .solution-links a {
    min-height: 0;
    padding: 0.85rem 0.75rem;
    border-bottom: 0;
  }

  .compare-block {
    grid-template-columns: 1fr;
  }

  .compare,
  .compare-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .problems .situation-title {
    font-size: calc(0.64rem - 2pt);
  }

  .situation-tag {
    top: 38%;
    font-size: 0.48rem;
    padding: 0.12rem 0.2rem;
  }

  .situation-title {
    bottom: calc(0.45rem + 1.45rem + 0.35rem);
    font-size: 0.72rem;
    letter-spacing: -0.03em;
  }

  .solutions .situation-title {
    bottom: 0.55rem;
  }

  .situation-go {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.8rem;
  }

  .ansatz,
  .keep,
  .way ol {
    grid-template-columns: 1fr;
  }

  .keep {
    min-height: 0;
  }

  .keep figure {
    min-height: 0;
  }

  .keep img {
    max-height: none;
  }

  .way {
    min-height: 0;
    padding-block: 3.2rem 2.6rem;
    background-position: 72% center;
  }

  .way::after {
    width: 7.2rem;
    height: 5.2rem;
  }

  .way ol {
    width: 100%;
  }

  .ansatz .kicker,
  .ansatz h2,
  .ansatz p,
  .ansatz-check {
    grid-column: 1;
    grid-row: auto;
  }

  .ansatz-check {
    margin-top: 1.2rem;
  }

  .ask {
    flex-wrap: wrap;
    padding-block: 0.9rem;
  }

  .compare {
    height: calc(62vw + 60px);
    min-height: 16rem;
  }

  body.home .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .situation img {
    transition: none;
    transform: none;
  }

  .person {
    background-attachment: scroll;
  }
}
