/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #D1FAE5;
    --secondary: #06B6D4;
    --accent: #FBBF24;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-green: #10B981;
    --bg-footer: #111827;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

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

.btn-text {
    background: transparent;
    color: var(--text-primary);
}

.btn-text:hover {
    color: var(--primary);
}

.btn-hero {
    background-color: var(--primary);
    color: white;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.btn-hero:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 100%;
}

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-secondary);
}

.btn-white {
    background: white;
    color: var(--primary);
    width: 100%;
}

.btn-white:hover {
    background-color: var(--bg-light);
}

.btn-auth {
    background-color: var(--primary);
    color: white;
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
}

.btn-auth:hover {
    background-color: var(--primary-dark);
}

.arrow-icon {
    width: 1rem;
    height: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.logo-icon.large {
    width: 3.5rem;
    height: 3.5rem;
}

.logo-icon.large svg {
    width: 1.75rem;
    height: 1.75rem;
}

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

.logo-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, #F0FDF4 0%, var(--bg-white) 100%);
}

.hero-content {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* App Mockup */
.hero-image {
    max-width: 700px;
    margin: 0 auto;
}

.app-mockup {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 450px;
}

.mockup-header {
    grid-column: 1 / -1;
    background: #1F2937;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-dots {
    display: flex;
    gap: 0.375rem;
}

.mockup-dots span {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: #EF4444;
}

.mockup-dots span:nth-child(2) {
    background: #FBBF24;
}

.mockup-dots span:nth-child(3) {
    background: #10B981;
}

.mockup-title {
    color: #9CA3AF;
    font-size: 0.625rem;
    flex: 1;
    text-align: center;
}

.mockup-sidebar {
    background: #374151;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: var(--primary);
    color: white;
}

.sidebar-item svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sidebar-item span {
    font-size: 0.5rem;
}

.mockup-content {
    padding: 1rem;
    background: #F9FAFB;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-welcome {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-block;
    font-size: 0.625rem;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.welcome-illustration {
    width: 80px;
    height: 60px;
}

.welcome-illustration svg {
    width: 100%;
    height: 100%;
}

.mockup-tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mockup-tool-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.mockup-tool-card:hover {
    transform: translateY(-2px);
}

.mockup-tool-card.blue { background: #DBEAFE; }
.mockup-tool-card.green { background: #D1FAE5; }
.mockup-tool-card.yellow { background: #FEF3C7; }
.mockup-tool-card.orange { background: #FFEDD5; }
.mockup-tool-card.purple { background: #EDE9FE; }
.mockup-tool-card.pink { background: #FCE7F3; }

.mockup-tool-card .tool-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mockup-tool-card.blue .tool-icon { background: #3B82F6; color: white; }
.mockup-tool-card.green .tool-icon { background: #10B981; color: white; }
.mockup-tool-card.yellow .tool-icon { background: #FBBF24; color: white; }
.mockup-tool-card.orange .tool-icon { background: #F97316; color: white; }
.mockup-tool-card.purple .tool-icon { background: #8B5CF6; color: white; }
.mockup-tool-card.pink .tool-icon { background: #EC4899; color: white; }

.mockup-tool-card .tool-icon svg {
    width: 1rem;
    height: 1rem;
}

.mockup-tool-card .tool-info {
    flex: 1;
    min-width: 0;
}

.mockup-tool-card .tool-info h4 {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.mockup-tool-card .tool-info p {
    font-size: 0.5rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-tool-card .tool-arrow {
    width: 1rem;
    height: 1rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.mockup-tool-card .tool-arrow svg {
    width: 100%;
    height: 100%;
}

.mockup-footer {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-label {
    font-size: 0.625rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    font-size: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    background: #E0E7FF;
    color: #4F46E5;
}

.badge.premium {
    background: #FEF3C7;
    color: #D97706;
}

.progress-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    color: var(--text-secondary);
}

.progress-bar .bar {
    width: 60px;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

/* Tools Section */
.tools-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tool-card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.tool-card-icon.blue { background: #60A5FA; }
.tool-card-icon.green { background: #34D399; }
.tool-card-icon.yellow { background: #FBBF24; }
.tool-card-icon.orange { background: #F97316; }
.tool-card-icon.purple { background: #A78BFA; }
.tool-card-icon.pink { background: #F472B6; }

.tool-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.tool-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--bg-green);
    color: white;
}

.features-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, #F0FDF4 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
}

.pricing-card.popular {
    background: var(--bg-green);
    color: white;
    border-color: var(--primary);
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--text-primary);
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
}

.period {
    font-size: 0.875rem;
    opacity: 0.8;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.pricing-features li svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-card.popular .pricing-features li svg {
    color: var(--accent);
}

/* Footer */
.footer {
    background: var(--bg-footer);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

.copyright {
    font-size: 0.875rem;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #F0F9FF 0%, #F0FDF4 100%);
    min-height: 100vh;
}

.auth-page .navbar {
    background: rgba(255, 255, 255, 0.9);
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 1.5rem;
    padding-top: 6rem;
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.form-group input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #F3F4F6;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.password-hint {
    display: block;
    font-size: 0.625rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.terms-text {
    font-size: 0.625rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.terms-text a {
    color: var(--primary);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary);
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.auth-back svg {
    width: 0.875rem;
    height: 0.875rem;
}

.auth-back:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .app-mockup {
        grid-template-columns: 50px 1fr;
    }
    
    .mockup-tools {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons .btn-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 7rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card,
.feature-item,
.pricing-card {
    animation: fadeIn 0.5s ease forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }

/* Styling für die Tool-Interaktion innerhalb der Kacheln */
.tool-interaction {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-interaction textarea {
    width: 100%;
    height: 70px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none; /* Verhindert manuelles Grossziehen */
    background-color: #ffffff;
}

.tool-btn {
    background-color: #10B981; /* Dein Smaragdgrün */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tool-btn:hover {
    background-color: #059669; /* Etwas dunkler beim Drüberfahren */
}

/* Antwort-Box, die erst erscheint, wenn die KI antwortet */
.answer-box {
    margin-top: 10px;
    padding: 10px;
    background-color: #ecfdf5; /* Ein ganz helles Grün */
    border-left: 4px solid #10b981; /* Dein Sacki-Grün */
    border-radius: 4px;
    font-size: 13px;
    display: none; /* Wird vom JavaScript auf 'block' gesetzt */
}
