/**
 * Theme Name: BLUE the WEB Child
 * Description: Child theme for show-m, BLUEtheWEB module system extensions (m25+).
 * Author: BLUE the WEB GmbH <support@bluetheweb.de>
 * Template: BtW_theme
 * Version: 0.1.0
 * Text Domain: bluetheweb-child
 */

/* ========================================================================
   Webfonts — Nexa family hosted in BLUEtheWEB-child/webfonts/
   ===================================================================== */
@font-face {
    font-family: 'Nexa-Heavy';
    font-display: swap;
    src: url('./webfonts/NexaHeavy.otf') format("opentype"),
         url('./webfonts/Nexa-Heavy.otf'),
         url('./webfonts/Nexa-Heavy.ttf') format('truetype');
}

@font-face {
    font-family: 'Nexa-Bold';
    font-display: swap;
    src: url('./webfonts/34CF7D_0_0.eot');
    src: url('./webfonts/34CF7D_0_0.eot?#iefix') format('embedded-opentype'),
         url('./webfonts/34CF7D_0_0.woff2') format('woff2'),
         url('./webfonts/34CF7D_0_0.woff') format('woff'),
         url('./webfonts/34CF7D_0_0.ttf') format('truetype'),
         url('./webfonts/Nexa-Bold.ttf') format('truetype'),
         url('./webfonts/Nexa-Bold.otf') format("opentype"),
         url('./webfonts/Nexa-Bold.woff') format("woff");
}

@font-face {
    font-family: 'Nexa-Regular';
    font-display: swap;
    src: url('./webfonts/34CF7D_1_0.eot');
    src: url('./webfonts/34CF7D_1_0.eot?#iefix') format('embedded-opentype'),
         url('./webfonts/34CF7D_1_0.woff2') format('woff2'),
         url('./webfonts/34CF7D_1_0.woff') format('woff'),
         url('./webfonts/34CF7D_1_0.ttf') format('truetype'),
         url('./webfonts/Nexa-Regular.ttf') format('truetype'),
         url('./webfonts/Nexa-Regular.otf') format("opentype"),
         url('./webfonts/Nexa-Regular.woff') format("woff");
}

@font-face {
    font-family: 'Nexa-Book';
    font-display: swap;
    src: url('./webfonts/nexa_book-webfont.eot');
    src: url('./webfonts/nexa_book-webfont.woff2') format('woff2'),
         url('./webfonts/nexa_book-webfont.woff') format('woff'),
         url('./webfonts/nexa_book-webfont.ttf') format('truetype'),
         url('./webfonts/Nexa-Book.otf') format("opentype");
}

@font-face {
    font-family: 'Nexa-Book-Italic';
    font-display: swap;
    src: url('./webfonts/nexa_book_italic-webfont.eot');
    src: url('./webfonts/nexa_book_italic-webfont.woff2') format('woff2'),
         url('./webfonts/nexa_book_italic-webfont.woff') format('woff'),
         url('./webfonts/nexa_book_italic-webfont.ttf') format('truetype'),
         url('./webfonts/Nexa-Book-Italic.otf') format("opentype");
}

/* Nexa-Black-Italic: design-system alias for titles. No dedicated black-italic
   file is shipped, so we register the alias against the Heavy faces. The
   italic look is then produced by `font-style: italic` on consumers (browser
   synthesizes a slanted glyph from the upright Heavy). */
@font-face {
    font-family: 'Nexa-Black-Italic';
    font-display: swap;
    src: url('./webfonts/NexaHeavy.otf') format("opentype"),
         url('./webfonts/Nexa-Heavy.otf'),
         url('./webfonts/Nexa-Heavy.ttf') format('truetype');
}

/* Body default — Nexa-Regular */
body,
input,
textarea,
select,
button {
    font-family: 'Nexa-Regular', system-ui, sans-serif;
}

/* Headings default — Nexa-Black-Italic */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nexa-Black-Italic', 'Nexa-Heavy', system-ui, sans-serif;
    font-style: italic;
    font-weight: 900;
}

/* Contain horizontal overflow at the page root so individual modules can use
   transforms (rotate, scale) and 100vw widths without producing a horizontal
   scrollbar. `overflow-x: clip` is preferred over `hidden` because it doesn't
   create a new scroll container (so `position: sticky` etc. still work). */
html,
body {
    overflow-x: clip;
}

/* Smooth-Scroll als CSS-Fallback (greift wenn JS-Handler nicht greift,
   z.B. bei nativem Browser-Anchor-Jump beim Page-Load via /#hash). */
html {
    scroll-behavior: smooth;
}

body {
    background: #d9d9d9;
}

/* Global responsive safety: alle Show-M Modul-Titel + Headlines dürfen
   bei extrem schmalen Viewports (≤480px) lange Wörter brechen, damit
   nichts horizontal aus dem Viewport ragt. Greift für alle .m*_title /
   .m*_titel / Subtitles. */
@media (max-width: 480px) {
    [class^="m"][class*="_title"],
    [class^="m"][class*="_titel"],
    [class*=" m"][class*="_title"],
    [class*=" m"][class*="_titel"],
    .m25_hero_title,
    section.m1_text .m1_titel,
    section.m1_text.is_cta .m1_titel {
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
}

/* Show-M content container width — caps at 1400px so header, footer and
   every module sit on the same horizontal grid. Parent BtW theme grows the
   .mM_container up to 1720px on very wide screens; we pull it back to a
   tighter max so the layout matches the Figma onepager. */
:root {
    --showm-container-max: 1400px;
}

@media all and (min-width: 1600px) {
    .mM_container       { max-width: var(--showm-container-max); }
}
@media all and (min-width: 1800px) {
    .mM_container       { max-width: var(--showm-container-max); }
}

/* Header/footer wrappers mirror the parent .mM_container responsive widths
   so they sit flush with the modules across every breakpoint. The 20px
   side-padding kicks in below the smallest max-width breakpoint so the
   logo/nav/contact never sit flush against the screen edge on mobile. */
.showm_header_inner,
.showm_footer_inner,
.showm_footer_main,
.showm_footer_divider,
.showm_footer_meta {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* m72 mM-CORE uses a Bootstrap-style ".container" instead of .mM_container;
   mirror the same responsive max-widths and side-padding so it tracks the
   rest of the page across all breakpoints. */
section.m72_mm_core > .container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
@media all and (min-width: 576px)  { section.m72_mm_core > .container { max-width: 540px; } }
@media all and (min-width: 768px)  { section.m72_mm_core > .container { max-width: 720px; } }
@media all and (min-width: 992px)  { section.m72_mm_core > .container { max-width: 960px; } }
@media all and (min-width: 1200px) { section.m72_mm_core > .container { max-width: 1140px; } }
@media all and (min-width: 1400px) { section.m72_mm_core > .container { max-width: 1320px; } }
@media all and (min-width: 1600px) { section.m72_mm_core > .container { max-width: var(--showm-container-max); } }

/* Same side-padding for the standard parent .mM_container so all modules
   (m25, m27, m29, m30, m32, m33, m34, m1_text/is_cta) line up under the
   header/footer at every viewport size. */
.mM_container {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

@media all and (min-width: 576px) {
    .showm_header_inner,
    .showm_footer_inner,
    .showm_footer_main,
    .showm_footer_divider,
    .showm_footer_meta { max-width: 540px; }
}
@media all and (min-width: 768px) {
    .showm_header_inner,
    .showm_footer_inner,
    .showm_footer_main,
    .showm_footer_divider,
    .showm_footer_meta { max-width: 720px; }
}
@media all and (min-width: 992px) {
    .showm_header_inner,
    .showm_footer_inner,
    .showm_footer_main,
    .showm_footer_divider,
    .showm_footer_meta { max-width: 960px; }
}
@media all and (min-width: 1200px) {
    .showm_header_inner,
    .showm_footer_inner,
    .showm_footer_main,
    .showm_footer_divider,
    .showm_footer_meta { max-width: 1140px; }
}
@media all and (min-width: 1400px) {
    .showm_header_inner,
    .showm_footer_inner,
    .showm_footer_main,
    .showm_footer_divider,
    .showm_footer_meta { max-width: 1320px; }
}
@media all and (min-width: 1600px) {
    .showm_header_inner,
    .showm_footer_inner,
    .showm_footer_main,
    .showm_footer_divider,
    .showm_footer_meta { max-width: var(--showm-container-max); }
}

/* ========================================================================
   Shared CTA buttons — Show-M Onepager
   Use via showm_render_cta($link, 'primary'|'secondary') from functions.php.
   ===================================================================== */
.showm_cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    height: 55px;
    padding: 0 32px;
    border-radius: 30px;
    font-family: "Nexa-Bold", "Nexa", sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.showm_cta:hover,
.showm_cta:focus-visible {
    transform: translateY(-2px);
}

.showm_cta_label {
    color: inherit;
}

.showm_cta_arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.showm_cta:hover .showm_cta_arrow,
.showm_cta:focus-visible .showm_cta_arrow {
    transform: translateX(2px);
}

/* Primary — frosted white pill (Figma node 63:664).
   Halo via offset blurred box-shadows: rendered OUTSIDE the element only,
   so the rgba(.8) button bg never gets tinted by the rainbow.
   Color is explicitly set for every interaction state because the parent
   theme has `a:hover { color: inherit }` globally. */
.showm_cta--primary,
.showm_cta--primary:visited,
.showm_cta--primary:hover,
.showm_cta--primary:focus,
.showm_cta--primary:focus-visible,
.showm_cta--primary:active {
    color: #353434;
}

.showm_cta--primary,
.showm_cta--primary:visited {
    background: rgba(254.54, 254.54, 254.54, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow:
        inset 0 3px 15px rgba(255, 255, 255, 0.5),
        -50px  -2px 55px -10px rgba(20,  94, 168, 0.35),
        -26px   5px 55px -10px rgba(235, 127, 177, 0.35),
          0px  -2px 55px -10px rgba(126, 202, 212, 0.22),
          0px   5px 55px -10px rgba(124, 118,  64, 0.18),
         26px  -2px 55px -10px rgba(218, 167,   7, 0.35),
         50px   5px 55px -10px rgba(238, 114,  44, 0.35);
    min-width: 214px;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.showm_cta--primary:hover,
.showm_cta--primary:focus-visible {
    box-shadow:
        inset 0 3px 15px rgba(255, 255, 255, 0.55),
        -53px  -2px 55px -8px rgba(20,  94, 168, 0.40),
        -28px   5px 55px -8px rgba(235, 127, 177, 0.40),
          0px  -2px 55px -8px rgba(126, 202, 212, 0.26),
          0px   5px 55px -8px rgba(124, 118,  64, 0.22),
         28px  -2px 55px -8px rgba(218, 167,   7, 0.40),
         53px   5px 55px -8px rgba(238, 114,  44, 0.40);
}

/* Primary-dark — outlined pill in the resting state. On hover the pill
   fills with #353434, text/arrow flip to white, and a rainbow halo
   appears OUTSIDE via offset box-shadows. Box-shadows render outside
   the element only, so no rainbow ever bleeds through the dark fill. */
.showm_cta--primary-dark,
.showm_cta--primary-dark:visited {
    background: transparent;
    color: #353434;
    border: 1px solid #353434;
    min-width: 214px;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.showm_cta--primary-dark:focus,
.showm_cta--primary-dark:active {
    color: #353434;
}

.showm_cta--primary-dark:hover,
.showm_cta--primary-dark:focus-visible {
    background: #353434;
    color: #ffffff;
    border-color: #353434;
    box-shadow:
        inset 0 3px 15px rgba(255, 255, 255, 0.2),
        -30px  -1px 35px -10px rgba(20,  94, 168, 0.35),
        -15px   3px 35px -10px rgba(235, 127, 177, 0.35),
          0px  -1px 35px -10px rgba(126, 202, 212, 0.22),
          0px   3px 35px -10px rgba(124, 118,  64, 0.18),
         15px  -1px 35px -10px rgba(218, 167,   7, 0.35),
         30px   3px 35px -10px rgba(238, 114,  44, 0.35);
}

/* Primary-light — outlined pill on dark sections, mirror of primary-dark.
   Default: light border + light text, no shadow. Hover: pill fills light,
   text flips to dark, rainbow halo + inset highlight appear. */
.showm_cta--primary-light,
.showm_cta--primary-light:visited {
    background: transparent;
    color: #d4d4d4;
    border: 1px solid #d4d4d4;
    box-shadow: none;
    min-width: 243px;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.showm_cta--primary-light:focus,
.showm_cta--primary-light:active {
    color: #d4d4d4;
}

.showm_cta--primary-light:hover,
.showm_cta--primary-light:focus-visible {
    background: rgba(255, 255, 255, 0.95);
    color: #353434;
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        inset 0 3px 15px rgba(255, 255, 255, 0.5),
        -30px  -1px 35px -10px rgba(20,  94, 168, 0.4),
        -15px   3px 35px -10px rgba(235, 127, 177, 0.4),
          0px  -1px 35px -10px rgba(126, 202, 212, 0.25),
          0px   3px 35px -10px rgba(124, 118,  64, 0.20),
         15px  -1px 35px -10px rgba(218, 167,   7, 0.4),
         30px   3px 35px -10px rgba(238, 114,  44, 0.4);
}

/* Secondary — outlined pill */
.showm_cta--secondary,
.showm_cta--secondary:visited,
.showm_cta--secondary:hover,
.showm_cta--secondary:focus,
.showm_cta--secondary:focus-visible,
.showm_cta--secondary:active {
    color: #d4d4d4;
}

.showm_cta--secondary,
.showm_cta--secondary:visited {
    background: transparent;
    border: 1px solid #d4d4d4;
}

.showm_cta--secondary:hover,
.showm_cta--secondary:focus-visible {
    background: rgba(212, 212, 212, 0.1);
}

/* ========================================================================
   Topline + Header — Show-M Onepager
   ===================================================================== */

/* Smooth-scroll targets land below the sticky header */
section[class^="m"],
section[class*=" m"] {
    scroll-margin-top: 100px;
}

/* Skip-link from parent header (visually hidden until focused) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    z-index: 200;
    padding: 8px 16px;
    background: #ffffff;
    color: #252525;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Topline (sits at top of page, scrolls away on scroll)
   Dark base + soft rainbow overlay covering the full strip, matching the
   masked/blurred gradient in Figma node 87:6. */
.showm_topline {
    position: relative;
    height: 37px;
    background: #252525;
    overflow: hidden;
    z-index: 99;
}

.showm_topline::before {
    content: "";
    position: absolute;
    inset: -20px -40px;
    background: linear-gradient(
        90deg,
        rgba(20, 94, 168, 0.5) 0%,
        rgba(235, 127, 177, 0.5) 20%,
        rgba(126, 202, 212, 0.5) 40%,
        rgba(124, 118, 64, 0.5) 60%,
        rgba(218, 167, 7, 0.5) 80%,
        rgba(238, 114, 44, 0.5) 100%
    );
    filter: blur(30px);
    opacity: 0.7;
    pointer-events: none;
}

.showm_topline p {
    position: relative;
    margin: 0;
    line-height: 37px;
    text-align: center;
    color: #ffffff;
    font-family: "Nexa-Regular", "Nexa", sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.showm_topline strong {
    font-family: "Nexa-Heavy", "Nexa-Heavy", "Nexa", sans-serif;
    font-weight: 900;
}

/* Header (sticky — stays at top:0 once topline has scrolled away) */
.showm_header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #353434;
    border-bottom: 1px solid #4c4c4c;
    box-sizing: border-box;
    /* Parent BtW menu.css setzt `header { padding: 27px 0 }` — auf Desktop
       passt das (ergibt zusammen mit dem Logo eine ~104px hohe Bar).
       Auf Mobile wird das im Breakpoint unten überschrieben damit das
       kleinere Logo nicht aus der Bar ragt. */
}

.showm_header_inner {
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    /* Increased side padding (overrides the 20px base rule above) so logo
       and "Studio buchen" CTA sit comfortably inside the visible bar
       instead of touching the edges on container-width viewports. */
    padding-left: 40px;
    padding-right: 40px;
}

.showm_header_logo,
.showm_header_cta {
    align-self: center;          /* explicit vertical center within the grid row */
}

/* Logo */
.showm_header_logo {
    text-decoration: none;
    color: inherit;
}

/* Logo box — height drives the size, width follows the intrinsic aspect
   ratio of the SVG (450:131.08 → ~3.43:1). The SVG embeds the wordmark
   + "Content Studio" caption together; constraining only height makes
   the result deterministic across browsers (mixing height+max-width
   on SVGs gave Firefox/Chrome different computed sizes). */
.showm_header_logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.showm_header_logo img,
.showm_header_logo svg {
    height: 50px;
    width: auto;
    display: block;
}

.showm_header_logo svg {
    fill: #ffffff;
}

.showm_header_logo_caption {
    font-family: "Nexa-Heavy", "Nexa", sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #d4d4d4;
    padding-left: 4px;
}

/* Nav */
.showm_header_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 40px;
}

.showm_header_nav a {
    font-family: "Nexa-Regular", "Nexa", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: #d4d4d4;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.showm_header_nav a:hover,
.showm_header_nav a:focus-visible {
    color: #ffffff;
}

/* Pill CTA */
.showm_header_cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 55px;
    min-width: 183px;
    padding: 0 26px;
    box-sizing: border-box;   /* border counts inside the 55px, total stays 55 */
    line-height: 1;
    border-radius: 30px;
    border: 1px solid #d4d4d4;
    background: transparent;
    color: #d4d4d4;
    font-family: "Nexa-Bold", "Nexa", sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.showm_header_cta:hover,
.showm_header_cta:focus-visible {
    background: #d4d4d4;
    color: #252525;
}

.showm_header_cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.showm_header_cta:hover svg,
.showm_header_cta:focus-visible svg {
    transform: translateX(2px);
}

/* Burger button (hidden on desktop) — uses two stacked icons (burger + X)
   with opacity-toggle, like the HMC pattern. The X icon is rendered via
   SVG strokes so it stays crisp at every size. */
.showm_header_burger {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

/* The two icon containers stack on top of each other; opacity decides
   which one is visible. */
.showm_burger_icon,
.showm_close_icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.showm_close_icon { opacity: 0; }
.showm_header_burger[aria-expanded="true"] .showm_burger_icon { opacity: 0; }
.showm_header_burger[aria-expanded="true"] .showm_close_icon  { opacity: 1; }

/* Burger: three bars stacked, varying widths */
.showm_burger_icon {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.showm_burger_bar {
    display: block;
    height: 2px;
    background: #d4d4d4;
    border-radius: 50px;
    transition: width 0.25s ease;
}
.showm_burger_bar--1 { width: 12px; }
.showm_burger_bar--2 { width: 22px; }
.showm_burger_bar--3 { width: 18px; }
.showm_header_burger:hover .showm_burger_bar { width: 22px; }

/* Close: single SVG X, 18px */
.showm_close_icon svg {
    width: 18px;
    height: 18px;
    color: #d4d4d4;
}

/* Mobile menu drawer — placed inside the sticky <header>, so it tracks the
   header's position automatically. `top: 100%` anchors it directly under
   the header bottom-edge (no overlap at scroll=0, no jump when the topline
   disappears once you start scrolling). */
.showm_mobile_menu {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    margin: 0 auto;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
    background: rgba(37, 37, 37, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid #4c4c4c;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 30px 60px 10px rgba(0, 0, 0, 0.45);
    z-index: 99;
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.25s ease;
    pointer-events: none;
}

@media all and (min-width: 576px)  { .showm_mobile_menu { max-width: 500px; left: 0; right: 0; } }
@media all and (min-width: 768px)  { .showm_mobile_menu { max-width: 680px; } }
@media all and (min-width: 992px)  { .showm_mobile_menu { max-width: 920px; } }

.showm_mobile_menu.is_open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Inner scroll container — max-height equal to the visible area below the
   sticky header so the drawer never extends past the bottom of the viewport.
   Scrolls internally when the content (nav + CTA + contact) is taller. */
.showm_mobile_menu_scroll {
    max-height: calc(100vh - 137px); /* topline 37 + header 100 */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: inherit;
}

.showm_mobile_menu_inner {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Nav list — left-aligned items, separated by thin horizontal lines */
.showm_mobile_menu_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.showm_mobile_menu_nav li {
    border-top: 1px solid rgba(212, 212, 212, 0.18);
}
.showm_mobile_menu_nav li:first-child { border-top: 0; }

.showm_mobile_menu_nav a {
    display: block;
    padding: 14px 0;
    font-family: "Nexa-Regular", "Nexa", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #d4d4d4;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.showm_mobile_menu_nav a:hover,
.showm_mobile_menu_nav a:focus-visible {
    color: #ffffff;
    padding-left: 6px;
}

/* Footer block — contact info compact at the bottom of the drawer */
.showm_mobile_menu_footer {
    padding-top: 8px;
    border-top: 1px solid rgba(212, 212, 212, 0.18);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.showm_mobile_menu_cta {
    align-self: flex-start;
}

.showm_mobile_menu_contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.showm_mobile_menu_contact a {
    font-family: "Nexa-Regular", "Nexa", sans-serif;
    font-size: 14px;
    color: rgba(212, 212, 212, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.showm_mobile_menu_contact a:hover {
    color: #ffffff;
}

/* Page scroll is locked by JS via body.style.overflow = 'hidden' when the
   drawer opens — see the menu-toggle handler in functions.php. */

@media (max-width: 1100px) {
    .showm_header_inner {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }
    .showm_header_nav,
    .showm_header_inner > .showm_header_cta {
        display: none;
    }
    .showm_header_burger {
        display: inline-flex;
        margin-left: auto;
    }
}

@media (max-width: 720px) {
    .showm_topline { height: 30px; }
    .showm_topline p { line-height: 30px; font-size: 11px; }
    /* Auf Mobile das Parent-`header { padding: 27px 0 }` neutralisieren —
       die 64px Header-Höhe bestimmt die Bar-Größe, nicht das Parent-Padding. */
    .showm_header {
        height: 64px;
        padding: 0;
    }
    .showm_header_inner {
        padding-left: 16px;
        padding-right: 16px;
        gap: 12px;
    }
    /* Explicit height auf SVG/Img — bei `height: auto` mit nur max-height
       rendert das SVG (ohne intrinsische Dimensionen) als 0×0. */
    .showm_header_logo img,
    .showm_header_logo svg {
        height: 36px;
        width: auto;
        display: block;
    }
    .showm_header_logo_caption { font-size: 9px; letter-spacing: 0.28em; }
    .showm_mobile_menu_scroll { max-height: calc(100vh - 102px); /* 30 + 72 */ }
    .showm_header_burger { width: 40px; height: 40px; }
    .showm_close_icon svg { width: 16px; height: 16px; }
    .showm_mobile_menu_inner { padding: 20px 20px 24px; gap: 16px; }
    .showm_mobile_menu_nav a { font-size: 14px; padding: 12px 0; }
}

/* ========================================================================
   Footer — Show-M Onepager
   ===================================================================== */
.showm_footer {
    position: relative;
    background: #252525;
    color: #d4d4d4;
    padding: 0;
    isolation: isolate;
}

/* Top: Logo · Nav · Contact, with Back-to-top pinned to top-right */
.showm_footer_main {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding-top: 130px;
    padding-bottom: 50px;
}

/* Logo */
.showm_footer_logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.showm_footer_logo img,
.showm_footer_logo svg {
    width: 184px;
    height: auto;
    display: block;
}

.showm_footer_logo svg {
    fill: #ffffff;
}

.showm_footer_logo_caption {
    font-family: "Nexa-Heavy", "Nexa", sans-serif;
    font-style: italic;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #d4d4d4;
    padding-left: 4px;
}

/* Nav */
.showm_footer_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 40px;
}

.showm_footer_nav a {
    font-family: "Nexa-Regular", "Nexa", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: #d4d4d4;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.showm_footer_nav a:hover,
.showm_footer_nav a:focus-visible {
    color: #ffffff;
}

/* Contact */
.showm_footer_contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.showm_footer_contact li {
    display: inline-flex;
    align-items: center;
}

.showm_footer_contact li + li::before {
    content: "-";
    margin-right: 12px;
    color: #888;
}

.showm_footer_contact a {
    font-family: "Nexa-Regular", "Nexa", sans-serif;
    font-size: 15px;
    color: #d4d4d4;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.showm_footer_contact a:hover,
.showm_footer_contact a:focus-visible {
    color: #ffffff;
}

/* Back-to-top button — pinned to top-right of the footer (outside the
   1400px content container, ~50px from the viewport edge as in Figma). */
.showm_back_to_top {
    position: absolute;
    top: 50px;
    right: clamp(20px, 3vw, 55px);
    width: 55px;
    height: 55px;
    border-radius: 30px;
    background: #d4d4d4;
    color: #252525;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
    z-index: 2;
}

.showm_back_to_top:hover,
.showm_back_to_top:focus-visible {
    background: #ffffff;
    transform: translateY(-2px);
}

.showm_back_to_top svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.showm_footer_divider {
    border: 0;
    height: 1px;
    background: #4c4c4c;
}

/* Meta row: Copyright · Legal · Webdesign credit
   Mirrors the top row's grid pattern (auto | 1fr | auto) so copyright sits
   flush-left under the logo, the legal links center under the nav, and the
   webdesign credit sits flush-right under the contact list. */
.showm_footer_meta {
    padding: 22px 0 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    font-family: "Nexa-Regular", "Nexa", sans-serif;
    font-size: 15px;
    color: rgba(212, 212, 212, 0.5);
    letter-spacing: 0.01em;
}

.showm_footer_copyright {
    margin: 0;
    text-align: left;
    font-family: "Nexa-Heavy", "Nexa", sans-serif;
    font-weight: 900;
    color: rgba(212, 212, 212, 0.5);
}

.showm_footer_legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.showm_footer_legal a {
    color: rgba(212, 212, 212, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.showm_footer_legal a:hover,
.showm_footer_legal a:focus-visible {
    color: #fff;
}

.showm_footer_webdesign {
    margin: 0;
    text-align: right;
}

.showm_footer_webdesign a {
    color: rgba(212, 212, 212, 0.5);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.showm_footer_webdesign a:hover,
.showm_footer_webdesign a:focus-visible {
    color: #fff;
}

/* Rainbow ribbon — dark band with thin blue borders top/bottom and a
   blurred multi-color glow seeping through from underneath. */
.showm_footer_ribbon {
    position: relative;
    overflow: hidden;
    background: #252525;
    border-top: 2px solid rgba(20, 94, 168, 0.5);
    border-bottom: 2px solid rgba(20, 94, 168, 0.5);
    padding: 12px 16px;
    text-align: center;
    isolation: isolate;
}

.showm_footer_ribbon::before {
    content: "";
    position: absolute;
    inset: -25px 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(20, 94, 168, 0.5)   0%,
        rgba(235, 127, 177, 0.5) 20%,
        rgba(126, 202, 212, 0.5) 40%,
        rgba(124, 118, 64, 0.5)  60%,
        rgba(218, 167, 7, 0.5)   80%,
        rgba(238, 114, 44, 0.5)  100%
    );
    filter: blur(35px);
    opacity: 0.7;
    pointer-events: none;
}

.showm_footer_ribbon p {
    position: relative;
    margin: 0;
    font-family: "Nexa-Regular", "Nexa", sans-serif;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.showm_footer_ribbon strong {
    font-family: "Nexa-Heavy", "Nexa", sans-serif;
    font-weight: 900;
    letter-spacing: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .showm_footer_main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 28px;
        padding-top: 90px;   /* reduced from 130px so the stacked content
                                doesn't sit too far down on tablet/mobile */
    }
    .showm_footer_logo {
        align-items: center;
    }
    .showm_back_to_top {
        top: 28px;
    }
}

@media (max-width: 720px) {
    .showm_footer_main {
        padding-top: 76px;
        padding-bottom: 32px;
        gap: 24px;
    }
    .showm_footer_nav ul {
        gap: 10px 20px;
    }
    .showm_footer_meta {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
        padding: 22px 0 26px;
    }
    .showm_footer_copyright,
    .showm_footer_webdesign {
        text-align: center;
    }
    .showm_back_to_top {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        border-radius: 22px;
    }
    .showm_back_to_top svg {
        width: 16px;
        height: 16px;
    }
}
