/* ==========================================
   GLOBAL FONTS
   ========================================== */
@font-face {
    font-family: 'Quicksand'; font-style: normal; font-weight: 300;
    src: url('../fonts/quicksand-v11-latin-300.woff2') format('woff2'), url('../fonts/quicksand-v11-latin-300.woff') format('woff');
}
@font-face {
    font-family: 'Quicksand'; font-style: normal; font-weight: 400;
    src: url('../fonts/quicksand-v11-latin-regular.woff2') format('woff2'), url('../fonts/quicksand-v11-latin-regular.woff') format('woff');
}
@font-face {
    font-family: 'Quicksand'; font-style: normal; font-weight: 500;
    src: url('../fonts/quicksand-v11-latin-500.woff2') format('woff2'), url('../fonts/quicksand-v11-latin-500.woff') format('woff');
}
@font-face {
    font-family: 'Quicksand'; font-style: normal; font-weight: 600;
    src: url('../fonts/quicksand-v11-latin-600.woff2') format('woff2'), url('../fonts/quicksand-v11-latin-600.woff') format('woff');
}
@font-face {
    font-family: 'Quicksand'; font-style: normal; font-weight: 700;
    src: url('../fonts/quicksand-v11-latin-700.woff2') format('woff2'), url('../fonts/quicksand-v11-latin-700.woff') format('woff');
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */
body {
    font-family: Quicksand, sans-serif;
    font-weight: normal;
    background: linear-gradient(to right, #388ecd 0%, #aad5f1 5%, #dff1fb 10%, #fff 20%, #fff 80%, #dff1fb 90%, #aad5f1 95%, #388ecd 100%);
}

a { color: #000; }
a:hover { color: #22b8f0; text-decoration: underline; }

.layout-boxed .body-innerwrapper {
    box-shadow: 0 0 5px #388ecd;
}

/* ==========================================
   HEADER & LAYOUT
   ========================================== */
#sp-top-bar { background-color: #d2eaf9; color: #0779bc; }
#sp-header { background-color: transparent; box-shadow: none; height: 120px; }
#sp-logo { padding-top: 30px; }
#sp-main-body { padding: 0; }

/* Logo Desktop */
#sp-logo img {
    width: 300px; 
    max-width: none; 
    height: auto;
}

/* Desktop Sidebar */
#sp-left { 
    padding-top: 100px; 
    margin-bottom: 50px; 
    display: block; 
}

#sp-left .sp-module {
    margin-left: -20px; 
}

#offcanvas-toggler {
    display: none;
}

/* ==========================================
   SIDEBAR MENU STYLING
   ========================================== */
.item-page ul, 
.sp-module ul {
   list-style-image: url("/images/Drop2.png"); 
   padding-left: 20px;
}

.sp-module ul > li > a {
    display: block; 
    padding: 1px 0; 
}

.sp-module ul > li > a:hover {
    color: #22b8f0;
}

.sp-module ul > li > a::before {
    content: url("/images/Drop.png"); 
    margin-right: 8px;
    vertical-align: middle;
}

.sp-module ul > li.current.active > a {
    font-weight: bold;
    color: #60a9dc !important;
    border-right: 4px solid #60a9dc;
    text-decoration: none;
}

/* Hide utility items */
.sp-module ul > li.item-104, 
.sp-module ul > li.item-103, 
.sp-module ul > li.item-105 {
    display: none;
}

/* ==========================================
   OFFCANVAS MENU STYLING
   ========================================== */
.offcanvas-menu {
    background-color: rgba(255,255,255,1); 
    width: 300px; 
}

.close-offcanvas {
    color: #60a9dc; 
}

.offcanvas-menu .offcanvas-inner .sp-module ul > li a {
    color: #000;
    display: block;
    padding: 10px;
    font-size: 16px;
}

.offcanvas-menu .offcanvas-inner .sp-module ul > li.current.active a {
    color: #60a9dc; 
}

.offcanvas-menu .offcanvas-inner .sp-module ul > li a:hover {
    background: none;
    font-weight: bold;
    color: #22b8f0;
}

/* ==========================================
   PAGE BACKGROUNDS (DESKTOP)
   ========================================== */
body:not(.itemid-101) .item-page {
    _background-attachment: fixed;
    _background-repeat: no-repeat;
    _background-position: 300px 80px;
    _background-size: 70%;
	background-position: 0px 80px;
    _padding: 450px 0 0 0;
    padding: 250px 0 0 0;
}

/* Startseite (Home) - ID 101 */
body.itemid-101 .item-page {
    _background-image: url("/images/Logo.png");
    padding-top: 600px; 
    margin-top: -100px;
    _background-attachment: fixed;
    _background-repeat: no-repeat;
    _background-position: 63% 80px; 
}
body.itemid-101 .item-page > div {
    text-align: center; 
}

/* Sub-Pages */
_body.itemid-114 .item-page { background-image: url("/images/Hausmeisterservice.jpg"); padding-top: 450px; }
_body.itemid-113 .item-page { background-image: url("/images/Glasreinigung.jpg"); padding-top: 450px; }
_body.itemid-112 .item-page { background-image: url("/images/Photovoltaik.jpg"); padding-top: 450px; }
_body.itemid-111 .item-page { background-image: url("/images/Baureinigung.jpg"); padding-top: 450px; }
_body.itemid-110 .item-page { background-image: url("/images/Unterhaltsreinigung.jpg"); padding-top: 450px; }
_body.itemid-109 .item-page { background-image: url("/images/Bueroreinigung.jpg"); padding-top: 450px; }

body.itemid-102 .item-page,
body.itemid-103 .item-page,
body.itemid-105 .item-page,
body.itemid-106 .item-page,
body.itemid-107 .item-page { padding-top: 70px; }


/* Bilder werden in main.js gesetzt */
#sp-component .sp-column {
	_min-height: 500px;
	min-height: 60svh;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ==========================================
   READABILITY & STYLING FIXES
   ========================================== */

/* 1. Haupt-Container: Bleibt komplett transparent */
article.item {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. Titelbereich: Weiß mit 85% Deckkraft (0.85) */
.page-header {
    background-color: rgba(255, 255, 255, 0.85) !important; /* Hier Transparenz */
    border-top: 4px solid #60a9dc !important;
    padding: 30px 40px 10px 40px !important;
    _margin: 0 !important;
    margin: 250px 0 0 0 !important;
    border-bottom: none !important;
}

/* 3. Zwischenbereich (falls vorhanden) */
.entry-header {
    background-color: rgba(255, 255, 255, 0.85) !important; /* Hier Transparenz */
    padding: 0 40px !important;
    margin: 0 !important;
}

/* 4. Textbereich: Weiß mit 85% Deckkraft (0.85) */
div[itemprop="articleBody"] {
    background-color: rgba(255, 255, 255, 0.85) !important; /* Hier Transparenz */
    
    /* Kein negativer Margin mehr, um "Streifen" bei Transparenz zu vermeiden */
    margin-top: 0 !important; 
    
    padding: 0px 40px 50px 40px !important;
    margin-bottom: 0 !important;
    display: block;
    position: relative;
    z-index: 1;
}
body.itemid-101 div[itemprop="articleBody"] {
    background-color: rgba(255, 255, 255, 0.9) !important; /* Hier Transparenz */
}

/* Korrekturen für Überschriften */
.page-header h1,
.page-header h2 {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.5 !important;
    font-weight: 500; 
    text-align: left;
    border: none !important;
}

/* Footer-Linie */
#sp-bottom {
    border-top: 4px solid #60a9dc; 
}

/* ==========================================
   FOOTER STYLING
   ========================================== */
#sp-bottom {
    background-image: url("/images/Bottom.png"); 
    background-repeat: no-repeat;
    background-position: left bottom; 
    background-color: #ffffff; 
    border-top: 4px solid #60a9dc; 
    padding: 40px 0 60px 0; 
    margin-top: -20px !important; 
    position: relative;
    z-index: 10;
}

#sp-bottom1 { padding-left: 150px; }
#sp-bottom2, #sp-bottom3 { padding-left: 50px; }

#sp-bottom td { padding-bottom: 5px; vertical-align: top; }
#sp-bottom strong { color: #000; }

#sp-footer {
    background-color: #ffffff !important; 
    color: #4799D2;
    font-size: 10px;
    padding: 2px 0;
    margin-top: -4px; 
    position: relative;
    z-index: 10;
    text-align: left; 
}

#sp-footer .container {
    padding-left: 0px;
    margin-left: 15px;
}

/* ==========================================
   TABLET & MOBILE (Max Width 991px)
   ========================================== */
@media only screen and (max-width: 991px) {
    #sp-main-body { display: block !important; }
    #sp-left { display: none !important; } 
    .item-page { width: 100%; flex: 0 0 100%; max-width: 100%; }
    
    #sp-header .row { position: relative; }

    #offcanvas-toggler {
        display: block !important;
        position: absolute; 
        right: 15px; 
        top: 35px; 
        font-size: 26px;
        color: #000;
        z-index: 99;
        float: none;
        margin: 0;
    }

    #sp-logo {
        text-align: center !important;
        padding: 10px 0;
        width: 100%;
        flex: 0 0 100%; 
        max-width: 100%;
        display: block;
    }
    #sp-logo .logo { display: inline-block; }
    #sp-logo img {
        height: auto;
        max-height: 80px; 
        width: auto;
        margin: 0 auto;
    }

    .item-page,
    body.itemid-101 .item-page,
    body.itemid-114 .item-page,
    body.itemid-113 .item-page,
    body.itemid-112 .item-page,
    body.itemid-111 .item-page,
    body.itemid-110 .item-page,
    body.itemid-109 .item-page {
        background-image: none !important;
        padding-top: 20px !important;
        margin-top: 0 !important;
    }
	
   .page-header {
        margin: 400px 0 0 0 !important;
    }

    #sp-bottom { background-image: url("/images/Bottom2.png"); padding-left: 0; }
    #sp-bottom1, #sp-bottom2, #sp-bottom3 { padding-left: 20px; padding-top: 20px; }
    #sp-footer { text-align: center; margin-top: 0; }
    #sp-footer .container { margin-left: auto; margin-right: auto; } 
}

/* ==========================================
   MOBILE / iPAD hochkant
   ========================================== */

  @media only screen and (max-device-width: 1024px) and (orientation: portrait) {
    .page-header {
      margin-top: 500px !important;
	  _margin-top: clamp(500px, 50vh, 700px);
	}
  
    .sp-column {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }
  }

/* ==========================================
   MOBILE PHONE (PORTRAIT - < 767px)
   ========================================== */
@media only screen and (max-width: 767px) {
    #sp-logo { 
        padding: 10px 0 20px 0 !important; 
        text-align: center !important;
    }
    
    #sp-logo img {
        max-width: 90%; 
        height: auto;
        width: auto; 
    }
    
    .item-page, 
    body.itemid-101 .item-page,
    body.itemid-114 .item-page,
    body.itemid-113 .item-page,
    body.itemid-112 .item-page,
    body.itemid-111 .item-page,
    body.itemid-110 .item-page,
    body.itemid-109 .item-page {
        background-image: none !important;
        padding-top: 20px !important; 
        margin-top: 0 !important;
    }
    
    article.item {
        margin-left: 0;
        margin-right: 0;
    }

    #sp-bottom1, #sp-bottom2, #sp-bottom3 {
        padding-left: 120px !important; 
        padding-top: 20px;
    }
}

/* ==========================================
   LANDSCAPE FIX (ROTATED PHONES)
   ========================================== */
@media only screen and (max-width: 991px) and (orientation: landscape) {
    .item-page, 
    body.itemid-101 .item-page,
    body.itemid-114 .item-page,
    body.itemid-113 .item-page,
    body.itemid-112 .item-page,
    body.itemid-111 .item-page,
    body.itemid-110 .item-page,
    body.itemid-109 .item-page {
        background-image: none !important;
        padding-top: 20px !important;
        margin-top: 0 !important;
    }
    
    #sp-bottom {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* ==========================================
   SIGPLUS GALERIE FIX
   ========================================== */
div.sigplus-gallery {
    background-color: #ffffff !important;
    margin-left: -50px !important;
    margin-right: -50px !important;
    margin-top: -30px !important;
    padding-top: 30px !important;
    padding-bottom: 80px !important;
    margin-bottom: -80px !important;
}

div.sigplus-gallery ul, 
div.sigplus-gallery li, 
div.sigplus-gallery table, 
div.sigplus-gallery td {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

div.sigplus-gallery li,
div.sigplus-gallery td {
    display: inline-block !important;
    padding: 10px !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

div.sigplus-gallery ul {
    display: inline-block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center;
    width: 100% !important;
}