/* ==========================================================================
   HOME.CSS - Styles nur für die Hauptseite (index.html)
   - Hero-Bereich
   - Über mich / Statistiken
   - Projekte
   - Skills (mit Hervorhebung wichtiger Skills)
   - Zertifikate
   - Blog-Teaser
   - Kontakt
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero-Bereich
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    padding: 6rem 2rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1s ease-out;
}

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

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    margin-bottom: 2rem;
    transition: transform var(--transition-normal);
}

.profile-img:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: var(--font-3xl);
    margin-bottom: 1rem;
}

.tagline {
    font-size: var(--font-lg);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-desc {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: var(--font-md);
    line-height: 1.8;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Sections (allgemein)
   -------------------------------------------------------------------------- */
section {
    padding: var(--spacing-xl) var(--spacing-md);
}

section h2 {
    font-size: var(--font-2xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */
.about-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: var(--font-md);
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Stats-Bereich wurde entfernt - siehe README_WEBSITE_ANPASSUNGEN.md für Wiederherstellung */

/* --------------------------------------------------------------------------
   Projekte
   -------------------------------------------------------------------------- */
.project {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
    transition: all var(--transition-normal);
}

.project:hover {
    transform: translateX(5px);
    border-left-width: 6px;
}

.project h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.project .meta {
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.project .context {
    margin-bottom: 1.5rem;
    font-style: italic;
    opacity: 0.9;
}

.project .intro {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.project li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Skills & Expertise (Zwei-Spalten-Design)
   -------------------------------------------------------------------------- */

/* Kern-Skills Container */
.skills-primary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Kern-Skill Cards (gross, farbig, prominent) */
.skill-card--primary {
    background: linear-gradient(135deg, var(--accent) 0%, #0077b6 100%);
    color: white;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-lg);
    font-size: var(--font-md);
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.35);
    transition: all var(--transition-normal);
    cursor: default;
}

.skill-card--primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 168, 232, 0.45);
}

/* Sekundäre Skills Container (3-Spalten-Grid) */
.skills-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

/* Kategorie-Spalte */
.skills-category h4 {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Skill-Tags Container */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Sekundäre Skill-Tags (klein, grau, kompakt) */
.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Zertifikate
   -------------------------------------------------------------------------- */
.cert-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all var(--transition-normal);
}

.cert-card:hover {
    transform: translateX(5px);
}

.cert-card h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cert-card .provider {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.cert-card .content {
    line-height: 1.8;
}

/* Platzhalter für Logos */
.cert-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cert-details {
    flex: 1;
}

/* --------------------------------------------------------------------------
   Blog-Teaser (Vorschau auf der Homepage)
   -------------------------------------------------------------------------- */
.blog-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.blog-card .date {
    font-size: var(--font-sm);
    color: #666;
    margin-bottom: 1rem;
}

.blog-card p {
    color: #555;
    line-height: 1.6;
}

.blog-card .read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.blog-card .read-more:hover {
    color: var(--primary);
}

.blog-card .read-more::after {
    content: ' \2192';
    transition: transform var(--transition-fast);
    display: inline-block;
}

.blog-card .read-more:hover::after {
    transform: translateX(5px);
}

/* Tags in Blog-Karte */
.blog-card .tags {
    margin-top: 1rem;
    gap: 0.5rem;
}

.blog-card .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-info h3 {
    color: var(--accent);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.2rem;
}

/* Formular */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--font-base);
    font-family: inherit;
    transition: all var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* --------------------------------------------------------------------------
   Responsive: Mobile-Anpassungen
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .hero h1 {
        font-size: var(--font-xl);
    }

    .tagline {
        font-size: var(--font-base);
    }

    .hero-desc {
        font-size: var(--font-base);
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    section h2 {
        font-size: var(--font-xl);
    }

    /* Skills: Sekundäre Skills 1-spaltig auf Mobile */
    .skills-secondary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    /* Kern-Skills: 2 pro Reihe auf Mobile */
    .skills-primary {
        gap: 0.75rem;
    }

    .skill-card--primary {
        padding: 0.8rem 1.25rem;
        font-size: var(--font-base);
    }

    /* Kontakt einspalitig */
    .contact {
        grid-template-columns: 1fr;
    }

    /* Blog-Preview */
    .blog-preview {
        grid-template-columns: 1fr;
    }

    /* Projekte */
    .project {
        padding: 1.5rem;
    }

    /* Zertifikate */
    .cert-card {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    /* Kern-Skills kleiner auf sehr kleinen Screens */
    .skill-card--primary {
        padding: 0.7rem 1rem;
        font-size: var(--font-sm);
    }
}
