/*  bts-metallbau.de
    25.06.2025
 */

@import "layout-fonts.css";
@import "layout-navigation.css";
@import "layout-footer.css";
@import "layout-textpic.css";
@import "layout-team.css";

:root {
    --bs-primary: rgb(0,92,169);
    --bs-white: rgb(255,255,255);
    --bs-font-sans-serif: "Boston Regular";
}

/** Skip Links
 */
.skip {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip:focus {
    position: static;
    width: auto;
    height: auto;
}


body {
    font-family: var(--bs-font-sans-serif), sans-serif;
    line-height: 1.5;
}

h1 {
    color: var(--bs-primary);
    font-family: "Boston Bold", sans-serif;
    font-weight: normal;
}

h2 {
    color: var(--bs-primary);
    font-family: "Boston Bold", sans-serif;
    font-weight: normal;
}

h2+h3 {
    background: var(--bs-warning);
    color: var(--bs-white);
    font-size: 1em;
    padding: 3px 5px;
    display: inline-block;
}

a { color: var(--bs-primary); }

strong, b {
    font-family: "Boston SemiBold", sans-serif;
}

.lead {
    font-family: "Boston SemiBold", sans-serif;
    font-size: 1.2em;
    color: var(--bs-primary);
}

.image-embed-item {
    max-width: 100%;
    height: auto;
}

.frame-default {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .frame-default {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .frame-default {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .frame-default {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .frame-default {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .frame-default {
        max-width: 1320px;
    }
    body {
        font-size: 20px;
    }
}


/*  Title in Image */
figure.image {
    position: relative;
}
figure.image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: var(--bs-white);
    padding: 10px;
    font-size: 1.2em;
    font-family: "Boston SemiBold", sans-serif;
}










.bts-sticky::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: none;
    z-index: -1;
    transition: all 0.3s ease;
}

.bts-sticky.scrolled::before {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bts-sticky.logo-small::before {
    height: 70px;
}

.bts-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    padding-top: 15px; /* Abstand nach oben von Anfang an */
    transition: padding-top 0.3s ease;
}

.bts-sticky.logo-small {
    padding-top: 0; /* Weniger Abstand beim Scrollen */
}

/* Logo Transition */
.bts-sticky .page-header-brand img {
    transition: all 0.3s ease;
}

.bts-sticky.logo-small .page-header-brand img {
    transform: scale(0.6);
    transform-origin: left center; /* Logo bleibt links ausgerichtet */
}

/* Menü-Buttons verkleinern */
.bts-sticky #main-navigation a {
    transition: all 0.3s ease;
}

.bts-sticky.logo-small #main-navigation a {
    padding-top: 2px;
    padding-bottom: 2px;
}




/* Mobile Navigation - ab hier ergänzen */

/* Hamburger Button - nur unter 992px sichtbar */
.bts-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 48px;
    color: var(--bs-primary);
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

/* Desktop Navigation - ab 992px sichtbar */
@media (min-width: 992px) {
    #main-navigation {
        display: flex !important;
    }

    .bts-mobile-toggle {
        display: none !important;
    }
}



/* Mobile Menüpunkte - optimierte Darstellung */
@media (max-width: 991.98px) {
    .bts-mobile-toggle {
        display: block;
    }

    #main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 10px;
        padding: 20px;
        z-index: 1000;
    }

    #main-navigation.show {
        display: block;
    }

    #main-navigation ul {
        flex-direction: column !important;
        margin: 0;
        padding: 0;
    }

    #main-navigation li {
        margin: 0 !important; /* Kein Abstand zwischen Items */
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Trennlinie */
    }

    #main-navigation li:last-child {
        border-bottom: none; /* Letzte Linie entfernen */
    }

    #main-navigation a {
        width: 100%;
        text-align: center;
        margin-bottom: 0;

        /* Optimierte mobile Darstellung */
        background: transparent !important;
        color: var(--bs-primary) !important;
        font-size: 1.5em !important; /* Noch größere Schrift */
        border: none !important;
        border-radius: 0 !important;
        padding: 18px 10px !important; /* Gleicher Abstand oben/unten zur Linie */
    }

    #main-navigation .active a {
        background: var(--bs-primary) !important;
        color: rgb(255,255,255) !important;
    }
}


/* Focus-Styles nur bei Tastaturnavigation */
.bts-mobile-toggle:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

#main-navigation a:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Kein Focus-Outline bei Maus-Klicks */
.bts-mobile-toggle:focus:not(:focus-visible) {
    outline: none;
}

#main-navigation a:focus:not(:focus-visible) {
    outline: none;
}



.logogrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.logogrid img{
    object-fit: contain;
    padding:10px;
    background-color: rgba(0,92,169,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 16 / 9;
    width:100%;
}

.logogrid img:hover{
    background-color: rgba(0,92,169,0.2);
}
