/* web.css - Stile für die Web Development Seite */

/* Hauptcontainer für Web-Seite */
#web {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typewriter Container */
.content-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    border: 2px solid var(--grey);
    border-radius: var(--border-radius-md);
    background-color: transparent; /* Kein Hintergrund im hellen Modus */
    transition: all var(--transition-medium);
    opacity: 0.8;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Haupttitel mit Typewriter */
.main-title {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.typing-animation {
    font-family: 'JosefinSlab-SemiBold', serif;
    font-size: 4rem; /* Größerer Typewriter-Text */
    color: var(--grey);
    text-align: center;
    margin: 40px 0;
    min-height: 80px; /* Verhindert Springen beim Typewriter-Effekt */
}

/* Intro-Text Sektion */
.web-development-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    opacity: 0.8;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.highlight-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.8;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-header.grey h2 {
    color: var(--grey);
    font-size: 3rem; /* Größer */
    margin-top: 10px;
}

/* Web Grid */
.web-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    opacity: 0.8;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.web-box {
    background-color: transparent; /* Kein Hintergrund im hellen Modus */
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--grey);
}

.web-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.web-box h4 {
    color: var(--grey);
    margin-bottom: 20px;
    font-size: 1.8rem; /* Größer */
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--grey);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem; /* Größer */
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--grey);
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Hover-Effekt für Feature List */
.feature-list li:hover {
    color: var(--grey);
    background-color: rgba(0, 0, 0, 0.02);
}

.feature-list li.showing-description {
    color: var(--grey);
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 3px;
}

.feature-list li.showing-description:before {
    content: "✓";
    color: var(--grey);
}

/* About graphix Section */
.about-graphix {
    background-color: transparent; /* Kein Hintergrund im hellen Modus */
    padding: 50px 20px;
    text-align: center;
    margin: 60px 0;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    opacity: 0.8;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-graphix h2 {
    color: var(--grey);
    margin-bottom: 20px;
    font-size: 2.5rem; /* Größer */
}

.about-graphix p {
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 1.1rem; /* Größer */
}

.about-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--grey);
    color: white;
    text-decoration: none;
    border: 2px solid var(--grey);
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-size: 1.1rem; /* Größer */
}

.about-button:hover {
    background-color: transparent;
    color: var(--grey);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Website Insights */
.website-insights {
    max-width: 1000px;
    margin: 60px auto;
    opacity: 0.8;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.website-insights h3 {
    color: var(--grey);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2rem; /* Größer */
}

.website-insights .intro {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-size: 1.1rem; /* Größer */
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.insight-box {
    background-color: transparent; /* Kein Hintergrund im hellen Modus */
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.insight-box h4 {
    color: var(--grey);
    margin-bottom: 15px;
    font-size: 1.5rem; /* Größer */
}

.insight-box p {
    line-height: 1.5;
    color: var(--text-primary);
    font-size: 1.05rem; /* Größer */
}

/* Besucherzähler-Stil */
.visitor-counter {
    background-color: var(--grey);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: default;
    font-size: 14px;
    transition: all var(--transition-medium);
}

[data-theme="dark"] .visitor-counter {
    background-color: var(--green);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.visitor-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

#count {
    font-weight: bold;
    margin-left: 4px;
}

/* Dark Mode Anpassungen */
[data-theme="dark"] .content-wrapper {
    background-color: var(--bg-secondary);
    border-color: var(--green);
}

[data-theme="dark"] .typing-animation {
    color: var(--green); /* Grüne Farbe im Dark Mode */
}

[data-theme="dark"] .section-header.grey h2 {
    color: var(--green);
}

[data-theme="dark"] .web-box {
    background-color: var(--bg-secondary);
    border-top-color: var(--green);
}

[data-theme="dark"] .web-box h4 {
    color: var(--green);
    border-bottom-color: var(--green);
}

[data-theme="dark"] .feature-list li {
    border-bottom-color: #444;
    color: #ddd;
}

[data-theme="dark"] .feature-list li:before {
    color: var(--green);
}

[data-theme="dark"] .feature-list li:hover {
    color: var(--green);
    background-color: rgba(95, 114, 86, 0.05);
}

[data-theme="dark"] .feature-list li.showing-description {
    color: var(--green);
    background-color: rgba(95, 114, 86, 0.1);
}

[data-theme="dark"] .about-graphix {
    background-color: var(--bg-secondary);
    border-color: var(--green);
}

[data-theme="dark"] .about-graphix h2 {
    color: var(--green);
}

[data-theme="dark"] .about-button {
    background-color: var(--green);
    border-color: var(--green);
    color: #1a1a1a;
}

[data-theme="dark"] .about-button:hover {
    background-color: transparent;
    color: var(--green);
}

[data-theme="dark"] .website-insights h3 {
    color: var(--green);
}

[data-theme="dark"] .insight-box {
    background-color: var(--bg-secondary);
    border-color: var(--green);
}

[data-theme="dark"] .insight-box h4 {
    color: var(--green);
}

/* Scroll-Animationen */
.content-wrapper.visible,
.web-development-intro.visible,
.section-header.visible,
.web-grid.visible,
.about-graphix.visible,
.website-insights.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .web-grid, .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .typing-animation {
        font-size: 3.5rem; /* Angepasst für kleinere Bildschirme */
    }
    
    .section-header.grey h2 {
        font-size: 2.5rem;
    }
    
    .web-box h4 {
        font-size: 1.6rem;
    }
    
    .about-graphix h2 {
        font-size: 2.2rem;
    }
    
    .website-insights h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .typing-animation {
        font-size: 3rem; /* Angepasst für kleinere Bildschirme */
    }
    
    .section-header.grey h2 {
        font-size: 2.2rem;
    }
    
    .content-wrapper {
        padding: 20px;
        margin: 20px auto;
    }
    
    .web-box h4 {
        font-size: 1.4rem;
    }
    
    .feature-list li {
        font-size: 1rem;
    }
    
    .about-graphix h2 {
        font-size: 2rem;
    }
    
    .about-graphix p {
        font-size: 1rem;
    }
    
    .website-insights h3 {
        font-size: 1.8rem;
    }
    
    .insight-box h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .typing-animation {
        font-size: 2.5rem; /* Angepasst für sehr kleine Bildschirme */
    }
    
    .section-header.grey h2 {
        font-size: 2rem;
    }
    
    .content-wrapper {
        padding: 15px;
        margin: 15px 10px;
    }
    
    .web-box {
        padding: 15px;
    }
    
    .web-box h4 {
        font-size: 1.3rem;
    }
    
    .feature-list li {
        padding-left: 20px;
    }
    
    .about-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .insight-box {
        padding: 15px;
    }
    
    .insight-box h4 {
        font-size: 1.2rem;
    }
    
    .insight-box p {
        font-size: 0.95rem;
    }
}