/* Custom styles for Goblin Coders GmbH */

/* General styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 66px;
}

/* Navbar customization */
.navbar {
    background-color: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar.fixed-top {
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: #333 !important;
}

.navbar-brand img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: #666 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #000 !important;
}

/* Hero section */
header {
    background-color: #f8f9fa;
    padding: 6rem 0;
    border-bottom: 1px solid #eee;
}

header h1 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 120px;
}

/* Section spacing */
section {
    padding: 5rem 0;
    scroll-margin-top: 5rem;  /* Add space for sticky header when scrolling to anchors */
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

/* Card styling */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-title {
    color: #333;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* Button styling */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-light {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-light:hover {
    background-color: #f8f9fa;
    color: #000;
    border-color: #ccc;
    transform: translateY(-2px);
}

/* Footer styling */
footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 3rem 0; /* Increased padding */
    color: #666; /* Default text color for footer */
}

footer h5 {
    color: #333; /* Darker color for headings */
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

footer p {
    margin-bottom: 0.5rem; /* Space between paragraphs */
    line-height: 1.6;
}

footer a {
    color: #0d6efd; /* Standard link blue */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .text-muted {
    color: #888 !important; /* Lighter muted text */
}

.footer-logo {
    /* Style for the larger logo in the footer */
    max-width: 100px; /* Prevent logo from becoming too large */
}

/* Remove specific styles for now-deleted sections */
/* #contact styles removed */
/* #impressum styles removed */

/* Responsive adjustments */
@media (max-width: 991px) {
    header .row {
        flex-direction: column-reverse;
    }

    header .col-lg-6 {
        text-align: center !important;
    }

    .hero-logo {
        margin-bottom: 2rem;
        max-height: 100px;
    }

    header h1 {
        font-size: 1.75rem;
    }

    footer {
        text-align: center; /* Center text on smaller screens */
    }

    footer .text-lg-end {
        text-align: center !important; /* Ensure logo/copyright is centered */
    }

    .footer-logo-copyright .d-lg-flex {
        justify-content: center !important; /* Center logo and text block */
        flex-direction: column; /* Stack logo and text vertically */
    }
    
    .footer-logo {
        margin-right: 0 !important; /* Remove right margin */
        margin-bottom: 1rem !important; /* Add bottom margin */
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        margin-right: 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-collapse {
        position: fixed;
        top: 66px;  /* Match body padding-top */
        left: 0;
        right: 0;
        background-color: white;
        padding: 0;  /* Removed padding */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: calc(100vh -66px);
        overflow-y: auto;
        transition: all 0.3s ease;
    }

    .navbar-collapse:not(.show) {
        display: none;
    }

    .navbar-nav {
        padding: 0;  /* Removed padding */
    }

    .nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;  /* Reduced vertical padding */
        display: block;
        text-align: center;
        font-size: 1.1rem;
    }

    .nav-link:hover {
        background-color: #f8f9fa;
    }

    .language-switcher {
        margin: 0;
        justify-content: center;
        padding: 0.5rem;
        border-top: none;
    }

    .nav-item.language-switcher {
        border-bottom: none;
    }

    .language-switcher .nav-link {
        padding: 0.5rem 1rem !important;
        display: inline-block;
    }

    .nav-separator {
        color: #ddd;
    }

    /* Animation for menu items */
    .navbar-collapse.show .nav-item {
        animation: slideIn 0.3s ease forwards;
        opacity: 0;
        transform: translateY(10px);
    }

    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.5s; }
}

@media (max-width: 768px) {
    header {
        padding: 3rem 0;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* About section */
#about h2 {
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    #about .col-lg-6:last-child {
        text-align: center;
        margin-top: 3rem;
    }

    #about h2 {
        margin-bottom: 2.5rem;
    }

    #about .lead {
        text-align: left;
    }
}

.profile-image {
    border: 5px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Services section */
.service-area {
    padding: 5rem 0;
}

.service-area:nth-child(even) {
    background-color: #f8f9fa;
}

.service-area h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.service-area .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.service-area ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.service-area li {
    margin-bottom: 0.75rem;
    position: relative;
}

.workshop-type {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.workshop-type:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.workshop-type h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-area {
        padding: 3rem 0;
    }

    .service-area h3 {
        font-size: 1.75rem;
    }

    .workshop-type {
        padding: 1.5rem 0;
    }

    .workshop-type h4 {
        font-size: 1.25rem;
    }
}

/* Services Section */
.programming-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
}

.programming-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.programming-card .card-body {
    padding: 2.5rem;
}

.programming-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.programming-card .emoji-icon {
    font-size: 2rem;
    line-height: 1;
}

.programming-card .lead {
    color: #2C3E50;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.programming-card ul {
    padding-left: 1.25rem;
    margin: 1.5rem 0;
}

.programming-card li {
    margin-bottom: 1rem;
    position: relative;
    color: #505965;
}

.programming-card li::before {
    content: "→";
    position: absolute;
    left: -1.25rem;
    color: #28a745;
}

.programming-card p {
    color: #505965;
    line-height: 1.7;
}

.programming-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.programming-section h2 {
    margin-bottom: 3rem;
    font-weight: 600;
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.language-switcher .nav-link {
    padding: 0.25rem 0.5rem !important;
    font-weight: 500;
}

.language-switcher .nav-link.active {
    color: #000 !important;
    font-weight: 600;
}

.nav-separator {
    color: #ddd;
    user-select: none;
}

@media (max-width: 991px) {
    .language-switcher {
        margin-left: 0;
    }
} 