/* AI-Institut Mittelstand - Premium Stylesheet */

:root {
    --color-anthrazit: #2C3E50;
    --color-anthrazit-dark: #1a252f;
    --color-anthrazit-light: #34495e;
    --color-orange: #FF6B35;
    --color-orange-dark: #E55A2B;
    --color-orange-light: #FF8555;
    --color-white: #FFFFFF;
    --color-gray-light: #F8F9FA;
    --color-gray: #6C757D;
    --color-gray-dark: #495057;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-anthrazit);
    line-height: 1.6;
    background: var(--color-white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-anthrazit-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: var(--color-orange);
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-divider {
    color: var(--color-anthrazit-light);
    margin: 0 0.5rem;
    font-weight: 300;
}

.logo-subtext {
    color: var(--color-anthrazit);
    font-weight: 400;
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-anthrazit);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-orange);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.cta-nav {
    background: var(--color-orange);
    color: var(--color-white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600 !important;
}

.cta-nav:hover {
    background: var(--color-orange-dark);
    transform: translateY(-1px);
}

.cta-nav::after {
    display: none !important;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 1rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--color-anthrazit);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--color-gray-light);
    color: var(--color-orange);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-anthrazit);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 62, 80, 0.03) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-subtitle {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-main {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-anthrazit-dark) 0%, var(--color-anthrazit) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-gray-dark);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: var(--color-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-anthrazit);
    border: 2px solid var(--color-anthrazit);
}

.btn-secondary:hover {
    background: var(--color-anthrazit);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-anthrazit);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-header h2 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Value Proposition */
.value-prop {
    background: var(--color-gray-light);
}

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

.value-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-orange) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-card p {
    color: var(--color-gray-dark);
    line-height: 1.8;
}

/* Process Timeline */
.process {
    background: var(--color-white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-anthrazit) 100%);
    z-index: 0;
}

.process-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--color-white);
    border: 3px solid var(--color-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-orange);
    transition: var(--transition);
}

.process-step:hover .step-number {
    background: var(--color-orange);
    color: var(--color-white);
    transform: scale(1.1);
}

.process-step h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.process-step p {
    color: var(--color-gray-dark);
    max-width: 250px;
    margin: 0 auto;
}

/* Use Cases Preview */
.use-cases-preview {
    background: var(--color-gray-light);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: block;
}

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

.use-case-image {
    height: 200px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--color-white);
    opacity: 0.9;
}

.use-case-content {
    padding: 2rem;
}

.use-case-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-orange-light);
    color: var(--color-white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.use-case-card h3 {
    margin-bottom: 0.75rem;
    color: var(--color-anthrazit-dark);
}

.use-case-card p {
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.use-case-link {
    color: var(--color-orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.use-case-card:hover .use-case-link {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-anthrazit-dark) 0%, var(--color-anthrazit) 100%);
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--color-anthrazit-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text,
.footer-brand .logo-divider,
.footer-brand .logo-subtext {
    color: var(--color-white);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

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

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

    .process-timeline::before {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-anthrazit-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-gray-light);
    border-radius: 50%;
    border-top-color: var(--color-orange);
    animation: spin 1s ease-in-out infinite;
}

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

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}