/* Manrope (self-hosted). File: assets/fonts/Manrope-VariableFont_wght.woff2 */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ITM GmbH classic theme: WordPress menus, search, inner pages and posts.
   Loaded after itm-style.css (design tokens and homepage styles). */

/* ---------- Primary menu (desktop) ---------- */
.site-nav { display: flex; align-items: center; }
.primary-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.primary-menu li { position: relative; }
.primary-menu > li > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  font-size: 1.0625rem; color: var(--text); text-decoration: none;
}
.primary-menu > li > a:hover,
.primary-menu > li:focus-within > a,
.primary-menu .current-menu-item > a { color: var(--accent-text); }

.primary-menu .sub-menu {
  list-style: none; margin: 0; padding: .75rem 0; position: absolute; top: 100%; left: 0; min-width: 300px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 0 0 16px 16px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 250ms; z-index: 60;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a {
  display: flex; align-items: center; min-height: 52px; padding: 0 2rem;
  font-size: 1.0625rem; color: var(--text); text-decoration: none; transition: padding 200ms var(--ease), color 200ms;
}
.primary-menu .sub-menu a:hover { color: var(--accent-text); padding-left: 2.25rem; }
.primary-menu .sub-menu .sub-menu {
  position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none;
  padding: 0 0 .5rem 1rem; min-width: 0;
}
.primary-menu .sub-menu .sub-menu a { min-height: 40px; padding: 0 1rem; font-size: 1rem; color: var(--muted); }

/* Mega panel: add the CSS class "itm-mega" to a top-level item in Appearance > Menus (Screen Options > CSS Classes). */
@media (min-width: 1024px) {
  .primary-menu > li.itm-mega { position: static; }
  .primary-menu > li.itm-mega > .sub-menu {
    left: 0; right: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem var(--gutter);
    padding: 2.5rem max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 2.75rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    border-top: 2px solid #FF4D4D; border-radius: 0 0 16px 16px;
  }
  .primary-menu > li.itm-mega > .sub-menu > li > a {
    min-height: 0; padding: 0 0 .75rem; margin-bottom: 1rem; font-size: 1.125rem; font-weight: 500; color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .primary-menu > li.itm-mega > .sub-menu > li > a:hover { padding-left: 0; }
  .primary-menu > li.itm-mega > .sub-menu > li > .sub-menu {
    display: block; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: none; padding: 0; min-width: 0;
  }
  .primary-menu > li.itm-mega > .sub-menu > li > .sub-menu a { min-height: 36px; padding: 0; font-size: 1.0625rem; color: var(--muted); }
  .primary-menu > li.itm-mega > .sub-menu > li > .sub-menu a:hover { padding-left: 0; color: var(--text); }
}

.mobile-search { display: none; }

/* ---------- Mobile menu panel ---------- */
@media (max-width: 1023px) {
  .site-nav {
    position: fixed; inset: 64px 0 0 0; z-index: 40; overflow-y: auto; align-items: stretch; flex-direction: column;
    background: var(--bg); padding: .5rem var(--gutter) 3rem;
    opacity: 0; visibility: hidden; transform: translateY(-16px);
    transition: opacity 350ms var(--ease), transform 450ms var(--ease), visibility 350ms;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-menu > li { border-bottom: 1px solid var(--line); }
  .primary-menu > li > a {
    width: 100%; min-height: 58px; padding: 0; justify-content: space-between;
    font-size: 1.5rem; font-weight: 300; letter-spacing: -.02em;
  }
  .primary-menu .menu-item-has-children > a::after {
    content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--muted); margin-left: 1rem;
  }
  .primary-menu .menu-item-has-children.is-expanded > a::after { content: "–"; }
  .primary-menu .sub-menu {
    position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none;
    min-width: 0; padding: 0 0 1rem;
  }
  .primary-menu li.is-expanded > .sub-menu { display: block; }
  .primary-menu .sub-menu a { min-height: 42px; padding: 0; font-size: 1.0625rem; }
  .primary-menu .sub-menu a:hover { padding-left: 0; }
  .primary-menu .sub-menu .sub-menu { padding: 0 0 .5rem 1rem; }
  .mobile-search { display: flex; width: 100%; margin: 1.5rem 0 0; }
  .mobile-search input { width: 100%; min-height: 48px; }
  .header-actions .link { display: none; }
}

/* ---------- Footer menu ---------- */
.footer-links { display: block; }
.footer-menu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.footer-menu li { break-inside: avoid; }
.footer-menu a { display: inline-flex; min-height: 40px; align-items: center; color: var(--muted); font-size: 1.0625rem; text-decoration: none; }
.footer-menu a:hover { color: var(--text); }
@media (max-width: 600px) { .footer-menu { columns: 1; } }

/* ---------- Hero card links ---------- */
.slide-cap h3 a { color: var(--text); text-decoration: none; }
.slide-cap h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Inner pages, posts, archive, search ---------- */
.page-main { padding: calc(var(--space) * .6) 0 var(--space); }
.page-title {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); font-weight: 300; letter-spacing: -.028em; line-height: 1.08;
  margin: 0 0 2rem;
}
.page-title span { font-weight: 400; color: var(--accent-text); }
.lede { color: var(--muted); font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); margin: 0 0 2rem; }
.entry-content { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.entry-content > * { max-width: 100%; }
.entry-content a { color: var(--accent-text); }
.entry-content .alignwide { max-width: var(--max); margin-inline: auto; }
.entry-content .alignfull { max-width: none; margin-inline: 0; }

.cat { color: var(--accent-text); font-size: .9375rem; font-weight: 500; margin: 0 0 .6rem; }
.cat a { color: inherit; text-decoration: none; }
.post-meta { color: var(--muted); font-size: .9375rem; margin: .75rem 0 0; }
.post-header { margin-bottom: 2rem; }
.post-header .page-title { margin-bottom: 0; }
.post-hero { margin: 0 0 3rem; }
.post-hero img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 28px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gutter); }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 40px -22px rgba(15,23,42,.35);
}
[data-theme="dark"] .post-card { background: var(--bg-alt); border-color: var(--line); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .post-card { background: var(--bg-alt); border-color: var(--line); box-shadow: none; } }
.post-card-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; }
.post-card h2 { font-size: 1.5rem; font-weight: 400; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent-text); }
.post-card-excerpt { color: var(--muted); margin: 0; font-size: 1rem; }

.search-page { margin: 1.5rem 0 2.5rem; max-width: 520px; }
.search-page input { width: 100%; min-height: 52px; font-size: 1rem; }
.search-page .wp-block-search__inside-wrapper { width: 100%; }

.related { margin-top: 4rem; }
.related-title { font-size: 1.75rem; font-weight: 300; margin: 0 0 1.5rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { color: var(--accent-text); text-decoration: none; font-size: 1.0625rem; }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border-radius: 980px; color: var(--text); text-decoration: none; }
.pagination .page-numbers.current { background: #A21CAF; color: #FFFFFF; }

.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: .5rem 1rem; background: var(--bg); z-index: 100; }

/* Gutenverse and core block basics inside entry content */
.entry-content .wp-block-buttons .wp-block-button__link { background: #A21CAF; color: #FFFFFF; border-radius: 980px; }
.entry-content .wp-block-image img { border-radius: 0; }

/* ---------- Fixes (round 2) ---------- */

/* Hero card title: the title link must not inherit the "Zum Beitrag" link style */
.slide-cap h3 a { display: inline; min-height: 0; font-size: inherit; text-decoration: none; color: var(--text); }
.slide-cap h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1023px) { .slide-cap h3 a { color: #FFFFFF; } }

/* Mobile panel is position:fixed. A backdrop-filter on the header would make the header the containing block, so remove it there. */
@media (max-width: 1023px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav { top: 64px; }
}
@media (max-width: 480px) {
  .site-nav { top: 56px; }
}

/* Mega panel: automatic for any top-level item that has a second level of items; the class itm-mega also works. */
@media (min-width: 1024px) {
  .primary-menu > li.menu-item-has-children:has(> .sub-menu > li.menu-item-has-children) { position: static; }
  .primary-menu > li.menu-item-has-children:has(> .sub-menu > li.menu-item-has-children) > .sub-menu {
    left: 0; right: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem var(--gutter);
    padding: 2.5rem max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 2.75rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    border-top: 2px solid #FF4D4D; border-radius: 0 0 16px 16px;
  }
  .primary-menu > li.menu-item-has-children:has(> .sub-menu > li.menu-item-has-children) > .sub-menu > li > a {
    min-height: 0; padding: 0 0 .75rem; margin-bottom: 1rem; font-size: 1.125rem; font-weight: 500; color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .primary-menu > li.menu-item-has-children:has(> .sub-menu > li.menu-item-has-children) > .sub-menu > li > a:hover { padding-left: 0; }
  .primary-menu > li.menu-item-has-children:has(> .sub-menu > li.menu-item-has-children) > .sub-menu > li > .sub-menu {
    display: block; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: none; padding: 0; min-width: 0;
  }
  .primary-menu > li.menu-item-has-children:has(> .sub-menu > li.menu-item-has-children) > .sub-menu > li > .sub-menu a { min-height: 36px; padding: 0; font-size: 1.0625rem; color: var(--muted); }
  .primary-menu > li.menu-item-has-children:has(> .sub-menu > li.menu-item-has-children) > .sub-menu > li > .sub-menu a:hover { padding-left: 0; color: var(--text); }
}

/* Inner pages: full width, no page title */
.page-full { padding: 0; }
.page-full .entry-content { max-width: none; padding: 0; margin: 0; }

/* Footer (v11 design, classic theme) */
.footer .footer-menu a { color: var(--muted); }
.footer .footer-newsletter h4 { margin-bottom: 1.25rem; }
.footer .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Body class "search" (WordPress adds it on search pages) must not get the .search form styles */
body.search, body.search-results { display: block; position: static; }

/* Search page: title and search field sit lower so the desktop submenu does not cover them */
@media (min-width: 1024px) {
  body.search .page-main, body.search-results .page-main { padding-top: calc(var(--space) + 120px); }
}

/* Desktop: the mobile "Menü" button must never show (it appeared on the search page) */
@media (min-width: 1024px) {
  .menu-toggle { display: none !important; }
}

/* Footer: logo sits in the first column with the links */
.footer .footer-grid { grid-template-columns: 1.1fr 1fr .8fr 1.1fr; align-items: start; }
.footer .footer-brand p { margin: 0 0 .75rem; }
.footer .footer-brand .logo { margin-bottom: 1.25rem; }
.footer .footer-menu { columns: 1; }
.footer .footer-top { display: none; }
@media (max-width: 1023px) { .footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer .footer-grid { grid-template-columns: 1fr; } }

/* Blog post: full width, no title at the top. Image first, then title and text. */
.single-post-full { padding: 0; }
.post-hero { margin: 0; }
.post-hero img { border-radius: 0; aspect-ratio: 21 / 9; }
.post-title-block { max-width: 1200px; margin: 3rem auto 0; padding: 0 var(--gutter); }
.post-title-block .page-title { margin: 0 0 .75rem; }
.single-post-full .entry-content { margin-top: 2rem; }

/* Headings in Gutenverse content keep the light v11 weights (WordPress and Gutenverse set bold headings by default). */
.site-main h1, .site-main h2, .site-main h3, .site-main h4,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  font-weight: 300; letter-spacing: -.028em; line-height: 1.08;
}
.site-main h3, .entry-content h3 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); letter-spacing: -.02em; }
.site-main .tile h3, .entry-content .tile h3 { font-weight: 400; }
.site-main .post-card h2, .entry-content .post-card h2 { font-weight: 400; }
.site-main h4, .entry-content h4 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }

/* Force Manrope on the whole site (WordPress and Gutenverse global styles set a system font stack on body). */
html, html body, body, body * { font-family: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important; }
body i, body em, body code, body pre { font-family: inherit !important; }

/* Section headings (h2) in Gutenverse content: same size as v11 (clamp), with WordPress/Gutenverse spacing removed. */
body .site-main h2, body .entry-content h2 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); line-height: 1.08; margin-block: 0;
}
body .site-main h1, body .entry-content h1 {
  font-size: clamp(3rem, 1.8rem + 3.6vw, 5.25rem); line-height: 1.02; margin-block: 0;
}
body .site-main .section-intro, body .entry-content .section-intro {
  font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); margin-block: 1.25rem 0;
}

/* Buttons keep white text in both modes (the content link colour must not override .btn). */
.btn, .btn:hover, .entry-content a.btn, .site-main a.btn, .entry-content .btn, .site-main .btn { color: #FFFFFF !important; }

/* ---------- Cloud-Lösungen page (HTML block, class .cloud-page) ---------- */
/* Gutenverse section and column around the HTML block: remove their padding so the page starts right under the header. */
.section-wrapper:has(.cloud-page), .section-wrapper:has(.cloud-page) > section,
.section-wrapper:has(.cloud-page) .guten-container, .section-wrapper:has(.cloud-page) .guten-column,
.section-wrapper:has(.cloud-page) .guten-column-wrapper, .section-wrapper:has(.cloud-page) .wp-block-html {
  padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important;
  gap: 0 !important;
}
/* Full width: break out of the content column */
.cloud-page { box-sizing: border-box; width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; overflow-x: clip; }
.cloud-page .btn { color: #FFFFFF !important; }
.cloud-page .hero { padding: 0 !important; min-height: min(86vh, 760px); display: flex; align-items: center; position: relative; }
.cloud-page .hero-grid { min-height: 0; width: 100%; }
.cloud-page .hero h1 { margin-top: 0; }
.cloud-page .hero-media { position: absolute; }
/* FAQ */
.cloud-page .faq { max-width: 860px; margin: 0 auto; text-align: left; }
.cloud-page .faq details { border-top: 1px solid var(--line); }
.cloud-page .faq details:last-child { border-bottom: 1px solid var(--line); }
.cloud-page .faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 64px; cursor: pointer; list-style: none; font-size: 1.25rem; font-weight: 400; color: var(--text); letter-spacing: -.01em; }
.cloud-page .faq summary::-webkit-details-marker { display: none; }
.cloud-page .faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--muted); flex: none; }
.cloud-page .faq details[open] summary::after { content: "–"; }
.cloud-page .faq details p { margin: 0 0 1.5rem; color: var(--muted); font-size: 1.0625rem; }

/* ---------- Cloud-Lösungen: icons and illustration ---------- */
.cloud-page .tile { position: relative; }
.cloud-page .tile-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, #D946EF 12%, transparent); margin-bottom: .5rem;
}
.cloud-page .tile-icon svg { width: 28px; height: 28px; fill: none; stroke: url(#itm-grad); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cloud-page .sourcing-visual { width: 100%; height: auto; display: block; }
.cloud-page .sourcing-visual .lbl { font-family: inherit; font-size: 15px; fill: var(--text); }
.cloud-page .sourcing-visual .sub { font-family: inherit; font-size: 13px; fill: var(--muted); }
.cloud-page .spotlight .lede { margin-top: 1.25rem; }
@media (max-width: 1023px) { .cloud-page .spot-grid { grid-template-columns: 1fr; } }

/* ---------- Contact Form 7 (modal forms, v11 look) ---------- */
.modal-window__content { background: var(--bg) !important; color: var(--text); }
.wpcf7 form { display: flex; flex-direction: column; gap: 1rem; }
.wpcf7 form p { margin: 0; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; min-height: 52px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-alt); color: var(--text); font: inherit; font-size: 1rem; box-shadow: none;
}
.wpcf7 textarea { min-height: 120px; padding: .9rem 1rem; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--accent-text); }
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: var(--muted); opacity: 1; }
.wpcf7 input[type="submit"] {
  width: 100%; min-height: 56px; border: 2px solid transparent; border-radius: 12px; color: #FFFFFF;
  background: linear-gradient(#A21CAF, #A21CAF) padding-box, var(--grad) border-box;
  background-size: 100% 100%, 200% 100%;
  animation: itm-btn-border 2.4s linear infinite;
  font: inherit; font-size: 1.125rem; font-weight: 500; cursor: pointer;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.wpcf7 input[type="submit"]:hover {
  transform: scale(1.03);
  background: linear-gradient(#A21CAF, #A21CAF) padding-box, linear-gradient(90deg, #F5D0FE 0%, #DDD6FE 50%, #FECACA 100%) border-box;
  background-size: 100% 100%, 100% 100%;
  animation: none;
  box-shadow: 0 10px 28px -10px rgba(139, 92, 246, .6);
}
.wpcf7 .wpcf7-not-valid-tip { color: #FF4D4D; font-size: .875rem; margin-top: .35rem; display: block; }
.wpcf7 .wpcf7-response-output { margin: .5rem 0 0; font-size: .9375rem; color: var(--muted); }
.itm-gdpr-check label { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.itm-gdpr-check input[type="checkbox"] { accent-color: #A21CAF; margin-top: .25rem; }
.itm-gdpr-check a { color: var(--accent-text); }
.wpcf7-list-item { display: block; margin: 0; }
.wpcf7 .cf7-cf-turnstile { margin: 0; }

/* ---------- Blog post template (v11 design) ---------- */
.single-post-full .post-hero-section { padding-top: calc(var(--space) * .5); }
.single-post-full .hero-copy h1 { font-size: clamp(2.5rem, 1.6rem + 2.8vw, 4.5rem); max-width: 16ch; }
.single-post-full .hero-copy .cat { margin: 0 0 1.25rem; font-size: 1rem; }
.single-post-full .hero-copy .post-meta { margin: 1.5rem 0 0; font-size: 1rem; }
.single-post-full .entry-content { max-width: none; padding: 0; margin: 0; }
.single-post-full .related { margin-top: 0; }
.single-post-full .related-title { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 300; letter-spacing: -.02em; margin: 0 0 2.5rem; }
.single-post-full .post-nav { margin-top: 0; border-top: 0; padding-top: 0; }
.single-post-full .post-nav .nav-links { display: flex; justify-content: space-between; gap: 1rem; padding: var(--space) 0 0; }

/* ---------- Partner logo slider (homepage, below the hero) ---------- */
.partner-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.25rem 0; overflow: hidden; }
.partner-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partner-track { display: flex; align-items: center; gap: 4.5rem; width: max-content; padding-right: 4.5rem; animation: itm-marquee 228s linear infinite; }
.partner-band:hover .partner-track { animation-play-state: paused; }
.partner-logo { flex: none; height: 56px; display: flex; align-items: center; }
.partner-logo img { height: 56px; width: auto; max-width: 200px; object-fit: contain; display: block; opacity: .8; filter: brightness(0); transition: opacity 250ms; }
.partner-logo:hover img { opacity: 1; }
/* Light mode: dark logos. Dark mode: light logos (same file, one colour). */
[data-theme="dark"] .partner-logo img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .partner-logo img { filter: brightness(0) invert(1); } }
@keyframes itm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .partner-track { animation: none; } }
@media (max-width: 600px) { .partner-logo, .partner-logo img { height: 40px; } .partner-track { gap: 3rem; padding-right: 3rem; } }

/* ---------- Gutenverse post block (e.g. page "Aktuelles") ---------- */
/* Titles, excerpts and dates must be readable on the page background in both modes. */
.entry-content .guten-postblock .guten-post-title,
.entry-content .guten-postblock .guten-post-title a {
  color: var(--text) !important; opacity: 1 !important; visibility: visible !important;
  font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); font-weight: 400; line-height: 1.2; letter-spacing: -.02em;
  text-decoration: none; margin: .5rem 0 .6rem;
}
.entry-content .guten-postblock .guten-post-title a:hover { color: var(--accent-text) !important; }
.entry-content .guten-postblock .guten-post-excerpt,
.entry-content .guten-postblock .guten-post-excerpt p,
.entry-content .guten-postblock .guten-post-meta-bottom,
.entry-content .guten-postblock .guten-post-meta-bottom * { color: var(--muted) !important; opacity: 1 !important; }
.entry-content .guten-postblock .guten-postblock-content { background: transparent !important; color: var(--text); }
.entry-content .guten-postblock .guten-post { background: transparent; }
.entry-content .guten-postblock .guten-post a:not(.guten-post-title a) { color: inherit; }

/* ---------- Unternehmen page: stats and steps (classes, so global paragraph styles cannot override them) ---------- */
.cloud-page .stats .stat { text-align: center; align-items: center; justify-content: center; min-height: 220px; }
.cloud-page .stat-num {
  display: block !important; margin: 0 0 .5rem !important; padding: 0 !important;
  font-size: clamp(3.25rem, 2.2rem + 3vw, 5.5rem) !important; font-weight: 300 !important; line-height: 1 !important; letter-spacing: -.03em !important;
  background: var(--grad); -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
}
.cloud-page .stat-label { margin: 0 !important; color: var(--muted) !important; font-size: 1.0625rem !important; line-height: 1.4 !important; }
.cloud-page .step-num {
  display: block !important; margin: 0 0 .75rem !important; font-size: 3rem !important; font-weight: 300 !important; line-height: 1 !important;
  background: var(--grad); -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
}
.cloud-page .stat-label, .cloud-page .step-num { text-align: inherit; }

/* Partner logo track: repeated enough to cover wide screens (see functions.php itm_partner_logos) */
.partner-track { min-width: 100%; }

/* ---------- IT Service: package cards (bigger titles, icons) ---------- */
.cloud-page .package-tiles .package { padding: 2.5rem 2.25rem 2.25rem; gap: .75rem; }
.cloud-page .package-level {
  margin: 0 !important; font-size: .9375rem !important; font-weight: 600 !important; letter-spacing: .01em !important;
  background: var(--grad); -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
}
.cloud-page .package-title {
  margin: .25rem 0 .25rem !important; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem) !important; font-weight: 300 !important;
  line-height: 1.08 !important; letter-spacing: -.03em !important; color: var(--text) !important;
}
.cloud-page .package-for { margin: 0 !important; color: var(--text) !important; font-size: 1.0625rem !important; }
.cloud-page .package-tiles .package > p:last-child { margin: auto 0 0 !important; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Contact Form 7: select (dropdown) and fields in the theme style ---------- */
.wpcf7 select, .itm-application-form select {
  width: 100%; min-height: 52px; padding: 0 2.75rem 0 1rem; border: 1px solid var(--line); border-radius: 12px;
  background-color: var(--bg-alt); color: var(--text); font: inherit; font-size: 1rem;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.wpcf7 select:focus { outline: none; border-color: var(--accent-text); }
.wpcf7 select option { background: var(--bg-alt); color: var(--text); }
.itm-application-form .itm-field label { display: block; font-size: .9375rem; color: var(--text); }
.itm-application-form .wpcf7-form-control-wrap { display: block; margin-top: .4rem; }
.itm-application-form .itm-row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .itm-application-form .itm-row-2-col { grid-template-columns: 1fr; } }

/* Upload button (CV) in the application form: large and clearly visible */
.wpcf7 input[type="file"] {
  width: 100%; min-height: 64px; padding: .75rem 1rem; border: 1px dashed var(--muted); border-radius: 12px;
  background: var(--bg-alt); color: var(--text); font: inherit; font-size: 1rem; cursor: pointer;
}
.wpcf7 input[type="file"]::file-selector-button {
  margin-right: 1rem; min-height: 44px; padding: 0 1.4rem; border: 0; border-radius: 980px;
  background: #A21CAF; color: #FFFFFF; font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
}
.wpcf7 input[type="file"]::file-selector-button:hover { opacity: .88; }

/* ---------- Desktop submenu hover: keep the menu open while moving down to its panel ----------
   The top-level item fills the full header height, so the pointer never leaves the item on the way down. */
@media (min-width: 1024px) {
  .site-nav { align-self: stretch; }
  .primary-menu { height: 100%; align-items: stretch; }
  .primary-menu > li { display: flex; align-items: stretch; }
  .primary-menu > li > a { align-items: center; }
  .primary-menu > li > .sub-menu { top: 100%; }
}

/* ---------- Buttons: larger, more inner padding, animated gradient border always visible; hover: slightly larger + lighter border ---------- */
.btn {
  min-height: 56px; padding: 0 2.5rem; font-size: 1.125rem; font-weight: 500; letter-spacing: -.005em;
  border: 2px solid transparent; border-radius: 980px;
  background:
    linear-gradient(#A21CAF, #A21CAF) padding-box,
    var(--grad) border-box;
  background-size: 100% 100%, 200% 100%;
  animation: itm-btn-border 2.4s linear infinite;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), background-image 250ms var(--ease);
}
.btn:hover {
  opacity: 1;
  transform: scale(1.05);
  background:
    linear-gradient(#A21CAF, #A21CAF) padding-box,
    linear-gradient(90deg, #F5D0FE 0%, #DDD6FE 50%, #FECACA 100%) border-box;
  background-size: 100% 100%, 100% 100%;
  animation: none;
  box-shadow: 0 10px 28px -10px rgba(139, 92, 246, .6);
}
.btn:active { transform: scale(1.02); }
.btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
@keyframes itm-btn-border {
  from { background-position: 0 0, 0% 50%; }
  to   { background-position: 0 0, 200% 50%; }
}
@media (prefers-reduced-motion: reduce) { .btn { animation: none; } }

/* ---------- Loader (statt Text „Laden...“): animierter Verlaufsbalken wie die Menülinie ---------- */
.itm-loader { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 24px; vertical-align: middle; }
.itm-loader i { display: block; width: min(160px, 60%); height: 3px; border-radius: 3px; background: var(--grad); background-size: 200% 100%; animation: itm-loader-slide 1.6s ease-in-out infinite; }
@keyframes itm-loader-slide { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@media (prefers-reduced-motion: reduce) { .itm-loader i { animation: none; } }

/* ---------- Footer newsletter: centred, modern heading ---------- */
.footer .footer-newsletter { text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer .footer-newsletter h4 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 1.25rem; text-align: center; width: 100%; }
.footer .footer-newsletter .nl-consent { text-align: center; }
/* Footer social heading: same style as the newsletter heading */
.footer .footer-social h4 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 1.25rem; }
