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

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --bg: #0d2541;
    --bg-secondary: #1a3a5a;
    --text: #73CAFF;
    --text-secondary: #73CAFF;
    --border: #2a4a6a;
    --success: #10b981;
    --warning: #f59e0b;
    --accent-blue: #4db8ff;
    --accent-red: #ff6b6b;
    --light-text: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 75px;
    padding-bottom: 75px;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 1);
}

body > main {
    flex: 1;
}

/* Header Navigation */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    box-shadow: 14px 14px 20px #050f1a, -14px -14px 20px #153b6866;
    z-index: 900;
    border-bottom: 1px solid #050f1a45;
    width: 100%;
    max-width: 1200px;
    height: 75px;
    border-radius: 14px;
}

.header-content {
    padding-right: 2rem;
    padding-left: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 75px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d2541;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo svg {
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 1));
}

nav a {
    color: #333333;
    text-decoration: none;
    margin: 0 0.4rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}

a {
    color: #73CAFF;
}

nav a:hover {
    color: #73CAFF;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: inline-block;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333333;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 0;
}

.nav-dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: #0d2541;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

#hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

#hamburger span {
    width: 25px;
    height: 3px;
    background: #0d2541;
    margin: 5px 0;
    transition: all 0.3s;
}

#hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

#hamburger.active span:nth-child(2) {
    opacity: 0;
}

#hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

#mobile-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #0d2541;
}

#mobile-nav.active {
    display: flex;
}

#mobile-nav a {
    padding: 1rem 2rem;
    text-decoration: none;
    color: #333333 !important;
    border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    header {
        width: calc(100% - 0px);
        margin: 0 0;
    }

    footer {
        width: calc(100% - 0px);
        margin: 0 0;
    }

    #hamburger {
        display: flex;
    }

    #nav-desktop {
        display: none;
    }

    .header-content {
        justify-content: space-between;
    }

    nav a {
        margin: 0;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f5f5f5;
        margin: 0;
        padding: 0.5rem 0 0.5rem 2rem;
        border-radius: 0;
    }

    .nav-dropdown-menu.active,
    .nav-dropdown-menu[style*="display: block"] {
        display: block !important;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    #mobile-nav .nav-dropdown-menu a {
        padding: 0.5rem 0;
        border-bottom: none;
    }

    .services-grid,
    .team-grid,
    .impressum-grid,
    .datenschutz-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    border-bottom: 2px solid #73CAFF;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

h1 {
    font-size: 2rem;
    margin-top: 0rem;
    margin-bottom: 0.5rem;
    color: #73CAFF;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 1);
    border-bottom: 1px solid #73CAFF;
    padding-bottom: 0.5rem;
}

h2 {
    color: #73CAFF;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 1);
    margin-top: 0rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #73CAFF;
    padding-bottom: 0.5rem;
}

h3 {
    color: #73CAFF;
    margin-top: 0rem;
    border-bottom: 1px solid #73CAFF;
    padding-bottom: 0.5rem;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.timestamp {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card {
    background-color: #0d2541;
    border: 1px solid #050f1a45;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 14px 14px 20px #050f1a, -14px -14px 20px #153b6866;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #73CAFF;
    border-bottom: 2px solid #73CAFF;
    padding-bottom: 0.5rem;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 1);
}

.field-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 1);
}

.field-value {
    font-size: 1rem;
    color: var(--text);
    word-break: break-word;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 1);
}

.field-value.highlight {
    font-weight: 600;
    color: #73CAFF;
    font-size: 1.1rem;
}

.management-item {
    background-color: var(--bg);
    border-left: 3px solid #73CAFF;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

.error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Main Content */
main {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px;
    width: 100%;
}

main > section,
main > div {
    width: 100%;
    max-width: 1200px;
    border: 1px solid #050f1a45;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 14px;
    box-shadow: 14px 14px 20px #050f1a, -14px -14px 20px #153b6866;
}

.hero {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
    height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-logo {
    display: block;
    margin: 0 auto 2rem;
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 1));
    align-self: center;
}

#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    border-bottom: none;
    padding-bottom: 0;
}

.hero p {
    font-size: 1.2rem;
    color: #73CAFF;
    max-width: 600px;
    margin: 0 auto;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.problem-card, .solution-card {
    padding: 2rem;
    border-radius: 8px;
    background: rgba(115, 202, 255, 0.05);
    transition: all 0.3s;
}

.problem-card {
    border-left: 4px solid var(--accent-red) !important;
}

.solution-card {
    border-left: 4px solid var(--text) !important;
}

.problem-card h3, .solution-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text);
}

.problem-card ul, .solution-card ul {
    list-style-position: inside;
    line-height: 1.8;
}

#services {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text);
}

/* ========== Grid Styles ========== */
.services-grid,
.team-grid,
.impressum-grid,
.contact-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.datenschutz-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.datenschutz-card ul {
    margin-left: 1.5rem;
}

/* Card Base Styles & Hover Effects */
.service-card,
.team-card,
.problem-card,
.solution-card,
.impressum-card,
.datenschutz-card {
    background: rgba(115, 202, 255, 0.05);
    border: 1px solid rgba(115, 202, 255, 0.3);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.service-card:hover,
.team-card:hover,
.problem-card:hover,
.solution-card:hover,
.impressum-card:hover,
.datenschutz-card:hover {
    background: rgba(115, 202, 255, 0.1);
    transform: translateY(-5px);
}

/* Contact Button Styles */
.contact-button {
    background: rgba(115, 202, 255, 0.05);
    border: 1px solid rgba(115, 202, 255, 0.3);
    border-radius: 28px;
    transition: all 0.3s;
}

.contact-button:hover {
    background: rgba(115, 202, 255, 0.1);
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.service-card p {
    color: #73CAFF;
    line-height: 1.6;
}

#team {
    margin-bottom: 4rem;
}

.team-grid {
    margin-bottom: 2rem;
}

.team-card {
    text-align: center;
}

.team-card img {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 2px solid rgba(115, 202, 255, 0.3);
}

.placeholder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(115, 202, 255, 0.1);
    border: 2px solid rgba(115, 202, 255, 0.3);
    font-size: 2rem;
    font-weight: bold;
    color: #73CAFF;
}

.team-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.team-card p {
    color: #73CAFF;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.apply-button {
    color: #73CAFF;
    transition: all 0.3s;
}

.apply-button:hover {
    background: rgba(115, 202, 255, 0.15) !important;
    transform: translateY(-2px);
}

.impressum-grid {
    margin-bottom: 2rem;
}


.impressum-card h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.impressum-card p {
    margin: 0;
    line-height: 1.6;
}

#contact {
    margin-bottom: 4rem;
}

.contact-grid {
    margin-top: 2rem;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-info {
    font-size: 1.1rem;
    line-height: 2;
    text-align: left;
}

.contact-info-column {
    align-items: flex-start !important;
}

.contact-info a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    gap: 0.75rem;
    padding: 0.4rem 1rem;
    margin: 15px 0 15px 0;
    color: #73CAFF;
    text-decoration: none;
    text-align: center;
    width: 100%;
    max-width: 230px;
    border-radius: 28px;
}

.button-icon {
    font-size: 1.5rem;
    color: #73CAFF;
}

.button-label {
    color: #73CAFF;
    font-weight: 500;
    font-size: 1.1rem;
}

#about {
    background: rgba(115, 202, 255, 0.05);
    padding: 3rem;
    border-radius: 8px;
    border-left: 4px solid var(--text);
}

#about h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

#about p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #73CAFF;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-top: 1px solid #050f1a45;
    font-size: 0.9rem;
    color: var(--light-text);
    height: 75px;
    z-index: 900;
    width: 100%;
    max-width: 1200px;
    border-radius: 14px;
    box-shadow: 14px 14px 20px #050f1a, -14px -14px 20px #153b6866;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p {
    padding-right: 2rem;
    padding-left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .header-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .field-group {
        grid-template-columns: 1fr;
    }

    .problem-solution {
        grid-template-columns: 1fr;
    }
}
