/* BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #B89D71;
    --text-color: #333;
    --background-color: #fff;
    --card-bg-color: #f5f5f5;
    --accent-color: rgba(184, 157, 113, 0.2);
    --border-radius: 8px;
    --standard-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    font-weight: normal;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    font-weight: normal;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
    font-weight: normal;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

main {
    padding-top: 0;
    flex: 1;
}

main section:first-child {
    margin-top: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: none;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content;
    white-space: nowrap;
    gap: 0.5rem; /* Abstand zwischen Icon und Text */
}

.btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Icon-spezifische Styles für Buttons */
.btn i {
    flex-shrink: 0; /* Verhindert, dass Icons schrumpfen */
    line-height: 1; /* Bessere Icon-Ausrichtung */
}

/* Sicherstellen, dass Icons in Buttons nicht von text-transform betroffen sind */
.btn i::before {
    text-transform: none !important;
}

/* Fallback für Shopping Cart Icon falls Phosphor Icons nicht lädt */
.ph-shopping-cart::before {
    content: "🛒"; /* Unicode Shopping Cart Emoji als Fallback */
    font-style: normal;
    font-weight: normal;
    font-size: 1em;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    border-color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--text-color);
    color: white;
}

input, 
textarea {
    border-radius: var(--border-radius);
}



/* NAVIGATION */
header {
    position: relative;
    width: 100%;
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Wenn die Seite gescrollt wurde */
header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateY(0);
}

/* Wenn die Navigation ausgeblendet werden soll */
header.nav-hidden {
    transform: translateY(-100%);
}

nav {
    padding: 0 2rem;
    width: 100%;
}

nav ul.nav-menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu Styles */
.hamburger-button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-radius: var(--border-radius);
    gap: 0;
}

.nav-menu li.hamburger {
    text-align: left;
}

.nav-menu li.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu li.language-switch {
    text-align: right;
}

/* Abstand zwischen Menü Items reduzieren */
.nav-menu li {
    padding: 8px 0;
    text-align: center;
}

.menu-items {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem 0;
    box-shadow: var(--standard-shadow);
    text-align: center;
}

.menu-items.active {
    display: block;
}

.menu-items li {
    padding: 0.5rem 2rem;
    list-style: none;
    text-align: center;
}

.menu-items a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    display: block;
}

/* Basis-Style: Sprachbuttons im Menü standardmässig ausblenden */
.menu-items .language-switch {
    display: none;
}


/* Logo Styles */
.logo {
    margin-right: 4rem;
}

.logo svg {
    width: 140px;
    height: 35px;
}

.logo a {
    text-transform: none;
}

/* Language Switcher */
.language-switch {
    display: flex;
    justify-content: center;
    margin-left: auto;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid #B89D71;
    border-radius: var(--border-radius);
    color: #333;
    padding: 4px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    margin: 0 0.2rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: #B89D71;
    color: white;
    border-color: #B89D71;
    -webkit-tap-highlight-color: transparent;
}

.lang-btn:focus {
    outline: none;
    box-shadow: none;
}


/* ABOUT SECTION */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f5f5f5;
}

.hero-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.highlight {
    color: var(--primary-color);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: normal;
    letter-spacing: 0.5px;
}



/* OFFER SECTION */
.offer-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.offer-section h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.offer-intro {
    max-width: 950px;
    margin: 0 auto 3rem;
    text-align: center;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 2rem 0 4rem;
}

.offer-card {
    background: var(--card-bg-color);
    border-radius: 8px;
    padding: 1rem;
}

.offer-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.offer-header h3 {
    margin: 0;
    line-height: 1.2;
    min-height: calc(1.2em * 2);
    max-height: calc(1.2em * 2);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.offer-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.interim-section {
    margin: 4rem 0 0;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1rem;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.position-item {
    color: var(--text-color);
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--standard-shadow);
}

/* 3-Spalten-Layout in offer-content */
.offer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 1rem;
}

.offer-columns p {
    margin-bottom: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .offer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .offer-columns {
        grid-template-columns: 1fr;
    }
}


/* TRUSTED BY SECTION */
#trusted-by {
    background-color: var(--card-bg-color);
    width: 100%;
}

.trusted-by-section {
    padding: 4rem 2rem;
    margin: 0 auto;
}

.trusted-by-section h2 {
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-tile {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.logo-tile img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}


/* PORTFOLIO SECTION */
#portfolio {
    padding: 4rem 1rem;
}

#portfolio h2,
#contact h2 {
    text-align: center;
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    /* grid-template-columns: 1fr; */
    /* width: 95%;	*/
}

.portfolio-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #f5f5f5;
    border-left: 1px solid #f5f5f5;
    border-right: 1px solid #f5f5f5;
}

.portfolio-item img {
    width: 100%;
	height: 300px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.portfolio-info {
    padding: 2rem 1rem;
    background-color: #f5f5f5;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
	width: 100%;
	border-left: none;
	margin-left: 0;
}

.portfolio-info h3 {
	font-weight: normal;
}
.portfolio-info p {
	line-height: 1.4;
}

.portfolio-info .button-group {
    margin-top: 2rem;
}



/* CONTACT SECTION */
#contact {
    padding: 3rem 2rem;
    text-align: center;
    background: #f8f9fa;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 2.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary-color);
}



/* FOOTER */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--accent-color);
    margin-top: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    flex: 1;
}

/* Scroll to top Button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--text-color);
    transform: translateY(-3px);
}

.scroll-to-top i {
    font-size: 24px;
}



/* PRIVACY PAGE STYLES*/
.privacy-content,
.tako-content {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 40px 1rem;
}


.tako-content {
    max-width: 1200px !important;
}

/* Features Grid - responsive 2/1 Spalten */
.features-grid {
    grid-template-columns: repeat(2, 1fr);
}

.privacy-section,
.tako-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2,
.tako-section h2 {
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.privacy-section p,
.tako-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-section ul,
.tako-section ul {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

.privacy-section ol,
.tako-section ol {
    margin-bottom: 1rem;
    margin-left: 0;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.privacy-section li,
.tako-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-section a,
.tako-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.privacy-section a::after,
.tako-section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.privacy-section a:hover::after,
.tako-section a:hover::after {
    width: 100%;
}

.btn-tako {
    background-color: var(--text-color);
    border-color: var(--text-color);
    color: var(--background-color) !important;
}

.btn-tako:hover,
.tako-section a:hover .btn-tako{
    background: var(--background-color);
    color: var(--text-color) !important;
    text-decoration: none !important;
}

/* Verhindert Underline bei btn-tako */
.btn-tako::after,
.btn-tako:hover::after {
    display: none !important;
}

.hide {
    display: none;
}



/* Lightbox styles */
.lightbox-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

#lightbox-overlay {
    backdrop-filter: blur(4px);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-content-container {
    display: none;
    max-width: 50%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: var(--text-color);
}

.lightbox-content-inner {
    max-height: calc(90vh - 2rem);
    padding: 1rem;
    overflow-y: auto;
}

.lightbox-content-container h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.lightbox-content-container h2 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.lightbox-content-container ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.lightbox-content-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.lightbox-content-container strong {
    color: var(--primary-color);
    font-weight: bold;
}

/* Preserve original HTML formatting for privacy/terms pages */
.lightbox-content-container.preserve-html h1,
.lightbox-content-container.preserve-html h2,
.lightbox-content-container.preserve-html h3,
.lightbox-content-container.preserve-html p,
.lightbox-content-container.preserve-html ul,
.lightbox-content-container.preserve-html li,
.lightbox-content-container.preserve-html strong {
    all: revert;
    color: var(--text-color);
}

.lightbox-content-container.preserve-html h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    font-weight: normal;
}

.lightbox-content-container.preserve-html h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 3rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    font-weight: normal;
}

.lightbox-content-container.preserve-html h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
    font-weight: normal;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 42px; /* 30% kleiner als 60px */
    cursor: pointer;
    user-select: none;
    background: var(--primary-color);
    border-radius: 50%;
    width: 56px; /* 30% kleiner als 80px */
    height: 56px; /* 30% kleiner als 80px */
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: #000000;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    color: white; /* Pfeil bleibt immer weiß */
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: none;
    z-index: 10001;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightboxImageScale {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

#lightbox-overlay.show {
    animation: lightboxFadeIn 0.3s ease;
}

#lightbox-image.show {
    animation: lightboxImageScale 0.3s ease;
}

.lightbox-content-container.show {
    animation: lightboxImageScale 0.3s ease;
}




/* MEDIA QUERIES, RESPONSIVE DESIGN */
@media (max-width: 480px) {
    nav ul {
        gap: 1rem;
    }

    p {
        font-size: 1.1rem;
    }

    h2 {
        line-height: 1.2;
    }

    .privacy-content,
    .tako-content {
        padding-top: 50px;
    }

    .privacy-content h1,
    .tako-content h1 {
        font-size: 1.8rem;
        font-weight: normal;
    }

    .privacy-section h2,
    .tako-section h2 {
        font-size: 1.3rem;
        font-weight: normal;
    }

    #portfolio h2 {
        margin: 0 0 2rem 0;
    }

    .logo-container {
        gap: 1rem;
    }
    
    .logo-tile {
        width: 150px;
        height: 75px;
    }

    .store-badges-container {
        gap: 0.3rem;
    }
    
    .store-badge-link img {
        height: 40px !important;
        max-width: 130px !important;
    }
    
    /* Google Play Badge spezifisch */
    .store-badge-link img[alt*="Google Play"] {
        width: 130px !important;
    }
    
    /* App Store Badge spezifisch */
    .store-badge-link img[alt*="App Store"] {
        width: 115px !important;
    }

    /* TAKO-spezifische Mobile Optimierungen */
    .tako-content {
        padding: 20px 1rem 40px !important;
    }

    /* Privacy/CTA Sections auf Mobile weniger Padding */
    .privacy-section {
        padding: 2rem 1rem !important;
        margin: 2rem 0 !important;
    }

    /* Features Grid Optimierung */
    .features-grid > div {
        margin-bottom: 2rem;
    }

    /* Tabelle noch kompakter auf sehr kleinen Screens */
    .tako-section table {
        font-size: 0.8rem;
    }
    
    .tako-section table th,
    .tako-section table td {
        padding: 0.4rem 0.2rem !important;
    }

    /* Mobile Screenshot Container */
    .tako-section div[style*="display: flex"][style*="justify-content: center"] {
        gap: 0.5rem !important;
    }

    /* TAKO Logo auf Mobile */
    .tako-section img[alt="TAKO Logo"] {
        width: 90% !important;
        max-width: 280px !important;
    }

    /* Lightbox auf Mobile optimieren */
    .lightbox-content-container {
        max-width: 95% !important;
        max-height: 95% !important;
        padding: 0.5rem !important;
    }
    
    .lightbox-content-inner {
        padding: 0.5rem !important;
    }

    /* Lightbox Navigation auf Mobile */
    .lightbox-nav {
        width: 42px; /* 30% kleiner als 60px */
        height: 42px; /* 30% kleiner als 60px */
        font-size: 28px; /* 30% kleiner als 40px */
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    .lightbox-counter {
        bottom: 20px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* nur für das Styling der Links im Footer*/
@media (max-width: 600px) {
    .footer-links {
        flex-direction: row;
        align-items: center;
    }
    
    .footer-links a:first-child {
        flex-basis: 100%;
        margin-bottom: 5px;
    }
    
    .footer-links a:not(:first-child) {
        flex: 1;
    }

    .logo-container {
        gap: 1rem;
    }
    
    .logo-tile {
        width: 150px;
        height: 75px;
    }

    .tako-section[style*="flex-wrap: wrap"] {
        flex-direction: column !important;
    }
    
    .tako-section[style*="flex-wrap: wrap"] > div {
        order: unset !important;
        min-width: unset !important;
    }
    
    .tako-section[style*="flex-wrap: wrap"] > div:first-child {
        order: 1 !important;
    }
    
    .tako-section[style*="flex-wrap: wrap"] > div:last-child {
        order: 2 !important;
    }
    
    .store-badges-container {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .store-badge-link img {
        height: 45px !important;
        width: auto !important;
        max-width: 150px !important;
    }
    
    /* Google Play Badge spezifisch */
    .store-badge-link img[alt*="Google Play"] {
        width: 150px !important;
    }
    
    /* App Store Badge spezifisch */
    .store-badge-link img[alt*="App Store"] {
        width: 135px !important;
    }

    /* Tabellen-Optimierung für Mobile */
    .tako-section table {
        font-size: 0.9rem;
    }
    
    .tako-section table th,
    .tako-section table td {
        padding: 0.5rem 0.3rem !important;
    }
    
    .tako-section table th:first-child,
    .tako-section table td:first-child {
        padding-left: 0.5rem !important;
    }

    /* Mobile Screenshots nebeneinander optimieren */
    .tako-section div[style*="display: flex"][style*="justify-content: center"] img {
        width: 45% !important;
        min-width: 120px !important;
    }

    /* Changelog/Privacy/Terms Buttons auf Mobile stapeln */
    #changelog-section {
        text-align: center !important;
    }
    
    #changelog-section .btn {
        display: block !important;
        margin: 0.5rem auto !important;
        width: fit-content;
        max-width: 280px;
    }
}


@media (max-width: 900px) {
    nav {
        padding: 0;
    }

    header {
        padding: 1rem;
    }

    p {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2rem;
        font-weight: normal;
    }

    h2 {
        line-height: 1.2;
    }

    .btn {
        padding: 0.5rem 1rem;
    }

    .highlight {
        font-size: 1.5rem;
        font-weight: normal;
    }

    #portfolio h2 {
        text-align: center;
    }


    /* Hero Section */
    .hero {
        grid-template-columns: 1fr;
        height: auto;
        grid-template-rows: auto auto;  /* Zwei Reihen für Bild und Content */
    }
    .hero-content {
        padding: 1rem;
        order: 2;  /* Verschiebt den Content nach unten */
    }
    .hero-image {
        height: 50vh;
        order: 1;  /* Bringt das Bild nach oben */
    }


    /* Navigation */
    .menu-items .language-switch {
        display: flex;  /* Zeigt die Sprachbuttons im Menü nur auf Mobile */
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    nav ul.nav-menu {
        justify-content: space-between;
    }

    .nav-menu li.logo {
        text-align: center;
    }
    
    .nav-menu li.language-switch {
        text-align: right;
        margin-top: 0;
        height: 100%;
        display: none; /* Versteckt die Sprachbuttons in der Hauptnav */
        align-items: center;
    }

    /* Profile */
    .profile-container {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .profile-image {
        width: 200px;
        height: 200px;
    }
    .profile-text {
        max-width: 95%;
        padding: 1rem;
    }
    .profile-text h1 {
        font-size: 2rem;
    }
    .profile-text h2 {
        font-size: 1.2rem;
    }
    .profile-text p {
        font-size: 0.9rem;
    }


    /* Offer */
    .offer-section h2,
    .offer-section p {
        text-align: left;
    }

    .offer-section {
        padding: 4rem 1rem;
    }

    .offer-card {
        padding: 1rem;
    }

    .offer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
    

    /* Contact */
    #contact {
        padding: 1rem;
    }


    /* Footer */
    footer {
        flex-direction: column;
        gap: 1rem;
    }

    footer p {
        text-align: center;
    }

    /* Features Grid auf Mobile - 1 Spalte */
    .features-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* damit die Darstellung der Nebenprojekte gut aussieht */
@media (min-width: 1100px) {
    #portfolio {
        position: relative;
        z-index: 1;
        margin-top: 0;
        background: var(--background-color);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        width: 95%;
        max-width: 1200px;
        gap: 2rem;
    }
}


/* nur für das Styling der Links im Footer*/
@media (min-width: 900px) and (max-width: 1099px) {

    footer {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        flex: 1;
    }
}


@media (min-width: 900px) and (max-width: 1440px) {
    nav {
        padding: 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero {
        position: relative;
        z-index: 1;
    }

    #portfolio {
        position: relative;
        z-index: 1;
        margin-top: 0;
        background: var(--background-color);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 95%;
        max-width: 1200px;
        gap: 2rem;
    }

    .hero-content {
        padding: 2rem;
    }


    .highlight {
        font-size: 1.6rem;
    }

    .portfolio-item {
        max-width: none;
    }

    .portfolio-info {
        padding: 1.5rem;
    }

    .portfolio-info h3 {
        font-size: 1.3rem;
    }

    .portfolio-info p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .button-group {
        margin-top: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


@media (min-width: 1441px) {
    .hero {
        position: relative;
        z-index: 1;
    }

    #portfolio {
        position: relative;
        z-index: 1;
        margin-top: 0;
        background: var(--background-color);
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1600px;
        gap: 3rem;
    }

    .hero-content {
        padding: 4rem;
    }

    .portfolio-info {
        padding: 2rem;
    }
}


/* STORE BADGE LINKS */
.store-badge-link,
.store-badge-link:link,
.store-badge-link:visited,
.store-badge-link:hover,
.store-badge-link:active,
.store-badge-link:focus {
    display: inline-block !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    border: none !important;
    outline: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    color: inherit !important;
}

.store-badge-link::before,
.store-badge-link::after,
.store-badge-link:hover::before,
.store-badge-link:hover::after,
.store-badge-link:focus::before,
.store-badge-link:focus::after,
.store-badge-link:active::before,
.store-badge-link:active::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.store-badge-link img {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.store-badge-link:hover img,
.store-badge-link:focus img,
.store-badge-link:active img {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Store Badges Container */
.store-badges-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Mobile Store Badge Responsive Styles */
@media (max-width: 600px) {
    .store-badges-container {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .store-badge-link img {
        height: 45px !important;
        width: auto !important;
        max-width: 150px !important;
    }
    
    /* Google Play Badge spezifisch */
    .store-badge-link img[alt*="Google Play"] {
        width: 150px !important;
    }
    
    /* App Store Badge spezifisch */
    .store-badge-link img[alt*="App Store"] {
        width: 135px !important;
    }
}

@media (max-width: 480px) {
    .store-badges-container {
        gap: 0.3rem;
    }
    
    .store-badge-link img {
        height: 40px !important;
        max-width: 130px !important;
    }
    
    .store-badge-link img[alt*="Google Play"] {
        width: 130px !important;
    }
    
    .store-badge-link img[alt*="App Store"] {
        width: 115px !important;
    }
}