/*
 * 3claws — Unterseiten und gemeinsame Ergänzungen.
 * Farben werden ausschließlich aus colors.css bezogen.
 */

/* GEMEINSAME NAVIGATION, ECHTE LINKS UND JS-FALLBACKS */
.header nav {
  gap: clamp(14px, 1.8vw, 31px);
}

.header nav a[aria-current="page"] {
  color: var(--blue);
}

.header nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.footer-nav {
  flex-wrap: wrap;
}

.footer-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.no-js .nav-toggle,
.no-js .hero-selector,
.no-js .tabs,
.no-js .inquiry-form {
  display: none !important;
}

.no-js .offer-panel[hidden] {
  display: grid !important;
}

.no-js .art-float {
  animation: none;
}

.no-js .freedom h2 s::after {
  transform: scaleX(1);
}

/* EINSTIEG DER UNTERSEITEN */
.page-intro {
  padding-top: clamp(42px, 6vw, 100px);
  padding-bottom: clamp(42px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 12px;
}

.back-link:hover,
.inline-link:hover {
  color: var(--blue);
}

.page-intro .section-index {
  color: var(--blue);
  margin-bottom: 28px;
}

.page-intro h1 {
  max-width: 16ch;
  font-size: clamp(54px, 7.2vw, 120px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.page-intro h1 span {
  color: var(--blue);
}

.page-lead {
  max-width: 58ch;
  margin-top: 32px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.7;
}

.incident-page .page-lead + .pill {
  margin-block-start: 1.5rem;
}

/* OFFENE INHALTSBEREICHE */
.page-section {
  padding-block: clamp(45px, 6vw, 85px);
}

.page-section + .page-section {
  border-top: 1px solid var(--line);
}

.page-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 38px;
}

.page-section h2,
.page-outro h2 {
  font-size: clamp(28px, 3.1vw, 49px);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page-section-heading > p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.page-section-tinted {
  background: var(--primary-wash);
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.draft-notice {
  padding: 20px 24px;
  margin-bottom: 32px;
  border-left: 3px solid var(--blue);
  background: var(--primary-wash);
  font-size: 13px;
  line-height: 1.7;
}

.draft-notice strong {
  display: block;
  margin-bottom: 5px;
}

.draft-notice p {
  color: var(--muted);
}

/* LEISTUNGSTABELLE: NATIVE HTML-TABELLE, KEINE JAVASCRIPT-ABHÄNGIGKEIT */
.table-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.comparison-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--blue) var(--primary-soft);
}

.comparison-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

.comparison-table caption {
  text-align: left;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.comparison-table th,
.comparison-table td {
  width: 25%;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.comparison-table thead {
  background: var(--blue);
  color: var(--white);
}

.comparison-table thead th {
  border-color: var(--blue);
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.comparison-table thead th:first-child {
  font-size: 14px;
  letter-spacing: 0;
}

.comparison-table thead span {
  display: block;
  margin-top: 6px;
  color: var(--on-dark-muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.comparison-table tbody th {
  font-weight: 500;
}

.comparison-table tbody td {
  color: var(--muted);
}

.comparison-table tbody strong {
  color: var(--ink);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--primary-wash);
}

.comparison-table tfoot {
  font-size: 13px;
}

.comparison-table tfoot th {
  font-weight: 500;
}

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

.open-columns .section-index {
  color: var(--blue);
  margin-bottom: 22px;
}

.open-columns h3 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.open-columns article > p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.service-rows > a {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 24px;
  min-height: 102px;
  padding-block: 25px;
  border-top: 1px solid var(--line);
}

.service-rows > a:last-child {
  border-bottom: 1px solid var(--line);
}

.service-rows > a > span:first-child {
  font-size: clamp(23px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.service-rows > a > span:nth-child(2) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.service-rows > a > span:last-child {
  color: var(--blue);
  font-size: 30px;
}

.service-rows > a:hover > span:first-child {
  color: var(--blue);
}

.page-outro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 72px;
}

/* RECHTSTEXT-VORLAGEN */
.legal-content {
  max-width: 1120px;
}

.legal-content > section {
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}

.legal-content .section-index {
  color: var(--blue);
  margin-bottom: 20px;
}

.legal-content h2 {
  font-size: clamp(27px, 3vw, 39px);
  margin-bottom: 22px;
}

.legal-content section > p {
  font-size: 15px;
  line-height: 1.85;
  max-width: 70ch;
}

.legal-content section > p + p {
  margin-top: 14px;
}

.placeholder {
  color: var(--muted);
}

.legal-data {
  margin: 0;
}

.legal-data > div {
  display: grid;
  grid-template-columns: minmax(165px, 1fr) 2fr;
  gap: 28px;
  padding-block: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.legal-data dt {
  font-weight: 500;
}

.legal-data dd {
  margin: 0;
}

.prototype-note {
  margin-top: 36px;
  padding-top: 16px;
}

.prototype-note h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.prototype-note p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  max-width: 70ch;
}

/* KONTAKTSEITE: DEMO-FORMULAR UND E-MAIL */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 140px);
}

.contact-aside .section-index {
  color: var(--blue);
  margin-bottom: 25px;
}

.contact-aside h2 {
  font-size: clamp(27px, 3vw, 42px);
  margin-bottom: 30px;
}

.contact-email {
  display: inline-block;
  color: var(--blue);
  font-size: clamp(21px, 2.5vw, 34px);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.contact-aside > p:not(.section-index) {
  max-width: 36ch;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-aside > .inline-link {
  display: inline-block;
  font-size: 13px;
  margin-top: 24px;
}

.contact-form-panel > h2 {
  font-size: 31px;
  margin-bottom: 18px;
}

.contact-form-panel .dialog-lead {
  margin-bottom: 26px;
}

.form-privacy-link {
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
}

/* SCHMALE BILDSCHIRME */
@media (max-width: 1100px) {
  .brand-tag {
    display: none;
  }

  .open-columns {
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .page-section-heading {
    display: block;
  }

  .page-section-heading > p {
    margin-top: 16px;
    max-width: none;
  }

  .open-columns,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .open-columns article + article {
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }

  .back-link {
    margin-bottom: 35px;
  }

  .service-rows > a {
    grid-template-columns: 1fr auto;
    gap: 8px 20px;
  }

  .service-rows > a > span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .service-rows > a > span:last-child {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .legal-data > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .page-outro {
    align-items: start;
    flex-direction: column;
    padding-block: 50px;
  }

  .draft-notice {
    padding: 16px 18px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 18px 20px;
  }
}

/* Auch ohne JS bleibt die mobile Navigation erreichbar. */
@media (max-width: 650px) {
  .no-js .header {
    height: auto;
    min-height: 90px;
    flex-wrap: wrap;
    padding-block: 24px;
  }

  .no-js .header nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: static;
    width: 100%;
    margin-top: 24px;
    padding: 0;
    box-shadow: none;
  }
}

@media print {
  .header,
  .footer,
  .back-link,
  .page-outro,
  .table-hint {
    display: none;
  }

  .comparison-scroll {
    overflow: visible;
  }

  .comparison-table {
    min-width: 0;
    font-size: 9pt;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px;
  }

  .page-intro h1 {
    font-size: 36pt;
  }

  .page-section,
  .page-intro {
    padding: 20px 0;
  }
}
