/*
 * v2: lighter content sections and the new homepage sections.
 *
 * Everything is scoped to html.v2 so it outranks the stylesheets that other
 * scripts inject later at equal specificity, and so removing the class from
 * <html> restores the v1 look. The header, hero and footer stay dark on
 * purpose: the logo lockup uses white lettering and must not change.
 */

.v2 {
  --v2-surface: #ffffff;
  --v2-surface-alt: #f5f7fa;
  --v2-border: #e3e9f0;
  --v2-text: #11213a;
  --v2-muted: #5a6879;
  --v2-accent-text: #087b6d;
  --v2-accent-tint: #e7f7f4;
  --v2-shadow: 0 1px 2px rgba(16, 38, 67, 0.04), 0 14px 36px rgba(16, 38, 67, 0.06);
  --v2-shadow-hover: 0 2px 4px rgba(16, 38, 67, 0.05), 0 22px 48px rgba(16, 38, 67, 0.1);
}

/* ---------- Section rhythm ---------- */

.v2 .v2-section,
.v2 .capabilities-section,
.v2 .why-section {
  color: var(--v2-text);
}

.v2 .v2-audience,
.v2 .v2-projects,
.v2 #portfolio.portfolio-section,
.v2 .v2-strengths {
  background: var(--v2-surface);
}

.v2 .v2-core,
.v2 .capabilities-section,
.v2 .why-section,
.v2 .team-section {
  background: var(--v2-surface-alt);
}

.v2 .v2-section .section-kicker,
.v2 #portfolio .section-kicker,
.v2 .collaboration-section .section-kicker,
.v2 .team-section .eyebrow {
  color: var(--v2-accent-text);
}

.v2 .v2-section .section-heading p {
  color: var(--v2-muted);
}

/* ---------- Für wen wir arbeiten ---------- */

.v2 .v2-audience {
  padding-bottom: 96px;
}

.v2-audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.v2-audience-copy h2 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.v2-audience-copy p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--v2-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.v2-audience-list {
  padding: 28px 30px;
  border: 1px solid var(--v2-border);
  border-radius: 22px;
  background: var(--v2-surface-alt);
}

.v2-audience-list-label {
  display: block;
  margin-bottom: 14px;
  color: var(--v2-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.v2-audience-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-audience-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 620;
}

.v2-audience-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--v2-accent-tint);
}

.v2-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.v2-path-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 30px;
  border: 1px solid var(--v2-border);
  border-radius: 22px;
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.v2-path-card:hover,
.v2-path-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(32, 191, 169, 0.5);
  box-shadow: var(--v2-shadow-hover);
}

.v2-path-label {
  color: var(--v2-accent-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.v2-path-card strong {
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.v2-path-text {
  color: var(--v2-muted);
}

.v2-path-link {
  margin-top: 6px;
  color: var(--v2-accent-text);
  font-weight: 750;
}

.v2-path-link::after {
  content: " →";
}

/* ---------- Website-Service band under the hero ---------- */

/* Offers: the four services right after the hero */
.v2-offers {
  padding: 36px 0 44px;
  background: var(--bg, #08111f);
  color: var(--text, #f5f8fc);
}

.v2-offers-head {
  margin-bottom: 20px;
}

.v2-offers-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--text, #f5f8fc);
}

.v2-offers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.v2-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(76, 215, 195, 0.28);
  border-radius: var(--radius-md, 22px);
  background: linear-gradient(150deg, rgba(76, 215, 195, 0.10), rgba(76, 215, 195, 0.02) 60%), var(--panel, #11223a);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.v2-offer-card:hover,
.v2-offer-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent, #4cd7c3);
}

.v2-offer-card:focus-visible {
  outline: 3px solid var(--accent, #4cd7c3);
  outline-offset: 3px;
}

.v2-offer-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(76, 215, 195, 0.14);
  color: var(--accent, #4cd7c3);
}

.v2-offer-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v2-offer-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--accent, #4cd7c3);
  color: #08111f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.v2-offer-card h3 {
  margin: 6px 0 0;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--text, #f5f8fc);
}

.v2-offer-card p {
  margin: 0;
  color: var(--muted, #aab8cb);
  font-size: 0.93rem;
  line-height: 1.5;
}

.v2-offer-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent, #4cd7c3);
  font-size: 0.9rem;
  font-weight: 750;
}

.v2-offer-link::after {
  content: " →";
}

@media (max-width: 1080px) {
  .v2-offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .v2-offers-grid {
    grid-template-columns: 1fr;
  }
}

.service-card-link {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
}

.service-card-link:hover,
.service-card-link:focus-visible {
  text-decoration: underline;
}

/* ---------- Kompetenzen ---------- */

.v2-core-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.v2 .v2-core-card {
  min-height: 0;
  box-shadow: var(--v2-shadow);
}

.v2 .v2-core-card .service-icon {
  margin-bottom: 28px;
}

/* ---------- Ausgewählte Projekte ---------- */

.v2-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.v2-project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--v2-border);
  border-radius: 22px;
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.v2-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v2-shadow-hover);
}

.v2-project-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--v2-border);
  background: var(--v2-surface-alt);
}

.v2-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.v2-project-card:hover .v2-project-media img {
  transform: scale(1.03);
}

.v2-project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 26px 26px;
}

.v2-project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.v2-project-badges span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--v2-surface-alt);
  color: var(--v2-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.v2-project-badges .v2-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--v2-accent-tint);
  color: var(--v2-accent-text);
}

.v2-badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.v2-project-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.v2-project-card p {
  margin-bottom: 18px;
  color: var(--v2-muted);
  font-size: 0.95rem;
}

.v2-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.v2-project-tags li {
  padding: 5px 9px;
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  color: var(--v2-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.v2-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: auto;
}

.v2-project-links a {
  color: var(--v2-accent-text);
  font-weight: 750;
}

.v2-project-links a:hover,
.v2-project-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.v2-projects-action {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.v2 .v2-button-light {
  border-color: var(--v2-border);
  background: var(--v2-surface);
  color: var(--v2-text);
}

.v2 .v2-button-light:hover {
  border-color: rgba(32, 191, 169, 0.55);
  background: var(--v2-accent-tint);
}

/* ---------- Existing sections, lighter ---------- */

.v2 .service-card {
  box-shadow: var(--v2-shadow);
}

/* Concept showcase (#portfolio, built by services-showcase.js) */
.v2 #portfolio.portfolio-section {
  color: var(--v2-text);
}

.v2 #portfolio .services-showcase-heading p {
  color: var(--v2-muted);
}

.v2 .service-showcase-card {
  border-color: var(--v2-border);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
}

.v2 .service-showcase-badge {
  background: var(--v2-accent-tint);
  color: var(--v2-accent-text);
}

.v2 .service-showcase-copy p {
  color: var(--v2-muted);
}

.v2 .service-slider {
  border-top-color: var(--v2-border);
  background: #eef2f6;
}

.v2 .service-slide img {
  background: #eef2f6;
}

.v2 .service-slider-footer {
  border-top-color: var(--v2-border);
  background: var(--v2-surface-alt);
}

.v2 .service-slider-counter {
  color: var(--v2-muted);
}

.v2 .service-slider-dot {
  background: rgba(17, 33, 58, 0.22);
}

.v2 .service-slider-dot.is-active {
  background: var(--accent-strong);
}

/* Collaboration / contact */
.v2 .collaboration-section {
  color: var(--v2-text);
  background:
    radial-gradient(circle at 88% 20%, rgba(76, 215, 195, 0.12), transparent 34%),
    linear-gradient(180deg, #f2f9f8 0%, var(--v2-surface) 100%);
}

.v2 .collaboration-copy > p {
  color: var(--v2-muted);
}

.v2 .contact-step-card {
  border-color: var(--v2-border);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow-hover);
}

.v2 .contact-step-card::before {
  background: rgba(76, 215, 195, 0.12);
}

.v2 .contact-step-card h3 {
  color: var(--v2-text);
}

.v2 .contact-step-card > p {
  color: var(--v2-muted);
}

.v2 .offer-list li {
  border-color: rgba(32, 191, 169, 0.3);
  background: var(--v2-accent-tint);
  color: #0b5f55;
}

.v2 .collaboration-section .site-email-card,
.v2 .collaboration-section .contact-phone-block {
  border-color: var(--v2-border);
  background: var(--v2-surface-alt);
}

.v2 .collaboration-section .site-email-label,
.v2 .collaboration-section .contact-phone-label {
  color: var(--v2-muted);
}

.v2 .collaboration-section .site-email-link,
.v2 .collaboration-section .site-email-link::before {
  color: var(--v2-accent-text);
}

.v2 .collaboration-section .site-email-link:hover {
  color: #0b5f55;
}

.v2 .collaboration-section .contact-phone-link {
  color: var(--v2-text);
}

.v2 .collaboration-section .contact-phone-link:hover {
  color: var(--v2-accent-text);
}

.v2 .collaboration-section .location-identity-note {
  color: #0b5f55;
}

/* Why us */
.v2 .why-point {
  border-color: var(--v2-border);
  box-shadow: var(--v2-shadow);
}

/* Team */
.v2 .team-section {
  color: var(--v2-text);
}

.v2 .team-section .section-heading h2 {
  color: var(--v2-text);
}

.v2 .team-grid {
  width: min(100%, 640px);
  gap: 28px;
}

.v2 .team-card {
  max-width: 300px;
  border-color: var(--v2-border);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
}

.v2 .team-card:hover {
  border-color: rgba(32, 191, 169, 0.45);
  box-shadow: var(--v2-shadow-hover);
}

/* Name-and-role cards: the homepage shows no team photos. */
.v2 .team-card-content {
  min-height: 0;
  padding: 26px 22px;
  border-top: 3px solid var(--accent-strong);
}

.v2 .team-card h3 {
  color: var(--v2-text);
}

.v2 .team-title {
  color: var(--v2-accent-text);
}

/* ---------- Was wir mitbringen ---------- */

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

.v2-strength {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 14px;
  row-gap: 6px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--v2-border);
  border-radius: 18px;
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
}

.v2-strength::before {
  content: "✓";
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--v2-accent-tint);
  color: var(--v2-accent-text);
  font-size: 0.8rem;
  font-weight: 900;
}

.v2-strength strong {
  font-size: 1.02rem;
}

.v2-strength span {
  color: var(--v2-muted);
  font-size: 0.92rem;
}

/* ---------- Abschluss-CTA ---------- */

.v2 .v2-cta {
  padding-top: 24px;
  background: var(--v2-surface-alt);
}

.v2-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding: 52px 56px;
  border: 1px solid rgba(32, 191, 169, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 10%, rgba(76, 215, 195, 0.18), transparent 40%),
    linear-gradient(120deg, #eaf8f5 0%, var(--v2-surface) 70%);
  box-shadow: var(--v2-shadow);
}

.v2-cta-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.v2-cta-panel p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--v2-muted);
  font-size: 1.06rem;
}

.v2-cta-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 240px;
}

.v2-cta-actions .button {
  width: 100%;
}

.v2 .v2-cta-email {
  color: var(--v2-accent-text);
  font-weight: 700;
  font-size: 0.95rem;
}

.v2 .v2-cta-email:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */

/* The link list grew to a dozen entries; two columns keep it scannable. */
.v2 .footer-links {
  grid-template-columns: repeat(2, minmax(0, auto));
  column-gap: 40px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .v2-core-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-project-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 24px) / 2);
    justify-self: center;
  }

  .v2-strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .v2-audience-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .v2-path-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .v2-cta-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 36px;
  }

  .v2-cta-actions {
    justify-items: start;
  }
}

@media (max-width: 700px) {
  .v2 .v2-audience {
    padding-bottom: 72px;
  }

  .v2-audience-list,
  .v2-path-card {
    padding: 22px 20px;
  }

  .v2-core-grid,
  .v2-project-grid,
  .v2-strength-grid {
    grid-template-columns: 1fr;
  }

  .v2-project-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .v2-project-body {
    padding: 20px 20px 22px;
  }

  .v2-strength {
    padding: 20px;
  }

  .v2-cta-panel {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .v2-cta-actions {
    min-width: 0;
    justify-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-path-card,
  .v2-project-card,
  .v2-project-media img {
    transition: none;
  }
}
