/*
Theme Name: Selenium Next
Theme URI: https://www.selenium.lu/
Description: Work-in-progress block child theme for Selenium's service-led site; not a production deployment.
Author: Selenium Cloud
Template: twentytwentyfour
Version: 0.1.0
Text Domain: selenium-next
*/

:root { --sx-brand:#6ee7b7; --sx-on-brand:#09231b; --sx-radius:12px; --sx-control-radius:8px; --sx-bg:#0c1816; --sx-surface:#142923; --sx-ink:#edf6f2; --sx-muted:#acbfb6; --sx-accent:var(--sx-brand); --sx-line:#37594c; color-scheme:dark; }
:root[data-selenium-theme="light"] { --sx-bg:#f6faf8; --sx-surface:#ffffff; --sx-ink:#15392b; --sx-muted:#3e6254; --sx-accent:#08745a; --sx-line:#c6dacf; color-scheme:light; }
@media (prefers-color-scheme:light) { :root:not([data-selenium-theme]) { --sx-bg:#f6faf8; --sx-surface:#ffffff; --sx-ink:#15392b; --sx-muted:#3e6254; --sx-accent:#08745a; --sx-line:#c6dacf; color-scheme:light; } }
body { background:var(--sx-bg); color:var(--sx-ink); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:inherit; text-underline-offset:.24em; }
a:hover { color:var(--sx-accent); }
:focus-visible { outline:3px solid var(--sx-accent); outline-offset:3px; }
.selenium-header, .selenium-footer { border-bottom:1px solid var(--sx-line); padding:1rem max(1rem,calc((100vw - 1240px)/2)); }
.selenium-footer { border-top:1px solid var(--sx-line); border-bottom:0; }
.selenium-header .wp-block-navigation { gap:1.1rem; }
.selenium-header .wp-block-navigation-item__content[href*="/veeam/"] { color:var(--sx-accent); font-weight:650; text-decoration:underline; text-decoration-thickness:1px; }
.selenium-header .wp-block-navigation-item__content[href$="#contact"] { display:inline-block; border:1px solid var(--sx-line); padding:.5rem .8rem; border-radius:var(--sx-control-radius); background:var(--sx-brand); color:var(--sx-on-brand); font-weight:650; }
.selenium-header .wp-block-navigation-item__content[href$="#contact"]:hover { border-color:var(--sx-accent); }
.selenium-header .selenium-brand { flex-shrink:0; gap:.75rem; }
.selenium-header .wp-block-site-logo { flex-shrink:0; margin:0; }
.selenium-header .wp-block-site-logo img { display:block; width:80px; height:auto; filter:none; mix-blend-mode:normal; }
.selenium-header .wp-block-site-title { font-size:1.05rem; font-weight:750; letter-spacing:-.02em; text-transform:none; }
.selenium-header .wp-block-site-title a { text-decoration:none; }
/* Language URLs remain native links; no client-side translation substitute. */
.selenium-language-switcher { display:flex; align-items:center; gap:.2rem; flex-wrap:wrap; }
.selenium-language-switcher a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; box-sizing:border-box; padding:.35rem .55rem; font-size:.8rem; font-weight:700; letter-spacing:.04em; text-decoration:none; border-bottom:2px solid transparent; }
.selenium-language-switcher a[aria-current] { color:var(--sx-accent); border-bottom-color:var(--sx-accent); }
.selenium-language-switcher a:hover { background:var(--sx-surface); }
.selenium-theme-control { display:flex; gap:.15rem; border:1px solid var(--sx-line); border-radius:2rem; padding:.15rem; }
.selenium-theme-control button { border:0; border-radius:2rem; padding:.35rem .65rem; color:var(--sx-ink); background:transparent; cursor:pointer; font:inherit; font-size:.75rem; }
.selenium-theme-control button[aria-pressed="true"] { background:var(--sx-brand); color:var(--sx-on-brand); }
.selenium-home { max-width:1240px; margin:auto; padding:0 1rem 5rem; }
.selenium-home h1, .selenium-home h2, .selenium-home h3, .selenium-page h1, .selenium-page h2, .selenium-page h3 { color:inherit; font-family:Georgia,"Times New Roman",serif; font-weight:400; line-height:1.12; letter-spacing:-.035em; overflow-wrap:anywhere; text-wrap:pretty; }
.selenium-home p, .selenium-page p { line-height:1.7; }
.selenium-home .selenium-kicker, .selenium-page .selenium-kicker { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.5; }
.selenium-kicker { text-transform:uppercase; letter-spacing:.15em; font-size:.75rem; color:var(--sx-accent); font-weight:700; }
.selenium-hero { --sx-accent:var(--sx-brand); --sx-bg:#0c1816; --sx-ink:#edf6f2; --sx-muted:#acbfb6; min-height:560px; box-sizing:border-box; padding:clamp(2rem,6vw,6rem); margin:1.25rem 0 4rem; display:flex; align-items:flex-end; background:linear-gradient(90deg,rgba(6,20,25,.95) 0%,rgba(6,20,25,.72) 50%,rgba(6,20,25,.3) 100%),url('assets/hosting-rack.webp') center/cover; color:#edf6f2; border:1px solid var(--sx-line); border-radius:var(--sx-radius); box-shadow:0 16px 48px rgba(0,0,0,.12); }
.selenium-hero .wp-block-group { max-width:730px; }
.selenium-hero h1 { font-size:clamp(2.4rem,6vw,5.9rem); overflow-wrap:anywhere; }
.selenium-hero p:not(.selenium-kicker) { font-size:clamp(1.05rem,1.6vw,1.35rem); max-width:53ch; }
.selenium-home .wp-block-button__link { background:var(--sx-brand); color:var(--sx-on-brand); border-radius:var(--sx-control-radius); font-weight:700; }
.selenium-section { margin:4rem 0; }
.selenium-section > h2 { font-size:clamp(2rem,4vw,3.6rem); max-width:18ch; }
.selenium-explorer { display:grid; grid-template-columns:minmax(240px,.26fr) minmax(0,.74fr); border:1px solid var(--sx-line); border-radius:var(--sx-radius); overflow:hidden; margin-top:2rem; }
.selenium-tabs { display:flex; flex-direction:column; border-right:1px solid var(--sx-line); }
.selenium-tabs button { flex:1; text-align:left; font:inherit; font-weight:600; min-height:72px; padding:1rem 1.3rem; border:0; border-bottom:1px solid var(--sx-line); background:var(--sx-bg); color:var(--sx-ink); cursor:pointer; }
.selenium-tabs button:last-child { border-bottom:0; }
.selenium-tabs button[aria-selected="true"] { background:var(--sx-brand); color:var(--sx-on-brand); }
.selenium-panels { padding:clamp(1.5rem,3vw,3rem); background:var(--sx-surface); min-width:0; }
.selenium-panel h3 { font-size:clamp(1.65rem,3vw,2.8rem); margin-top:.5rem; }
.selenium-panel[hidden] { display:none !important; }
.selenium-panel p { max-width:59ch; line-height:1.65; }
.selenium-panel .wp-block-image img { max-height:260px; width:100%; object-fit:cover; }
/* Editorial columns replace repeated filled cards; native blocks stay editable. */
.selenium-chapters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1.5rem,4vw,4rem); margin-top:1.5rem; border-top:1px solid var(--sx-line); }
.selenium-chapters > .wp-block-group { min-width:0; background:transparent; padding:1.5rem 0; margin-block-start:0; }
.selenium-chapters h3 { font-size:clamp(1.5rem,2.3vw,2.4rem); margin-top:0; }
.selenium-chapters p { line-height:1.7; max-width:53ch; }
.selenium-service-journal { counter-reset:journal; }
.selenium-service-journal > :is(article,section,.wp-block-group) { counter-increment:journal; display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); column-gap:clamp(2rem,6vw,6rem); row-gap:1rem; padding:clamp(1.5rem,3vw,3rem) 0; margin-block-start:0; border-top:1px solid var(--sx-line); min-width:0; }
.selenium-service-journal > :is(article,section,.wp-block-group) > :is(h2,h3) { grid-column:1; grid-row:1 / span 3; margin:0; font-size:clamp(1.6rem,2.8vw,2.7rem); }
.selenium-service-journal > :is(article,section,.wp-block-group) > :is(h2,h3)::before { content:counter(journal,decimal-leading-zero) " /"; display:block; margin-bottom:1rem; color:var(--sx-accent); font:700 .75rem/1.5 system-ui,sans-serif; letter-spacing:.15em; }
.selenium-service-journal > :is(article,section,.wp-block-group) > :not(h2,h3) { grid-column:2; margin-block:0; min-width:0; max-width:60ch; }
.selenium-service-journal a { font-weight:650; text-decoration-thickness:1px; }
@media (max-width:800px) {
  .selenium-service-journal > :is(article,section,.wp-block-group) { grid-template-columns:minmax(0,1fr); }
  .selenium-service-journal > :is(article,section,.wp-block-group) > :is(h2,h3) { grid-row:auto; }
  .selenium-service-journal > :is(article,section,.wp-block-group) > :not(h2,h3) { grid-column:1; }
}
.selenium-contact { padding:clamp(1.5rem,4vw,3rem); background:var(--sx-surface); border:1px solid var(--sx-line); border-left:4px solid var(--sx-brand); border-radius:var(--sx-radius); }
.selenium-page { max-width:1240px; box-sizing:border-box; margin:0 auto; padding:3rem 1rem 5rem; }
.selenium-page h1 { font-size:clamp(2.3rem,5vw,4.5rem); line-height:1.1; }
.selenium-page .wp-block-post-content { margin-top:2rem; }
.selenium-page iframe { display:block; width:100%; max-width:100%; box-sizing:border-box; border:1px solid var(--sx-line); background:white; }
.selenium-page iframe[hidden], .selenium-partner-controls button[hidden] { display:none !important; }
.selenium-partner-privacy { border:1px solid var(--sx-line); border-left:4px solid var(--sx-brand); border-radius:var(--sx-radius); padding:clamp(1rem,3vw,2rem); background:var(--sx-surface); }
.selenium-partner-controls { display:flex; flex-wrap:wrap; gap:.75rem; }
.selenium-partner-controls button { min-height:44px; padding:.7rem 1rem; border:1px solid var(--sx-line); border-radius:var(--sx-control-radius); background:var(--sx-brand); color:var(--sx-on-brand); font:inherit; font-weight:650; cursor:pointer; }
.selenium-contact h2 { font-size:clamp(2rem,4vw,3.3rem); }
/* Local validation preview only. The no-send notice remains content-owned. */
.selenium-contact-form { min-width:0; margin-top:2rem; }
.selenium-contact-form form, .selenium-contact-form .selenium-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem 1.5rem; }
.selenium-contact-form form > *, .selenium-contact-form .selenium-form-grid > * { min-width:0; margin:0; }
.selenium-contact-form form > .selenium-form-grid { grid-column:1 / -1; }
.selenium-contact-form label { display:block; font-size:.9rem; font-weight:600; line-height:1.6; }
.selenium-contact-form .wpcf7-form-control-wrap { display:block; margin-top:.4rem; }
.selenium-contact-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) { display:block; box-sizing:border-box; width:100%; min-width:0; margin-top:.4rem; padding:.7rem .85rem; border:1px solid var(--sx-muted); border-radius:var(--sx-control-radius); background:var(--sx-bg); color:var(--sx-ink); font:inherit; line-height:1.5; }
.selenium-contact-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select) { min-height:48px; }
.selenium-contact-form :is(input,textarea)::placeholder { color:var(--sx-muted); opacity:1; }
.selenium-contact-form textarea { min-height:144px; resize:vertical; }
.selenium-contact-form .selenium-field-wide { grid-column:1 / -1; }
.selenium-contact-form form > .selenium-field-wide { grid-column:1 / -1; }
.selenium-contact-form [data-selenium-form-preview] { width:auto; max-width:100%; justify-self:start; padding:.75rem 1.25rem; background:var(--sx-brand); color:var(--sx-on-brand); border:1px solid var(--sx-brand); border-radius:var(--sx-control-radius); font-weight:700; cursor:pointer; white-space:normal; }
.selenium-review-notice { margin:1rem 0; color:var(--sx-muted); font-size:.85rem; }
.selenium-contact-form :is(p,div):has(textarea), .selenium-contact-form :is(p,div):has([type="submit"]), .selenium-contact-form .selenium-form-full, .selenium-contact-form .wpcf7-response-output { grid-column:1 / -1; }
.selenium-contact-form :is(button,input)[type="submit"]:disabled { width:auto; max-width:100%; padding:.75rem 1.25rem; color:var(--sx-muted); background:var(--sx-surface); border:1px dashed var(--sx-muted); font-weight:700; white-space:normal; cursor:not-allowed; opacity:1; }
.selenium-form-status { padding:1rem 1.25rem; border:1px solid var(--sx-line); border-left:3px solid var(--sx-brand); border-radius:var(--sx-control-radius); color:var(--sx-ink); background:var(--sx-bg); line-height:1.65; }
.selenium-contact-form .wpcf7-not-valid-tip { color:var(--sx-ink); font-size:.9rem; font-weight:600; margin-top:.4rem; }
@media (max-width:800px) { .selenium-contact-form form, .selenium-contact-form .selenium-form-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:800px) { .selenium-header { flex-wrap:wrap; gap:1rem; } .selenium-explorer { grid-template-columns:1fr; } .selenium-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-right:0; border-bottom:1px solid var(--sx-line); } .selenium-tabs button { min-width:0; min-height:70px; padding:.7rem; white-space:normal; border-right:1px solid var(--sx-line); border-bottom:1px solid var(--sx-line); } .selenium-chapters { grid-template-columns:1fr; } }
@media (max-width:480px) { .selenium-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); } .selenium-hero { min-height:520px; padding:1.4rem; background-position:60% center; } .selenium-hero h1 { font-size:clamp(2.3rem,11vw,3rem); } .selenium-section { margin:3rem 0; } .selenium-panels { padding:1.3rem; } }
/* Keep menu overlays and preserved native accent groups inside the Cloud system. */
.selenium-header .wp-block-navigation__responsive-container.is-menu-open { background:var(--sx-bg); color:var(--sx-ink); }
.selenium-page .has-accent-background-color, .selenium-page .has-accent-background-color a:hover { color:var(--sx-on-brand); }
.selenium-tabs button:focus-visible { outline-offset:-4px; }
.selenium-tabs button[aria-selected="true"]:focus-visible, .selenium-page .has-accent-background-color :focus-visible { outline-color:var(--sx-on-brand); }
.selenium-home .wp-block-button__link:hover, .selenium-header .wp-block-navigation-item__content[href$="#contact"]:hover { color:var(--sx-on-brand); text-decoration:underline; }
@media (prefers-reduced-motion:no-preference) { .selenium-tabs button, .selenium-theme-control button { transition:background-color .2s ease,color .2s ease; } }

/* 2026-11-14: long service names (e.g. "Geschäftsanwendungen") wrap inside the 3-column mobile tab grid */
@media (max-width:800px) { .selenium-tabs button { hyphens:auto; -webkit-hyphens:auto; overflow-wrap:anywhere; } }

/* 2026-11-14: mobile menu overlay. Core sets #fff/#000 via ".wp-block-navigation:not(.has-background) ...is-menu-open"
   (higher specificity than the old rule above), so the overlay was white in dark mode. Selectors below out-rank core. */
.selenium-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open { background:var(--sx-bg); color:var(--sx-ink); padding:1rem 1.25rem 2rem; }
.selenium-header .wp-block-navigation .wp-block-navigation__responsive-container-close { color:var(--sx-ink); top:1rem; right:1rem; padding:.5rem; }
.selenium-header .wp-block-navigation .wp-block-navigation__responsive-container-open { color:var(--sx-ink); padding:.4rem; border:1px solid var(--sx-line); border-radius:var(--sx-control-radius); }
.selenium-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items:stretch; padding-top:3.5rem; }
.selenium-header .wp-block-navigation.items-justified-right .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items:stretch; gap:0; width:100%; border-top:1px solid var(--sx-line); }
.selenium-header .wp-block-navigation .is-menu-open .wp-block-navigation-item { width:100%; border-bottom:1px solid var(--sx-line); }
.selenium-header .wp-block-navigation .is-menu-open .wp-block-navigation-item__content { display:flex; justify-content:space-between; align-items:center; width:100%; box-sizing:border-box; padding:1rem .25rem; color:var(--sx-ink); font-size:1.2rem; font-weight:600; text-align:left; text-decoration:none; }
.selenium-header .wp-block-navigation .is-menu-open .wp-block-navigation-item__content::after { content:"→"; color:var(--sx-muted); font-weight:400; }
.selenium-header .wp-block-navigation .is-menu-open .wp-block-navigation-item__content:hover { color:var(--sx-accent); }
.selenium-header .wp-block-navigation .is-menu-open .wp-block-navigation-item__content[href*="/veeam/"] { color:var(--sx-accent); }
.selenium-header .wp-block-navigation .is-menu-open .wp-block-navigation-item:has(> [href$="#contact"]) { border-bottom:0; padding-top:1.5rem; }
.selenium-header .wp-block-navigation .is-menu-open .wp-block-navigation-item__content[href$="#contact"] { justify-content:center; padding:.9rem 1rem; border:0; border-radius:var(--sx-control-radius); background:var(--sx-brand); color:var(--sx-on-brand); }
.selenium-header .wp-block-navigation .is-menu-open .wp-block-navigation-item__content[href$="#contact"]::after { content:none; }
.selenium-header .wp-block-navigation .is-menu-open .wp-block-navigation-item__content:focus-visible { outline:2px solid var(--sx-accent); outline-offset:-2px; }

/* 2026-11-14: hero H1 = one line per phrase (no lone "die"/"qui" between them). */
.selenium-hero h1 .selenium-hero-line { display:block; }
