* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #111111;
  background: #f4f1ec;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #003153;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8%;
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

nav a {
  opacity: 0.75;
}

nav a:hover {
  opacity: 1;
}

.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8%;
  background: radial-gradient(circle at top right, #d9d1c3 0, #f4f1ec 36%, #f4f1ec 100%);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c6f61;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.buttons {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button.primary {
  background: #111111;
  color: #ffffff;
}

.button.primary:hover {
  transform: translateY(-2px);
  background: #2a2a2a;
}

.button.secondary {
  border: 1px solid #111111;
  color: #111111;
}

.button.secondary:hover {
  transform: translateY(-2px);
  background: #111111;
  color: #ffffff;
}

.section {
  padding: 100px 8%;
}

.section h2 {
  max-width: 920px;
  margin: 0 0 28px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section :where(p) {
  max-width: 820px;
  font-size: 19px;
  color: #37332f;
}

.section.dark {
  background: #111111;
  color: #ffffff;
}

.section.dark p {
  color: #d8d2ca;
}

.section.dark .eyebrow {
  color: #c8b99f;
}

.note {
  padding: 18px 22px;
  border-left: 4px solid #111111;
  background: #e7dfd3;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.portfolio article {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.portfolio h3 {
  margin: 24px 24px 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.portfolio p {
  margin: 0 24px 28px;
  font-size: 16px;
}

.contact {
  background: #d8cec0;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 34px 8%;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 6%;
  }

  nav {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 80px 6%;
  }

  .section {
    padding: 80px 6%;
  }

  .portfolio {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 16px 6%;
  }

  .logo {
    font-size: 20px;
  }

  nav {
    gap: 12px;
    font-size: 13px;
  }

  h1 {
    letter-spacing: -0.045em;
  }
}

.portfolio-video {
  width: 100%;
  display: block;
  background: #111111;
}

.portfolio-video.vertical {
  height: 420px;
  object-fit: cover;
}

.portfolio-video.horizontal {
  height: 420px;
  object-fit: cover;
}

/* Page-specific styles moved from index.html */

.hero-note {
      margin-top: 24px;
      font-size: 0.95rem;
      opacity: 0.78;
    }

    .hero-with-media {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
      gap: 56px;
      align-items: center;
    }

    .hero-copy {
      max-width: 780px;
    }

    .hero-media {
      justify-self: end;
      width: min(100%, 430px);
    }

    .hero-video-frame {
      position: relative;
      overflow: hidden;
      aspect-ratio: 9 / 16;
  border-radius: 28px;
      border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.06);
      box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
    }

    .hero-video {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-media-caption {
      margin: 14px 0 0;
      font-size: 0.88rem;
      line-height: 1.45;
      opacity: 0.72;
    }

    .leistung-item + .leistung-item {
      margin-top: 36px;
    }


    .service-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
      margin-top: 38px;
      max-width: 1120px;
    }

    .service-card {
      --accent: #8ab8e6;
      --accent-soft: rgba(138, 184, 230, 0.11);
      position: relative;
      overflow: hidden;
      min-height: 275px;
  padding: 44px 36px 30px;
      border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--accent-soft), rgba(255, 255, 255, 0.045));
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    }

    .service-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 14px;
  border-radius: 22px 22px 0 0;
  background: var(--accent);
      opacity: 0.95;
    }

    .service-icon {
      position: absolute;
      right: 28px;
      top: 36px;
      display: grid;
      place-items: center;
      width: 46px;
      height: 46px;
  border-radius: 12px;
      border: 1px solid var(--accent);
  background: var(--accent-soft);
      color: var(--accent);
      opacity: 0.95;
    }

    .service-icon svg {
      display: block;
      width: 24px;
      height: 24px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .service-card h3 {
      max-width: 75%;
      margin: 0 0 16px;
      color: var(--accent);
      font-size: clamp(1.35rem, 2.2vw, 1.75rem);
      line-height: 1.15;
      letter-spacing: -0.03em;
    }

    .service-card p {
      margin: 0;
      max-width: 62ch;
      color: rgba(255, 255, 255, 0.82);
      font-size: 1.02rem;
      line-height: 1.6;
    }

    .service-divider {
      width: 100%;
      height: 1px;
      margin: 28px 0 20px;
  background: rgba(255, 255, 255, 0.14);
    }

    .service-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .service-tags span {
      display: inline-flex;
      align-items: center;
      min-height: 36px;
  padding: 6px 14px;
      border: 1px solid var(--accent);
  border-radius: 999px;
      color: rgba(255, 255, 255, 0.88);
  background: var(--accent-soft);
      font-size: 0.92rem;
      font-weight: 700;
      line-height: 1.2;
    }

    .service-card.service-blue {
      --accent: #78afe6;
      --accent-soft: rgba(120, 175, 230, 0.13);
    }

    .service-card.service-purple {
      --accent: #b78bd5;
      --accent-soft: rgba(183, 139, 213, 0.14);
    }

    .service-card.service-green {
      --accent: #7ebaa8;
      --accent-soft: rgba(126, 186, 168, 0.13);
    }

    .service-card.service-amber {
      --accent: #dca66a;
      --accent-soft: rgba(220, 166, 106, 0.13);
    }


    .process-flow {
      position: relative;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 92px 42px;
      margin-top: 54px;
    }

    .process-card {
      --process-color: rgba(255, 255, 255, 0.5);
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 230px;
  padding: 28px 24px 24px;
      border: 1.8px solid var(--process-color);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    }

    .process-number {
      position: absolute;
      top: -36px;
      left: 50%;
      transform: translateX(-50%);
      display: grid;
      place-items: center;
      width: 54px;
      height: 54px;
      border: 2px solid var(--process-color);
  border-radius: 999px;
      color: var(--process-color);
  background: #f4f1eb;
      box-shadow: 0 0 0 8px #f4f1eb;
      z-index: 2;
      font-weight: 800;
      font-size: 1.25rem;
      line-height: 1;
    }

    .process-label {
      display: block;
      margin-bottom: 10px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      font-size: 0.78rem;
      opacity: 0.72;
    }

    .process-card h3 {
      margin: 0 0 12px;
      color: var(--process-color);
      font-size: clamp(1.2rem, 2vw, 1.55rem);
      line-height: 1.15;
    }

    .process-card p {
      margin: 0;
      max-width: 30ch;
      line-height: 1.45;
      font-size: clamp(1rem, 1.5vw, 1.12rem);
    }

    .process-card:nth-child(1) { --process-color: #3a93d8; }
    .process-card:nth-child(2) { --process-color: #8251a8; }
    .process-card:nth-child(3) { --process-color: #4f998d; }
    .process-card:nth-child(4) { --process-color: #dc8b3e; }
    .process-card:nth-child(5) { --process-color: #45a84a; }
    .process-card:nth-child(6) { --process-color: #5b6db8; }

    .process-card > p:not(.process-effort) {
      margin-bottom: 18px;
    }

    .process-card .process-effort {
      max-width: none;
      margin-top: auto;
      padding-top: 18px;
      border-top: 1px solid rgba(17, 17, 17, 0.12);
      color: #111111;
      font-size: 0.92rem;
      font-weight: 800;
      line-height: 1.35;
    }

    .process-card .process-effort-provider {
      color: var(--process-color);
    }

    .process-effort-summary {
      max-width: 1120px;
      margin-top: 42px;
      padding: 28px 32px;
      border: 1px solid rgba(0, 49, 83, 0.2);
      border-left: 5px solid #003153;
      border-radius: 0 18px 18px 0;
      background: rgba(0, 49, 83, 0.055);
      box-shadow: 0 16px 42px rgba(0, 0, 0, 0.045);
    }

    .process-effort-summary p {
      max-width: none;
    }

    .process-effort-total {
      margin: 0;
      color: #111111;
      font-size: clamp(1.15rem, 2vw, 1.45rem);
      line-height: 1.4;
    }

    .process-effort-promise {
      margin: 10px 0 0;
      color: #37332f;
      font-size: 1.02rem;
      font-weight: 700;
      line-height: 1.55;
    }

    .process-effort-note {
      margin: 12px 0 0;
      color: #5f5850;
      font-size: 0.82rem;
      font-style: italic;
      line-height: 1.5;
    }

    .steps > div p {
      grid-column: 2 / -1;
      max-width: 720px;
      line-height: 1.65;
    }

    .steps > div h3 {
      grid-column: 2 / -1;
    }

    .cost-section-copy {
      max-width: 820px;
    }

    .cost-frame {
      max-width: 920px;
      margin: 28px 0 0;
  padding: 28px;
      border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
    }

    .cost-frame h3 {
      margin-top: 0;
      margin-bottom: 12px;
    }

    .cost-frame p {
      margin-bottom: 18px;
      line-height: 1.65;
    }

    .included-list {
      display: grid;
      gap: 10px;
      margin: 18px 0 0;
      padding-left: 1.2rem;
    }

    .included-list li {
      line-height: 1.5;
    }

    .form-intro {
      max-width: 760px;
      margin-bottom: 24px;
    }

    .project-form {
      display: grid;
      gap: 24px;
      margin-top: 32px;
      max-width: 920px;
    }

    .project-form fieldset {
      border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
    }

    .project-form legend {
  padding: 0 8px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

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

    .form-field {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .form-field.full {
      grid-column: 1 / -1;
    }

    .project-form label {
      font-weight: 600;
      font-size: 0.95rem;
    }

    .project-form small {
      opacity: 0.72;
      line-height: 1.45;
    }

    .project-form input,
    .project-form select,
    .project-form textarea {
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
      font: inherit;
      color: inherit;
  background: rgba(0, 0, 0, 0.18);
    }

    .project-form textarea {
      min-height: 130px;
      resize: vertical;
    }

    .form-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      align-items: center;
    }

    .form-note {
      max-width: 640px;
      opacity: 0.76;
      font-size: 0.92rem;
    }

    .direct-contact-note {
      max-width: 720px;
      margin-top: 18px;
  padding: 18px 20px;
      border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
      line-height: 1.6;
    }

    .direct-contact-note strong {
      display: block;
      margin-bottom: 6px;
    }

    .why-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
      gap: 48px;
      align-items: start;
    }

    .why-copy p:first-child {
      margin-top: 0;
    }

    .profile-main-heading {
      max-width: 880px;
      margin-bottom: 28px;
    }

    .profile-positioning {
      margin: 0 0 26px;
      font-size: clamp(1.25rem, 2vw, 1.65rem);
      line-height: 1.25;
      font-weight: 800;
      letter-spacing: -0.01em;
    }

    .why-copy p {
      font-size: clamp(1rem, 1.15vw, 1.08rem);
      line-height: 1.65;
    }

    .benefit-intro {
      margin-top: 24px;
      margin-bottom: 0;
      font-weight: 700;
    }


.benefit-box {
  margin-top: 28px;
  padding: 24px 26px 24px 28px;
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #003153;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

    .benefit-box .benefit-intro {
      margin-top: 0;
    }

    .benefit-box .benefit-list {
      margin-bottom: 0;
    }

    .closing-statement {
      margin-top: 30px;
      max-width: 680px;
      font-size: clamp(1.08rem, 1.35vw, 1.28rem);
      line-height: 1.45;
      font-weight: 700;
      letter-spacing: -0.005em;
      opacity: 0.82;
    }

    .benefit-list {
      display: grid;
      gap: 10px;
      margin: 20px 0 0;
      padding-left: 1.2rem;
    }

    .benefit-list li {
      line-height: 1.5;
    }

    .profile-card {
  padding: 18px;
      border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
    }

    .profile-photo {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 5;
      object-fit: cover;
      object-position: center top;
  border-radius: 16px;
    }

    .profile-caption {
      margin-top: 16px;
      line-height: 1.45;
    }

    .profile-caption strong {
      display: block;
      font-size: 1.05rem;
      margin-bottom: 4px;
    }

    .profile-caption span {
      display: block;
      opacity: 0.76;
      font-size: 0.95rem;
    }

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

      .hero-media {
        justify-self: start;
        width: min(100%, 360px);
      }
    }

    @media (max-width: 700px) {
      .steps > div p,
      .steps > div h3 {
        grid-column: 1 / -1;
      }

      .process-flow {
        grid-template-columns: 1fr;
        gap: 54px;
        margin-top: 46px;
      }

      .process-card {
        min-height: auto;
      }

      .process-card p {
        max-width: none;
      }

      .process-effort-summary {
        margin-top: 34px;
        padding: 22px 20px;
      }

      .service-grid {
        grid-template-columns: 1fr;
        gap: 18px;
      }

      .service-card {
        min-height: auto;
  padding: 28px 24px 26px;
      }

      .service-card h3 {
        max-width: 78%;
      }

      .form-grid {
        grid-template-columns: 1fr;
      }

      .project-form fieldset,
      .cost-frame {
  padding: 22px;
      }

      .why-layout {
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .profile-card {
        max-width: 420px;
      }
    }

/* Legal pages and footer links */
.legal-section {
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-section h2 {
  margin-bottom: 1.5rem;
}

.legal-section h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-section h4 {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

.legal-document {
  max-width: 960px;
}

.legal-document ul {
  margin: 0.75rem 0 1rem 1.2rem;
}

.legal-note {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-links a,
footer a {
  color: inherit;
  text-decoration: none;
  margin: 0 0.35rem;
}

.footer-links a:hover,
.footer-links a:focus,
footer a:hover,
footer a:focus {
  text-decoration: underline;
}

/* ===== FIX: prevent horizontal clipping on portfolio / medium-wide screens ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

main,
section,
.site-header,
footer {
  max-width: 100%;
}

.site-header {
  flex-wrap: wrap;
  gap: 14px 28px;
}

.site-header nav {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.portfolio {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  overflow: visible;
}

.portfolio article {
  min-width: 0;
  max-width: 100%;
}

.portfolio-video,
.portfolio video {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 1200px) {
  .site-header {
    padding-left: 6%;
    padding-right: 6%;
  }

  .site-header nav {
    gap: 16px;
    font-size: 14px;
  }

  .section {
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (min-width: 1201px) {
  .portfolio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== FIX: keep portfolio video aspect ratios, no cropping ===== */
.portfolio {
  align-items: start;
}

.portfolio-video.vertical,
.portfolio video.vertical {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.portfolio-video.horizontal,
.portfolio video.horizontal {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}


/* ===== Kosten page: packages + configurator ===== */
#kosten .cost-section-copy p {
  max-width: 900px;
}

.cost-intro-guide {
  max-width: 900px;
  margin: 28px 0 46px;
  padding: 22px 26px;
  border-left: 4px solid #003153;
  border-radius: 0 14px 14px 0;
  background: rgba(0, 49, 83, 0.05);
}

.cost-intro-guide .guide-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #37332f;
}

.pricing-card,
.configurator,
.cost-faq {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.pricing-heading h3,
.cost-faq h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.pricing-heading p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.pilot-offer,
.pricing-block,
.configurator,
.cost-faq {
  max-width: 1180px;
  margin-top: 58px;
}

.pricing-heading {
  max-width: 880px;
  margin-bottom: 24px;
}

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

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 26px;
}

.pricing-card-pilot {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  border-color: rgba(0, 49, 83, 0.28);
  background: linear-gradient(135deg, rgba(0, 49, 83, 0.1), rgba(255, 255, 255, 0.76));
}

.pricing-card-highlight {
  border-color: rgba(0, 49, 83, 0.42);
  box-shadow: 0 22px 70px rgba(0, 49, 83, 0.12);
}

.pricing-card-highlight::before {
  content: attr(data-badge);
  align-self: flex-start;
  order: -1;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #003153;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-label {
  margin: 0;
  color: #003153;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.pricing-subline {
  margin: 0;
  color: #7c6f61;
  font-size: 0.95rem;
  font-weight: 800;
}

.pricing-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.pricing-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 49, 83, 0.08);
}

.pricing-card .included-list {
  margin-top: 2px;
  font-size: 0.95rem;
}

.configurator {
  padding: 30px;
}

.configurator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: start;
}

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

.config-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-field.full {
  grid-column: 1 / -1;
}

.config-field label {
  font-weight: 800;
  font-size: 0.95rem;
}

.config-field small {
  color: #5f5850;
  font-size: 0.84rem;
  line-height: 1.45;
}

.config-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: #111111;
  background: rgba(255, 255, 255, 0.86);
}

.config-result {
  position: sticky;
  top: 110px;
  padding: 24px;
  border-radius: 20px;
  background: #111111;
  color: #ffffff;
}

.config-result h4 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.result-eyebrow {
  margin: 0 0 12px;
  color: #c8b99f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-price {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.config-result p:where(:not(.result-eyebrow):not(.result-price)) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.6;
}

.config-result .button {
  margin-top: 12px;
  background: #ffffff;
  color: #111111;
}

.cost-faq {
  padding: 30px;
}

.cost-faq details {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding: 18px 0;
}

.cost-faq details:last-child {
  padding-bottom: 0;
}

.cost-faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.03rem;
}

.cost-faq p {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.6;
}

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

  .configurator-layout {
    grid-template-columns: 1fr;
  }

  .config-result {
    position: static;
  }
}

@media (max-width: 700px) {
  .pricing-card-pilot,
  .pricing-grid,
  .config-grid {
    grid-template-columns: 1fr;
  }

  .configurator,
  .cost-faq,
  .pricing-card {
    padding: 22px;
  }

}

/* ===== Package CTA between package selection and configurator ===== */
.package-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
  padding: 26px 28px;
  border-radius: 22px;
  background: #111111;
  color: #ffffff;
}

.package-cta h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.package-cta p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}

.package-cta .button {
  flex: 0 0 auto;
  background: #ffffff;
  color: #111111;
}

.package-cta .button:hover {
  background: #f4f1ec;
  color: #111111;
}

@media (max-width: 700px) {
  .package-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
}



/* ===== Header logo image ===== */
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(260px, 48vw);
  object-fit: contain;
}

@media (max-width: 700px) {
  .logo img {
    height: 36px;
    max-width: 62vw;
  }
}

/* ===== Contact form protection and success page ===== */
.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.success-section {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.success-card {
  width: min(100%, 760px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.success-card h1 {
  max-width: 760px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
}

.success-card p {
  max-width: 650px;
}


/* ===== Package CTAs and optional configurator ===== */
.pricing-card .package-request {
  align-self: flex-start;
  margin-top: auto;
}

.pricing-card-pilot > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.configurator-optional-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 49, 83, 0.06);
  font-size: 0.92rem;
  line-height: 1.55;
}

.config-field select option[value=""] {
  color: #6f675f;
}

.project-form textarea::placeholder {
  color: rgba(17, 17, 17, 0.58);
  opacity: 1;
}

@media (max-width: 700px) {
  .pricing-card .package-request {
    width: 100%;
  }
}


/* ===== Kosten-Konfigurator: zusätzliche Hinweise ===== */
.configurator-detail-note {
  margin-top: 12px;
  max-width: 820px;
  color: #5f5850;
  font-size: 0.9rem;
  line-height: 1.55;
}

.config-field.full select {
  max-width: 100%;
}


/* ===== Kosten-Konfigurator: Preis und getrennte CTAs ===== */
.config-result .result-eyebrow {
  color: #c8b99f;
}

.config-result .result-price {
  color: #ffd85a;
  text-shadow: 0 0 24px rgba(255, 216, 90, 0.12);
}

.config-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.config-result .config-actions .button {
  width: 100%;
  margin-top: 0;
  min-height: 48px;
  padding: 10px 16px;
  text-align: center;
  line-height: 1.25;
}

.config-result .config-email-toggle {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.config-result .config-email-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.config-result .config-inquiry-button {
  background: #ffffff;
  color: #111111;
}

.estimate-email-form {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.estimate-email-form[hidden] {
  display: none;
}

.estimate-email-form label {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.estimate-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.estimate-email-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  color: #111111;
  background: #ffffff;
}

.config-result .estimate-send-button {
  min-width: 92px;
  min-height: 44px;
  margin-top: 0;
  border: 0;
  background: #ffd85a;
  color: #111111;
  cursor: pointer;
}

.config-result .estimate-send-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.config-result .estimate-privacy-note,
.config-result .estimate-email-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.45;
}

.estimate-email-status.is-success {
  color: #b9e7c6;
}

.estimate-email-status.is-error {
  color: #ffb4b4;
}

.estimate-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 480px) {
  .estimate-email-row {
    grid-template-columns: 1fr;
  }

  .config-result .estimate-send-button {
    width: 100%;
  }
}


/* ===== Persönlicher Kontakt-Hinweis mit Bild ===== */
.direct-contact-with-image {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: center;
  max-width: 920px;
  padding: 0;
  overflow: hidden;
}

.direct-contact-copy {
  padding: 24px 0 24px 24px;
}

.direct-contact-copy strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.direct-contact-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.direct-contact-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 800px) {
  .direct-contact-with-image {
    grid-template-columns: 1fr;
  }

  .direct-contact-copy {
    padding: 22px 22px 0;
  }

  .direct-contact-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}


/* ===== Kontaktbild ohne doppelten Begleittext ===== */
.direct-contact-image-only {
  display: block;
  max-width: 920px;
  padding: 0;
  overflow: hidden;
}

.direct-contact-image-only .direct-contact-image {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
}


/* ===== Übernommene Konfigurator-Auswahl im Anfrageformular ===== */
.config-transfer-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 920px;
  margin: 24px 0 8px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 49, 83, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.config-transfer-summary[hidden] {
  display: none;
}

.config-transfer-eyebrow {
  margin: 0 0 5px;
  color: #003153;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.config-transfer-main {
  margin: 0;
  color: #111111;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.config-transfer-price {
  margin: 5px 0 0;
  color: #7a5a00;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.config-transfer-edit {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 800;
  color: #003153;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .config-transfer-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}


/* ===== Automatisch aus dem Konfigurator übernommene Felder ===== */
.project-form select.auto-filled {
  border-color: rgba(0, 49, 83, 0.45);
  background: rgba(255, 255, 255, 0.58);
}


/* ===== Anfrageformular direkt unter dem Kosten-Konfigurator ===== */
.contact-inline {
  max-width: 1180px;
  margin-top: 32px;
  padding: 34px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 22px;
  background: #d8cec0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.contact-inline .project-form {
  max-width: none;
}

.contact-transfer-note {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 4px solid #003153;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.42);
  color: #2f2a26;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .contact-inline {
    padding: 22px;
  }
}


/* ===== Prozessfluss: klare Reihenfolge 1–2–3 / 4–5–6 ===== */
.process-flow {
  grid-template-areas:
    "step1 step2 step3"
    "step4 step5 step6";
}

.process-card:nth-child(1) { grid-area: step1; }
.process-card:nth-child(2) { grid-area: step2; }
.process-card:nth-child(3) { grid-area: step3; }
.process-card:nth-child(4) { grid-area: step4; }
.process-card:nth-child(5) { grid-area: step5; }
.process-card:nth-child(6) { grid-area: step6; }

.process-card::before,
.process-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Erste Reihe: 1 → 2 → 3 */
.process-card:nth-child(1)::after,
.process-card:nth-child(2)::after,
/* Zweite Reihe: 4 → 5 → 6 */
.process-card:nth-child(4)::after,
.process-card:nth-child(5)::after {
  top: 50%;
  right: -42px;
  width: 42px;
  height: 2px;
  background: var(--process-color);
  opacity: 0.72;
}

.process-card:nth-child(1)::before,
.process-card:nth-child(2)::before,
.process-card:nth-child(4)::before,
.process-card:nth-child(5)::before {
  top: calc(50% - 5px);
  right: -42px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--process-color);
  border-right: 2px solid var(--process-color);
  transform: rotate(45deg);
  opacity: 0.9;
}

/* Kein Verbindungspfeil zwischen Schritt 3 und 4 */
.process-card:nth-child(3)::before,
.process-card:nth-child(3)::after,
.process-card:nth-child(6)::before,
.process-card:nth-child(6)::after {
  content: none;
}

@media (max-width: 700px) {
  .process-flow {
    grid-template-areas:
      "step1"
      "step2"
      "step3"
      "step4"
      "step5"
      "step6";
  }

  .process-card:nth-child(n)::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -54px;
    width: 2px;
    height: 54px;
    background: var(--process-color);
    opacity: 0.72;
  }

  .process-card:nth-child(n)::before {
    left: calc(50% - 4px);
    right: auto;
    top: auto;
    bottom: -54px;
    width: 9px;
    height: 9px;
    border: 0;
    border-right: 2px solid var(--process-color);
    border-bottom: 2px solid var(--process-color);
    transform: rotate(45deg);
    opacity: 0.9;
  }

  .process-card:nth-child(3)::before,
  .process-card:nth-child(3)::after,
  .process-card:nth-child(6)::before,
  .process-card:nth-child(6)::after {
    content: none;
  }
}


/* ===== Kostenlose und unverbindliche Ersteinschätzung ===== */
.form-reassurance {
  max-width: 760px;
  margin: -4px 0 24px;
  padding: 14px 16px;
  border-left: 4px solid #003153;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.42);
  color: #2f2a26;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
}


/* ===== Optionaler Kosten-Konfigurator ===== */
.configurator-toggle-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin-top: 58px;
  padding: 28px 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.configurator-toggle-block h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.configurator-toggle-block p {
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.6;
}

.configurator-toggle {
  flex: 0 0 auto;
  cursor: pointer;
}

.configurator[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .configurator-toggle-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .configurator-toggle {
    width: 100%;
  }
}


/* ===== Klickbarer Telefonbereich im Kontaktbild ===== */
.direct-contact-image-only {
  position: relative;
}

.phone-hotspot {
  position: absolute;
  left: 7.2%;
  top: 39.2%;
  width: 39.5%;
  height: 13.5%;
  border-radius: 999px;
  z-index: 2;
  cursor: pointer;
}

.phone-hotspot:focus-visible {
  outline: 3px solid #5b3df5;
  outline-offset: 4px;
  background: rgba(91, 61, 245, 0.08);
}

@media (hover: hover) {
  .phone-hotspot:hover {
    background: rgba(91, 61, 245, 0.06);
  }
}

/* ===== Language switch in header ===== */
.site-header nav a.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(17, 17, 17, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: #111111;
  opacity: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.site-header nav a.language-switch:hover,
.site-header nav a.language-switch:focus-visible {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  opacity: 1;
  text-decoration: none;
}

@media (max-width: 700px) {
  .site-header nav a.language-switch {
    min-width: 38px;
    min-height: 28px;
    padding: 4px 10px;
    font-size: 11px;
  }
}



/* ===== English contact box: no embedded German text image ===== */
.direct-contact-english {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 920px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(0, 49, 83, 0.18);
}

.direct-contact-english h3 {
  margin: 0 0 10px;
  color: #111111;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.direct-contact-english p {
  margin: 0;
  color: #2f2a26;
  font-size: 1rem;
  line-height: 1.6;
}

.direct-contact-kicker {
  margin: 0 0 8px !important;
  color: #003153 !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.direct-phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 900;
  white-space: nowrap;
}

.direct-phone-button:hover,
.direct-phone-button:focus-visible {
  background: #003153;
  text-decoration: none;
}

@media (max-width: 700px) {
  .direct-contact-english {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .direct-phone-button {
    width: 100%;
  }
}


/* ===== Language switch with visible flag ===== */
.site-header nav a.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 49, 83, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #003153;
  opacity: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-header nav a.language-switch .language-flag {
  font-size: 1.08em;
  line-height: 1;
}

.site-header nav a.language-switch .language-code {
  line-height: 1;
}

.site-header nav a.language-switch:hover,
.site-header nav a.language-switch:focus-visible {
  background: #003153;
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 700px) {
  .site-header nav a.language-switch {
    padding: 5px 10px;
    min-height: 32px;
  }
}


/* ===== v7: no recommended package badge ===== */
.pricing-card-highlight {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.pricing-card-highlight::before {
  content: none !important;
  display: none !important;
}
