/* ===== Base Styles ===== */
:root {
    --primary-color: #131c3e;
    --primary-light: #232e50;
    --primary-dark: #0b122a;
    --accent-color: #4a6dd3;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f9f9f9;
    --bg-gray: #f0f2f5;
    --bg-accent-light: #eef1fa; /* New light accent background color */
    --border-color: #e1e4e8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Jost', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ===== Header ===== */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

section {
    scroll-margin-top: 80px; /* Adjust this value to match the height of your header */
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 75px;
    margin-right: 10px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* ===== Navigation ===== */
nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 400;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--text-light);
}

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

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

/* ===== Hero Section ===== */
.hero {
    padding: 20px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--text-light);
}

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

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    background: linear-gradient(90deg, #4a6dd3, #6a9bd8, #4ad3b2); /* Gradient colors */
    background-clip: text;
    -webkit-background-clip: text; /* Clip the gradient to the text */
    -webkit-text-fill-color: transparent; /* Make the text transparent to show the gradient */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 350px;
    height: 700px;
    overflow: hidden;
}

/* Updated for the app preview image */
.app-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.github-link {
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-light);
}

.github-link p {
    font-size: 1.2rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.github-icon {
    margin-left: 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.github-icon:hover {
    color: var(--primary-dark);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-link img {
    margin-right: 10px;
}

.logo-link h1 {
    margin: 0;
    font-size: 1.5em;
}

/* Prevent the link from changing color on hover */
.logo-link:hover {
    color: inherit;
}

/* ===== App Store Buttons ===== */
.app-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.app-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--text-light);
    color: var(--primary-color);
    border-radius: 8px;
    transition: var(--transition);
}

.app-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.app-button i {
    font-size: 2rem;
    margin-right: 10px;
}

.app-button span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-button small {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* ===== Page Content ===== */
.page-content {
    padding: 60px 0;
}

.page-content h2 {
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}

.terms-content article,
.impressum-content article {
    margin-bottom: 30px;
}

.terms-content h3,
.impressum-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.terms-content p,
.impressum-content p {
    margin-bottom: 15px;
}

/* ===== Introduction Section ===== */
.introduction {
    padding: 80px 0;
    background-color: var(--bg-accent-light);
}

.introduction h2 {
    text-align: left;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.introduction p {
    text-align: left;
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* ===== Age Verification Section - Enhanced ===== */
.age-verification {
    padding: 80px 0;
    background-color: var(--bg-light);
    position: relative;
    border-top: 1px solid rgba(74, 109, 211, 0.1);
    border-bottom: 1px solid rgba(74, 109, 211, 0.1);
}

.age-verification h2 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-color);
}

.age-verification h3 {
    margin: 25px 0 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.age-verification-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.age-verification-text {
    flex: 3;
    padding-right: 40px;
}

.age-verification-text p {
    text-align: left;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.age-verification-icon {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.age-verification-icon i {
    font-size: 6rem;
    color: var(--accent-color);
    opacity: 0.8;
}

/* Process Steps Styling */
.process-steps {
    list-style: none;
    counter-reset: step-counter;
    margin: 30px 0;
}

.process-steps li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.step-icon {
    background-color: var(--accent-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    font-size: 1.1rem;
    padding-top: 5px;
}

/* Highlight Box */
.highlight-box {
    background-color: rgba(74, 109, 211, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: 0 5px 5px 0;
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.highlight-box i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .age-verification-content {
        flex-direction: column;
    }
    
    .age-verification-text {
        padding-right: 0;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .age-verification-icon {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .process-steps li {
        flex-direction: column;
    }
    
    .step-icon {
        margin-bottom: 10px;
    }
    
    .highlight-box {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-box i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* ===== Legal Notice and Links Section ===== */
.legal-notice-section {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.legal-links-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.legal-notice {
    flex: 3;
}

.links-section {
    flex: 2;
}

.legal-notice h2, 
.links-section h2 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-color);
}

.legal-notice h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.legal-notice p {
    text-align: left;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.links-list {
    list-style: none;
}

.links-list li {
    margin-top: 10px;
    margin-bottom: 10px;
}

.links-list a {
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.links-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.links-list a i {
    margin-right: 10px;
    font-size: 0.8rem;
}

/* ===== Footer ===== */
footer {
    background-color: var(--primary-dark);
    color: #d0d0d0;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Media Queries ===== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .age-verification-content {
        flex-direction: column;
    }
    
    .age-verification-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .legal-links-container {
        flex-direction: column;
    }
    
    .legal-notice, 
    .links-section {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .app-buttons {
        flex-direction: column;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    padding-bottom: 10px;
}

.modal-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Add padding below the text */
.modal-content p:last-of-type {
    padding-bottom: 20px;
}