/* Concept C Modern Hybrid: replace this skin, not content/routes, for later A/B. */
.hero {
  border-radius: var(--c-radius);
  border: 1px solid var(--c-line);
  overflow: hidden;
  background: linear-gradient(120deg, var(--c-surface), var(--c-surface-soft));
  box-shadow: var(--c-shadow);
}
.hero-inner {
  padding: clamp(1.5rem, 4vw, 4rem);
}
.hero .feature-card {
  box-shadow: none;
  border-left: 3px solid var(--ans-green);
}
[data-bs-theme="dark"] .hero {
  border-color: var(--c-line);
}
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  display: flex;
  align-items: center;
  border-radius: var(--c-radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  box-shadow: var(--c-shadow);
}
.home-hero picture {
  position: absolute;
  inset: 0 0 0 40%;
  mask-image: linear-gradient(90deg, transparent, black 22%);
  z-index: -2;
}
.home-hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 50%;
  content-visibility: visible;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.94) 31%,
    rgba(255, 255, 255, 0.7) 51%,
    rgba(255, 255, 255, 0.04) 77%
  );
}
.home-hero-copy {
  padding: clamp(1.5rem, 4.5vw, 4rem);
  max-width: 760px;
  width: 62%;
}
.home-hero h1 {
  font-size: clamp(2.4rem, 4.3vw, 4.35rem) !important;
  line-height: 1.07;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
  font-weight: 780 !important;
}
.home-hero h1 span {
  color: #237244;
}
.home-hero .lead {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 52ch;
  color: #31465c !important;
}
.home-hero .kicker {
  text-transform: uppercase;
  font-size: 0.73rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.home-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
[data-bs-theme="dark"] .home-hero::after {
  background: linear-gradient(
    90deg,
    rgba(7, 19, 33, 0.99) 0%,
    rgba(7, 19, 33, 0.95) 31%,
    rgba(7, 19, 33, 0.77) 51%,
    rgba(7, 19, 33, 0.14) 82%
  );
}
[data-bs-theme="dark"] .home-hero h1 span {
  color: #73d59b;
}
[data-bs-theme="dark"] .home-hero .lead {
  color: #c3d2e3 !important;
}
.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 0;
  border-radius: 0 0 var(--c-radius) var(--c-radius);
  padding: 1.6rem 1rem;
  margin: 0 0.75rem 4rem;
  box-shadow: var(--c-shadow);
}
.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.25rem 1.25rem;
  border-right: 1px solid var(--c-line);
}
.benefit:last-child {
  border: 0;
}
.benefit i {
  font-size: 1.75rem;
  color: var(--c-blue);
}
.benefit strong {
  font-size: 0.9rem;
  display: block;
}
.benefit small {
  font-size: 0.76rem;
  line-height: 1.4;
  display: block;
  color: var(--c-muted);
}
.editorial-intro {
  text-align: center;
  max-width: 810px;
  margin: 0 auto 2rem;
}
.editorial-intro .kicker {
  text-transform: uppercase;
}
.editorial-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 760;
}
.editorial-intro p {
  color: var(--c-muted);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 4rem;
}
.service-card {
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius);
  background: var(--c-surface);
  box-shadow: var(--c-shadow);
  display: flex;
  flex-direction: column;
}
.service-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--c-line);
  border-radius: 15px;
  background: var(--c-surface-soft);
  color: var(--c-blue);
  font-size: 1.8rem;
}
.service-card:nth-child(even) .service-symbol {
  color: var(--c-green);
  background: color-mix(in srgb, var(--c-green) 9%, var(--c-surface));
  border-color: color-mix(in srgb, var(--c-green) 22%, var(--c-line));
}
.service-card-content {
  padding: 1.35rem 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.25;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.7;
  flex: 1;
}
.service-card a {
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.service-card:hover {
  box-shadow: var(--c-shadow-hover);
  border-color: #9db8d3;
}
.home-trust .feature-card {
  border-top: 3px solid var(--ans-green);
}
.home-contact-band {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--c-footer);
  color: var(--c-footer-text);
  border-radius: var(--c-radius);
  margin-bottom: 3rem;
}
.home-contact-band h2 {
  color: #fff;
}
.home-contact-band p {
  color: #c6d5e4;
}
.home-contact-band a:not(.btn) {
  color: #b6d9ff;
}
.home-contact-details {
  display: grid;
  gap: 0.8rem;
  align-content: center;
  border-left: 1px solid #456078;
  padding-left: 2rem;
}
.home-contact-details a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
}
.home-contact-details i {
  color: #73d59b;
  font-size: 1.2rem;
}
[data-page="impressum"] article,
[data-page="datenschutz"] article {
  max-width: 1000px;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 3rem) !important;
}
[data-page="impressum"] article h2,
[data-page="datenschutz"] article h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}
[data-page="kontakt"] #kontaktformular .feature-card {
  box-shadow: var(--c-shadow);
}
[data-page="faq"] .accordion-item {
  overflow: hidden;
}
[data-page="preise"] .feature-card,
[data-page="wartung"] .feature-card {
  border-top: 2px solid var(--c-line);
}
.webdesign-page .wd-hero {
  background: linear-gradient(120deg, var(--c-surface), var(--c-surface-soft));
}
.webdesign-page .wd-tag {
  background: var(--c-surface-soft);
  color: var(--c-blue);
}
.webdesign-page .wd-step-no {
  background: #2466a8;
}
.webdesign-page .wd-best {
  background: var(--ans-green);
  color: #0f172a;
}
@media (max-width: 1100px) {
  .home-hero {
    min-height: 520px;
  }
  .home-hero-copy {
    width: 70%;
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefit {
    padding-inline: 0.7rem;
    gap: 0.6rem;
  }
  .benefit strong {
    font-size: 0.85rem;
  }
  .benefit small {
    font-size: 0.72rem;
  }
}
@media (max-width: 767px) {
  .home-hero {
    min-height: 0;
    display: block;
  }
  .home-hero-copy {
    width: 100%;
    max-width: none;
    padding: 2rem 1.5rem 12rem;
  }
  .home-hero picture img {
    object-position: 72% 50%;
  }
  .home-hero::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(255, 255, 255, 0.96) 54%,
      rgba(255, 255, 255, 0.52) 77%,
      rgba(255, 255, 255, 0.08) 100%
    );
  }
  [data-bs-theme="dark"] .home-hero::after {
    background: linear-gradient(
      180deg,
      rgba(7, 19, 33, 0.99) 0%,
      rgba(7, 19, 33, 0.96) 54%,
      rgba(7, 19, 33, 0.5) 77%,
      rgba(7, 19, 33, 0.1) 100%
    );
  }
  .home-hero h1 {
    font-size: clamp(2.3rem, 7.8vw, 3.6rem) !important;
    max-width: 16ch;
  }
  .home-hero .lead {
    font-size: 1rem;
  }
  .benefit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.2rem 0.5rem;
    gap: 1.2rem 0.25rem;
    margin: 0 0 3rem;
  }
  .benefit:nth-child(2) {
    border: 0;
  }
  .benefit {
    padding-inline: 0.5rem;
  }
  .home-contact-band {
    grid-template-columns: 1fr;
  }
  .home-contact-details {
    border: 0;
    border-top: 1px solid #456078;
    padding: 1.5rem 0 0;
  }
  .hero-inner {
    padding: 1.5rem;
  }
  .hero .feature-card {
    padding: 1.5rem !important;
  }
  .service-grid {
    gap: 1rem;
  }
  .service-card-content {
    padding: 1.25rem 0 0;
  }
}
@media (max-width: 479px) {
  .home-hero-copy {
    padding: 1.8rem 1.2rem 10rem;
  }
  .home-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-hero-actions .btn {
    justify-content: center;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .home-hero h1 {
    font-size: 2.35rem !important;
  }
  .benefit i {
    font-size: 1.4rem;
  }
  .benefit-strip {
    gap: 1rem 0.2rem;
  }
  .benefit {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .benefit strong {
    font-size: 0.88rem;
  }
  .benefit small {
    font-size: 0.76rem;
  }
  .hero h1 {
    font-size: 2.1rem !important;
  }
}

/* On phones the original office photograph has its own lower image plane, avoiding an extreme crop. */
.home-hero .lead {
  font-weight: 400;
}
@media (max-width: 767px) {
  .home-hero picture {
    inset: auto 0 0;
    mask-image: none;
    height: 13rem;
  }
  .home-hero picture img {
    object-position: 60% 50%;
  }
  .home-hero-copy {
    padding-bottom: 14rem;
  }
  .home-hero::after {
    background: linear-gradient(
      180deg,
      var(--c-surface) 0%,
      var(--c-surface) calc(100% - 13rem),
      transparent calc(100% - 8rem)
    );
  }
  [data-bs-theme="dark"] .home-hero::after {
    background: linear-gradient(
      180deg,
      var(--c-surface) 0%,
      var(--c-surface) calc(100% - 13rem),
      rgba(7, 19, 33, 0.12) calc(100% - 8rem)
    );
  }
}

.webdesign-page .wd-project-number {
  color: var(--c-muted);
  opacity: 1;
}
.webdesign-page .wd-price-top > span:not(.wd-best) {
  color: var(--c-blue);
}

/* Finishing: real image follows the copy in normal mobile flow. */
@media (max-width: 767px) {
  .home-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .home-hero-copy {
    order: 1;
    width: 100%;
    max-width: none;
    padding: 1.25rem 1.1rem 1.15rem;
  }
  .home-hero picture {
    position: relative;
    order: 2;
    inset: auto;
    height: clamp(9rem, 42vw, 11rem);
    flex: none;
    z-index: 0;
    mask-image: none;
  }
  .home-hero::after {
    display: none;
  }
  .home-hero picture img {
    object-position: 50% 62%;
  }
  .home-hero h1 {
    font-size: 1.95rem !important;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
    max-width: none;
  }
  .home-hero .kicker {
    font-size: 0.64rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
  }
  .home-hero .lead {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  .home-hero-actions {
    gap: 0.5rem;
  }
  .home-hero-actions .btn {
    padding: 0.6rem 0.8rem;
    min-height: 44px;
  }
}

/* RC35 visual review: one calm opening composition; short screens scroll naturally. */
.home-intro{margin-bottom:clamp(2rem,4vw,4rem)}
.home-intro .benefit-strip{margin-bottom:0}
@media(min-width:768px){
 .home-intro{display:flex;flex-direction:column;min-height:calc(100svh - var(--chrome-header-h) - var(--chrome-footer-h) - 2.75rem)}
 .home-intro .home-hero{min-height:0;flex:1 0 auto}
 .home-intro .home-hero-copy{width:68%;max-width:880px;padding:clamp(1.5rem,2.5vw,2.5rem)}
 .home-intro .home-hero .lead{max-width:62ch}
 .home-intro .benefit-strip{padding-block:1.25rem;flex:none}
}

@media(max-width:767px){
 .home-intro .home-hero{min-height:min(calc(100svh - var(--chrome-header-h) - var(--chrome-footer-h) - 1.2rem),52rem)}
 .home-intro .home-hero picture{flex:1 0 auto}
}
