/*#region color palette */
:root {
    --color-bg: #FAFAFA;
    --color-bg-alt: #F0F0F0;
    --color-text: #222222;
    --color-heading: #111111;

    --color-accent-orange: #E67E22;

    --color-secondary: #555555;
    --color-muted: #777777;

    --color-border: #e0e0e0;

    --color-link: var(--color-accent-orange);
    --color-link-hover: #D46A1F;

    --color-bg-transparent: rgba(250, 250, 250, 0.8);
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #111111;
        --color-bg-alt: #1a1a1a;
        --color-text: #e5e5e5;
        --color-heading: #ffffff;

        --color-secondary: #bbbbbb;
        --color-muted: #999999;

        --color-border: #2a2a2a;

        --color-link: #f39c12;
        --color-link-hover: #f5b041;

        --color-bg-transparent: rgba(17, 17, 17, 0.8);
    }
}
/*#endregion */

/*#region CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
}

h1 {
    font-weight: 400;
}

h2 {
    font-weight: 200;
    font-size: 2rem;
}

h3, h4, h5, h6 {
    font-weight: 500;
}

h1 {
    letter-spacing: 0.02em;
}

h2, h3 {
    letter-spacing: 0.015em;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

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

a:hover,
a:focus {
    text-decoration: underline;
    color: var(--color-link-hover);
}

ul, ol {
    list-style: initial;

    li {
        &::marker { color: var(--color-accent-orange) }
    }
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

strong {
    font-weight: normal
}

/*#endregion */

/*#region Hero */
#hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    gap: 2rem;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    grid-template-areas:
        "left"
        "right-top"
        "right-bottom";
}

.hero-figure {
    margin-bottom: 1.5rem;
    border-radius: 50%;
    grid-area: left;

    img {
        border-radius: 50%
    }
}

#hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    grid-area: right-top;
}

.hero-subtitle {
    grid-area: right-bottom;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.status-text {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--color-secondary);
}

body.slashpage {
    #hero {
        text-align: left;
        max-width: 1260px;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    #hero-title {
        font-size: clamp(1.6rem, 4vw, 2.6rem);
        margin-bottom: 1rem;
        flex: 1 1 100%;
        color: var(--color-accent-orange);

        a {
            color: inherit;
            text-decoration: none;

            &:hover,
            &:focus-visible {
                text-decoration: underline;
            }
        }
    }
    .hero-subtitle {
        color: var(--color-secondary);
    }
}

.visually-hidden { display: none }

@media (min-width: 768px) {
    #hero {
        margin: auto 0;
        text-align: left;
        gap: 0 2rem;
        min-height: 100vh;
        padding: 4rem 2rem;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "left right-top"
            "left right-bottom";
    }

    #hero-title {
        font-size: 2rem;
        align-self: end;
    }

    .hero-subtitle {
        font-size: 1rem;
        justify-content: flex-start;
        align-self: start;
    }

    .hero-figure {
        justify-self: center;

        img {
            width: 250px;
            height: 250px;
        }
    }

    .status-text {
        display: none
    }
}

/*#endregion */

/*#region availability */
.availability-badge {
    /*display: inline-flex;*/
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.available {
    background-color: #107E3E;
}

.unavailable {
    background-color: #A60000;
}

/*#endregion */

/*#region section */
section {
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    scroll-margin-top: 4rem;

    p, ul {
        max-width: 70ch;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
        padding: 0 1rem;
    }

}

@media (max-width: 600px) {
    section p {
        max-width: 100%; /* volle Breite auf kleinen Geräten */
    }
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Zwei-Spalten Layout für Expertise oder Workstyle */
.section-two-cols {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    grid-template-areas: "left" "right-text" "right-skills";
    gap: 2rem;
    margin: 0;

    h3 {
        grid-area: left;
        align-self: start;
        justify-self: start;
    }

    p, ul {
        max-width: 70ch;
        margin: 0;
        line-height: 1.6;
        padding: 0;
        grid-area: right-text;
        justify-self: stretch;

        &.skills {
            grid-area: right-skills;
            justify-self: start;
        }
    }
    ul {
        margin-left: 1rem;
    }
}

@media (min-width: 768px) {
    .section-two-cols {
        grid-template-columns: 1fr 2fr;
        grid-template-areas: "left right-text" "left right-skills";
        margin: 0 auto;
        max-width: 62.5vw;
    }
}

/*#endregion */

/*#region footer */
footer {
    background-color: var(--color-bg-alt);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

footer section {
    gap: 4rem;

    &.copyright {
        padding: 4rem 1.5rem 0 1.5rem;

        p {
            margin-bottom: 0
        }
    }
}

footer nav ul,
footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

footer a {
    color: var(--color-link);
}

footer a:hover,
footer a:focus {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/*#endregion */

/*#region word-cloud */
#skills {
    background: radial-gradient(
            circle at 50% 60%,
            rgba(230, 126, 34, 0.5),
            rgba(230, 126, 34, 0) 50%,
            transparent 80%
    );
}

.wordcloud {
    display: inline-block;
    margin: auto;
    width: 280px;
    text-align: center;
    padding: 4rem 0;;

    .skill {
        display: inline-block;
        padding: .5rem;
        color: var(--color-secondary);

        &.size-xl {
            font-size: 2.25rem;
        }

        &.size-l {
            font-size: 1.75rem;
        }

        &.size-m {
            font-size: 1.5rem;
        }

        &.size-s {
            font-size: 1rem;
        }
    }
}

@media (min-width: 768px) {
    #skills {
        background: radial-gradient(
                circle at 50% 60%,
                rgba(230, 126, 34, 0.35) 0%,
                rgba(230, 126, 34, 0.25) 15%,
                rgba(230, 126, 34, 0) 35%,
                transparent 50%
        );
    }
}
/*#endregion */

/*#region skip-link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: top 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.skip-link:focus {
    top: 1rem;
    opacity: 1;
    outline: 3px solid var(--color-accent-orange);
    outline-offset: 2px;
}

/*#endregion */

/*#region skills */
.skills span {
    color: var(--color-muted);
    background: linear-gradient(
            90deg,
            #E67E22 0 0.6em,
            currentColor 0.6em
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*#endregion */

/*#region main-nav */
.main-nav {
    width: 100vw;
    margin: 2rem auto 0;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
    background: var(--color-bg-transparent);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.main-nav a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--color-text);
}
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}
/*#endregion */

/*#region subscription link */
a.subscribe {
    color: var(--color-text);

    &:hover,
    &:focus-visible {
        color: var(--color-accent-orange);
    }

    .icon-rss {
        width: 1em;
        height: 1em;
        vertical-align: middle;
        margin-left: .5em;
    }
}
.rss-icon-template {
    display: none;
}
/*#endregion */

#projects { display: none }
