/* ==========================================================================
   home page — layout inspired by a clean freelancer one-pager, in this site's own colours
   ========================================================================== */
.section[id] { scroll-margin-top: 5rem; }

/* ---------- hero ---------- */
.hero { padding-top: var(--space-lg); background: var(--surface-page); }
.hero__branch { width: clamp(7rem, 14vw, 12rem); left: -1.5rem; bottom: 4rem; top: auto; opacity: 0.5; z-index: -1; }
.hero__grid { display: grid; gap: var(--space-xl); align-items: center; }
.hero__copy { display: grid; gap: var(--space-sm); justify-items: start; }
.hero__copy h1 { font-size: clamp(2.1rem, 9vw, var(--text-4xl)); }
.hero__tagline { font-family: var(--font-heading); font-size: var(--text-xl); color: var(--color-blue-deep); margin: 0; }
.hero__facts { display: grid; gap: var(--space-3xs); font-size: var(--text-sm); color: var(--text-heading); font-weight: var(--weight-medium); }
.hero__facts li { display: flex; align-items: center; gap: var(--space-2xs); }
.hero__facts img { width: 1.1rem; height: 1.1rem; flex: none; }
.hero__copy .lead { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-2xs); }
.hero__media { position: relative; width: min(100%, 28rem); margin-inline: auto; padding: 0 0 1rem; }
.hero__wash { width: 120%; aspect-ratio: 1; left: -10%; top: -10%; color: var(--color-blue-soft); opacity: 0.45; z-index: -1; animation: drift var(--duration-drift) ease-in-out infinite alternate; }
.hero__round { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-blob-a); box-shadow: var(--shadow-lift); border: 0.5rem solid var(--color-paper); }
.hero__round img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip { position: absolute; background: var(--color-paper); box-shadow: var(--shadow-lift); font-weight: var(--weight-semibold); color: var(--text-heading); animation: float 8s ease-in-out infinite alternate; }
.hero__chip--a { left: -0.25rem; top: 12%; }
.hero__chip--b { right: -0.25rem; top: 30%; animation-delay: -2s; }
.hero__chip--c { left: 0; bottom: 14%; animation-delay: -4s; }
.hero__chip--d { right: 6%; bottom: 0; animation-delay: -6s; }
@keyframes drift { from { transform: rotate(0deg) scale(1); } to { transform: rotate(14deg) scale(1.06); } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-0.5rem); } }
@media (min-width: 62em) {
  .hero { padding-top: var(--space-xl); }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-2xl); }
  .hero__media { width: 100%; }
}

/* ---------- tools marquee ---------- */
.marquee { background: var(--surface-raised); padding: var(--space-sm) 0 var(--space-md); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: var(--space-sm); padding-right: var(--space-sm); flex: none; }
.marquee__item { padding: 0.55rem 1.3rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line-accent); color: var(--color-blue-deep); font-weight: var(--weight-semibold); font-size: var(--text-sm); text-transform: lowercase; white-space: nowrap; background: var(--color-paper); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; padding: 0 var(--space-md); }
  .hero__chip, .hero__wash { animation: none; }
}

/* ---------- testimonials ---------- */
.testimonials { background: var(--surface-raised); padding-block: var(--space-xl); }
.testi { position: relative; max-width: 46rem; margin-inline: auto; text-align: center; }
.testi__quote { margin: 0; font-family: var(--font-heading); font-size: var(--text-xl); line-height: 1.45; color: var(--text-heading); text-transform: none; }
.testi__who { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--text-muted, var(--color-blue-deep)); }
.testi__who strong { color: var(--text-heading); }
.testi__nav { display: flex; justify-content: center; gap: var(--space-2xs); margin-top: var(--space-md); }
.testi__dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 0; background: var(--color-blue-soft); cursor: pointer; padding: 0; }
.testi__dot[aria-current="true"] { background: var(--color-blue-deep); }

/* ---------- about ---------- */
.about-home { background: var(--surface-raised); }
.about-home__grid { display: grid; gap: var(--space-xl); align-items: center; }
.about-home__photo { margin: 0; aspect-ratio: 4 / 5; max-width: 26rem; width: 100%; margin-inline: auto; overflow: hidden; border-radius: var(--radius-blob-b); box-shadow: var(--shadow-lift); border: 0.5rem solid var(--color-paper); }
.about-home__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-home__copy { display: grid; gap: var(--space-sm); justify-items: start; }
.about-home__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-2xs); }
@media (min-width: 62em) { .about-home__grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-2xl); } }

/* ---------- services ---------- */
.home-services { background: var(--surface-soft); }
.home-services .section__intro { margin-bottom: var(--space-lg); }
.svc-grid { display: grid; gap: var(--space-md); }
.svc { display: flex; }
.svc__link { display: flex; flex-direction: column; gap: var(--space-xs); width: 100%; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--color-paper); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; transition: transform var(--duration-base, .25s) var(--ease-soft), box-shadow var(--duration-base, .25s) var(--ease-soft); }
.svc__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.svc__link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.svc__icon { width: 3rem; height: 3rem; padding: 0.6rem; background: var(--color-blue-pale); border-radius: 50%; }
.svc h3 { font-size: var(--text-lg); }
.svc p { font-size: var(--text-sm); margin: 0; }
.svc__more { margin-top: auto; padding-top: var(--space-2xs); display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: var(--weight-semibold); color: var(--color-blue-deep); font-size: var(--text-sm); text-transform: lowercase; }
.svc__more img { width: 1rem; height: 1rem; transition: transform .2s; }
.svc__link:hover .svc__more img { transform: translateX(4px); }
@media (min-width: 40em) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- projects ---------- */
.home-projects { background: var(--surface-sage); color: var(--color-ink); }
.home-projects .eyebrow { color: var(--color-navy); }
.home-projects .section__intro { margin-bottom: var(--space-lg); }
.home-projects .projects__grid { grid-template-columns: 1fr; }
.home-projects__all { margin-top: var(--space-lg); text-align: center; }
@media (min-width: 48em) { .home-projects .projects__grid { grid-template-columns: repeat(3, 1fr); } }
.home-projects .project__lines { display: none; }

/* ---------- why / skills ---------- */
.home-skills { background: var(--surface-page); }
.home-skills .section__intro { margin-bottom: var(--space-lg); }
.skills { display: grid; gap: var(--space-md); }
.skills li { padding: var(--space-md); border-top: 3px solid var(--color-blue-soft); }
.skills__n { font-family: var(--font-heading); font-size: var(--text-2xl); color: var(--color-blue); }
.skills h3 { margin: var(--space-3xs) 0 var(--space-2xs); font-size: var(--text-lg); }
.skills p { margin: 0; font-size: var(--text-sm); }
@media (min-width: 48em) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .skills { grid-template-columns: repeat(4, 1fr); } }

/* ---------- contact ---------- */
.home-contact { background: var(--surface-raised); }
.home-contact__grid { display: grid; gap: var(--space-xl); align-items: start; }
.home-contact__intro { display: grid; gap: var(--space-sm); justify-items: start; }
.home-contact__list { display: grid; gap: var(--space-2xs); font-weight: var(--weight-medium); color: var(--text-heading); }
.home-contact__list li { display: flex; align-items: center; gap: var(--space-2xs); }
.home-contact__list img { width: 1.1rem; height: 1.1rem; flex: none; }
@media (min-width: 62em) { .home-contact__grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); } }

/* testimonials extras */
.testimonials .section__intro { text-align: center; margin-inline: auto; max-width: 44rem; margin-bottom: var(--space-lg); }
.testi { background: var(--color-paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: clamp(1.5rem, 4vw, 3rem); min-height: 18rem; display: flex; flex-direction: column; justify-content: center; }
.testi__quote { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); }
.testi__quote::before { content: ""; display: block; width: 2.5rem; height: 2.5rem; margin: 0 auto var(--space-sm); background: var(--color-blue-soft); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 17.5V13c0-4 2-6.7 6-7.5l.5 1.6C8.6 7.7 7.7 9 7.5 11H10v6.5H4zm10 0V13c0-4 2-6.7 6-7.5l.5 1.6c-1.9.6-2.8 1.9-3 3.9H20v6.5h-6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 17.5V13c0-4 2-6.7 6-7.5l.5 1.6C8.6 7.7 7.7 9 7.5 11H10v6.5H4zm10 0V13c0-4 2-6.7 6-7.5l.5 1.6c-1.9.6-2.8 1.9-3 3.9H20v6.5h-6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.testi__who strong { text-transform: none; }
.testi__nav { align-items: center; gap: var(--space-sm); }
.testi__arrow { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--line-accent); background: transparent; color: var(--color-blue-deep); cursor: pointer; padding: 0; transition: background .2s, color .2s; }
.testi__arrow:hover { background: var(--color-blue-deep); color: var(--text-on-accent); }
.testi__arrow:focus-visible, .testi__dot:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.testi__nav { gap: var(--space-xs); }

/* side arrows < > */
.testi { position: relative; padding-inline: clamp(2.75rem, 7vw, 5rem); }
.testi__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 4rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-blue-deep); }
.testi__arrow svg { width: 1.6rem; height: 2.6rem; stroke-width: 1.4; }
.testi__arrow[data-dir="-1"] { left: clamp(0.1rem, 1.5vw, 1rem); }
.testi__arrow[data-dir="1"] { right: clamp(0.1rem, 1.5vw, 1rem); }
.testi__arrow:hover { background: var(--color-blue-pale); color: var(--color-blue-deep); }
@media (min-width: 62em) { .testi__arrow[data-dir="-1"] { left: -4.5rem; } .testi__arrow[data-dir="1"] { right: -4.5rem; } .testi { padding-inline: clamp(2.5rem, 5vw, 4rem); } }

/* German hero headline: long words need a smaller size so they never break */
:root[data-lang="de"] .hero__copy h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 40em) { :root[data-lang="de"] .hero__copy h1 { font-size: clamp(1.9rem, 8.2vw, 2.4rem); } }
