@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Lato:wght@400;700&display=swap');

/*
==============================================
VokApp Stylesheet - Final
==============================================
*/

/* 1. :root Variables
---------------------------------------------- */
:root {
    --primary-color: #4f46e5;
    --accent-color: #059669;
    --background-primary: #ffffff;
    --background-secondary: #f9fafb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --gradient-1: linear-gradient(100deg, var(--primary-color) 0%, #7c3aed 100%);
    --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);
}

/* 2. Global Styles & Typography
---------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-primary);
    background-color: var(--background-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 70px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

main.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

main {
    flex-grow: 1;
    animation: fadeIn 0.5s ease-in-out;
}

/* 3. Header & Navigation
---------------------------------------------- */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo img {
    height: 40px;
    width: auto;
}

.topnav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.topnav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.topnav a:hover, .topnav a.active {
    color: var(--primary-color);
}

.topnav .icon {
    display: none;
    color: var(--text-primary);
}

/* 4. Footer
---------------------------------------------- */
footer {
    background-color: var(--background-secondary);
    padding: 2.5rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* 5. Generic & Reusable Components
---------------------------------------------- */
.cta-button {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.vokapp-highlight {
    color: var(--primary-color);
}

/* 6. Page: Index (Home)
---------------------------------------------- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-primary);
    gap: 5rem;
    padding: 2rem;
}

.hero-content {
    text-align: left;
    z-index: 2;
    max-width: 550px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.phone-mockup {
    width: 300px;
    height: auto;
    background-color: #e5e7eb;
    border-radius: 40px;
    border: 1px solid #d1d5db;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: flex;
}

.mockup-screen {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 30px;
}

.features {
    padding: 100px 40px;
    background-color: var(--background-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* 7. Page: Ueber Uns (About)
---------------------------------------------- */
#about {
    padding: 100px 20px;
    background-color: var(--background-primary);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.about-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.about-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.about-card .icon-container {
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-card .icon {
    width: 30px;
    height: 30px;
}

.about-card ul {
    list-style: none;
    padding: 0;
    color: var(--text-secondary);
}

.about-card ul li {
    margin-bottom: 0.5rem;
}

/* 8. Page: Kontakt (Contact)
---------------------------------------------- */
#kontakt {
    padding: 100px 20px;
    background-color: var(--background-secondary);
}

.kontakt-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.kontakt-header {
    margin-bottom: 3rem;
}

.kontakt-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.kontakt-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.kontakt-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.kontakt-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.kontakt-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.kontakt-icon-link {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.2s;
}

.kontakt-icon-link:hover {
    color: var(--accent-color);
}

.kontakt-form-container {
    background: var(--background-primary);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.kontakt-form-container h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

#kontaktForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

#kontaktForm input, #kontaktForm textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#kontaktForm input:focus, #kontaktForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

#kontaktForm button {
    background: var(--gradient-1);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

#kontaktForm button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 9. Responsive Design & Media Queries
---------------------------------------------- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    .about-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    header { padding: 0.75rem 1.5rem; }
    .topnav ul { display: none; }
    .topnav .icon {
        display: block;
        cursor: pointer;
        font-size: 1.8rem;
    }
    .topnav.responsive ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--background-primary);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    .topnav.responsive li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    .topnav.responsive a { padding: 1rem 1.5rem; }

    .features, #about, #kontakt { padding: 80px 20px; }
}