/* Villiger Technik - self-hosted fonts, no external requests */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; font-display: swap;
  src: url(/theme/villiger/fonts/open-sans-latin-ext-300-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: 'Open Sans'; font-style: normal; font-weight: 300; font-display: swap;
  src: url(/theme/villiger/fonts/open-sans-latin-300-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: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/theme/villiger/fonts/open-sans-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: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/theme/villiger/fonts/open-sans-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: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/theme/villiger/fonts/open-sans-latin-ext-600-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: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/theme/villiger/fonts/open-sans-latin-600-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: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/theme/villiger/fonts/oswald-latin-ext-700-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: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/theme/villiger/fonts/oswald-latin-700-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; }

html * { max-height: 1000000px; }
*, *:before, *:after { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; font-weight: 300; font-size: 18px; background-color: #222; color: #222; }
img { max-width: 100%; }
a { color: #bb102b; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 300; }
strong { font-weight: 600; }

.biglink { display: block; margin: 10px 0; padding: 8px 20px; font-size: 1.2em; background-color: #bb102b;
  color: white; text-decoration: none; font-weight: bold; }
.biglink:hover { text-decoration: none; background-color: black; }
.video { display: block; margin: 10px 0; padding: 40px 20px; background: #111; color: white; text-align: center;
  font-size: 1.2em; text-decoration: none; }
.video:hover { background: #bb102b; text-decoration: none; }

/* grid */
.section { clear: both; padding: 0; }
.col { display: block; float: left; margin: 0; }
.group:before, .group:after { content: ""; display: table; }
.group:after { clear: both; }
.span-full { width: 100%; }
.span-half { width: 50%; }
.col > .block > p { text-align: justify; margin: 20px; display: block; }

.header-row { background-color: white; box-shadow: 0 0 3px rgba(0,0,0,.5); z-index: 2; position: relative; }
.header-row .logo { display: block; height: 60px; width: auto; cursor: pointer; }
.title-row { background-color: #bb102b; color: white; }
.content-row { background-color: white; }
.banner { background-color: #fde6e8; font-size: 1.2em; margin: 20px 0; padding: 1px 20px; }
.content-row .banner h3 { margin: 15px 0 0; }
.image-row { background-color: #f8f8f8; font-size: 0; }
.image-row img { width: 100%; display: block; }
.header-row .section, .title-row .section, .content-row .section, .image-row .section { max-width: 960px; margin: 0 auto; }
.content-row h1, .content-row h2, .content-row h3, .content-row h4 { margin: 20px; }
.portrait { display: flex; align-items: flex-start; margin-bottom: 20px; }
.portrait img { width: 50%; display: block; }
.portrait > div { width: 50%; }
.portrait p { margin: 0 20px 12px; }

.navigation { display: block; list-style: none; padding: 0; margin: 0; }
.navigation > li { font-size: 1.1em; cursor: pointer; }
.navigation > li:hover, .navigation > li.active { background-color: #bb102b; color: white; }
.navigation > li > a { display: inline-block; color: black; }
.navigation > li:hover > a, .navigation > li.active > a { color: white; text-decoration: none; }

.footer { color: #aaa; text-align: center; background-color: #222; padding: 20px 0; }
.footer a { color: white; }
.footer form { display: inline; }
.footer button { background: none; border: 0; color: white; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* product list: a plain HTML block on the Products page */
.product { display: flex; align-items: center; margin: 30px 0; }
.product img { width: 100%; display: block; }
.product > a { width: 50%; display: block; }
.product > ul { width: 50%; font-size: 18px; margin: 0; padding: 0 20px 0 40px; }
.product a.title { font-size: 20px; font-weight: 600; }

/* front page: a raw <div class="front"> block on Home. No title bar, footer pinned to the bottom. */
body:has(.front) .title-row { display: none; }
.front { background-color: white; }
.front > .element { --th: 84px; display: block; position: relative; padding-bottom: var(--th); background-size: cover; background-repeat: no-repeat;
  background-position: center center; background-origin: content-box; background-clip: content-box; }
.front > .element:hover { cursor: pointer; }
/* the caption sits in a bar below the image */
.front > .element > .title { position: absolute; left: 0; right: 0; bottom: 0; height: var(--th); display: flex; align-items: center; justify-content: center;
  padding: 0 16px; text-align: center; overflow: hidden; background-color: #bb102b; font-family: 'Oswald', sans-serif; }
.front > .element:hover > .title { background-color: #d8203c; }
.front > .element > .shadow { position: absolute; left: 0; right: 0; top: 0; bottom: var(--th); background: rgba(255,255,255,.18); opacity: 0; pointer-events: none; transition: opacity .2s; }
.front > .element:hover > .shadow { opacity: 1; }
.front > .element > .title > span { display: block; font-size: 22px; line-height: 1.2; font-weight: 600; text-transform: uppercase; color: white; }

.ce-attaches__item { display: flex; align-items: center; margin-bottom: 10px; }
.ce-attaches__item { display: flex; align-items: center; margin-bottom: 10px; }
.ce-attaches__file-icon { width: 32px; height: 32px; margin-right: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ce-attaches__file-extension { width: 24px; height: 24px; border-radius: 3px; font-size: 10px; font-weight: bold; color: white;
  text-transform: uppercase; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 2px; }
.ce-attaches__file-info { flex: 1; }
.ce-attaches__file-title a { color: #000; font-weight: 500; }
.ce-attaches__file-size { color: #888; font-size: 12px; margin-top: 2px; }

@media only screen and (max-width: 800px) {
  .front > .element { height: calc(300px + var(--th)); }
  .front > .element:nth-child(1), .front > .element:nth-child(2) { border-bottom: 3px solid white; }
  .header-row .logo { height: 40px; margin: 16px 20px; }
  .header-row .col { position: relative; }
  .navigation { display: none; }
  .header-row.menu-open .navigation { display: block; }
  .title-row h1 { padding: 10px 20px; font-size: 1.5em; margin: 0; }
  .navigation > li { border-top: 1px solid #eee; }
  .navigation > li > a { display: block; padding: 15px 20px; }
  .content-row .col.span-half > .block > p { margin-top: 0; }
  .span-half, .span-full { width: 100%; }
  .portrait { flex-direction: column; }
  .portrait img, .portrait > div { width: 100%; }
  .portrait > div { padding-top: 12px; }
  .product { flex-direction: column; }
  .product > a { width: 100%; }
  .product > ul { width: 100%; padding: 16px 20px 0 40px; }
  .product > ul li { margin-bottom: 8px; }
  .product a.title { font-size: 18px; }
  .hidden-small { display: none; }
}

@media only screen and (min-width: 801px) {
  /* home: header, tiles and footer share exactly one screen, whatever the footer's height */
  body:has(.front) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
  body:has(.front) > .header-row, body:has(.front) > .footer { flex: none; }
  body:has(.front) > .content-row { flex: 1 1 auto; min-height: 0; position: relative; }
  .front { position: absolute; inset: 0; z-index: 1; }
  .front > .element { position: absolute; right: 0; }
  .front > .element:nth-child(1) { top: 0; bottom: 0; left: 0; right: 66.6%; border-right: 3px solid white; z-index: 1; }
  .front > .element:nth-child(2) { top: 0; bottom: 0; left: 33.3%; right: 33.3%; z-index: 0; }
  .front > .element:nth-child(3) { top: 0; bottom: 0; left: 66.6%; right: 0; border-left: 3px solid white; z-index: 1; }
  .header-row .logo { float: left; margin: 20px 0; }
  .title-row h1 { padding: 10px 0; margin: 0; }
  .navigation { float: right; display: block; border-right: 1px solid #eee; }
  .navigation > li { float: left; height: 100px; border-left: 1px solid #eee; }
  .navigation > li > a { height: 24px; padding: 38px 30px; }
  .section > .col > .block > h1, .section > .col > .block > h2, .section > .col > .block > h3, .section > .col > .block > h4 { margin-left: 0; }
  .section > .col:first-child > .block > p { margin-left: 0; }
  .section > .col:last-child > .block > p { margin-right: 0; }
  .hidden-big { display: none; }
  .header-row .section, .title-row .section, .content-row .section, .image-row .section { padding: 0 30px; }
}

/* cms blocks inside the vtnew layout */
.content-row .block-markdown > ul, .content-row .block-markdown > ol { margin: 20px; padding-left: 20px; }
.content-row .block-markdown > ul li, .content-row .block-markdown > ol li { margin-bottom: 8px; text-align: left; }
.content-row .block-markdown > hr { margin: 20px; border: 0; border-top: 1px solid #ddd; }
.content-row .block-files { margin: 20px; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { margin-bottom: 10px; }
.file-list a { display: inline-flex; align-items: center; gap: 12px; color: #000; font-weight: 400; }
.file-ext { width: 24px; height: 24px; border-radius: 3px; background: #555; color: white; font-size: 10px; font-weight: bold;
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 2px; }
.image-row .block-images .gallery { display: grid; gap: 3px; grid-template-columns: 1fr; }
.image-row .gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.image-row .gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.image-row .gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.image-row .gallery figure { margin: 0; }
.image-row .gallery figcaption { display: none; }
.image-row .gallery img { aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.notfound-text { margin: 20px; }
@media only screen and (max-width: 800px) { .image-row .gallery[class] { grid-template-columns: 1fr; } }

/* hamburger (mobile only) */
.menu-toggle { display: none; position: absolute; top: 6px; right: 8px; width: 60px; height: 60px; padding: 0; border: 0; background: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
.menu-toggle span { display: block; width: 28px; height: 3px; background: #222; transition: transform .2s, opacity .2s; }
.header-row.menu-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.header-row.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.header-row.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media only screen and (max-width: 800px) { .menu-toggle { display: flex; } }

/* sub-pages dropdown */
.subnav { list-style: none; margin: 0; padding: 0; }
.subnav li a { display: block; color: black; font-size: .9em; padding: 12px 20px; white-space: nowrap; }
.subnav li:hover, .subnav li.active { background-color: #bb102b; }
.subnav li:hover > a, .subnav li.active > a { color: white; text-decoration: none; }
@media only screen and (min-width: 801px) {
  .navigation > li { position: relative; }
  .subnav { display: none; position: absolute; top: 100px; left: -1px; min-width: calc(100% + 1px); background: white;
    border: 1px solid #eee; border-top: 0; box-shadow: 0 3px 6px rgba(0,0,0,.2); z-index: 5; }
  .navigation > li:hover > .subnav, .navigation > li:focus-within > .subnav { display: block; }
  .subnav li { border-top: 1px solid #eee; }
}
@media only screen and (max-width: 800px) {
  .subnav li { border-top: 1px solid #eee; background: #f8f8f8; }
  .subnav li a { padding: 10px 20px; font-size: 15px; white-space: normal; }
}

/* no hover effects on mobile */
@media only screen and (max-width: 800px), (hover: none) {
  a:hover { text-decoration: none; }
  .navigation > li:hover { background-color: transparent; color: inherit; }
  .navigation > li:hover > a { color: black; }
  .subnav li:hover { background-color: #f8f8f8; }
  .subnav li:hover > a { color: black; }
  /* current page: no red block on mobile, just red bold text */
  .navigation > li.active, .navigation > li.active:hover { background-color: transparent; color: inherit; }
  .subnav li.active, .subnav li.active:hover { background-color: #f8f8f8; color: inherit; }
  .navigation > li.active > a, .navigation > li.active:hover > a, .subnav li.active > a, .subnav li.active:hover > a { color: #bb102b; font-weight: 600; }
  .biglink:hover { background-color: #bb102b; }
  .video:hover { background: #111; }
  .front > .element:hover > .title { background-color: #bb102b; }
  .front > .element:hover > .shadow { opacity: 0; }
}

/* navigation-only entries: sub-menu unfolds on click (mobile) */
@media only screen and (max-width: 800px) {
  .navigation > li.nav-only > .subnav { display: none; }
  .navigation > li.nav-only.open > .subnav { display: block; }
  .navigation > li.nav-only > a { position: relative; }
  .navigation > li.nav-only > a::after { content: "\25BE"; position: absolute; right: 20px; top: 50%; margin-top: -.6em; line-height: 1.2; font-size: .8em; }
  .navigation > li.nav-only.open > a::after { transform: rotate(180deg); }
}

/* Map embed (html block: <div class="map-embed"><iframe> or <a><img></a></div>): full content width, 16:9 on desktop, taller on phones */
.map-embed { margin: 20px 0; aspect-ratio: 16 / 9; }
.map-embed a { display: block; width: 100%; height: 100%; }
.map-embed iframe, .map-embed img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
@media only screen and (max-width: 800px) {
  .map-embed { margin: 20px 0; aspect-ratio: 1 / 1; } /* edge to edge on phones */
}

/* generated list of sub-pages on an empty grouping page */
.content-row .block-subpages { margin: 20px; }
.subpage-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #eee; }
.subpage-list li { border-bottom: 1px solid #eee; }
.subpage-list a { display: block; padding: 14px 0; color: #000; text-decoration: none; }
.subpage-title { display: block; font-weight: 600; color: #bb102b; }
.subpage-desc { display: block; margin-top: 4px; color: #555; font-size: .95em; }
@media (hover: hover) and (pointer: fine) { .subpage-list a:hover .subpage-title { text-decoration: underline; } }
.map-embed a { position: relative; }
.map-hint { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; background: rgba(255,255,255,.92); color: #222; font-size: 15px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
@media (hover: hover) and (pointer: fine) { .map-embed a:hover .map-hint { background: #fff; text-decoration: underline; } }
