:root {
    --primary-color: #2264d1;
    --secondary-color: #64748b;
    --accent-color: #1b4b91;
    --light-bg: #f8fafc;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    padding-top: 80px;
    line-height: 1.6;
    color: #334155;
    background-color: var(--light-bg);
}

.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 0;
    min-height: 80vh;
}

.hero img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
    filter: drop-shadow(var(--shadow-lg));
}

.hero img:hover {
    transform: scale(1.15);
}

.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
    padding: var(--spacing-sm) 0;
}

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(34, 100, 209, 0.1);
    color: var(--primary-color) !important;
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 16px;
    margin: 0 auto var(--spacing-sm);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8rem 2rem;
    font-weight: 600;
}

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

.btn-outline-primary {
    background-color: white;
    border-color: var(--primary-color);
  	color: var(--primary-color);
    padding: 0.8rem 2rem;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.language-switch .btn-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.language-switch .btn-link:hover {
    background-color: rgba(34, 100, 209, 0.1);
}

.language-dropdown {
    position: relative;
}

.language-dropdown .btn {
    color: var(--secondary-color);
    font-weight: 500;
}

.tech-capabilities {
    padding: 0;
    list-style: none;
}

.tech-capabilities li {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-capabilities li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(34, 100, 209, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(34, 100, 209, 0.25);
}

.team-member {
    font-size: 0.95rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.team-member strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

section {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    padding: 2rem 0;
}

.partner-logo {
    width: 140px;
    height: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%) brightness(1.1);
    opacity: 0.85;
}

.partner-link {
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    height: 100%;
    position: relative;
    isolation: isolate;
}

.partner-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.7;
    color: rgb(43, 43, 43);
}

.logo-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.logo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}
.user-icon-desktop:hover,
.user-icon-mobile:hover {
    stroke: var(--primary-color);
    transition: stroke 0.3s ease;
}


.logo-card:hover .partner-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

.logo-card:hover .partner-name {
    opacity: 1;
    transform: translateY(5px);
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: rgb(43, 43, 43);
}

.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.symbolic-text {
    font-size: 0.7rem;
    opacity: 0.6;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .symbolic-text {
        font-size: 0.65rem;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
    }
}

/* Mobile specific adjustment */
@media (max-width: 768px) {
    .hero-image small {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        padding: 0 1rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* General spacing adjustments */
    section {
        margin-bottom: 0;
        padding: 2rem 0;
    }

    .py-5 {
        padding: 1.5rem 0 !important;
    }

    /* Hero section adjustments */
    .hero {
        padding: 1rem 0 2rem 0;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-image {
        display: flex;
        justify-content: center;
        margin: 2rem auto;
    }

    .hero-image img {
        max-width: 80%;
        margin: 0 auto;
    }

    /* Section title spacing */
    h2.text-center {
        margin-bottom: 1.5rem;
        font-size: 1.75rem;
    }

    /* Card and feature spacing */
    .feature-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .accordion-item {
        margin-bottom: 0.75rem;
    }

    /* Contact section adjustments */
    .card-body {
        padding: 1.25rem !important;
    }

    /* Partner section adjustments */
    .partner-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .logo-card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        max-width: 200px;
        width: 100%;
    }

    .partner-logo {
        width: 60px;
        height: auto;
    }

    .partner-name {
        font-size: 0.9rem;
    }

    /* Row gap adjustments */
    .row.g-4 {
        gap: 0.75rem !important;
    }

    /* Disable all partner logo hover effects */
    .logo-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .logo-card:hover .partner-logo {
        filter: none;
        opacity: 1;
        transform: none;
    }

    .logo-card:hover .partner-name {
        transform: none;
        opacity: 1;
        background: none;
        color: rgb(43, 43, 43);
    }

    .partner-logo {
        filter: none;
        opacity: 1;
    }

    .partner-link::before {
        display: none;
    }

    /* Improved dropdown menu */
    .language-dropdown {
        width: 100%;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 0.5rem;
    }

    .dropdown-menu {
        position: static !important;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 0.5rem;
        margin-top: 0.25rem;
        background: var(--light-bg);
    }

    .dropdown-item {
        text-align: center;
        padding: 0.75rem;
        border-radius: 6px;
    }

    .dropdown-item:hover {
        background: rgba(34, 100, 209, 0.1);
    }

    /* Special case for odd number of partners */
    .partner-logos .logo-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 160px;
    }
}

/* Small screens (580px - 767px) */
@media (min-width: 580px) and (max-width: 767px) {
    .partner-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }

    .logo-card {
        max-width: none;
        width: 100%;
        padding: 0.75rem;
    }

    .partner-logo {
        width: 80px;
    }

    /* Center last card if uneven */
    .partner-logos .logo-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 200px;
    }
}

/* iPad/Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .partner-logos {
        gap: 1rem;
        padding: 0.5rem;
    }

    .logo-card {
        padding: 1rem;
        transition: none;
    }

    /* Remove hover effects */
    .logo-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .logo-card:hover .partner-logo {
        filter: none;
        opacity: 1;
        transform: none;
    }

    .partner-logo {
        width: 80px;
        filter: none;
        opacity: 1;
    }

    .partner-name {
        font-size: 0.9rem;
        opacity: 1;
    }

    /* Center last card if uneven */
    .partner-logos .logo-card:last-child:nth-child(3n + 1) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 250px;
    }

    /* Language dropdown styling for tablet */
    .language-dropdown {
        width: 100%;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 0.5rem;
    }

    .dropdown-menu {
        position: static !important;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 0.5rem;
        margin-top: 0.25rem;
        background: var(--light-bg);
    }

    .dropdown-item {
        text-align: center;
        padding: 0.75rem;
        border-radius: 6px;
    }

    .dropdown-item:hover {
        background: rgba(34, 100, 209, 0.1);
    }

    .language-dropdown .btn {
        width: 100%;
        text-align: left;
    }
}

/* Very small screens (below 580px) */
@media (max-width: 579px) {
    .partner-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }

    .logo-card {
        width: 100%;
        max-width: none;
        padding: 0.75rem;
    }

    .partner-logo {
        width: 60px;
    }

    /* Center last card if uneven */
    .partner-logos .logo-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 180px;
    }
}

.legal-notice {
    opacity: 0.8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-copyright {
    opacity: 0.8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-body p {
    line-height: 1.8;
}

/* Tablet/iPad specific styles */
@media (min-width: 768px) and (max-width: 991px) {
    .partner-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1rem;
    }

    .logo-card {
        width: 100%;
        padding: 1rem;
    }

    .partner-logo {
        width: 80px;
    }

    /* Center last card if uneven */
    .partner-logos .logo-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 220px;
    }

    /* Remove hover effects on tablet */
    .logo-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .logo-card:hover .partner-logo {
        filter: none;
        opacity: 1;
        transform: none;
    }

    .partner-name {
        font-size: 0.9rem;
    }

    .hero-image img {
        max-width: 70%;
        margin: 0 auto;
        display: block;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }

    /* Language dropdown styling for tablet */
    .language-dropdown {
        width: 100%;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 0.5rem;
    }

    .dropdown-menu {
        position: static !important;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 0.5rem;
        margin-top: 0.25rem;
        background: var(--light-bg);
    }

    .dropdown-item {
        text-align: center;
        padding: 0.75rem;
        border-radius: 6px;
    }

    .dropdown-item:hover {
        background: rgba(34, 100, 209, 0.1);
    }

    .language-dropdown .btn {
        width: 100%;
        text-align: left;
    }
}

/* Specific fix for 768px breakpoint */
@media (width: 768px) {
    .partner-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .logo-card {
        width: 100%;
        max-width: none;
    }

    .partner-logo {
        width: 80px;
    }

    /* Center last card if uneven */
    .partner-logos .logo-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 200px;
    }
}

/* Standard: Account-Link sichtbar */
.nav-item.account-mobile {
    display: block;
}

/* Ab 992px (Bootstrap lg) verstecken */
@media (min-width: 992px) {
    .nav-item.account-mobile {
        display: none !important;
    }
}

/* Optional: Falls bei 1010px komisch, absichern */
@media (min-width: 1000px) and (max-width: 1020px) {
    .nav-item.account-mobile {
        display: none !important;
    }
}
