@import url("https://fonts.googleapis.com/css?family=Neucha&display=swap");
@import url("https://fonts.googleapis.com/css?family=Raleway&display=swap");

/* ===== Grundlayout (Dark Theme) ===== */
:root {
    --bg: #000000;
    --text: #ffffff;
    --text-dim: #dddddd;
    --muted: #cccccc;
    --accent: #ff5757; /* Link-/Hover-Akzent */
    --hello: #444444;  /* dezentes Grau für H1 / Watermarks */

    /* Layout-Variablen */
    --container-pad-desktop: 20%;
    --container-pad-tablet: 10%;
    --container-pad-mobile: 5%;
    --intro-margin-left-desktop: 50px;
    --intro-margin-left-tablet: 39px;
    --intro-margin-left-mobile: 25px;
    --navbar-height-desktop: 64px;
    --navbar-height-mobile: 56px;
    --footer-reserve: 80px;

    /* Jahreszahl-Farbe (sichtbar weiß, leicht transparent) */
    --year: rgba(255, 255, 255, 0.26);
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
}

body {
    padding-top: var(--navbar-height-desktop); /* Platz für fixe Navbar */
    padding-bottom: var(--footer-reserve);     /* Platz für Footer */
    font-family: 'Raleway', sans-serif;
}

/* ===== Hauptcontainer (Intro-Bereich) ===== */
.content-container {
    box-sizing: border-box;
    width: 100%;
    background-color: var(--bg);
    padding: 20vh var(--container-pad-desktop) 20px var(--container-pad-desktop);
}

/* ===== Überschrift „Hallo!“ ===== */
#hello {
    font-size: 7.2em;
    line-height: 1.25;
    margin: 0;
    font-family: "Neucha", cursive;
    font-weight: 300;
    color: var(--hello);
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

/* ===== Intro-Text direkt unter „Hallo!“ ===== */
.intro {
    font-family: 'Raleway', sans-serif;
    margin-left: var(--intro-margin-left-desktop);
    margin-top: 0; /* Abstand nach dem „Hallo!“ */
    font-size: 1.8em;
    width: calc(100% - var(--intro-margin-left-desktop));
    max-width: 22em;
    color: var(--text);
    font-weight: 400;
}

/* Name & Firma im Intro */
#name { font-weight: 800; color: var(--text); }
#company { color: var(--muted); font-weight: 600; }

.pointer { cursor: pointer; }

/* ===== Details (Abschnitt unter Intro) ===== */
.details {
    font-family: 'Raleway', sans-serif;
    width: 100%;
    margin: 60px var(--intro-margin-left-desktop);
    font-size: 1.4em;
    font-weight: 300;
    color: var(--text-dim);
}

.details a:link,
.details a:visited,
.details a:active {
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.details a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== Fokus ===== */
a:focus-visible {
    outline: 2px dashed var(--accent);
    outline-offset: 2px;
}

/* ===== Sektionen (Projects / Mein Werdegang) =====
   Sections sind links an .intro ausgerichtet:
   padding-left = Container-Padding + Intro-Margin-Left
*/
.section {
    font-family: 'Raleway', sans-serif;
    color: var(--text-dim);
    /*padding-top: 80px;*/
    /*padding-bottom: 60px;*/
    padding-right: var(--container-pad-desktop);
    padding-left: calc(var(--container-pad-desktop) + var(--intro-margin-left-desktop));
    box-sizing: border-box;
}

/* Große Section-Titel (H1) wie „Hallo!“ einrücken */
.section > h1 {
    font-family: "Neucha", cursive;
    font-weight: 300;
    color: var(--hello);
    line-height: 1.05;
    margin: 0 0 24px 0;
    font-size: 4.2em;

    /* Section hat links (container + intro-offset).
       Um auf die gleiche Kante wie „Hallo!“ (nur container) zu kommen,
       ziehen wir den intro-offset wieder ab: */
    margin-left: calc(-1 * var(--intro-margin-left-desktop));
}

.section h2 {
    color: var(--text);
    margin: 0 0 16px 0;
    font-weight: 800;
    font-size: 2em;
}

.section p {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    line-height: 1.6;
}

.section a:link,
.section a:visited,
.section a:active {
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.section a:hover { color: var(--accent); text-decoration: underline; }

/* ===== Werdegang / Timeline ===== */
.timeline { position: relative; }
.timeline .year-group {
    position: relative;
    margin: 80px 0 56px 0;
    padding-top: 56px; /* Platz für die Jahreszahl oberhalb */
}

/* Jahreszahl steht OBERHALB der Einträge,
   horizontal wie „Hallo!“ (nur container) eingerückt */
.timeline .year-group::before {
    content: attr(data-year);
    position: absolute;
    top: 0;
    left: calc(-1 * var(--intro-margin-left-desktop)); /* intro-Offset kompensieren */

    font-family: "Neucha", cursive;
    font-weight: 300;
    font-size: clamp(3.6rem, 10vw, 7.8rem);
    line-height: 1;
    color: var(--year); /* gut sichtbares Weiß */
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* Inhalt liegt unterhalb der Jahreszahl (aber darüber gestapelt) */
.timeline .entry {
    position: relative;
    z-index: 2;
    max-width: 65ch;
}

.timeline .entry-title {
    /*margin: 0 0 4px 0;*/
    color: var(--text);
    font-weight: 800;
    font-size: 1.8rem;
}

.timeline .entry-sub {
    margin: 0 0 8px 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.timeline .entry-meta {
    margin: 0 0 12px 0;
    color: var(--text-dim);
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Badges/Tags */
.badge {
    display: inline-block;
    padding: 2px 2px;
    border-radius: 999px;
    background: #0f0f10;
    color: #cfe7ff;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #1b1c1f;
}

.timeline .entry-desc {
    margin: 0 0 20px 0;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 1023px) and (min-width: 768px) {
    body { padding-top: var(--navbar-height-desktop); }

    .content-container {
        padding: 20vh var(--container-pad-tablet) 20px var(--container-pad-tablet);
    }

    #hello {
        font-size: 6.4em;
        line-height: 1;
    }

    .intro {
        margin-left: var(--intro-margin-left-tablet);
        margin-top: 0;
        font-size: 1.5em;
        width: calc(100% - var(--intro-margin-left-tablet));
    }

    .details {
        margin-left: var(--intro-margin-left-tablet);
        margin-top: 40px;
        font-size: 1.1em;
        margin-right: var(--intro-margin-left-tablet);
    }

    .section {
        padding: 0 var(--container-pad-tablet) 8px calc(var(--container-pad-tablet) + var(--intro-margin-left-tablet));
    }

    .section > h1 {
        margin-left: calc(-1 * var(--intro-margin-left-tablet));
        font-size: 3.4em;
    }

    .section h2 { font-size: 1.6em; }
    .section p  { font-size: 1.05em; }

    .timeline .year-group { padding-top: 48px; margin: 72px 0 48px; }
    .timeline .year-group::before {
        left: calc(-1 * var(--intro-margin-left-tablet));
        font-size: clamp(3rem, 9vw, 6rem);
        top: 0;
    }
}

@media (max-width: 767px) {
    body { padding-top: var(--navbar-height-mobile); }

    .content-container {
        padding: 20vh var(--container-pad-mobile) 20px var(--container-pad-mobile);
    }

    #hello {
        font-size: 4.2em;
        line-height: 1;
        width: 100%;
    }

    .intro {
        margin-left: var(--intro-margin-left-mobile);
        margin-top: 25px;
        font-size: 1.1em;
        width: calc(100% - var(--intro-margin-left-mobile));
    }

    .details {
        margin-left: var(--intro-margin-left-mobile);
        margin-top: 25px;
        font-size: 1em;
        margin-right: var(--intro-margin-left-mobile);
    }

    .section {
        padding: 48px var(--container-pad-mobile) 40px calc(var(--container-pad-mobile) + var(--intro-margin-left-mobile));
    }

    .section > h1 {
        margin-left: calc(-1 * var(--intro-margin-left-mobile));
        font-size: 2.8em;
    }

    .section h2 { font-size: 1.4em; }
    .section p  { font-size: 1em; }

    .timeline .year-group { padding-top: 40px; margin: 56px 0 40px; }
    .timeline .year-group::before {
        left: calc(-1 * var(--intro-margin-left-mobile));
        font-size: clamp(2.6rem, 18vw, 4.8rem);
        top: 0;
    }
}

/* sanftes Scrollen für Anchor-Links */
html { scroll-behavior: smooth; }

/* Übergangstext unter dem Intro */
.details.transition {
    margin-top: 24px;            /* etwas dichter am Intro als die normalen Details */
    margin-bottom: 0;
    color: var(--text-dim);
    font-size: 1.2em;
    max-width: 40em;
}

/* Link-Stil für den Sprung nach unten */
.jump-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.jump-link:hover {
    color: #375fc3;
    border-color: #375fc3);
    transform: translateY(1px);
}
.jump-link span { font-size: 1.1em; line-height: 1; }

/* responsive Feinschliff */
@media (max-width: 1023px) and (min-width: 768px) {
    .details.transition { font-size: 1.05em; }
}
@media (max-width: 767px) {
    .details.transition { font-size: 1em; }
}

/* 6) Tablet/Mobile: konsistente Anpassung */
@media (max-width: 1023px) and (min-width: 768px) {
    .timeline .year-group { margin: 72px 0 44px; padding-top: 44px; }
    .timeline .year-group::before {
        left: calc(-1 * var(--intro-margin-left-tablet));
        font-size: clamp(2.8rem, 8.5vw, 5.6rem);
        top: -2px;
    }
}

@media (max-width: 767px) {
    .details.transition { font-size: 1em; }
    .timeline .year-group { margin: 56px 0 36px; padding-top: 38px; }
    .timeline .year-group::before {
        left: calc(-1 * var(--intro-margin-left-mobile));
        font-size: clamp(2.4rem, 17vw, 4.6rem);
        top: -2px;
    }
}


