/* style.css - Custom stylesheet for DSGVO-Konform web application */

:root {
    --bg-dark: #0b1d3a;
    --bg-darker: #050d1a;
    --bg-light: #f4f7f6;
    --primary: #1b3b6f;
    --accent-blue: #0d6efd;
    --accent-teal: #0fa3b1;
    --accent-green: #2e7d32;
    --accent-yellow: #f9a825;
    --accent-orange: #ef6c00;
    --accent-purple: #6a1b9a;
    --accent-red: #c62828;
    
    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-light: #f8f9fa;
    
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography adjustments */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
}

/* Header & Navigation */
.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.custom-navbar {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-link {
    font-weight: 500;
    color: var(--primary) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    background-color: var(--accent-blue);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

.navbar-btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed);
}

/* Banner Info in Sitemap Header style */
.sitemap-header {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border-top: 5px solid var(--primary);
}

/* Cards & Grid elements for columns */
.sitemap-column {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

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

.column-header {
    padding: 1.25rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.column-header i {
    font-size: 1.3rem;
}

.column-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafbfa;
}

.column-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: block;
}

.column-item:hover {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateX(3px);
    color: var(--primary);
}

/* Custom visual connections */
.sitemap-flow-container {
    position: relative;
    padding-top: 2rem;
}

/* Top connectors logic for sitemap page */
@media (min-width: 1200px) {
    .sitemap-flow-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 5%;
        width: 90%;
        height: 2px;
        background: #dee2e6;
        z-index: 1;
    }
    
    .sitemap-column-wrapper {
        position: relative;
        padding-top: 1.5rem;
    }
    
    .sitemap-column-wrapper::before {
        content: '';
        position: absolute;
        top: -1.5rem;
        left: 50%;
        width: 2px;
        height: 1.5rem;
        background: #dee2e6;
        z-index: 1;
    }
}

/* Main Homepage Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
    color: var(--text-light);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(13, 110, 253, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.85);
}

/* Button stylings */
.btn-primary-custom {
    background-color: var(--accent-blue);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: all var(--transition-speed);
}

.btn-primary-custom:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    color: white;
}

.btn-outline-custom {
    background-color: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
    padding: 0.65rem 1.85rem;
    border-radius: 50px;
    transition: all var(--transition-speed);
}

.btn-outline-custom:hover {
    background-color: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* Feature boxes for Kundenbereich */
.feature-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all var(--transition-speed);
    height: 100%;
}

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

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.08);
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* Technology badges and list */
.tech-sidebar {
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.tech-icon-container {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Customer Portal Portal styling */
.portal-sidebar {
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: 100%;
}

.portal-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.portal-nav-item:hover, .portal-nav-item.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.portal-nav-item.active {
    border-left: 4px solid var(--accent-blue);
}

/* Footer structure */
.custom-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.hover-white {
    transition: color var(--transition-speed);
}

.hover-white:hover {
    color: #ffffff !important;
}

.footer-top {
    padding: 3rem 0;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links-list a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-list a:hover {
    color: white;
}

/* Search bar styling */
.search-wrapper {
    max-width: 500px;
    margin: 2rem auto;
}

.search-input {
    border-radius: 50px 0 0 50px;
    padding-left: 1.5rem;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.search-btn {
    border-radius: 0 50px 50px 0;
    background-color: var(--primary);
    color: white;
    padding: 0.375rem 1.5rem;
}

/* Highlight search class */
.highlight-match {
    animation: pulseGlow 1.5s infinite alternate;
    border-color: var(--accent-blue) !important;
}

.dimmed-node {
    opacity: 0.35;
    filter: grayscale(80%);
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 5px rgba(13, 110, 253, 0.3);
    }
    to {
        box-shadow: 0 0 20px rgba(13, 110, 253, 0.7);
    }
}
