/* ==========================================================================
   DEINE UNIVERSELLE RESPONSIVE-VORLAGE (Optimiert für Chyan)
   ========================================================================== */

html {
    font-size: clamp(16px, 1rem + 0.3vw, 18px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    margin: 0;
    line-height: 1.6;
    font-family: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Container füllt den Platz sauber aus */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Verhindert unerwünschte Abstände unter Bildern */
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    display: flex;
    justify-content: flex-end; /* Schiebt das Menü nach rechts */
    padding: 10px 0;
}

nav {
    display: flex;
    gap: 15px; /* Eleganter Abstand zwischen den Links */
}

.link-design {
    background-color: white;
    padding: 12px 24px;
    border-radius: 12px;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-design:hover {
    text-decoration: underline;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Willkommenstext 
   ========================================================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    padding: 80px 0;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-img img {
    border-radius: 24px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 450px;
    margin-left: auto; 
}

/* ==========================================================================
   Hobby-, Projektkarten & Zusatzbereich
   ========================================================================== */
.hobby-card {
    background: #f8fafc;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
    min-width: 0;
    word-break: break-word;
    width: fit-content;
}

.hobby-card:hover {
    transform: scale(1.02);
    background: white;
    border-color: #cbd5e1;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    padding: 30px;
}

.project-card:hover {
    transform: translateY(-10px);
}

.badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}


.grid-zuklappbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   Erfahrungs-Timeline
   ========================================================================== */
.timeline-item {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cstm-btn {
    background-color: #1b6ec2;
    color: #F0F7FF;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cstm-btn:hover {
    background-color: #155a9f;
    box-shadow: 0px 4px 20px rgba(27, 110, 194, 0.3);
}

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */

/* Tablets & kleinere Bildschirme */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr; /* Rutscht untereinander */
        text-align: center;
        padding: 40px 0;
    }
    .hero-text {
        text-align: center;
    }
    .hero-img img {
        margin: 0 auto; /* Bild zentrieren */
    }
}

/* Smartphones (Hochformat) */
@media (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 1fr; /* Datum über dem Text */
        gap: 10px;
    }
    header {
        justify-content: center;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}