/* 
         * Color Palette:
         * Background: #FFFFFF (White)
         * Banner Gradient: #00A599 to #008479 (STACK.nrw Green)
         * Text: #333333 (Dark Grey)
         * Border: #E0E0E0 (Light Grey)
        */

        body {
            background-color: #FFFFFF;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
            color: #333333;
            margin: 0;
            padding: 0;
        }
        
        .container {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .header {
            background-color: #FFFFFF;
            border-bottom: 1px solid #EAEAEA;
            padding: 20px 0;
        }
        
        .header .container {
             display: flex;
             justify-content: flex-end;
             align-items: center;
             gap: 40px; 
        }

        .header .container img {
            height: 80px;
        }

        .banner {
            position: relative;
            overflow: hidden;
            background-color: #00A599;
            background-image: linear-gradient(135deg, #00A599, #008479);
            color: #FFFFFF;
            padding: 70px 0;
        }
        
        .banner-svg-graphic {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('https://atlas.nrw/images/atlas-rec.svg');
            background-repeat: repeat; 
            background-size: auto; 
            opacity: 0.4;
            z-index: 1; 
        }
        
        .banner-content {
            position: relative;
            z-index: 2;
        }

        .banner h1 {
            font-size: 3.5rem;
            font-weight: 700;
            letter-spacing: 1px;
            margin: 0 0 10px 0;
            color: #FFFFFF;
        }

        .banner h1 .domain {
            color: rgba(255, 255, 255, 0.8);
        }

        .banner h2 {
            font-size: 1.5rem;
            font-weight: 300;
            margin: 0;
        }

        .main-content {
            padding: 50px 0;
        }
        
        .content-section {
            margin-bottom: 40px;
        }
        
        .content-section:last-child {
            margin-bottom: 0;
        }

        .content-section h3 {
            font-size: 1.6rem;
            margin-top: 0;
            margin-bottom: 15px;
        }
        
        .content-section p {
            font-size: 1.1rem;
            line-height: 1.7;
            margin: 0;
        }

        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 30px;
            margin-top: 20px;
        }
        
        .project-grid-large {
            grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        }

        .project-tile {
            text-align: center;
        }

        .project-tile .logo-container {
            background-color: #F7F7F7;
            border: 1px solid #E0E0E0;
            border-radius: 8px;
            padding: 20px;
            height: 120px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 15px;
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }

        .project-tile img {
            max-width: 100%;
            max-height: 80px;
        }

        .project-tile h4 {
            font-size: 1.1rem;
            margin: 0;
            font-weight: 600;
        }

        /* New styles for the large tile layout */
        .project-tile.large-format {
            display: flex;
            align-items: center;
            text-align: left;
            background-color: #F7F7F7;
            border: 1px solid #E0E0E0;
            border-radius: 8px;
            padding: 25px;
            text-decoration: none; 
            color: inherit;       
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }

        .project-tile.large-format .logo-container {
            background-color: transparent;
            border: none;
            padding: 0;
            padding-right: 25px; /* Spacing before the vertical line */
            height: auto;
            margin-bottom: 0;
            flex-shrink: 0;
            width: 150px;
        }
        
        .project-tile.large-format .tile-content {
            padding-left: 25px; /* Spacing after the vertical line */
            border-left: 1px solid #E0E0E0; /* The vertical divider */
        }
        
        .project-tile.large-format h4 {
            margin-top: 0;
            margin-bottom: 8px; /* Space between title and description */
        }
        
        .project-tile.large-format p {
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0;
        }

        a.project-tile {
            display: block;
            text-decoration: none;
            color: inherit;
        }

        a.project-tile:not(.large-format):hover .logo-container {
            box-shadow: 0 0 0 2px #00A599;
        }

        a.project-tile.large-format:hover {
            box-shadow: 0 0 0 2px #00A599;
        }


        hr {
            border: 0;
            height: 1px;
            background-color: #E0E0E0;
            margin: 50px 0;
        }

        .project-reference {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .project-reference img {
            height: 240px;
            flex-shrink: 0;
        }
        
        .project-reference a.button {
            display: inline-block;
            background-color: #00A599;
            color: #FFFFFF;
            padding: 12px 25px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: opacity 0.3s;
            margin-top: 20px;
        }
        
        .project-reference a.button:hover {
            opacity: 0.85;
        }

        footer {
            text-align: center;
            padding: 40px 20px;
            font-size: 1rem;
            background-color: #F7F7F7;
            border-top: 1px solid #EAEAEA;
            color: #555555; /* Added color for better consistency */
        }
        
        footer a {
            color: #555555;
            text-decoration: none;
        }
        
        footer a:hover {
            text-decoration: underline;
            color: #00A599;
        }

        @media (max-width: 768px) {
            .header .container {
                /* Center the logos instead of pushing them to the right */
                justify-content: center;
                
                /* Reduce the space between logos on smaller screens */
                gap: 20px; 
            }

            .header .container img {
                /* Make the logos smaller to fit on a mobile screen */
                height: 50px; 
            }
            .project-reference {
                /* Stack the layout vertically */
                flex-direction: column;
                
                /* This centers the two main blocks (the text block and the image) 
                within the container, but does NOT affect the text inside them. */
                align-items: center; 
            }
            
            .project-reference img {
                /* Move the image to appear before the text on mobile */
                order: -1; 
                
                /* Add space between the image and the text block below it */
                margin-bottom: 30px; 
                
                /* Optionally, make the image a bit smaller for mobile */
                height: 180px; 
            }
        }

        .banner h2 {
            font-size: 1.5rem;
            font-weight: 300;
            margin: 0;
        }
        
        .language-switcher {
            display: flex;
            justify-content: flex-end; /* Aligns flags to the right */
            align-items: center;
            gap: 12px;                 /* Creates space between the flags */
            padding-top: 25px;         /* Adds space between the banner and the flags */
        }

        .lang-link {
            display: block;
            width: 22px;
            opacity: 0.55;
            transition: opacity 0.2s ease-in-out;
            /* This is the key fix: removes extra vertical space from the link container */
            line-height: 0; 
        }

        .lang-link:hover {
            opacity: 1;
        }

        .lang-link.active {
            opacity: 1;
            pointer-events: none;
            cursor: default;
        }

        .lang-link img {
            width: 100%;
            height: auto;
            display: block;
            border: 0px solid #E0E0E0;
            border-radius: 4px;
        }
