/* ============================================
   ragspace.de - Professional Landing Page
   Design: Werbedesignerin | Dev: medienpark
   ============================================ */

/* CSS Variables */
:root {
    --primary-green: #6FB32E;
    --primary-dark: #4a545b;
    --text-gray: #495057;
    --text-dark: #212529;
    --border-light: #bcc1c7;
    --bg-light: #f9f9f9;
    --secondary-gray: #616161;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    background: white;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

.nav-links {
    display: none;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--text-gray);
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-cta {
    background: var(--primary-green);
    color: white !important;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.nav-cta:hover {
    background: #5a9a28;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
}

.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3a4a52 100%);
    color: white;
    padding: 4rem 1rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero .container {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.hero h1 .highlight,
h2 .highlight {
    color: var(--primary-green);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

.hero p {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    border: 2px solid var(--primary-green);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #5a9a28;
    border-color: #5a9a28;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.hero-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero-badges {
        flex-direction: row;
        gap: 2rem;
    }
}

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

.badge svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* ============================================
   Demo Chat Window
   ============================================ */
.demo-chat {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.demo-chat-header {
    background: var(--primary-green);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.demo-dots span:first-child { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #ffbd2e; }
.demo-dots span:nth-child(3) { background: #28ca42; }

.demo-chat-title {
    color: white;
    font-weight: 600;
    margin-left: auto;
    font-size: 0.9rem;
}

.demo-chat-body {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.chat-bubble {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 80%;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.chat-message.user .chat-bubble {
    background: var(--primary-green);
    color: white;
}

/* ============================================
   People Section - Der Aha-Moment
   ============================================ */
.people-section {
    position: relative;
    padding: 0;
    margin: 0;
}

.people-container {
    position: relative;
    width: 100%;
    margin: 0;
}

.people-container img {
    width: 100%;
    height: auto;
    display: block;
}

.people-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 6rem 2rem 2.5rem;
    color: white;
}

.people-overlay h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-align: center;
}

.people-overlay p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    color: white;
    text-align: center;
    font-weight: 500;
}

@media (min-width: 768px) {
    .people-overlay h2 {
        font-size: 2.5rem;
    }
    .people-overlay p {
        font-size: 1.15rem;
    }
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 4rem 1rem;
}

section.alt-bg {
    background: var(--bg-light);
}

section.dark-bg {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3a4a52 100%);
    color: white;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1rem 0;
    color: var(--text-dark);
}

section.dark-bg h2 {
    color: white;
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-gray);
    margin: 0 0 3rem 0;
    font-size: 1.1rem;
}

section.dark-bg .section-subtitle,
.form-section .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
}

/* ============================================
   Cards Grid
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid.four-col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--text-dark);
}

.card p {
    color: var(--secondary-gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card .solution {
    color: var(--primary-green);
    margin-top: 0.75rem;
}

/* ============================================
   Steps Grid
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: block;
    color: rgba(255,255,255,0.8);
}

.step h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: white;
}

.step p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   Use Cases (Two Column)
   ============================================ */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .two-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.usecase-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.usecase-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.usecase-card svg {
    margin-bottom: 1.5rem;
}

.usecase-card h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
}

.usecase-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usecase-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--secondary-gray);
    line-height: 1.6;
}

.usecase-card li:last-child {
    border-bottom: none;
}

.usecase-card li strong {
    color: var(--text-dark);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0.5rem 0;
}

.stat-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2.5rem;
    border-left: 4px solid var(--primary-green);
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: white;
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: white;
    margin: 0;
}

.testimonial-company {
    color: var(--primary-green);
    margin: 0.25rem 0 0;
}

/* ============================================
   Warning Box
   ============================================ */
.warning-box {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    border-left: 4px solid var(--primary-green);
}

.warning-box h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
}

.warning-box h3 svg {
    color: var(--primary-green);
}

.warning-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-box li {
    margin-bottom: 1rem;
    padding-left: 0;
    color: var(--secondary-gray);
    line-height: 1.6;
}

.warning-box .highlight-text {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Accordion / FAQ
   ============================================ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-light);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.accordion-header {
    background: white;
    border: none;
    padding: 1.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    color: var(--text-dark);
    font-family: inherit;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-header.active {
    background: var(--primary-green);
    color: white;
}

.accordion-content {
    display: none;
    padding: 1.25rem;
    background: var(--bg-light);
    color: var(--secondary-gray);
    line-height: 1.7;
}

.accordion-content.active {
    display: block;
}

.accordion-icon {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

/* ============================================
   Form Section
   ============================================ */
.form-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3a4a52 100%);
    color: white;
    padding: 4rem 1rem;
}

.form-section h2 {
    color: white;
}

.form-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.form-highlight {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    margin: 2rem auto 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.form-card h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-success svg {
    color: #10b981;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-error svg {
    color: #ef4444;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(111, 179, 46, 0.15);
}

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

.form-group input[type="file"] {
    padding: 0.5rem;
    background: var(--bg-light);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--secondary-gray);
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--secondary-gray);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--primary-green);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.form-note {
    text-align: center;
    color: var(--secondary-gray);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #2d3a40;
    color: white;
    padding: 3rem 1rem 2rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo img {
    height: 2rem;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

footer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

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

footer li {
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-green);
}

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

/* ============================================
   Utilities
   ============================================ */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 3rem;
}

/* ============================================
   Selection & Scrollbar
   ============================================ */
::selection {
    background: var(--primary-green);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a9a28;
}
