body {
    font-family: Arial, sans-serif;
    background-color: #d1e8ff;
    font-size: 20px;
    max-width: 1500px;
    margin: auto;
}
.layout {
    min-height: 98vh;

    grid-template-columns: 300px 1fr 1fr;
    grid-template-rows: auto 1fr auto;

    display: grid;
    grid-template-areas:
        "header header header"
        "sidebar content content"
        "footer footer footer";
    grid-gap: 10px;
}

.header {
    grid-area: header;
    text-align: center;
    font-size: 5rem;
}

.sidebar {
    grid-area: sidebar;
}

.sidebar a{
    text-align: center;
    display: block;
    padding: 10px;
    margin: 6px 0;
    border-radius: 8px;
    background: #4583ad;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.sidebar a:hover {
    background: #3498db;
    cursor: pointer;
}

.content a{
    color: rgb(0, 0, 0);
    text-decoration: none;
    transition: color 0.3s;
}

.content a:hover{
    color: rgb(112, 112, 112);
    text-decoration: none;
}

.content {
    grid-area: content;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;

    align-content: start;
}

.content h1 {
    grid-column: 1 / -1;
    margin-top: 0;
    margin-bottom: 0;
}

.content p {
    font-size: 1.5rem;
}

.footer {
    grid-area: footer;
}

.sidebar h1 {
    text-align: center;
}

.header,
.sidebar,
.content,
.footer,
.card {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 12px;
}

#img-resize {
    width: 80%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: auto;
}

#photo_size {
    width: 260px;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: auto;
}

#photo_size:hover {
    cursor: pointer;
}

#text_middle {
    text-align: center;
}

#certificates {
    display: block;
    margin: auto;
    grid-column: 1 / -1;
    width: 800px;
}

.page {
    grid-column: 1 / -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    height: 0;
    overflow: hidden;
}

.page.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    opacity: 1;
    visibility: visible;
    height: auto;
}

@media (max-width: 1000px) {
    .layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "sidebar"
            "content"
            "footer";
    }

    .content {
        grid-template-columns: 1fr;
    }

    #photo_size {
        width: 100%;
    }

    #certificates {
        width: 100%;
    }
}

.timeline {
    display: flex;
    flex-direction: column-reverse; /* ältestes unten, neuestes oben */
    border-left: 3px solid #2c3e50;
    margin-left: 20px;
    padding: 10px 0;
    grid-column: 1 / -1;
}

.timeline-item {
    position: relative;
    padding: 10px 0 10px 30px;
}

.timeline-dot {
    position: absolute;
    left: -10px;               /* zentriert auf der Linie */
    top: 15px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2c3e50;
}

.timeline-card {
    background: #4583ad;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-date {
    font-size: 0.8em;
    color: #ffffff;
    font-weight: bold;
}

.skill-bar {
    margin-bottom: 10px;
}

.bar {
    background: #ccc;
    border-radius: 20px;
    height: 20px;
    width: 80%;
    margin: auto;
}

.fill {
    background: #4583ad;
    height: 100%;
    border-radius: 20px;
}

.fill-lang {
    background: #137c80;
    height: 100%;
    border-radius: 20px;
}