/* SCAG Design B - Druck- und PDF-Ansicht */

@page {
  size: A4;
  margin: 20mm 16mm 22mm 18mm;
  @bottom-left {
    content: "SinkaCom AG · Hamburger Allee 26-28 · 60486 Frankfurt am Main · sinkacom.de";
    font: 7.5pt "Montserrat", Arial, sans-serif;
    color: #5b6274
  }
  @bottom-right {
    content: counter(page) " / " counter(pages);
    font: 7.5pt "Montserrat", Arial, sans-serif;
    color: #5b6274
  }
}

@page :first {
  margin-top: 16mm
}

@media print {
  :root {
    --bg: #fff;
    --sand: #fff;
    --frost: #fff
  }

  html, body {
    background: #fff !important;
    color: #1b2233;
    font-size: 10.5pt;
    line-height: 1.5
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important
  }

  * {
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy
  }

  /* Ausblenden: Bedienung, Dekoration, Formulare */
  .demo, .c-skip, .c-nav, .c-tools, .c-mob, .c-drop, .c-search, .c-ghost, .c-hero__bg, .c-comp, .c-totop, .c-filters, .x-filters,
  .x-hs__bar, .c-strip-nav, .x-mad, .x-form, .c-form, .c-form-panel, .c-isearch, .c-actions, .c-quiet, .c-btn, .x-hs__more,
  .c-show__media, .c-case__img, .x-case__vis, .c-next, .c-social, .c-footer__cols, .c-contrast, [data-mesh-toggle], .ag-pause,
  .c-header .c-ib, dialog, button, video, iframe {
    display: none !important
  }

  /* Einblend-Effekte aus: alles sofort sichtbar */
  .c-fade, .is-armed, .k-up, [data-drift] {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    visibility: visible !important
  }

  .c-show__img, .c-show__mimg, .c-show__bar, .c-hero::before, .c-hero::after, .c-hero__shade, .c-over::before {
    display: none !important
  }

  .c-hero h1 *, .c-hero .w {
    background: none !important;
    transform: none !important;
    opacity: 1 !important
  }

  /* Kopf: nur Logo */
  .c-header {
    position: static !important;
    background: #fff !important;
    color: #051b31 !important;
    border-bottom: .6pt solid #051b31;
    padding: 0 0 4mm;
    margin-bottom: 6mm
  }

  .c-header .wrap {
    padding: 0
  }

  .c-logo {
    color: #051b31 !important
  }

  .c-logo img {
    filter: none
  }

  /* Skript tauscht vor dem Druck auf das Logo für helle Flächen */
  /* Bühne als Textkopf */
  .c-hero {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    background: #fff !important;
    color: #051b31 !important
  }

  .c-hero * {
    color: #051b31 !important
  }

  .c-hero h1, .c-hero .c-h {
    font-size: 22pt !important;
    line-height: 1.15 !important;
    margin: 2mm 0 4mm;
    max-width: none
  }

  .c-crumbs {
    font-size: 8pt;
    color: #5b6274 !important;
    margin-bottom: 2mm
  }

  .c-kicker {
    font-size: 8pt;
    letter-spacing: .08em
  }

  .c-ai {
    position: static !important;
    display: inline-block;
    margin-top: 2mm;
    font-size: 7.5pt;
    border: .5pt solid #5b6274;
    padding: 1pt 4pt
  }

  .c-over {
    display: block !important;
    margin: 0 0 6mm !important;
    background: #fff !important;
    color: #1b2233 !important;
    border-left: 2pt solid #e1df31;
    padding: 0 0 0 5mm !important
  }

  .c-over * {
    color: #1b2233 !important;
    background: transparent !important
  }

  /* Abschnitte */
  main {
    display: block
  }

  .c-sec, .x-hs, .c-contact, .x-cta {
    padding: 0 !important;
    margin: 0 0 7mm !important;
    background: #fff !important;
    color: #1b2233 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important
  }

  .wrap {
    max-width: none !important;
    padding: 0 !important
  }

  h1, h2, h3, .c-h2 {
    color: #051b31 !important;
    break-after: avoid;
    page-break-after: avoid
  }

  h2, .c-h2 {
    font-size: 15pt !important;
    line-height: 1.2 !important;
    margin: 0 0 3mm !important
  }

  h2 b, .c-h2 b {
    font-weight: 800
  }

  h3 {
    font-size: 11.5pt !important;
    margin: 0 0 1.5mm !important
  }

  p, li, dd {
    orphans: 3;
    widows: 3
  }

  .c-head {
    display: block !important;
    margin-bottom: 4mm !important
  }

  .c-head p {
    color: #5b6274 !important;
    font-size: 9.5pt;
    margin-top: 1mm
  }

  .c-lead {
    font-size: 11pt !important
  }

  /* Raster, Listen, Karten: in den Fluss, nicht umbrechen */
  .x-grid, .c-pfl {
    display: grid !important;
    grid-template-columns:repeat(3, 1fr) !important;
    border-color: #c9ccd3 !important
  }

  .x-grid__c, .c-pfl > li, .c-show__item, .x-case, .c-block, .c-panel, .c-scope > div, .x-rows li, .c-acc details {
    break-inside: avoid;
    page-break-inside: avoid;
    background: #fff !important
  }

  .x-grid__c {
    padding: 3mm !important;
    border-color: #c9ccd3 !important
  }

  .x-sol li {
    background: #fff !important;
    border: .6pt solid #051b31;
    color: #051b31 !important;
    padding: 1.5mm 2.5mm !important
  }

  .c-show {
    display: block !important
  }

  .c-show__list {
    display: block !important
  }

  .c-show__item {
    padding: 0 0 3mm !important;
    margin: 0 0 3mm !important;
    border-bottom: .5pt solid #c9ccd3;
    min-height: 0 !important
  }

  .c-show__item::before {
    display: none !important
  }

  .c-show__item h3 {
    font-weight: 700 !important;
    color: #051b31 !important;
    font-size: 12pt !important;
    opacity: 1 !important
  }

  .c-head {
    break-after: avoid;
    page-break-after: avoid
  }

  .c-blocks {
    display: grid !important;
    grid-template-columns:repeat(2, 1fr) !important;
    gap: 3mm !important
  }

  .c-block {
    border: .5pt solid #c9ccd3
  }

  .c-block__img, .c-motif {
    display: none !important
  }

  .x-rows a {
    grid-template-columns:4mm 1fr 1.4fr !important;
    padding: 2mm 0 !important
  }

  /* Case Studies: senkrecht statt horizontal */
  .x-hs.is-pinned {
    height: auto !important
  }

  .x-hs__pin {
    position: static !important;
    height: auto !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important
  }

  .x-hs__head {
    width: auto !important;
    margin: 0 !important
  }

  .x-hs__head h2, .x-hs__h {
    color: #051b31 !important
  }

  .x-hs__i {
    color: #5b6274 !important
  }

  .x-hs__track {
    display: grid !important;
    grid-template-columns:repeat(3, 1fr) !important;
    gap: 3mm !important;
    transform: none !important;
    padding: 0 !important;
    overflow: visible !important
  }

  .x-hs__track > li {
    flex: none !important
  }

  .x-case {
    background: #fff !important;
    color: #1b2233 !important;
    border: .6pt solid #c9ccd3;
    border-radius: 0 !important
  }

  .x-case__b {
    padding: 3mm !important;
    gap: 1.5mm !important
  }

  .x-case__goal {
    font-size: 10.5pt !important
  }

  .x-case__steps {
    font-size: 8.5pt !important;
    border-color: #c9ccd3 !important
  }

  .x-chip {
    border-color: #c9ccd3 !important
  }

  .x-cases {
    grid-template-columns:repeat(2, 1fr) !important;
    gap: 3mm !important
  }

  .x-cases > li[hidden] {
    display: none !important
  }

  /* Akkordeon: alles offen (Skript öffnet vor dem Druck) */
  .c-acc summary {
    font-weight: 700;
    padding: 2mm 0 !important
  }

  .c-acc summary .pl, .c-acc summary svg {
    display: none !important
  }

  .c-acc .body {
    padding: 0 0 2mm !important
  }

  /* Links: externe Adressen ausschreiben */
  a {
    color: #051b31 !important;
    text-decoration: underline
  }

  main a[href^="http"]:not([href*="sinkacom.de"])::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #5b6274;
    word-break: break-all
  }

  a[href^="mailto:"]::after, a[href^="tel:"]::after {
    content: ""
  }

  /* Kontakt bleibt als Adressblock */
  .x-cta__in {
    display: block !important
  }

  .x-side {
    display: block !important;
    background: #fff !important;
    border: .6pt solid #051b31;
    padding: 3mm !important;
    break-inside: avoid
  }

  .x-side svg {
    display: none
  }

  /* Fuß: nur Adresse */
  .c-footer {
    background: #fff !important;
    padding: 4mm 0 0 !important;
    border-top: .6pt solid #051b31;
    break-inside: avoid
  }

  .c-footer__bottom nav {
    display: none !important
  }

  .c-footer h2 {
    font-size: 11pt !important
  }

  /* Tabellen */
  table {
    border-collapse: collapse;
    width: 100%;
    font-size: 9pt
  }

  th, td {
    border: .5pt solid #c9ccd3;
    padding: 1.5mm 2mm
  }

  thead {
    display: table-header-group
  }

  img {
    max-width: 100% !important;
    break-inside: avoid
  }

  .vh, .visually-hidden {
    position: absolute !important
  }
}
