/*
Theme Name: BlauWerk Original
Theme URI: https://www.blauwerk.de/
Author: BlauWerk
Description: Optische Wiederherstellung des historischen BlauWerk-Auftritts.
Version: 3.0.0
Text Domain: blauwerk-original
*/

:root { --blauwerk-blue: #456dfa; --blauwerk-grey: #c8c8c8; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--blauwerk-blue); color: #000; }
body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
a { color: #000; text-decoration: underline; }
.bw-stage { width: 748px; max-width: 100%; min-height: 100vh; }
.bw-rail { height: 52px; display: grid; grid-template-columns: 15px 1fr 100px; align-items: end; }
.bw-rail-left { height: 37px; background: url("assets/nav_hor_1.gif") no-repeat 0 0; }
.bw-toplinks { height: 37px; display: flex; align-items: center; gap: 18px; padding-left: 90px; background: var(--blauwerk-grey); border-bottom: 14px solid transparent; border-image: url("assets/nav_hor_4.gif") 14 repeat; }
.bw-toplinks a { font-size: 12px; text-decoration: none; }
.bw-toplinks a:hover { color: #f54614; }
.bw-rail-right { height: 37px; background: var(--blauwerk-grey); }
.bw-layout { display: grid; grid-template-columns: 102px minmax(0, 646px); align-items: stretch; }
.bw-nav { position: relative; min-height: 850px; background: var(--blauwerk-grey); padding-top: 0; }
.bw-nav::before { content: ""; position: absolute; inset: 0; background: url("assets/nav_dot_grau.gif") repeat; opacity: .48; }
.bw-targets { position: relative; z-index: 1; }
.bw-targets a { display: flex; align-items: center; justify-content: center; width: 102px; height: 64px; background: url("assets/nav_point_orange.gif") no-repeat; overflow: hidden; color: #000; font-size: 13px; font-weight: 700; text-decoration: none; text-shadow: 0 1px rgba(255,255,255,.35); }
.bw-targets a:hover, .bw-targets a.is-active { color: #f54614; }
.bw-targets a span { display: block; width: 100%; padding: 4px 2px; text-align: center; background: rgba(192,192,192,.38); }
.bw-credit { position: absolute; z-index: 1; left: 8px; bottom: 6px; font-size: 11px; white-space: nowrap; }
.bw-content-shell { min-width: 0; border-top-left-radius: 22px; overflow: hidden; }
.bw-content { display: grid; grid-template-columns: minmax(0, 495px) 103px; gap: 20px; padding: 26px 3px 28px 40px; }
.bw-content.bw-wide { display: block; padding-right: 42px; min-height: 610px; }
.bw-copy h1 { margin: 0 0 16px; padding: 0 0 10px; border-bottom: 2px solid rgba(200,200,200,.9); font-size: 17px; line-height: 1.1; }
.bw-copy p { margin: 0 0 14px; line-height: 1.22; }
.bw-copy strong { font-weight: 700; }
.bw-copy h2 { margin: 17px 0 5px; font-size: 13px; }
.bw-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 22px; padding: 8px 0 18px; }
.bw-product { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; font-size: 12px; text-decoration: none; }
.bw-product:hover span { color: #f54614; text-decoration: underline; }
.bw-product img { width: 100px; height: 65px; object-fit: contain; }
.bw-model-main { display: block; width: min(400px, 100%); max-height: 320px; margin: 0 auto 18px; object-fit: contain; image-rendering: auto; }
.bw-model-banner { display: block; width: min(400px, 100%); height: auto; margin: 0 auto 14px; object-fit: cover; image-rendering: auto; }
.bw-model ul { columns: 2; margin: 15px 0; padding-left: 18px; line-height: 1.45; }
.bw-historic-note { padding: 8px 10px; background: rgba(200,200,200,.35); font-size: 11px; }
.bw-service-list, .bw-sitemap { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.bw-service-list a { font-weight: 700; }
.bw-sitemap h2 { width: 100%; margin: 13px 0 2px; padding-bottom: 3px; border-bottom: 1px solid rgba(0,0,0,.3); }
.bw-faq h2 { font-size: 12px; margin-bottom: 3px; }
.bw-service-image { display: block; width: min(420px, 100%); height: auto; margin: 0 auto 18px; object-fit: contain; image-rendering: auto; }
.bw-news-item { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; margin-bottom: 28px; }
.bw-news-item img { width: 100px; max-height: 165px; object-fit: contain; }
.bw-history-hero { display: block; width: min(560px, 100%); max-height: 440px; margin: 0 auto 18px; object-fit: contain; image-rendering: auto; }
.bw-history-banner { display: block; width: min(580px, 100%); height: auto; margin: 0 auto 18px; object-fit: contain; image-rendering: auto; }
.bw-country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 12px; margin: 18px 0; }
.bw-country-grid span { padding: 6px 8px; background: rgba(200,200,200,.42); border-left: 4px solid #f54614; }
.bw-archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 25px; }
.bw-archive-grid figure { margin: 0; }
.bw-archive-grid img { display: block; width: 100%; height: 190px; padding: 3px; background: #fff; border: 1px solid rgba(0,0,0,.3); object-fit: contain; image-rendering: auto; }
.bw-archive-grid figcaption { padding-top: 5px; text-align: center; font-size: 11px; }
.bw-guestbook-list { display: flex; flex-direction: column; margin: 8px 0 26px; }
.bw-guestbook-entry { padding: 10px 0 8px; border-top: 1px solid rgba(0,0,0,.38); }
.bw-guestbook-entry:last-child { border-bottom: 1px solid rgba(0,0,0,.38); }
.bw-guestbook-entry header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.bw-guestbook-entry time { color: #252525; font-size: 11px; white-space: nowrap; }
.bw-guestbook-entry p { margin-bottom: 0; }
.bw-guestbook-historic .bw-guestbook-entry { background: rgba(200,200,200,.14); padding-right: 7px; padding-left: 7px; }
.bw-guestbook-form { position: relative; display: grid; gap: 6px; width: min(520px, 100%); margin: 8px 0 20px; }
.bw-guestbook-form > label:not(.bw-consent) { margin-top: 5px; font-weight: 700; }
.bw-guestbook-form input[type="text"], .bw-guestbook-form textarea { width: 100%; padding: 7px 8px; border: 1px solid #777; background: #f6f6f6; color: #000; font: inherit; }
.bw-guestbook-form textarea { resize: vertical; }
.bw-guestbook-form input:focus, .bw-guestbook-form textarea:focus { outline: 2px solid #f54614; outline-offset: 1px; }
.bw-consent { display: grid; grid-template-columns: auto 1fr; gap: 7px; align-items: start; margin-top: 7px; line-height: 1.3; }
.bw-form-help { margin: 4px 0 !important; font-size: 11px; }
.bw-guestbook-form button { justify-self: start; padding: 6px 13px; border: 2px outset #ddd; background: var(--blauwerk-grey); color: #000; font: inherit; font-weight: 700; cursor: pointer; }
.bw-guestbook-form button:hover { color: #f54614; }
.bw-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bw-form-message { padding: 9px 11px; border: 1px solid rgba(0,0,0,.45); }
.bw-form-success { background: rgba(187,255,170,.55); }
.bw-form-error { background: rgba(255,190,170,.58); }
.bw-gallery { display: flex; flex-direction: column; gap: 10px; }
.bw-gallery img { display: block; width: 100px; min-height: 65px; object-fit: cover; image-rendering: auto; }
.bw-gallery img:last-child { width: 103px; height: 69px; }
.bw-footer { display: grid; grid-template-columns: 102px 1fr; }
.bw-footer-links { display: flex; justify-content: space-between; width: 430px; max-width: calc(100% - 70px); margin: 12px 0 20px; font-size: 11px; }
#wpadminbar { position: fixed; }

@media (max-width: 620px) {
  .bw-rail { grid-template-columns: 12px 1fr 58px; }
  .bw-toplinks { gap: 8px; padding-left: 10px; }
  .bw-layout { grid-template-columns: 72px minmax(0, 1fr); }
  .bw-nav { min-height: 100%; }
  .bw-targets a { width: 72px; height: 46px; background-size: 72px 46px; font-size: 10px; }
  .bw-credit { writing-mode: vertical-rl; transform: rotate(180deg); left: 4px; }
  .bw-content { grid-template-columns: 1fr; padding: 20px 18px 25px; }
  .bw-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bw-gallery img, .bw-gallery img:last-child { width: 100%; height: auto; min-height: 0; aspect-ratio: 100 / 65; object-fit: cover; }
  .bw-products { grid-template-columns: repeat(2, 1fr); }
  .bw-model ul { columns: 1; }
  .bw-news-item { grid-template-columns: 90px 1fr; }
  .bw-country-grid { grid-template-columns: repeat(2, 1fr); }
  .bw-archive-grid { grid-template-columns: 1fr; }
  .bw-archive-grid img { height: auto; max-height: 310px; }
  .bw-guestbook-entry header { flex-direction: column; gap: 2px; }
  .bw-footer { grid-template-columns: 72px 1fr; }
  .bw-footer-links { width: auto; max-width: none; margin-right: 18px; }
}
