/* Publication preview: prominent ribbon, with the card remaining inactive. */
.blog-card:has(.blog-coming-soon){position:relative;isolation:isolate;overflow:hidden}
.blog-card .coming-soon-ribbon{position:absolute;z-index:3;top:32px;right:-52px;width:238px;padding:11px 0;transform:rotate(35deg);text-align:center;background:#0969bd;color:#fff;font:700 16px/1.25 Arial,sans-serif;letter-spacing:.015em;box-shadow:0 3px 9px #082c4b33;pointer-events:none;white-space:nowrap}
.blog-card:has(.blog-coming-soon):hover{box-shadow:0 0 0 1px #d1e5fb!important}
/* Keep the legal links above a centered copyright on every screen size. */
html body .site-footer .footer-meta{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center}
html body .site-footer .footer-meta .footer-legal{order:0;flex-basis:auto;justify-content:center}
html body .site-footer .footer-meta .footer-copyright{order:1;justify-self:center;justify-content:center;align-self:center;margin-inline:auto}
/* Mobile link boxes and underline follow the text, retaining a generous tap height. */
@media(max-width:1080px){
 html body.kdg-nav-unified>header.site-glass-nav.kdg-unified-header .nav #hauptnavigation>a{align-self:flex-start!important;width:fit-content!important;max-width:100%!important;box-sizing:border-box!important;padding-inline:0!important;margin-inline:10px!important}
 html body.kdg-nav-unified>header.site-glass-nav.kdg-unified-header .nav #hauptnavigation>a::after{inset-inline:0!important;bottom:5px!important}
}
@media(max-width:480px){.blog-card .coming-soon-ribbon{top:25px;right:-55px;width:215px;padding:9px 0;font-size:14px}}
/* Match the existing October 19 image fade on the other three published posts. */
.blog-index #blog .blog-card .blog-image-frame{background:#fff!important}
.blog-index #blog .blog-card .blog-image-frame img{-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 84%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 84%,transparent 100%)}

/* Confirm successful contact submission directly on the button. */
.contact-status:empty { display: none; }
#contactForm button[data-state="sent"] { opacity: 1; cursor: default; }
/* Let mobile text follow the available width instead of desktop line breaks. */
@media (max-width: 700px) {
  html body main :is(h1, h2, h3):not(.brand-hero-title h1) {
    hyphens: manual;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
  html body main :is(p, li, summary, blockquote) {
    text-wrap: pretty;
    word-break: normal;
  }
  html body main :is(p, li, summary, label) { overflow-wrap: break-word; }
  html body main :is(p, li, address, dd) a { overflow-wrap: anywhere; white-space: normal; }
  html body #kontakt .section-heading p .contact-intro-line {
    display: inline;
    margin-top: 0;
  }
  html body main :is(.visual-hero-copy, .sub-hero-copy, .first-copy) p span[style*="white-space"],
  html body main :is(.intro-title-line, .intro-way-link, .visual-subtitle-line, .collab-final-line) {
    white-space: normal !important;
  }
  html body main .help-desktop-break { display: none; }
  html body .legal-intro h1 {
    font-size: clamp(1.45rem, 7.3vw, 2.2rem);
    line-height: 1.15;
  }
  html body #kontakt .contact-facts li > span:last-child { text-wrap: balance; }
  html body main :is(.consent, .withdrawal-note, .note) { text-wrap: pretty; }
}

/* A shared mobile image height and title scale across all hero sections. */
@media (max-width: 700px) {
  html body main.glass-stage { --kdg-mobile-hero-image-height: min(65svh, 125vw); }
  html body main.glass-stage > #start.glass-stage-hero:not(.legal-intro) {
    min-height: 0 !important;
  }
  html body main.glass-stage > #start.glass-stage-hero > :is(.sub-hero-photo, .visual-hero-art, .case-hero-photo, .first-art, .blog-hero-image),
  html body.article-page main.glass-stage > .article-cover-hero.glass-stage-hero {
    height: var(--kdg-mobile-hero-image-height) !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 var(--kdg-mobile-hero-image-height) !important;
  }
  html body main.glass-stage > .glass-stage-hero h1,
  html body main.glass-stage > .glass-content > .article-hero h1 {
    font-size: clamp(1.45rem, 7.2vw, 2rem) !important;
    line-height: 1.12 !important;
  }
}

/* Reveal the homepage contact shortcut after scrolling, with room around it. */
html body .whatsapp-fixed[hidden] { display: none; }
html body .whatsapp-fixed {
  right: calc(32px + env(safe-area-inset-right, 0px));
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}
html body .whatsapp-fixed img { width: 64px; height: 64px; }
@media (max-width: 800px) {
  html body .whatsapp-fixed {
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  html body .whatsapp-fixed img { width: 60px; height: 60px; }
}
/* Match the light blue outlined controls from the case filters. */
@media (max-width: 1080px) {
  html body.kdg-nav-unified > header.site-glass-nav.kdg-unified-header .nav .menu-toggle {
    color: #075fb9 !important;
    background: #e9f4ff !important;
    border: 1px solid #087cff !important;
    box-shadow: inset 0 1px 1px #ffffffb3, 0 3px 9px #0b407114;
    min-height: 42px;
  }
  html body.kdg-nav-unified > header.site-glass-nav.kdg-unified-header .nav .menu-toggle[aria-expanded="true"] {
    background: #d7eaff !important;
  }
}

/* Keep the first content section below the initial mobile screen. */
@media (max-width: 700px) {
  html body main.glass-stage > #start.glass-stage-hero:not(.legal-intro) {
    min-height: 100svh !important;
  }
  html body.article-page main.glass-stage > .glass-content > .article-hero {
    min-height: calc(100svh - var(--kdg-mobile-hero-image-height)) !important;
  }
}
@media (max-width: 1080px) {
  html body.kdg-nav-unified > header.site-glass-nav.kdg-unified-header .nav .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font: 500 14px/1 Arial, sans-serif !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-sizing: border-box !important;
  }
}

/* Restore the original full-screen homepage artwork and overlaid wordmark. */
@media (max-width: 700px) {
  html body main.glass-stage > #start.brand-hero > .brand-hero-title h1 {
    font-size: clamp(1.45rem, 7.15vw, 3.5rem) !important;
    line-height: 1 !important;
  }
}
