/* HappyEndL — Startseite im Stil der alten Seite (links hell mit Links, rechts Bild mit Zitat) */
@font-face {
    font-display: swap;
    font-family: 'Abel';
    font-style: normal;
    font-weight: 400;
    src: url('/resources/fonts/abel-v18-latin-regular.woff2') format('woff2'),
         url('/resources/fonts/abel-v18-latin-regular.woff') format('woff');
}

:root {
    --main-white: rgb(253, 253, 253);
    --main-grey: rgb(40, 37, 37);
    --dim-grey: rgb(120, 114, 112);
}

* {
    font-family: 'Abel', sans-serif;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    background-color: var(--main-white);
    color: var(--main-grey);
}

hr {
    margin: 28px 0 18px;
    height: 1px;
    border: 0;
    background: linear-gradient(to right, black, transparent);
}

.content {
    display: flex;
    min-height: 100%;
}

/* Linke Hälfte */
.welcome {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 32px;
}

.heading {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

h1 {
    font-size: 56px;
    font-weight: 400;
    letter-spacing: 4px;
    margin: 0;
}

.letter {
    display: inline-block;
    opacity: 0;
    animation: letter-in .6s ease-out forwards;
}

@keyframes letter-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.tagline {
    margin: 4px 0 28px;
    font-size: 22px;
    color: var(--dim-grey);
    text-shadow: none;
}

/* Projekte */
.projects {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--main-grey);
}

.project img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    border-radius: 8px;
    flex: none;
}

/* Glatte Logos (Assetrox, Pen & Paper) statt pixelig */
.project img.logo-vector {
    image-rendering: auto;
    border-radius: 0;
}

.dot {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
}

.dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--main-grey);
}

/* Über mich: offener Ring statt Punkt, damit es sich von den Projekten abhebt */
.dot-ring::after {
    background: transparent;
    border: 2px solid var(--main-grey);
}

.link {
    position: relative;
    display: inline-block;
    font-size: 40px;
    line-height: 1.1;
}

/* Bleistift-Textmarker: beim Darüberfahren wird die untere Hälfte des Namens von links mit Bleistift „angemalt“ */
.link {
    isolation: isolate;
}

.link::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -6px;
    right: -6px;
    bottom: 2px;
    height: 52%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3Cg filter='url(%23p)' fill='none' stroke='%235a5450' stroke-linecap='round'%3E%3Cpath d='M4 7 C 50 5, 110 9, 196 6' stroke-width='6' stroke-opacity='0.28'/%3E%3Cpath d='M2 13 C 60 11, 130 15, 198 12' stroke-width='7' stroke-opacity='0.32'/%3E%3Cpath d='M6 19 C 70 17, 120 21, 194 18' stroke-width='6' stroke-opacity='0.26'/%3E%3C/g%3E%3C/svg%3E") no-repeat left center / 100% 100%;
    clip-path: inset(0 100% 0 0);
    transition: clip-path .4s ease-out;
    pointer-events: none;
}

a.project:hover .link::before,
a.project:focus-visible .link::before {
    clip-path: inset(0 0 0 0);
}

a.project:focus-visible {
    outline: 2px dashed var(--main-grey);
    outline-offset: 6px;
}

.sub {
    display: block;
    font-size: 19px;
    color: var(--dim-grey);
    text-shadow: none;
}

.soon {
    opacity: 0.55;
    cursor: default;
}

.legal {
    display: flex;
    gap: 24px;
}

.legal a {
    font-size: 20px;
    color: var(--dim-grey);
    text-decoration: none;
    text-shadow: none;
}

.legal a:hover {
    color: var(--main-grey);
    text-decoration: underline;
}

/* Rechte Hälfte */
.thumbnail {
    position: relative;
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    overflow: hidden;
}

.thumbnail-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
}

.thumbnail-picture.pixel {
    image-rendering: pixelated;
}

.quote-container {
    position: relative;
    text-align: center;
    padding: 0 24px;
}

.quote {
    font-size: 40px;
    font-weight: bold;
    color: var(--main-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.author {
    font-size: 30px;
    color: var(--main-white);
    margin: 5px 0 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.credit {
    position: absolute;
    right: 12px;
    bottom: 8px;
    margin: 0;
    font-size: 13px;
    color: rgba(253, 253, 253, 0.6);
}

.credit a {
    color: inherit;
}

/* Handy: Bild mit Zitat oben als Band, Links darunter */
@media (max-width: 760px) {
    .content {
        flex-direction: column-reverse;
    }

    .welcome,
    .thumbnail {
        flex: none;
    }

    .welcome {
        padding: 32px 16px 40px;
        justify-content: flex-start;
    }

    .thumbnail {
        min-height: 38vh;
    }

    h1 {
        font-size: 44px;
        letter-spacing: 3px;
    }

    .link {
        font-size: 32px;
    }

    .quote {
        font-size: 28px;
    }

    .author {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .link::before {
        transition: none;
    }
}

/* Unterseiten (Impressum, Datenschutz) */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 16px 64px;
    font-size: 20px;
    line-height: 1.5;
}

.page h1 {
    font-size: 44px;
    margin: 16px 0 24px;
}

.back {
    color: var(--dim-grey);
    text-decoration: none;
}

.back:hover {
    color: var(--main-grey);
}

.todo {
    background: #fff4d6;
    border-left: 4px solid #e0a800;
    padding: 12px 16px;
}
