/* =====================================================
   MihalTEC Landing Page Styles
   Professional, SEO-optimized, Mobile-First Design
   ===================================================== */

/* =====================================================
   CSS Custom Properties (extending common.css)
   ===================================================== */
:root {
    --gradient-primary: linear-gradient(135deg, #011501 0%, #0d4016 50%, #1a5c20 100%);
    --gradient-hero: linear-gradient(160deg, #011501 0%, #0a2d0d 100%);
    --text-light: #f8f9fa;
    --text-azure: azure;
    --accent-green: #28a745;
    --accent-light: #4ade80;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --section-padding: 6rem 0;
    --card-bg: #ffffff;
}

/* =====================================================
   Typography
   ===================================================== */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.text-gradient {
    background: linear-gradient(135deg, #28a745, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   Navigation
   ===================================================== */
#mainNav {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mainNav.navbar-scrolled {
    background: #ffffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-darker);
}

#mainNav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
    color: var(--primary-color);
}

.nav-cta {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.9rem;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    #mainNav .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-cta {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(40, 167, 69, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(40, 167, 69, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-text {
    padding: 2rem 0;
}

.hero-eyebrow {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-headline {
    color: var(--text-light);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subheadline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-subheadline strong {
    color: var(--text-light);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-light);
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-badge i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

/* Hero Visual / Code Window */
.hero-visual {
    position: relative;
}

.code-window {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27ca40;
}

.code-header .filename {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.code-content {
    padding: 1.5rem;
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e0e0e0;
    overflow-x: auto;
}

.code-keyword {
    color: #ff79c6;
}

.code-string {
    color: #f1fa8c;
}

.code-comment {
    color: #6272a4;
}

.code-attr {
    color: #8be9fd;
}

.code-success {
    color: #50fa7b;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll-indicator a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    display: block;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* =====================================================
   Section Base Styles
   ===================================================== */
.section {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 4rem;
}

.section-eyebrow {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* =====================================================
   Services Section
   ===================================================== */
.services-section {
    background: var(--light-bg);
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(55, 122, 0, 0.15);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: white;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.service-result {
    color: var(--text-dark);
    padding: 0.75rem 0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.service-result i {
    color: var(--primary-color);
    font-size: 1rem;
}

.service-result strong {
    color: var(--dark);
}

.service-cta {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-cta:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* =====================================================
   Expertise Section
   ===================================================== */
.expertise-section {
    background: var(--white);
}

.expertise-card {
    background: var(--light-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.expertise-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.expertise-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-tag {
    background: var(--white);
    color: var(--text-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

/* Quality Banner */
.quality-banner {
    background: linear-gradient(135deg, var(--primary-darker), #0a2d0d);
    color: var(--text-light);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-top: 4rem;
}

.quality-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quality-title i {
    color: var(--accent-green);
}

.quality-text {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.7;
}

.quality-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

.quality-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quality-badge i {
    color: var(--accent-green);
}

@media (max-width: 991.98px) {
    .quality-badges {
        justify-content: flex-start;
        margin-top: 1.5rem;
    }
}

/* =====================================================
   About Section
   ===================================================== */
.about-section {
    background: var(--light-bg);
}

.about-image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.about-image-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    z-index: 1;
    opacity: 0.3;
}

.about-content {
    padding-left: 2rem;
}

@media (max-width: 991.98px) {
    .about-content {
        padding-left: 0;
        text-align: center;
    }

    .about-highlights {
        justify-content: center;
    }
}

.about-text {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 1 250px;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon i {
    color: white;
    font-size: 1.1rem;
}

.highlight-text {
    display: flex;
    flex-direction: column;
}

.highlight-text strong {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.highlight-text span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =====================================================
   Testimonials Section
   ===================================================== */
.testimonials-section {
    background: var(--white);
}

.testimonial-card {
    background: var(--light-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.testimonial-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.testimonial-rating {
    margin-bottom: 1.25rem;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: white;
    font-size: 1.25rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--dark);
    font-weight: 600;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Client Logos */
.client-logos {
    margin-top: 4rem;
    text-align: center;
}

.client-logos-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

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

.logo-placeholder {
    width: 180px;
    height: 80px;
    background: var(--light-bg);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    background: var(--light-bg);
    padding: 4rem 0;
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    padding: 3.5rem;
    box-shadow: 0 20px 50px rgba(1, 21, 2, 0.3);
}

.cta-title {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.7;
}

.cta-button {
    background: white;
    color: var(--primary-darker) !important;
    font-weight: 600;
    padding: 1rem 2rem;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
    .cta-card {
        text-align: center;
    }

    .cta-button {
        margin-top: 2rem;
    }
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
    background: var(--primary-darker);
    color: var(--text-light);
    padding: 4rem 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-links a i {
    font-size: 0.9rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    padding-bottom: 2rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-green);
}

@media (max-width: 767.98px) {
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-copyright {
        text-align: center;
    }
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */
@media (max-width: 767.98px) {
    .section {
        padding: 4rem 0;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .service-card {
        padding: 2rem;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .quality-banner {
        padding: 2rem;
    }
}

/* =====================================================
   Animations & Utilities
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {

    .service-card,
    .expertise-card,
    .testimonial-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-scroll-indicator,
    .navbar {
        display: none;
    }
}

/* =====================================================
   Legal Pages (Impressum, Datenschutz)
   ===================================================== */
.legal-page {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: calc(100vh - 200px);
    background: var(--light-bg);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.legal-content h1 {
    color: var(--primary-darker);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-section h3 {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section address {
    font-style: normal;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

.legal-section ul,
.legal-section ol {
    color: var(--text-dark);
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-toc {
    background: var(--light-bg);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
}

.legal-toc h2 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.legal-toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.legal-toc li {
    margin-bottom: 0.35rem;
}

.legal-toc a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
}

.legal-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-legal a.active {
    color: var(--accent-green);
}

@media (max-width: 767.98px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }
}