/*!
Theme Name: moniq
Theme URI: https://moniq.at
Author: moniq e.U.
Author URI: https://moniq.at
Description: 
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: ohio
Text Domain: ohio-child
Tags: 
*/

/* ==== moniq child CSS 1.3.0 (20.11.2026) ====
   Brand: Ink #0E0E14, Gold #CA9A48, Paper #F4F2EC. Contrast target >= 4.5:1 in every state. */
:root{--mq-ink:#0E0E14;--mq-gold:#CA9A48;--mq-paper:#F4F2EC;}

/* 0. Local fonts (Legal AT: never from Google servers; functions.php removes Ohio's Google Fonts link).
   Same files as the static pages: /angebot/assets/fonts/ (variable weights). */
@font-face{font-family:'Questrial';font-style:normal;font-weight:400;font-display:swap;src:url(/angebot/assets/fonts/questrial-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Questrial';font-style:normal;font-weight:400;font-display:swap;src:url(/angebot/assets/fonts/questrial-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Outfit';font-style:normal;font-weight:100 900;font-display:swap;src:url(/angebot/assets/fonts/outfit-latin-wght-normal.woff2) format('woff2-variations'),url(/angebot/assets/fonts/outfit-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-style:normal;font-weight:100 900;font-display:swap;src:url(/angebot/assets/fonts/outfit-latin-ext-wght-normal.woff2) format('woff2-variations'),url(/angebot/assets/fonts/outfit-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;src:url(/angebot/assets/fonts/dm-sans-latin-wght-normal.woff2) format('woff2-variations'),url(/angebot/assets/fonts/dm-sans-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;src:url(/angebot/assets/fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2-variations'),url(/angebot/assets/fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* 1. Hero H1: no mid-word breaks, 3 to 4 lines on desktop */
body.home .ohio-widget.heading h1.title{
  font-size:clamp(30px,2.64vw,42px) !important; /* beats the inline #ohio-custom id rule (5vw, 8vh) */
  line-height:1.12 !important;
  max-width:100%;
  min-width:0;
  word-break:normal;
  overflow-wrap:normal;
  -webkit-hyphens:manual;
  hyphens:manual;
}

/* 2a. Ratgeber and link cards: Ink text on Gold fill (theme underline animation filled the card with currentColor) */
.mq-links li a:hover,.mq-links li a:focus,.mq-links li a:focus-visible,.mq-links li a:active{
  background-image:none !important;
  background-color:var(--mq-gold) !important;
  border-color:var(--mq-gold) !important;
  color:var(--mq-ink) !important;
}
.mq-links li a:hover span,.mq-links li a:focus span,.mq-links li a:focus-visible span,.mq-links li a:active span{
  color:var(--mq-ink) !important;
  opacity:1 !important;
}
.mq-links p.mq-more a:hover,.mq-links p.mq-more a:focus,.mq-links p.mq-more a:focus-visible,.mq-links p.mq-more a:active{
  background-image:none !important;
  background-color:var(--mq-paper) !important;
  color:var(--mq-ink) !important;
}

/* 2b. Buttons on all WP pages (1.3.0; was homepage only): light text on dark hover, Gold text on text-style buttons (all states) */
a.button:not(.-text):not(.-outlined):hover,
a.button:not(.-text):not(.-outlined):focus,
a.button:not(.-text):not(.-outlined):focus-visible,
a.button:not(.-text):not(.-outlined):active,
.ff-btn-submit:hover,.ff-btn-submit:focus,.ff-btn-submit:focus-visible,.ff-btn-submit:active{
  background-color:var(--mq-ink) !important;
  background-image:none !important;
  color:var(--mq-paper) !important;
  box-shadow:inset 0 0 0 1px var(--mq-gold) !important;
}
a.button.-text:hover,a.button.-text:focus,a.button.-text:focus-visible,a.button.-text:active,
a.button.-outlined:hover,a.button.-outlined:focus,a.button.-outlined:focus-visible,a.button.-outlined:active{
  color:var(--mq-gold) !important;
}
a.button.-text:hover .icon,a.button.-text:focus .icon,a.button.-text:focus-visible .icon,a.button.-text:active .icon{color:var(--mq-gold) !important;}

/* 3. Mobile header: the mobile nav sat in the header row at 190px width before the menu script collapsed it and
   pushed the "Kontakt" button to x=416, so 360 and 390 px scrolled sideways. It no longer takes part in the width. */
@media (max-width:767px){
  .header.-mobile .header-wrap-inner{min-width:0;}
  .header.-mobile .right-part{min-width:0;max-width:100%;}
  .header.-mobile .right-part > nav.nav{flex:0 1 0;min-width:0;max-width:0;}
}

/* 4. One vertical rhythm for all WPBakery pages (replaces the vh spacers: 10vh was 144px at 1440 and 77px at 768).
   Section spacers and in-section spacers each get one clamp() value. */
:root{--mq-space-section:clamp(48px,5.5vw,96px);--mq-space-block:clamp(16px,1.8vw,28px);}
.vc_empty_space.clb__section_spacer{height:var(--mq-space-section) !important;}
.vc_empty_space:not(.clb__section_spacer){height:var(--mq-space-block) !important;}

/* 5. Service cards (homepage rows .mq-services): equal columns, "Mehr zu" and "Angebot" links on one line per row.
   Headings sized in px/vw, not vh (1.8vh was 13.8px at 1366x768). Below 1024px one card per row. */
.mq-services{display:flex;flex-wrap:wrap;}
.mq-services::before,.mq-services::after{display:none;}
.mq-services > .wpb_column{display:flex;}
.mq-services > .wpb_column > .vc_column-inner{display:flex;flex-direction:column;width:100%;padding-bottom:var(--mq-space-block);}
.mq-services > .wpb_column > .vc_column-inner > .wpb_wrapper{display:flex;flex-direction:column;flex:1 1 auto;}
.mq-services .icon-box{flex:1 1 auto;}
.mq-services .icon-box-content{display:flex;flex-direction:column;align-self:stretch;}
.mq-services .icon-box-content > .button{margin-top:auto;align-self:flex-start;}
.mq-services .icon-box-heading{font-size:clamp(15px,calc(0.45vw + 10px),19px) !important;line-height:1.3 !important;}
.mq-services .icon-box-content p{overflow-wrap:normal;word-break:normal;hyphens:manual;font-size:16px !important;line-height:1.6 !important;}
/* Text size per column width, so every card in a row has the same number of lines (measured 20.11.2026 at
   1024 to 2560 px; texts are about the same width): 17px 1100-1299, 14px 1300-1439, 15px 1440-1535, else 16px. */
@media (min-width:1100px) and (max-width:1299px){.mq-services .icon-box-content p{font-size:17px !important;}}
@media (min-width:1300px) and (max-width:1439px){.mq-services .icon-box-content p{font-size:14px !important;}}
@media (min-width:1440px) and (max-width:1535px){.mq-services .icon-box-content p{font-size:15px !important;}}
.mq-services .mq-card-links p{margin:12px 0 0;font-size:14px !important;}
@media (max-width:1023px){.mq-services > .wpb_column{width:100%;}}

/* 6. Links on the dark theme: the theme hover colour #84662A has 3.6:1 on Ink. Paper + underline in every state.
   :where() keeps the specificity at (0,1,1), so card rules (.mq-links, buttons) still win. */
:where(.site-content, .site-footer) a:where(:not(.button)):is(:hover,:focus-visible,:active){
  color:var(--mq-paper) !important;text-decoration:underline !important;text-underline-offset:3px;background-image:none !important;
}

/* 7. Footer. Contact block = Templatera 226949 on every WP page (form, "15 Jahre"). Link columns + NAP = one global
   Templatera template that mu-plugin 1.5.0 renders above the theme footer on every page and post (.mq-site-footer).
   Every link item stays on one line at desktop widths (4 columns from 1280px, 2 from 601px, 1 below). */
.mq-counter strong,.mq-counter span{display:block;}
.mq-counter .mq-counter-text{margin-top:6px;}
.mq-site-footer{background:var(--mq-ink);color:var(--mq-paper);padding:clamp(40px,4vw,64px) 0 clamp(16px,2vw,32px);}
.mq-site-footer-inner{max-width:1240px;margin:0 auto;padding:0 24px;}
.mq-fcols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 32px;padding-top:clamp(24px,2.5vw,40px);border-top:1px solid #262631;}
.mq-site-footer a:hover,.mq-site-footer a:focus-visible,.mq-site-footer a:active{color:var(--mq-gold) !important;text-decoration:underline !important;text-underline-offset:3px;}
.mq-fcol-title{margin:0 0 12px !important;color:var(--mq-gold);font-family:'Questrial',sans-serif;font-size:13px;letter-spacing:.08em;text-transform:uppercase;}
.mq-fcol ul{list-style:none;margin:0 !important;padding:0 !important;}
.mq-fcol li{margin:0 0 8px !important;padding:0 !important;line-height:1.5;color:var(--mq-paper);}
.mq-fcol li::before{display:none !important;}
.mq-fcol a{color:var(--mq-paper);text-decoration:none;}
@media (max-width:1279px){.mq-fcols{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:600px){.mq-fcols{grid-template-columns:1fr;}}

/* 8. Contact form (Fluent Forms, global footer): "Suchmaschinenoptimierung (SEO)" broke mid-word at 768/820 px, where
   "Interesse" and "Budget" sat side by side and the checkbox list had 2 columns of 152px. Below 1024px the two form
   columns stack; the checkbox list keeps 2 columns down to 480px, then 1. */
@media (max-width:1023px){
  .fluentform .ff-t-container{flex-direction:column;}
  .fluentform .ff-t-container > .ff-t-cell{width:100% !important;flex-basis:auto !important;max-width:100%;padding-left:0 !important;padding-right:0 !important;}
}
@media (max-width:479px){.fluentform .ff-el-group .ff-el-input--content:has(.ff-el-form-check){display:block;}}
.fluentform .ff-el-form-check-label{overflow-wrap:normal;word-break:normal;hyphens:manual;}

/* 9. Headings everywhere: no word broken mid-word (long German compounds at tablet widths). */
.site-content h1,.site-content h2,.site-content h3,.site-content h4{overflow-wrap:normal;word-break:normal;-webkit-hyphens:manual;hyphens:manual;}

/* 10. CookieHub dialog buttons: Ink text on the Gold button (white on #CA9A48 was 2.4:1, Lighthouse color-contrast). */
.ch2-container .ch2-btn.ch2-btn-primary,#ch2-dialog .ch2-btn.ch2-btn-primary{color:#0E0E14 !important;}

/* 11. Links inside running text are underlined, not only coloured (WCAG 1.4.1, Lighthouse link-in-text-block). */
.site-content .wpb_text_column p a:not(.button){text-decoration:underline;text-underline-offset:3px;}

/* 12. Client logos keep their place while loading (CLS 1.0 on the desktop homepage): files are 700x400. */
.ohio-widget.logo img[src*="/logo-"]{aspect-ratio:7/4;}   /* not the mobile carousel: its slides stack until the script runs */
/* Ohio prints the final 54px height for logo widgets only in the footer; set it up front. */
.ohio-widget.logo img{height:54px;width:auto;}

/* 13. Testimonial slider (service pages): its stage ran 587 to 672px past the viewport at 1366 to 2560px
   (horizontal scroll). The row clips sideways; the slider itself is unchanged. */
.wpb_row:has(.clb-slider-outer-stage),.vc_section:has(.clb-slider-outer-stage){overflow-x:clip;}
.clb-slider-outer-stage{contain:paint;}

/* 14. Service pages, two-column row (.mq-twocol, H3 + text): equal line counts per row. Texts are about the same
   length (data/wp_dorada_services.json); between 1300 and 1439px the text is 15.2px so both sides keep 3 lines. */
@media (min-width:1300px) and (max-width:1439px){.mq-twocol .wpb_text_column p{font-size:15.2px !important;}}

/* 16. Phones: H2 titles small enough for long German compounds ("Suchmaschinenoptimierung" ran 78px past 390px,
   because headings never break inside a word). */
@media (max-width:479px){.site-content .ohio-widget.heading h2.title{font-size:clamp(21px,6.4vw,28px) !important;line-height:1.2 !important;letter-spacing:.5px !important;}}

/* 15. Mobile client-logo carousel (12 logos, 3 per view): before the WPBakery script runs, the slides stood one
   under another (hero 2900px high at 412px, CLS 1.0 on mobile). Same layout as after init from the start; the
   script's inline widths take over. Logos unchanged. */
.vc_images_carousel .vc_carousel-inner{overflow:hidden;}
.vc_images_carousel .vc_carousel-slideline{width:400%;}
.vc_images_carousel .vc_carousel-slideline-inner > .vc_item{float:left;width:8.3333%;}
.vc_images_carousel .vc_carousel-slideline-inner > .vc_item img{aspect-ratio:7/4;width:100%;height:auto;}

/* 17. Hero rotating word (ohio dynamic text under the H1): it starts empty and grew to one line after the script
   ran (CLS on mobile), and at 2560px the word wrapped mid-typing. One line reserved from the start; on desktop
   it never wraps. */
.clb__fullvh_reset .ohio-widget.dynamic-text{min-height:1lh;}
@media (min-width:1024px){.clb__fullvh_reset .ohio-widget.dynamic-text,.clb__fullvh_reset .ohio-widget.dynamic-text .dynamic{white-space:nowrap;}}
/* The giant decorative hero words ("kreativ digital effektiv", colour at 1% opacity, i.e. invisible) moved the
   layout on phones while the script positioned them; hidden below 768px, no visible change. */
@media (max-width:767px){.clb_custom_hero_text{display:none !important;}}
