/* ==========================================================================
   Henze-Hauck PMA GmbH – Stylesheet
   Nachbau der bestehenden Website (Maße aus dem Original übernommen)
   Farben:  Blau #17568C | Seitenhintergrund #F2F2F2 | Text #333 | Linien #DEE2E6
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    background: #f2f2f2;
    color: #333;
    font-family: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
}

img { border: 0; max-width: 100%; height: auto; vertical-align: middle; }

a { color: #333; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #17568C; outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Grundgerüst: 1380px Container – 300px Sidebar + 1080px Inhalt
   -------------------------------------------------------------------------- */

.layout {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
}

.sidebar {
    flex: 0 0 300px;
    width: 300px;
    align-self: stretch;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #17568C;
    padding: 0 30px;
    color: #fff;
}

.content {
    flex: 1 1 auto;
    min-width: 0;
    background: #fff;
}

/* --------------------------------------------------------------------------
   Kopfleiste (Adresse / Telefon / E-Mail)
   -------------------------------------------------------------------------- */

.topbar {
    display: flex;
    align-items: center;
    height: 27px;
    padding: 0 11px;
    border-bottom: 1px solid #dee2e6;
    font-size: 13px;
    line-height: 1;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
}

.topbar span,
.topbar a { display: inline-flex; align-items: center; margin-right: 25px; color: #999; }
.topbar a:hover { color: #999; text-decoration: underline; }
.topbar svg { width: 14px; height: 14px; margin-right: 8px; fill: #999; flex: none; }

/* --------------------------------------------------------------------------
   Sidebar: Logo
   -------------------------------------------------------------------------- */

.logo {
    margin: 30px 0 0;
    text-align: center;
    line-height: 30px;
}

.logo a { display: block; color: #fff; text-decoration: none; }
.logo .logo-name {
    display: block;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: .4px;
    line-height: 30px;
}
.logo .logo-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.2px;
    line-height: 16px;
}

/* --------------------------------------------------------------------------
   Sidebar: Navigation
   -------------------------------------------------------------------------- */

.nav-toggle { display: none; }

.mainnav { margin: 35px 0 0; }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
.mainnav > ul > li { position: relative; }

.mainnav > ul > li > a {
    display: block;
    padding-right: 26px;
    line-height: 43px;
    font-size: 13px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}
.mainnav > ul > li > a:hover,
.mainnav > ul > li.is-active > a { text-decoration: none; color: #fff; }
.mainnav > ul > li > a .home-icon { width: 13px; height: 13px; fill: #fff; margin-right: 8px; vertical-align: -2px; }

/* Auf-/Zuklappen */
.submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 26px;
    height: 43px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 17px;
    line-height: 43px;
    text-align: right;
    cursor: pointer;
    font-family: inherit;
}
.submenu-toggle::before { content: "+"; }
.mainnav li.is-open > .submenu-toggle::before { content: "\2013"; }

.mainnav ul ul { display: none; }
.mainnav li.is-open > ul { display: block; }

.mainnav ul ul a {
    display: block;
    position: relative;
    padding-left: 37px;
    line-height: 38px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
}
.mainnav ul ul a::before {
    content: "--";
    position: absolute;
    left: 11px;
    color: #fff;
}
.mainnav ul ul li.is-active > a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Sidebar: Adresse / Öffnungszeiten
   -------------------------------------------------------------------------- */

.side-block { margin-top: 22px; }
.side-block.first { margin-top: 47px; }

.side-block h3 {
    margin: 0 0 6px;
    padding: 0 0 6px;
    border-bottom: 1px solid #dee2e6;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #fff;
}
.side-block p { margin: 0; font-size: 14px; line-height: 25px; color: #fff; }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 0; font-size: 14px; line-height: 25px; color: #fff; }
.hours td:first-child { width: 80px; }

.side-rule { margin: 26px 0 30px; border: 0; border-top: 1px solid #dee2e6; }

/* --------------------------------------------------------------------------
   Inhaltsbereich
   -------------------------------------------------------------------------- */

.content-inner { padding: 42px; }

.breadcrumb {
    list-style: none;
    margin: 0 0 42px;
    padding: 0 0 0 18px;
    font-size: 13px;
    line-height: 14px;
    min-height: 14px;
}
.breadcrumb li { display: inline; }
.breadcrumb a { color: #333; }

/* Slider ------------------------------------------------------------------ */

.slider { position: relative; height: 310px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slide.is-active { opacity: 1; }
.slide > img { display: block; width: 100%; height: 310px; object-fit: fill; }

.slide-caption { position: absolute; padding: 30px 25px 38px; color: #fff; max-width: 70%; }
.slide-caption h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: #fff;
}
.slide-caption p { margin: 0; font-size: 13px; line-height: 19px; color: #fff; }

.caption-topright   { top: 0; right: 0; background: #17568c; }
.caption-bottomleft { bottom: 0; left: 0; background: rgba(23, 86, 140, .8); }

.slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    text-align: center;
    line-height: 0;
}
.slider-dots button {
    width: 9px;
    height: 9px;
    margin: 0 6px;
    padding: 0;
    border: 1px solid #b0b0b0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.slider-dots button.is-active { background: #999; border-color: #999; }

/* Artikel ----------------------------------------------------------------- */

.article { margin-top: 60px; padding: 0 18px; }

.article h2 { margin: 0 0 10px; font-size: 20px; font-weight: 400; line-height: 28px; }
.article h3 { margin: 0 0 10px; font-size: 17px; font-weight: 400; line-height: 24px; }
.article h4 { margin: 24px 0 8px; font-size: 15px; font-weight: 600; line-height: 24px; }
.article h5 { margin: 20px 0 6px; font-size: 14px; font-weight: 600; line-height: 24px; }

.article p { margin: 0 0 16px; }
.article ul,
.article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin: 0; }
.article strong { font-weight: 600; }

.article a { color: #333; text-decoration: underline; }
.article a:hover { color: #17568c; }

/* Bildtabellen (Systembau / Analysentechnik / Fertigung) */
.imagegrid { border-collapse: collapse; margin: 10px 0 16px; }
.imagegrid td { padding: 0; vertical-align: top; width: 480px; }
.imagegrid td img { max-width: none; }

/* Maschinen-/Datentabellen */
.datatable {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
}
.datatable th,
.datatable td {
    padding: 6px 10px 6px 0;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
    border-bottom: 1px solid #dee2e6;
}
.datatable th { font-weight: 600; }
.datatable.plain td,
.datatable.plain th { border: 0; }

.contacttable { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.contacttable td { padding: 6px 10px 6px 0; vertical-align: top; }
.contacttable .c1 { width: 190px; }
.contacttable .c2 { width: 215px; }
.contacttable .c3 { width: 240px; }

.machine { border-collapse: collapse; margin: 0 0 30px; }
.machine td { padding: 0 30px 0 0; vertical-align: top; }
.machine td img { max-width: none; }
.machine ul { margin: 0; padding-left: 22px; }

.dl-link { display: block; margin: 0 0 22px; text-decoration: none !important; }
.dl-link img { margin-right: 8px; vertical-align: -10px; }
.dl-link:hover span { text-decoration: underline; }

/* Fußzeile ---------------------------------------------------------------- */

.footer-menu {
    list-style: none;
    margin: 84px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 24px;
}
.footer-menu li { display: inline-block; margin-right: 21px; }

/* Nach-oben-Button -------------------------------------------------------- */

#back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 34px;
    height: 34px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: #fff;
    color: #999;
    font-size: 15px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    display: none;
    padding: 0;
}
#back-to-top.is-visible { display: block; }

/* --------------------------------------------------------------------------
   Mobil / Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .layout { display: block; }

    .sidebar {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        padding: 0 20px 20px;
    }

    .logo { margin-top: 18px; text-align: left; }

    .nav-toggle {
        display: block;
        position: absolute;
        top: 18px;
        right: 20px;
        width: 40px;
        height: 34px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .5);
        border-radius: 3px;
        background: none;
        color: #fff;
        font-size: 18px;
        line-height: 30px;
        cursor: pointer;
    }
    .sidebar { position: relative; }

    .mainnav { margin-top: 18px; display: none; }
    .mainnav.is-open { display: block; }

    .side-block.first { margin-top: 24px; }

    .content-inner { padding: 20px; }
    .article { margin-top: 30px; padding: 0; }
    .breadcrumb { margin-bottom: 24px; padding-left: 0; }

    .slider { height: 190px; }
    .slide > img { height: 190px; }
    .slide-caption { padding: 16px 18px; max-width: 100%; }
    .slide-caption h3 { font-size: 15px; margin-bottom: 6px; }
    .slider-dots { bottom: 12px; }

    .imagegrid,
    .imagegrid tbody,
    .imagegrid tr,
    .imagegrid td,
    .machine,
    .machine tbody,
    .machine tr,
    .machine td { display: block; width: auto; }
    .imagegrid td,
    .machine td { padding: 0 0 20px; }
    .imagegrid td img,
    .machine td img { max-width: 100%; }

    .contacttable,
    .contacttable tbody,
    .contacttable tr,
    .contacttable td { display: block; width: auto; }
    .contacttable tr { margin-bottom: 12px; }
    .contacttable td { padding: 0; }

    .footer-menu { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .slide { transition: none; }
}
