/* Shared iCoding chrome: wordmarks, compact subpage hero and FAQ cards. */

nav.main .brand-logo-img,
.brand-logo-img {
  display: inline-flex;
  width: 158px;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
  transform-origin: left center;
  transition: transform .45s var(--ease);
}

.brand-logo-img img,
.mobile-brand-logo-img img,
.footer-logo-img img {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-nav-top .mobile-brand-logo-img {
  display: block;
  width: 150px;
  flex: 0 0 auto;
}

.footer-logo-img {
  display: block;
  width: 210px;
  margin-bottom: 25px;
  transform-origin: left center;
  transition: transform .45s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .brand-logo-img:hover,
  .footer-logo-img:hover {
    transform: translate3d(3px, -2px, 0) scale(1.025);
  }
}

/* Breadcrumbs took up a complete visual row above the actual page title. */
.page-hero {
  padding-top: clamp(126px, 10vw, 150px);
}

/* The Webagentur title is long; keep it editorial instead of viewport-filling. */
.webagentur-page .page-hero h1 {
  max-width: 1500px;
  font-size: clamp(56px, 7.6vw, 142px);
  line-height: .92;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.webagentur-page .page-hero h1 em {
  display: block;
}

/* FAQ system from index3: compact, card-based and consistent across pages. */
.faq,
.contact-faq-section {
  padding: clamp(76px, 6.8vw, 96px) var(--gutter);
}

.faq h2.section-title,
.contact-faq-section h2.section-title {
  max-width: none;
  font-size: clamp(46px, 5vw, 72px);
  line-height: .92;
  letter-spacing: -.05em;
  overflow-wrap: normal;
  hyphens: none;
}

.faq-grid {
  grid-template-columns: minmax(220px, .56fr) minmax(0, 1.44fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
  border-top: 0;
}

.faq-item {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color .3s, background .3s;
}

.faq-item[open] {
  border-color: rgba(0, 64, 255, .45);
  background: #fff;
}

.faq-item summary {
  min-height: 64px;
  padding: 17px 20px;
  gap: 20px;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.25;
  letter-spacing: -.018em;
}

/* Match the contact FAQ typography to the homepage FAQ. */
.contact-faq-section .faq-item summary {
  font-weight: 600;
  text-transform: none;
  hyphens: none;
}

.faq-item:hover summary { color: var(--ink); }
.faq-item[open] summary { color: var(--blue); }

.faq-icon {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.faq-answer {
  max-width: 68ch;
  margin: 0;
  padding: 0 64px 20px 20px;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 640px) {
  nav.main .brand-logo-img,
  .brand-logo-img { width: 142px; }
  .mobile-nav-top .mobile-brand-logo-img { width: 142px; }
  .footer-logo-img { width: 180px; }
  .page-hero { padding-top: 104px; }
  .webagentur-page .page-hero h1 {
    font-size: clamp(30px, 10.5vw, 48px);
    line-height: 1;
  }
  .faq,
  .contact-faq-section { padding: 64px var(--gutter); }
  .faq h2.section-title,
  .contact-faq-section h2.section-title {
    font-size: 40px;
    line-height: .96;
  }
  .faq-grid { gap: 24px; }
  .faq-list { gap: 6px; }
  .faq-item { padding: 0; }
  .faq-item summary {
    min-height: 52px;
    padding: 11px 14px;
    gap: 12px;
    font-size: 16.5px;
  }
  .faq-icon {
    width: 27px;
    height: 27px;
    font-size: 12px;
  }
  .faq-answer {
    margin: 0;
    padding: 0 50px 16px 15px;
    font-size: 13.5px;
  }

  .city-nearby-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .city-nearby-card,
  .city-nearby-title {
    min-width: 0;
  }

  .city-nearby-title {
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-img,
  .footer-logo-img { transition: none; }
  .brand-logo-img:hover,
  .footer-logo-img:hover { transform: none; }
}
