        @font-face {
            font-family: 'Ubuntu';
            src: url('../font/ubuntu-regular.eot');
            src: url('../font/ubuntu-regular.eot?#iefix') format('embedded-opentype'),
                 url('../font/ubuntu-regular.woff') format('woff'),
                 url('../font/ubuntu-regular.ttf') format('truetype'),
                 url('../font/ubuntu-regular.svg#ubunturegular') format('svg');
            font-weight: normal;
            font-style: normal;
        }

        :root {
            --bg-color: #ffffff;
            --text-color: #000000;
            --heading-color: #2c3e50;
            --link-color: #3465d8;
            --link-visited-color: #555555;
            --link-hover-color: #2980b9;
            --shadow-color: rgba(0, 0, 0, 0.1);
            --header-bg-color: rgba(255, 255, 255, 0.8);
            --header-text-color: #000000;
            --border-color: #444444;

        }


        @media (prefers-color-scheme: dark) {
            :root {
                --bg-color: #1a1a1a;
                --text-color: #e0e0e0;
                --heading-color: #ffffff;
                --link-color: #1CB9FA;
                --link-visited-color: #AAAAAA;
                --link-hover-color: #4fa8d5;
                --shadow-color: rgba(255, 255, 255, 0.1);
                --header-bg-color: rgba(0, 0, 0, 0.8);
                --header-text-color: #ffffff;
                --border-color: #888888;
                --focus-color: #0071e3;
                --error-color: #ff8888;
            }
        }

        body {
           font-family: 'Ubuntu', Arial, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--bg-color);
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        
a:link { color: var(--link-color); }
a:visited { color: var(--link-visited-color); }

        
                
header {
    min-height: 270px; /* Garantiert eine Mindesthöhe */
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 40px 20px; /* Zusätzliches Padding für mehr Raum */
    background-image: url('../media/background4.png');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}
        .logo {
           width: 100px;
            height: auto;
            margin-right: 20px;
            background-color: var(--bg-color);
            padding: 5px;
            border-radius: 5px;
        }
       h1 {
            color: var(--header-text-color);
            background-color: var(--header-bg-color);
            padding: 10px;
            border-radius: 5px;
            margin: 0;
        }
        h2, h3 {
            color: var(--heading-color);
        }
        main {
            flex: 1;
        }
        .app-links {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 30px;
        }
        .app-link img {
            height: 40px;
            width: auto;
        }
        .app-link:focus {
            outline: 3px solid #f39c12;
        }
        .gallery {
            list-style-type: none;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 20px;
            margin-top: 20px;
        }
        .gallery li {
            flex: 0 0 calc(16.666% - 17px);
            display: flex;
            flex-direction: column;
        }
        .gallery-item {
            display: flex;
            flex-direction: column;
            height: 100%;
            justify-content: flex-end;
        }
        .gallery h3 {
            margin: 0 0 10px 0;
            text-align: center;
            font-size: 0.8em;
            min-height: 2.4em; /* Anpassen, um Platz für zwei Zeilen Text zu gewährleisten */
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .gallery img {
            width: 100%;
            max-width: 150px;
            height: auto;
            aspect-ratio: 1/2;
            object-fit: cover;
            border-radius: 5px;
            box-shadow: 0 2px 4px var(--shadow-color);
            cursor: pointer;
            transition: transform 0.3s ease;
            margin: 0 auto; /* Zentriert das Bild horizontal */
        }
        .gallery img:hover, .gallery img:focus {
            transform: scale(1.05);
        }
        footer {
            margin-top: 40px;
            border-top: 1px solid var(--text-color);
            padding-top: 20px;
        }
        .legal-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin-top: 10px;
        }
        .legal-links a {
            color: var(--link-color);
            text-decoration: none;
            transition: color 0.3s;
            white-space: nowrap;
        }
        .legal-links a:hover, .legal-links a:focus {
            color: var(--link-hover-color);
            text-decoration: underline;
        }
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .overlay img {
            max-height: 75vh;
            width: auto;
            object-fit: contain;
        }

        @media (max-width: 1200px) {
            .gallery li {
                flex: 0 0 calc(20% - 16px);
            }
            .gallery img {
                max-width: 110px;
            }
        }

        @media (max-width: 900px) {
            .gallery li {
                flex: 0 0 calc(25% - 15px);
            }
            .gallery img {
                max-width: 90px;
            }
        }

        @media (max-width: 700px) {
            .gallery li {
                flex: 0 0 calc(33.333% - 14px);
            }
            .gallery img {
                max-width: 60px;
            }
        }

        @media (max-width: 640px) {
            .gallery li {
                flex: 0 0 calc(33.333% - 14px);
            }
            .gallery img {
                max-width: 60px;
            }
        }

        @media (max-width: 480px) {
            .gallery li {
                flex: 0 0 calc(50% - 10px);
            }
            .gallery img {
                max-width: 50px;
            }
        }

        @media (max-width: 320px) {
            .gallery li {
                flex: 0 0 100%;
            }
            .gallery img {
                max-width: 40px;
            }
        }