:root {
    --primary-gray: #606060;
    --primary-green: #87B55B;
    --white: #ffffff;
}


html{
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--primary-gray);
}

body {
    font-family: 'Lato','Arial','Helvetica' sans-serif;
    overflow-x: hidden;
    overflow-y: scroll;
    margin-top: 10rem;
    min-width: 20rem;
}

header{
    padding: 0.33rem;
    height: 5rem;
    min-width: 20rem;
}

#index-badge{
    margin-top:-10rem;
    max-width: 25rem;
}

.bg-secondary{
    --bs-bg-opacity: 0;
    background: linear-gradient(0deg, rgba(50, 50, 50, 0.95), rgba(55, 55, 55, 0.95));
  }

  .btn-success, .btn-success:link, .btn-success:visited, .btn-success:active {
    background: #87B55B !important;
    border: none !important;
  }

  .btn-success:hover{
    background: #8fc75b;
  }
  

  .btn-hero{
    font-size: 1.25rem;
    padding: 0.5rem;
  }

.logo-icon {
    max-width: 50px;
}

.nav-link, a.nav-link, a.nav-link:link, a.nav-link:visited, a.nav-link:active{

    padding: 0.25rem 0.5rem;
    margin: 0.9rem 0.5rem 0rem;
    font-size:1.45rem;
    background: none;
    color: white !important;
    border-radius: 5px;
}

.nav-link:hover, .nav-link:focus, a.nav-link:focus, a.nav-link:hover{
    background: #87B55B !important;
    cursor: pointer;
}

/* Hero Section Enhanced Styling */
.hero {
    background-image: url('index-roof.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: unset;
    background-repeat: no-repeat;
    position: relative;
    margin-top: -5rem;
    perspective: 1280px;
}

.hero-overlay {
    background: radial-gradient(circle, rgba(70, 70, 70, 0.85), rgba(20, 20, 20, 0.85));
}

/* Scroll Trigger Animations */
.section-title {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

#about{
    background-color: #555;
    color: #eee;
    opacity: 0;
}

#about .left{
    line-height: 170% !important;
}

.services-grid > div,
.project-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

#more-row{
    margin: 0px;
    padding: 0px;
    height: 100%;
    overflow: hidden;
}

.service-box{
    min-height: 12rem;
    padding: 0.25rem;
}

.service-box:hover{
    cursor: pointer;
    border-color: var(--tectumgreen);
}

.service-box:hover h3{
    color: #777;
}

.service-box:hover .glyphicon{
    transform: scale(1.2);
    color: var(--lightgreen);
    transition-duration: 0.3s;
}

.service-box h3{
    color: #505050;
    margin: 0px;
    padding: 0px;
    font-size: 1.5rem;
}

.anfrage-kl{
    padding: 0.3rem 0.5rem;
    margin: 0.5rem auto 0rem;
    font-size: 1rem;
}

/* Hover Effects */
.highlight strong {
    display: block;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    margin-bottom: 1rem;
    background: #fff;
    padding: 0.5rem;
    border: 1px solid #ccc;
    color: #333;
    font-size: 1rem;
    display: block;
    width: 100%;
    max-width: 50rem;
}

.service-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.service-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-15px) rotate(3deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project-image {
    transition: transform 0.6s ease, filter 0.6s ease;
}

.project-image:hover {
    transform: scale(1.1);
    filter: brightness(110%) contrast(110%);
}

.gallery-item {
    overflow: hidden;
}

/* Scroll Indicator Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator svg {
    animation: bounce 1.5s infinite;
}



#tectum-header-logo-long{
    max-width: 20rem;
    margin-top: 0.75rem;
    vertical-align: middle;
}

#tectum-header-logo-short{
    max-width: 7.5rem;
    vertical-align: middle;
}

@media (max-width: 767px) {
    #mobiletrigger {
        display: inline-block !important;
    }

    header {
        position: relative;
        z-index: 10; /* Header bleibt über allem */
    }
    

    #topnav {
        position: fixed;
        left: 0;
        top: 5rem;
        width: 100%;
        background: rgba(60, 60, 60, 0.95);
        opacity: 0;
        pointer-events: none; 
        display: none;
        transition: all 0.5s ease;
    }

    #topnav.visible {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .top-container{
        max-width: 100% !important; 
    }

    #more-row{
        display: none;
        height: 0%;
    }

    #tectum-header-logo-long{
        display: none  !important;
    }
    #tectum-header-logo-short{
        display: inline-block !important;
    }

    .nav-link{
        padding: 1rem;
        margin: 0px;
        border-radius: 0px !important;
    }
    
    
}

@media (min-width: 768px) {
    #mobiletrigger {
        display: none !important;
    }
    #topnav {
        display: flex !important;
    }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .top-container{
        max-width: 1280px !important; 
    }

    #more-row{
        display: contents !important; 
        height: 100% !important; 
    }

    #more-button{
        display: none !important;  
    }


    #tectum-header-logo-long{
        display: inline-block  !important;
    }
    #tectum-header-logo-short{
        display: none !important;
    }
    
}

@media (max-width: 766.98px) {
    #mobiletrigger {
        display: inline-block !important;
    }
    #topnav {
        position: fixed;
        left: 0;
        top: 5rem;
        width: 100%;
        background: rgba(60,60,60,0.95);
        display: none;
        opacity: 0;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .top-container{
        max-width: 100% !important; 
    }

    #more-row{
        display: none; 
        height: 0%; 
    }

    #tectum-header-logo-long{
        display: none  !important;
    }
    #tectum-header-logo-short{
        display: inline-block !important;
    }
}

@media (min-width: 767px) {
    #mobiletrigger {
        display: none !important;
    }
    #topnav, #topnav.visible {
        display: flex !important;
        opacity: 1 !important;
    }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .top-container{
        max-width: 1280px !important; 
    }

    #more-row{
        display: none;  
    }

    #tectum-header-logo-long{
        display: inline-block  !important;
    }
    #tectum-header-logo-short{
        display: none !important;
    }
}