/* Ergänzende Styles für die Software-Website — baut auf ../styles.css auf */

/* Hero-Feinjustierung: der Absatz hat mehr Zeilen als auf der Hauptseite */
.hero p {
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.4;
}

.hero .scroll-cue {
  bottom: 24px;
}

/* Hero-Subline: erste Zeile im Hero-Absatz */
.hero p .hero-subline {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero-Buttons: eigener Block zwischen Hero und Signal-Zeile */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: var(--wrap);
  margin: 40px auto 0;
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Positionierungs-Text in der dunklen Sektion */
.positioning-copy {
  width: var(--wrap);
  margin: 64px auto 0;
  max-width: 880px;
}

.positioning-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.positioning-copy p:last-child {
  margin-bottom: 0;
}

/* Leistungen */
.services {
  width: var(--wrap);
  margin: 0 auto;
  padding: 112px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  padding: 36px 32px 44px;
  background: var(--paper);
}

.service-card .count {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--red);
}

.service-card h3 {
  margin: 18px 0 14px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
}

/* Projektablauf */
.steps {
  width: var(--wrap);
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.steps-list {
  max-width: 880px;
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
}

.step-item {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.step-item:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  padding-top: 4px;
}

.step-item h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
}

.step-item p {
  margin: 0;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
}

/* Branchen */
.industries {
  width: var(--wrap);
  margin: 0 auto;
  padding: 96px 0;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 880px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.industry-list li {
  padding: 12px 24px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Projekte / Use Cases */
.cases {
  width: var(--wrap);
  margin: 0 auto;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}

.case-teaser {
  display: block;
  padding: 32px 30px 36px;
  border: 1px solid var(--ink);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.case-teaser:hover,
.case-teaser:focus-visible {
  border-color: var(--red);
  transform: translateY(-3px);
}

.case-teaser-kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.case-teaser h3 {
  margin: 16px 0 12px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.case-teaser p {
  margin: 0 0 20px;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
}

.case-teaser-link {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

/* Use-Case-Detailseite */
.case-page .case-hero {
  width: var(--wrap);
  max-width: 880px;
  margin: 0 auto;
  padding: 160px 0 48px;
}

.case-page .back-link {
  font-family: var(--mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  text-decoration: none;
}

.case-kicker {
  display: block;
  margin: 28px 0 16px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.case-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 900;
  line-height: 1.15;
}

.case-intro {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 19px;
  line-height: 1.55;
  color: var(--gray);
}

.case-note {
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: rgba(231, 0, 11, 0.05);
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: var(--wrap);
  max-width: 880px;
  margin: 32px auto 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.case-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--paper);
  text-align: center;
}

.case-stat-value {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.case-stat-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}

.case-body {
  width: var(--wrap);
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 0 32px;
}

.case-section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.case-section h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 900;
}

.case-section p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray);
}

.case-section ul {
  margin: 0;
  padding-left: 22px;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .case-stats {
    grid-template-columns: 1fr;
  }

  .case-page .case-hero {
    padding-top: 128px;
  }
}

/* Anbindungen: Hersteller- und System-Links */
.anbindungen {
  width: var(--wrap);
  margin: 0 auto;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.anbindungen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 980px;
  margin: 56px auto 0;
}

.anbindungen-grid h3.anbindungen-sub {
  margin-top: 40px;
}

.anbindungen-grid h3 {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-chips a {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-chips a:hover,
.link-chips a:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

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

/* Responsiv */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .services,
  .steps {
    padding: 72px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .step-item {
    gap: 20px;
  }
}

/* ---------- Contact-Sektion (landing-spezifisch, aus der Basis migriert) ----------
   Diese Klassen existieren nur in der software-waegetechnik-Landing, nicht im
   Basis-styles.css (Ksenia-Original). Deshalb hier in der landing-eigenen site.css. */
.contact {
  width: var(--wrap);
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
}

.contact-note {
  margin: 36px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.contact-button {
  display: inline-block;
  padding: 16px 34px;
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
}

.contact-button--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.contact-button--ghost:hover,
.contact-button--ghost:focus-visible {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

/* ---------- 4.0 So arbeiten wir (Ablauf + Festpreis + FAQ) ---------- */
.how-we-work {
  width: var(--wrap);
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.how-block {
  margin-top: 80px;
}

.how-block:first-of-type {
  margin-top: 56px;
}

.how-subhead {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: min(880px, 100%);
  margin: 0 auto 8px;
  font-family: var(--mono);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.how-subhead span {
  color: var(--red);
  font-size: 0.72em;
}

/* Steps-Liste und Accordion in der Gruppe auf einheitliche Spaltenbreite bringen */
.how-block .steps-list {
  margin-top: 32px;
}

.how-we-work .accordion {
  width: min(880px, 100%);
  margin: 32px auto 0;
}

/* Festpreis-Prinzip */
.fixed-price-copy {
  width: min(880px, 100%);
  margin: 32px auto 0;
}

.fixed-price-copy > p {
  margin: 0 0 24px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.65;
}

.fixed-price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.fixed-price-list li {
  position: relative;
  padding-left: 24px;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
}

.fixed-price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 2px;
  background: var(--red);
}

.fixed-price-list strong {
  color: var(--ink);
}

/* ---------- 5.0 Über uns ---------- */
.about {
  width: var(--wrap);
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  margin-top: 64px;
  align-items: start;
}

.about-portraits {
  display: grid;
  gap: 28px;
}

.about-portrait {
  margin: 0;
}

.portrait-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ink);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(10, 10, 10, 0.05) 11px 12px);
  color: var(--gray);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Echtes Portraet — uebernimmt Seitenverhaeltnis und Rahmen des Platzhalters,
   damit der Umbruch der About-Sektion unveraendert bleibt. Die Quelle ist
   quadratisch, object-fit: cover beschneidet nur links/rechts. */
.portrait-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.about-portrait figcaption {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 800;
}

.about-portrait figcaption span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gray);
}

.about-copy p {
  margin: 0 0 22px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.7;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- Partner-Unterseite ---------- */
.partner-copy {
  width: min(820px, 100%);
  margin: 0 auto;
}

.partner-copy p {
  margin: 0 0 22px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1.7;
}

.partner-highlight {
  margin: 40px auto 0;
  padding: 28px 30px;
  border: 1px solid var(--red);
}

.partner-highlight p {
  margin: 0;
  color: var(--ink);
}

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

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

  .about-portraits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .how-we-work,
  .about {
    padding: 72px 0;
  }

  .about-portraits {
    grid-template-columns: 1fr;
  }

  .partner-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Sprachumschalter: Menü-Einträge als Links ---------- */
.lang-button {
  gap: 8px;
}

.lang-arrow-icon {
  color: var(--black);
}

.language-menu a {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-top: 1px solid rgba(10, 10, 10, 0.12);
  color: var(--black);
  font-family: var(--mono);
  font-size: 14px;
  text-decoration: none;
  transition:
    background 300ms ease,
    color 300ms ease;
}

.language-menu a:first-child {
  border-top: 0;
}

.language-menu a:hover,
.language-menu a:focus-visible {
  background: var(--black);
  color: var(--white);
}

.language-menu a[aria-current="true"] {
  font-weight: 700;
}

/* ---------- Kontaktformular ---------- */
.contact-form {
  width: min(760px, 100%);
  margin: 48px auto 0;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

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

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

.form-field label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-req {
  color: var(--red);
}

.form-optional {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  border-radius: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(208, 2, 27, 0.15);
}

.contact-form input:user-invalid,
.contact-form textarea:user-invalid,
.contact-form select:user-invalid {
  border-color: var(--red);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}

.form-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.form-consent a {
  color: var(--red);
  text-decoration: underline;
}

.form-hint {
  width: min(760px, 100%);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.form-hint a {
  color: inherit;
  text-decoration: underline;
}

.contact-form-submit {
  margin-top: 28px;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 1.2em;
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 14px;
}

.form-status.is-error {
  color: var(--red);
}

.form-status.is-ok {
  color: #1f7a34;
}

/* Terminbuchung (Platzhalter bis Tool-Auswahl) */
.booking-cta {
  width: min(760px, 100%);
  margin: 40px auto 0;
  padding: 28px 30px;
  border: 1px solid var(--line);
  text-align: center;
}

.booking-kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.booking-cta p {
  margin: 0 0 18px;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.55;
}

.booking-cta .contact-button {
  margin: 0;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Honeypot-Feld des Kontaktformulars — visuell + für Screenreader ausgeblendet */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Erstgespräch-Buchung (booking-cta) — Formular klappt unter dem Button auf */
.booking-form { margin-top: 1.25rem; text-align: left; }
.booking-form[hidden] { display: none; }
.booking-cta .booking-form .contact-button { margin-top: 0.5rem; }

/* Rechtstexte (/impressum, /privacy, /cookies) in Landing-Optik */
.legal-doc .case-hero h1 { font-size: clamp(30px, 3.6vw, 44px); }
.legal-doc .case-section h2 { font-size: 22px; }
.legal-doc .case-section h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 700; }
.legal-doc .case-section p { margin: 0 0 14px; line-height: 1.65; }
.legal-doc .case-section ul { margin: 0 0 14px 22px; line-height: 1.65; }
.legal-doc .case-section li { margin-bottom: 8px; }
.legal-doc .case-section a { color: var(--red); }

/* Zentrierte Sektions-Titel: der Intro-Absatz ist max. 850px breit — ohne auto-Margin klebt der
   Block links und wirkt „abgerutscht" (Text war nur innerhalb der linken 850px zentriert). */
.section-title:not(.align-left) p {
  margin-left: auto;
  margin-right: auto;
}

/* Buchungsformular: Hinweistext wie im Kontaktformular (die .booking-cta p-Regel setzte 17px) */
.booking-cta .booking-form .form-hint {
  font-size: 13px;
  margin: 14px 0 0;
  color: var(--muted);
}
.booking-cta .booking-form .form-status {
  font-size: 15px;
}

/* Hero mobil: der absolut positionierte Scroll-Pfeil ragte in die letzte Textzeile */
@media (max-width: 720px) {
  .hero .hero-copy,
  .hero > p:last-of-type {
    margin-bottom: 0;
  }
  .hero {
    padding-bottom: 88px;
  }
  .scroll-cue {
    bottom: 28px;
  }
}
