/* ===========================================================================
   PORTFOLIO MARIE THIELE · Über-mich-Seite
   Farben, Schriften, Header, Buttons, Kontakt und Footer sind 1:1 dieselben
   wie in style.css. Wer dort etwas an diesen Teilen ändert, sollte es hier
   ebenfalls ändern (die Blöcke sind gleich benannt).
   =========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:wght@400;500;700&family=Bricolage+Grotesque:opsz,wght@12..96,400..800&display=swap");

:root {
    --paper: #F3F4FA;
    --surface: #FFFFFF;
    --ink: #16172E;
    --ink-soft: #4A4C66;
    --line: #D9DBEA;
    --blue: #0004E0;
    --on-blue: #FFFFFF;
    --blue-tint: #E4E5FF;
    --band: #0004E0;
    --on-band: #FFFFFF;

    --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;

    --page-x: clamp(2rem, 6vw, 9rem);
    --header-h: 7.6rem;
}

.dark-mode {
    --paper: #0B0C24;
    --surface: #14163A;
    --ink: #E8E9F7;
    --ink-soft: #A9ABC9;
    --line: #2A2D5A;
    --blue: #2f34d4;
    --on-blue: #0B0C24;
    --blue-tint: #1D2060;
    --band: #1F23B8;
    --on-band: #FFFFFF;
}

/* ---------- Basis ---------- */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-size: 1.7rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
    transition: background-color .3s ease, color .3s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

h1, h2, h3, h5, h6 { font-weight: inherit; }

.heading span { color: inherit; }

.heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(4rem, 5.5vw, 6.4rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 3.2rem;
}

/* ---------- Buttons (wie Startseite) ---------- */

.btn, .btn2, .btn-projekt {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: 1.3rem 2.6rem;
    border-radius: 999px;
    border: 2px solid var(--blue);
    background: var(--blue);
    color: var(--on-blue);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .25s ease, color .25s ease;
}

.btn:hover, .btn2:hover, .btn-projekt:hover {
    background: transparent;
    color: var(--blue);
}

/* ---------- Header (wie Startseite + Zurück-Pfeil) ---------- */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    padding: 0 var(--page-x);
    display: flex;
    align-items: center;
    gap: 2.4rem;
    transition: background-color .3s ease, box-shadow .3s ease;
}

.header.sticky {
    background: color-mix(in srgb, var(--paper) 85%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

.logo {
    margin-right: auto;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: -0.05em;
    color: var(--blue);
}

/* Zurück-Pfeil, gleiche Form wie der Mond-Button */
#btn2 {
    flex-shrink: 0;
    width: 4.2rem;
    height: 4.2rem;
    display: grid;
    place-items: center;
    margin-right: -1.2rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--ink);
    transition: border-color .2s ease, color .2s ease;
}

#btn2:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.navbar {
    display: flex;
    gap: 3.2rem;
}

.navbar a {
    position: relative;
    padding: .4rem 0;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ink);
    transition: color .2s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.2rem;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.navbar a:hover::after,
.navbar a.active::after { transform: scaleX(1); }

.navbar a.active { color: var(--blue); }

.lang-switch {
    display: flex;
    align-items: center;
    padding: .3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.lang-switch .lang-option {
    padding: .5rem 1.1rem;
    border-radius: 999px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink-soft);
    transition: background-color .2s ease, color .2s ease;
}

.lang-switch .lang-option:hover { color: var(--ink); }

.lang-switch .lang-option.active {
    background: var(--ink);
    color: var(--paper);
}

.lang-switch .lang-sep { display: none; }

#darkMode-icon {
    width: 4.2rem;
    height: 4.2rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--ink);
    transition: border-color .2s ease;
}

#darkMode-icon:hover { border-color: var(--ink); }

#menu-icon {
    display: none;
    font-size: 3.2rem;
    color: var(--ink);
}

/* ---------- Über mich ---------- */

.about {
    padding: calc(var(--header-h) + 8rem) var(--page-x) 10rem;
}

.main {
    max-width: 180rem;
    display: grid;
    grid-template-columns: minmax(20rem, 42.3rem) minmax(0, 1fr);   /* war 28rem */
    grid-template-areas:
        ". heading"
        "img copy"
        "img btn";
    column-gap: clamp(2rem, 5vw, 7rem);
    row-gap: 2.4rem;
    align-items: start;
    margin-top: 0rem;
}

.about-heading { grid-area: heading; }

.about-heading h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(5rem, 7vw, 10rem);
    font-variation-settings: "opsz" 96;
    line-height: .9;
    letter-spacing: -0.05em;
    color: var(--blue);
}

.about-heading h5 {
    margin-top: 1.6rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 2vw, 2.6rem);
    color: var(--ink-soft);
}

.about-copy {
    grid-area: copy;
    max-width: 72ch;
    font-size: clamp(1.7rem, 1.35vw, 1.95rem);
    line-height: 1.7;
    margin-top: -1rem;
    margin-bottom: -1rem;
}

.main .btn {
    grid-area: btn;
    justify-self: start;
    margin-top: .8rem;
}

/* ---------- Bilder-Karussell ---------- */

.about-img-stack {
    grid-area: img;
    position: relative;
    max-width: 51rem;
    margin: -5.4rem 2.8rem 2.8rem 3.2rem;   /* oben, rechts, unten, links */
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 2.4rem;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s ease;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide.pos-0 {
    z-index: 5;
    transform: none;
    opacity: 1;
}

/* Das nächste Bild schaut leicht versetzt und etwas kleiner dahinter hervor */
.carousel-slide.pos-1 {
    z-index: 4;
    transform: translate(2.4rem, 2.4rem) scale(.94);
    opacity: 1;
}

.carousel-slide.pos-1 img {
    filter: brightness(.85);   /* etwas dunkler, damit das vordere Bild führt */
}

/* Schatten trennt das vordere Bild vom dahinterliegenden */
.carousel-slide.pos-0 {
    box-shadow: 0 1.2rem 3rem rgba(22, 23, 46, .25);
}

.carousel-slide.pos-2,
.carousel-slide.pos-3,
.carousel-slide.pos-4 {
    z-index: 1;
    transform: translate(2rem, 2rem);
    opacity: 0;
    pointer-events: none;
}

.carousel-slide figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .6rem;
    padding: 2.8rem;
    background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--band) 92%, transparent) 100%);
    color: var(--on-band);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.carousel-slide.pos-0:hover figcaption { opacity: 1; }

.carousel-slide figcaption h6 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: -0.02em;
}

.carousel-slide figcaption p {
    font-size: 1.45rem;
    line-height: 1.5;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 4.4rem;
    height: 4.4rem;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 2px solid var(--blue);
    border-radius: 50%;
    background: var(--blue);
    color: var(--on-blue);
    font-size: 2.4rem;
    transition: background-color .2s ease, color .2s ease;
}

.carousel-arrow:hover {
    background: var(--paper);
    color: var(--blue);
}

.carousel-arrow.prev { left: -2.2rem; }
.carousel-arrow.next { right: -2.2rem; }

/* ---------- Werdegang / Timeline ---------- */

.werdegang {
    padding: 4rem var(--page-x) 12rem;
}

.timeline {
    position: relative;
    max-width: 112rem;
    margin: 4rem auto 0;
}

/* Linie: grau als Spur, blau zeichnet sich einmal beim Laden ein */
.timeline::before,
.timeline::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    border-radius: 2px;
}

.timeline::before {
    height: 100%;
    background: var(--line);
}

.timeline::after {
    height: 100%;
    background: var(--blue);
    transform-origin: top;
    animation: moveline 1.6s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes moveline {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.2rem 4rem;
    opacity: 0;
    animation: movedown .6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0s; }
.timeline-item:nth-child(2) { animation-delay: .25s; }
.timeline-item:nth-child(3) { animation-delay: .5s; }
.timeline-item:nth-child(4) { animation-delay: .75s; }
.timeline-item:nth-child(5) { animation-delay: 1s; }
.timeline-item:nth-child(6) { animation-delay: 1.25s; }

@keyframes movedown {
    from { opacity: 0; transform: translateY(-1.6rem); }
    to   { opacity: 1; transform: none; }
}

.left-timeline-item  { left: 0; }
.right-timeline-item { left: 50%; }

.text-box {
    position: relative;
    padding: 2.4rem 2.8rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2rem;
}

.text-box h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.text-box small {
    display: block;
    margin-top: .6rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue);
}

.text-box p {
    margin-top: 1rem;
    font-size: 1.55rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* Die alten Pfeile werden zu Punkten auf der Linie */
.left-timeline-item-arrow,
.right-timeline-item-arrow {
    position: absolute;
    top: 2.8rem;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: var(--paper);
    border: 21px solid var(--blue);
    z-index: 1;
}

.left-timeline-item-arrow  { right: -4.8rem; }
.right-timeline-item-arrow { left: -4.8rem; }

/* ---------- Kontakt + Footer (wie Startseite) ---------- */

.contact {
    padding: 12rem var(--page-x) 10rem;
    border-radius: 4rem 4rem 0 0;
    background: var(--band);
    color: var(--on-band);
}

.contact-mail {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(0.7rem, 1.7vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    opacity: .85;
    transition: opacity .2s ease;
    color: inherit;
}

.contact-mail:hover { opacity: 1; 
color: inherit;}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 3.6rem;
    margin-top: 4rem;
    font-size: 1.8rem;
}

.contact-meta a {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    opacity: .85;
    transition: opacity .2s ease;
}

.contact-meta a:hover { opacity: 1; }
.contact-meta i { font-size: 2.4rem; }

.contact :focus-visible { outline-color: var(--on-band); }

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.4rem var(--page-x);
    background: var(--band);
    color: var(--on-band);
    border-top: 1px solid color-mix(in srgb, var(--on-band) 20%, transparent);
    font-size: 1.4rem;
}

.footer-iconTop a {
    width: 4.4rem;
    height: 4.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--on-band);
    font-size: 2.2rem;
    transition: transform .25s ease;
}

.footer-iconTop a:hover { transform: translateY(-3px); }
#pfeiloben { color: var(--band); }

.mobile-hint { display: none; }

/* ---------- Easter Egg: Radio Ostfriesland ---------- */

.carousel-slide[data-index="3"].pos-0 { cursor: pointer; }

/* right = weiter nach links, bottom = weiter nach oben */
.radio-egg-badge {
    position: absolute;
    right: 2.4rem;
    bottom: 2.4rem;
    z-index: 6;
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    filter: drop-shadow(0 .2rem .4rem rgba(0, 0, 0, .35));
    animation: radio-egg-blink 2.2s ease-in-out infinite;
}

.carousel-slide:not(.pos-0) .radio-egg-badge { display: none; }

@keyframes radio-egg-blink {
    0%, 100% { opacity: .5; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.18); }
}

.radio-egg-badge:hover,
.carousel-slide.radio-egg-active .radio-egg-badge {
    animation: none;
    opacity: 1;
}

.radio-egg {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.2rem 1rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 1rem 3rem rgba(22, 23, 46, .15);
}

.radio-egg[hidden] { display: none; }

.radio-egg-wave {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--blue);
    animation: radio-egg-pulse 1.4s ease-in-out infinite;
}

@keyframes radio-egg-pulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.18); opacity: .5; }
}

.radio-egg-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.radio-egg-text strong { font-size: 1.3rem; }

.radio-egg-text span {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.radio-egg input[type="range"] {
    width: 7rem;
    accent-color: var(--blue);
    cursor: pointer;
}

.radio-egg button {
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--ink-soft);
}

.radio-egg button:hover {
    background: var(--blue-tint);
    color: var(--blue);
}

/* ---------- Tablet & Handy ---------- */

@media (max-width: 900px) {
    .header { gap: 1.2rem; }

    #btn2 { margin-right: 0; }

    #menu-icon { display: block; }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 1rem var(--page-x) 2.4rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 1.2rem 2.4rem rgba(22, 23, 46, .08);
    }

    .navbar.active { display: flex; }

    .navbar a {
        padding: 1.4rem 0;
        font-family: var(--font-display);
        font-size: 2.4rem;
        font-weight: 600;
    }

    .navbar a::after { display: none; }

    .about { padding-top: calc(var(--header-h) + 4rem); }

    .main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "img"
            "copy"
            "btn";
    }

    .about-img-stack {
        max-width: 30rem;
        margin: 0 2.8rem 2.8rem 0;   
    }

    .contact { border-radius: 2.8rem 2.8rem 0 0; padding-top: 9rem; }
}

@media (max-width: 700px) {
    .timeline::before,
    .timeline::after { left: 1.1rem; }

    .timeline-item,
    .right-timeline-item {
        width: 100%;
        left: 0;
        padding: 1rem 0 1rem 4rem;
    }

    .left-timeline-item-arrow,
    .right-timeline-item-arrow {
        right: auto;
        left: -3.7rem;
    }
}

@media (max-width: 480px) {
    .lang-switch .lang-option { padding: .4rem .8rem; }
    #darkMode-icon, #btn2 { width: 3.8rem; height: 3.8rem; }

    .radio-egg {
        left: 5%;
        right: 5%;
        border-radius: 2rem;
    }

    .footer {
        flex-direction: column-reverse;
        gap: 1.6rem;
    }
}

/* ---------- Weniger Bewegung, wenn gewünscht ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .timeline::after,
    .timeline-item,
    .radio-egg-badge,
    .radio-egg-wave {
        animation: none;
        opacity: 1;
        transform: none;
    }

    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Überschrift "Mein Werdegang" mittig über der Zeitleiste */
.werdegang .heading {
    text-align: center;
    margin-top: 10rem;
}

/* Auf dem Handy läuft die Zeitleiste am linken Rand -
   dort steht die Überschrift deshalb wieder links */
@media (max-width: 700px) {
    .werdegang .heading {
        text-align: left;
    }
}