/* GLOBALER SEITENCONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Allgemein */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 300;
}

.top-bar {
    height: 25px;
    background-color: #0b6c10;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo img {
    height: 50px;
    width: auto;
}

.info-link {
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
}

/* Hamburger */
.hamburger {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2100;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

/* Hamburger → X */
.hamburger.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.hamburger.open span {
    background-color: #006bb3;
    height: 3px;
}

/* MOBILE NAVIGATION */
/* visibility:hidden verhindert, dass unsichtbare Menülinks per Tab angesprungen werden */
.mobile-nav {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow-y: auto;
    background-color: #006bb3;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1500;
}

.mobile-nav.open {
    max-height: calc(100vh - 75px);
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    font-size: 18px;
}

/* SLIDER */
.slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    z-index: 1;
}

@media (min-width: 901px) {
    .slider { height: 600px; }
}

.slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: left 1s ease;
}

.slide.active { left: 0; }
.slide.prev { left: -100%; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.slider-dots .dot.active { background: white; }

/* WILLKOMMEN-TEXT */
.welcome-text {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.welcome-text h1 {
    font-size: 26px;
    line-height: 1.3;
    margin: 0;
    color: #666666;
    font-weight: 700;
}

.welcome-text .line1,
.welcome-text .line2 {
    display: block;
}

/* BLÖCKE */
.blocks {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 40px;
}

.block {
    flex: 1;
    text-decoration: none;
    color: black;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

.block-top {
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.blue {
    background-color: #0b6c10;
}

body.team-firmenberater .block-top.blue,
body.teams-massnahmen-projekte .block-top.blue,
body.wir-ueber-uns .block-top.blue,
body.kontakt .block-top.blue {
    background-color: #006bb3 !important;
}

body:not(.home) .blocks {
    gap: 15px;
}

.block-bottom {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.img1 { background-image: url('../img/jsgfirmenberater.jpg'); }
.img2 { background-image: url('../img/jsgmassnahmen.jpg'); }
.img3 { background-image: url('../img/img3.jpg'); }
.img4 { background-image: url('../img/img4.jpg'); }

.block-text {
    padding: 15px;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

body.home .block-text ul {
    margin: 0;
    padding-left: 1.2em;
}

body.home .block-text li {
    list-style-type: disc;
    margin-bottom: 4px;
}

@media (min-width: 1200px) {
    body.home .blocks.container {
        max-width: 1500px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (min-width: 1200px) {
    body.team-firmenberater .blocks.container,
    body.teams-massnahmen-projekte .blocks.container,
    body.wir-ueber-uns .blocks.container,
    body.kontakt .blocks.container {
        max-width: 1200px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* FOOTER */
.footer {
    background-color: #006bb3;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
    margin-top: 40px;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.footer a {
    color: white;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    .info-link {
        display: none;
    }

    .blocks {
        flex-wrap: wrap;
    }

    .block {
        width: 45%;
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 40px;
    }

    .blocks {
        flex-direction: column;
        align-items: center;
    }

    .block {
        width: 100%;
    }
}

/* --- SUB-NAV REPARATUR: NEBENEINANDER & BÜNDIG --- */
.sub-nav {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
    width: 100%;
}

.sub-nav-inner {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sub-nav-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.sub-nav-content a {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.sub-nav-content a + a::before {
    content: "»";
    margin: 0 15px;
    color: black;
    font-weight: bold;
}

.sub-nav-content a:hover {
    color: #006bb3;
    text-decoration: underline;
}

.sub-nav-content svg {
    fill: none;
    stroke: currentColor;
    min-width: 20px;
}

/* --- FINALE KORREKTUR FARBEN --- */
.sub-link {
    color: #333 !important;
    text-decoration: none !important;
    font-family: Arial, sans-serif;
}

.sub-link[style*="font-weight: bold"],
.sub-link[style*="font-weight:bold"] {
    color: #006bb3 !important;
    text-decoration: none !important;
}

.sub-link:hover,
a[style*="font-size:18px"]:hover {
    color: #006bb3 !important;
    text-decoration: underline !important;
}

nav[style*="background:#f9f9f9"],
nav[style*="background: #f9f9f9"] {
    position: relative !important;
    display: block !important;
}

nav[style*="background:#f9f9f9"]::after,
nav[style*="background: #f9f9f9"]::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 80px !important;
    height: 100% !important;
    background: linear-gradient(to right, rgba(249,249,249,0), rgba(249,249,249,1)) !important;
    pointer-events: none !important;
    z-index: 999 !important;
}

/* PARTNER-GRID */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* PARTNER-KACHELN */
.partner-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    text-align: center;
}

.partner-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.partner-item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 8px auto;
    image-rendering: -webkit-optimize-contrast;
    transition: opacity 0.25s ease;
}

.partner-item:hover img {
    opacity: 0.85;
}

/* TEXTBEREICHE */
section.container {
    line-height: 1.75 !important;
    font-weight: 300 !important;
}

/* Tastatur-Fokus: nur sichtbar bei Tastaturbedienung */
a:focus,
button:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 4px solid #ff0000 !important;
    outline-offset: 4px !important;
}









