/* canis intellectus – Design-Auffrischung
   Wird nach dem Oneo-Theme geladen und überschreibt nur einzelne Details. */

:root{
  --ci-orange:#ff7f00;
  --ci-orange-deep:#e56f00;
  --ci-ink:#26231d;
  --ci-grey:#ebe8e6;
  --ci-radius:10px;
  --ci-shadow:0 10px 30px rgba(38,35,29,.14);
  --ci-shadow-hover:0 18px 40px rgba(38,35,29,.22);
}

/* Grundtypografie: etwas größer, ruhiger, kein Blocksatz */
body{font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
@media screen and (max-width:599px){body{font-size:15px}}
.main-content p[style*="justify"],
.main-content p{text-align:left !important;hyphens:auto;-webkit-hyphens:auto}
.headline-box h1,.headline-box h2{text-wrap:balance}

/* Kopfzeile: leichter Schatten statt harter Kante */
.header-navigation{box-shadow:0 2px 14px rgba(0,0,0,.07)}

/* Startbilder: dezenter Verlauf, damit Schrift lesbar bleibt */
.centered-wrapper.-background-parallax > .centered-wrapper-background::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.10) 0%,rgba(0,0,0,.42) 100%);
}
.centered-wrapper.-background-parallax .headline-box h1,
.centered-wrapper.-background-parallax .headline-box h2{text-shadow:0 2px 12px rgba(0,0,0,.35)}
.centered-wrapper.-background-parallax .ce_image img[src*="halbtransparent"]{border-radius:var(--ci-radius);box-shadow:0 8px 30px rgba(0,0,0,.25)}

/* Angebotskacheln */
.fading-boxes-item-image{border-radius:var(--ci-radius);overflow:hidden;box-shadow:var(--ci-shadow);transition:transform .25s ease,box-shadow .25s ease}
.fading-boxes-item:hover .fading-boxes-item-image,
.fading-boxes-item.is-hovered .fading-boxes-item-image{transform:translateY(-4px);box-shadow:var(--ci-shadow-hover)}
.fading-boxes-item-text a{color:#fff;text-decoration:underline;text-underline-offset:.18em}

/* Reiter „Ziel / Anspruch / Zertifizierung“: inaktive Reiter besser lesbar */
.tab-navigation a{color:rgba(255,255,255,.82) !important;transition:color .2s}
.tab-navigation a:hover,.tab-navigation a:focus,.tab-navigation .-active a,.tab-navigation a.-active{color:#fff !important}
.tab-navigation img{transition:transform .25s ease}
.tab-navigation a:hover img{transform:scale(1.06)}
.icon-text-block p strong{font-size:1.05em;letter-spacing:.02em}

/* Buttons */
a.button.-secondary,.button-box a.button{border-radius:999px;padding-left:2em;padding-right:2em;transition:background-color .2s,color .2s,transform .2s}
a.button.-secondary:hover,a.button.-secondary:focus{transform:translateY(-2px)}
a.button.-secondary:hover::after,a.button.-secondary:focus::after{opacity:.15}

/* Preistabellen */
.pricing-table-plan{transition:transform .25s ease}
.pricing-table-plan > *:first-child{border-radius:var(--ci-radius) var(--ci-radius) 0 0}
.pricing-table-plan ul{border-radius:0 0 var(--ci-radius) var(--ci-radius);overflow:hidden}
.pricing-table-plan:hover{transform:translateY(-4px)}
.pricing-table-plan ul li:hover{background:rgba(255,255,255,.12)}

/* Übungstest-Teaser auf der Sachkundenachweis-Seite */
.quiz-teaser-text{max-width:640px;margin:0 auto 1.4em;text-align:center}
.quiz-teaser-text p{text-align:center !important;font-size:1.1em}

/* Übungstest-Seite: niedrigeres Startbild */
.quiz-hero.-height-small{min-height:360px}
@media screen and (max-width:599px){.quiz-hero.-height-small{min-height:260px}}

/* Kontakt: Formularfelder runder */
.ce_form input.text,.ce_form textarea{border-radius:6px}
.ce_form button.submit{border-radius:999px}
.ce_accordion .toggler{border-radius:6px}

/* Fußzeile */
.page-footer{border-top:4px solid var(--ci-orange)}
.footer-top-link{border-radius:50% 50% 0 0}

/* Übungstest: zentrierte Elemente nicht vom linksbündigen Fließtext erfassen */
#ciq .sub,#ciq .intro,#ciq .card.center p,#ciq .cta p,#ciq .center{text-align:center !important}
#ciq h2.sec{color:var(--ci-ink)}
#ciq .card p,#ciq .note,#ciq .hint{hyphens:manual}

/* ===== Großes Logo, das Menüleiste und Startbild verbindet ===== */
.header-navigation{overflow:visible}
.header-navigation .logo{
  position:absolute;top:6px;bottom:auto;left:2.6666em;z-index:10;
  height:auto;margin:0;padding:0;
  transition:top .35s ease;
}
.header-navigation .logo a{display:block;height:auto}
.header-navigation .logo img{
  display:block;width:435px;height:auto;max-width:none;
  background:#fff;border-radius:14px;
  box-shadow:0 14px 40px rgba(0,0,0,.28);
  transition:width .35s ease,box-shadow .35s ease,border-radius .35s ease;
}
/* beim Scrollen zurück in die Leiste */
body.ci-scrolled .header-navigation .logo{top:4px}
body.ci-scrolled .header-navigation .logo img{width:87px;border-radius:4px;box-shadow:none}
/* das zweite, halbtransparente Logo im Startbild entfällt */
.page-header .centered-wrapper .ce_image img[src*="halbtransparent"]{display:none}

@media screen and (max-width:900px){
  .header-navigation .logo{position:absolute;float:none;top:6px;left:4.16667%;padding:0}
  .header-navigation .logo img{width:220px;height:auto;display:block}
  body.ci-scrolled .header-navigation .logo img{width:70px}
}
@media screen and (max-width:599px){
  .header-navigation .logo{left:12px}
  .header-navigation .logo img{width:170px}
  body.ci-scrolled .header-navigation .logo img{width:60px}
}

/* ===== Unterseiten: kompakter Kopfbereich, Bild seitlich ===== */
.ci-sub .page-header .centered-wrapper.-background-parallax{
  min-height:420px !important;height:auto !important;
}
.ci-sub .page-header .centered-wrapper.-background-parallax > .centered-wrapper-background{
  right:42% !important;left:0 !important;
  -webkit-mask-image:linear-gradient(to right,#000 55%,transparent 100%);
          mask-image:linear-gradient(to right,#000 55%,transparent 100%);
}
.ci-sub .page-header .centered-wrapper.-background-parallax > .centered-wrapper-background::after{background:none}
.ci-sub .page-header .centered-wrapper.-background-parallax > .centered-wrapper-inner{
  position:relative;margin-left:52%;width:44%;max-width:560px;text-align:left;padding:60px 0;
}
.ci-sub .page-header .headline-box,.ci-sub .page-header .headline-box h1,.ci-sub .page-header .headline-box h2{text-align:left}
.ci-sub .page-header .headline-box::after{margin-left:0 !important;left:0 !important}
.ci-sub .page-header .headline-box h1,.ci-sub .page-header .headline-box h2{text-shadow:none}
.ci-sub .page-header .headline-box h1{color:#fff !important}

/* lange Abschnitte auf Unterseiten nicht mehr bildschirmhoch */
.ci-sub .main-content .centered-wrapper.-viewport-height{min-height:0 !important;height:auto !important}
.ci-sub .main-content .centered-wrapper.-viewport-height > .centered-wrapper-inner{padding-top:70px;padding-bottom:70px}
/* Fahnen-Band (Theme-Demo-Grafik) auf Unterseiten ausblenden */
.ci-sub .main-content .centered-wrapper:has(img[src*="claim-1"]){display:none}

@media screen and (max-width:900px){
  .ci-sub .page-header .centered-wrapper.-background-parallax{min-height:340px !important}
  .ci-sub .page-header .centered-wrapper.-background-parallax > .centered-wrapper-background{
    right:0 !important;opacity:.35;-webkit-mask-image:none;mask-image:none}
  .ci-sub .page-header .centered-wrapper.-background-parallax > .centered-wrapper-inner{
    margin-left:auto;margin-right:auto;width:auto;max-width:none;padding:170px 6% 40px;text-align:center}
  .ci-sub .page-header .headline-box,.ci-sub .page-header .headline-box h1,.ci-sub .page-header .headline-box h2{text-align:center}
  .ci-sub .page-header .headline-box::after{margin-left:auto !important;left:auto !important}
}
@media screen and (max-width:599px){
  .ci-sub .page-header .centered-wrapper.-background-parallax > .centered-wrapper-inner{padding-top:130px}
}

/* Platz für das große Logo neben dem Menü */
@media screen and (min-width:901px){
  .header-navigation .main-navigation{margin-left:500px}
}
@media screen and (min-width:901px) and (max-width:1180px){
  .header-navigation .logo img{width:300px}
  .header-navigation .main-navigation{margin-left:360px}
}
/* Unterseiten-Überschrift passend zur halben Breite */
.ci-sub .page-header .headline-box h1.-super-size{font-size:clamp(26px,3.1vw,44px);line-height:1.2;overflow-wrap:anywhere}
.ci-sub .page-header .headline-box h2.-super-size{font-size:clamp(12px,1.1vw,15px)}
/* Seiten ohne Startbild (Impressum): Inhalt unter das Logo schieben */
@media screen and (min-width:901px){
  .ci-sub:not(:has(.page-header .centered-wrapper)):not(.tagline-no-border) .main-content .mod_article.first > .centered-wrapper.first > .centered-wrapper-inner{padding-top:300px}
}
@media screen and (max-width:900px){
  .header-navigation .logo,.ci-mobile-logo{left:58px}
  .ci-sub:not(:has(.page-header .centered-wrapper)):not(.tagline-no-border) .main-content .mod_article.first > .centered-wrapper.first > .centered-wrapper-inner{padding-top:150px}
  .ci-sub .page-header .headline-box h1.-super-size{font-size:clamp(24px,6.5vw,34px)}
}
@media screen and (min-width:901px){
  .header-navigation .main-navigation{margin-left:490px;text-align:right}
  .header-navigation .main-navigation > ul{display:inline-flex;flex-wrap:nowrap;float:none}
  .header-navigation .main-navigation > ul > li{float:none}
  .header-navigation .main-navigation > ul > li > a,.header-navigation .main-navigation > ul > li > span{padding-left:.75em;padding-right:.75em;white-space:nowrap}
}
@media screen and (min-width:901px) and (max-width:1180px){
  .header-navigation .main-navigation{margin-left:350px}
  .header-navigation .main-navigation > ul > li > a,.header-navigation .main-navigation > ul > li > span{padding-left:.5em;padding-right:.5em;font-size:.8em}
}
@media screen and (min-width:901px){
  .header-navigation .main-navigation > ul > li > a,.header-navigation .main-navigation > ul > li > span{padding-left:.6em;padding-right:.6em}
}
@media screen and (min-width:901px) and (max-width:1180px){
  .header-navigation .logo img{width:240px}
  .header-navigation .main-navigation{margin-left:290px}
}
/* Logo-Größen je Bildschirmbreite (volle 5-fache Größe ab 1280 px) */
@media screen and (min-width:901px) and (max-width:1279px){
  .header-navigation .logo img{width:280px}
  .header-navigation .main-navigation{margin-left:330px}
  .header-navigation .main-navigation > ul > li > a,.header-navigation .main-navigation > ul > li > span{padding-left:.5em;padding-right:.5em;font-size:.8em}
}
@media screen and (min-width:901px) and (max-width:1100px){
  .header-navigation .logo img{width:190px}
  .header-navigation .main-navigation{margin-left:240px}
  .header-navigation .main-navigation > ul > li > a,.header-navigation .main-navigation > ul > li > span{padding-left:.4em;padding-right:.4em;font-size:.75em;letter-spacing:.06em}
}

/* ===== Logo ohne weißen Unterleger (freigestelltes PNG) ===== */
.header-navigation .logo img,
body.ci-scrolled .header-navigation .logo img{background:none;border-radius:0;box-shadow:none}
.header-navigation .logo{top:14px}
.header-navigation .logo img{width:322px}
body.ci-scrolled .header-navigation .logo{top:13px}
body.ci-scrolled .header-navigation .logo img{width:68px}
@media screen and (min-width:901px) and (max-width:1279px){.header-navigation .logo img{width:207px}}
@media screen and (min-width:901px) and (max-width:1100px){.header-navigation .logo img{width:141px}}
@media screen and (max-width:900px){.header-navigation .logo img{width:163px} body.ci-scrolled .header-navigation .logo img{width:56px}}
@media screen and (max-width:599px){.header-navigation .logo img{width:126px} body.ci-scrolled .header-navigation .logo img{width:48px}}

/* ===== Angebotskacheln: gleiche Flucht und Höhe, lesbare Schrift ===== */
.fading-boxes{display:flex;flex-wrap:wrap;align-items:stretch}
.fading-boxes > .fading-boxes-item{display:flex;float:none}
.fading-boxes-item > .fading-boxes-item-image{flex:1 1 auto;display:flex;flex-direction:column}
.fading-boxes-item-text{flex:1 1 auto}
.fading-boxes-item:hover .fading-boxes-item-image,
.fading-boxes-item.is-hovered .fading-boxes-item-image{transform:none}
.fading-boxes-item-image{box-shadow:var(--ci-shadow),inset 0 0 0 2000px rgba(0,0,0,.38)}
.fading-boxes-item:hover .fading-boxes-item-image{box-shadow:var(--ci-shadow-hover),inset 0 0 0 2000px rgba(0,0,0,.38)}
.fading-boxes-item-image::after{text-shadow:0 2px 10px rgba(0,0,0,.6)}
.fading-boxes-item-image::before{text-shadow:0 2px 10px rgba(0,0,0,.5)}

/* Sachkundenachweis: „Ein Leben lang gültig“ dicht unter die drei Fotos */
#article-392 [id="2"] > .centered-wrapper-inner{padding-bottom:10px}
#article-392 [id="4"]{padding-top:40px !important}
#article-392 [id="4"] .headline-box.margin-top-m{margin-top:0}
#article-392 [id="2"] .fading-boxes{margin-bottom:0}
#article-392 [id="4"] .headline-box{margin-top:0 !important;padding-top:0 !important}
#article-392 [id="4"] .headline-box h2{margin-top:0 !important}

/* ===== Freigabe für externe Inhalte (Google Maps, Yolawo) ===== */
.ci-consent{display:flex;align-items:center;justify-content:center;background:#3d382f;color:#fff;text-align:center;border-radius:var(--ci-radius)}
.google-map .ci-consent{position:absolute;inset:0;border-radius:0}
.ci-consent-yolawo{min-height:420px;margin-bottom:1.2em}
.ci-consent-box{max-width:520px;padding:28px 24px}
.ci-consent-box p{margin:0 0 .9em;text-align:center !important;color:#fff}
.ci-consent-title{font-size:1.25em;text-transform:uppercase;letter-spacing:.1em}
.ci-consent-box a{color:#fff;text-decoration:underline}
.ci-consent-btn,.ci-consent-reset{margin:0;border-radius:999px;background:var(--ci-orange);color:var(--ci-ink);font-weight:700;letter-spacing:.08em;padding:.9em 2em;cursor:pointer}
.ci-consent-btn:hover,.ci-consent-btn:focus,.ci-consent-reset:hover,.ci-consent-reset:focus{background:#ff9326}
.ci-consent-reset{margin-top:.6em;padding:.6em 1.4em;font-size:.85em}
.ci-consent-reset:disabled{background:#ccc;cursor:default}
.ci-consent-box label{font-size:.9em;cursor:pointer}
.ci-consent-box input[type=checkbox]{margin-right:.4em;accent-color:var(--ci-orange)}
.ci-consent-alt{font-size:.9em}
.ci-consent-box label{color:#fff !important}
#datenschutz{scroll-margin-top:110px}

/* Preistabellen: dreistellige Preise bleiben in einer Zeile */
.pricing-table-plan p{white-space:nowrap;font-size:clamp(2.6em,3.4vw,4.6em)}
.pricing-table-plan p .pricing-table-plan-price-part{white-space:nowrap}
/* Preise mittig, Listeneinträge einzeilig */
.main-content .pricing-table-plan p{text-align:center !important}
.pricing-table-plan ul{margin-left:.6em;margin-right:.6em}
.pricing-table-plan{container-type:inline-size}
.pricing-table-plan li{white-space:nowrap;font-size:clamp(10px,5.8cqi,16px)}
.pricing-table-plan h1{white-space:nowrap;font-size:clamp(9px,4.6cqi,13px);padding-left:.4em;padding-right:.4em}
