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

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

:root {
    --bg: #050816;
    --bg-soft: #0b1020;
    --card: #ffffff;
    --muted: #f3f4f6;
    --accent: #2380ab;
    --accent-soft: rgba(6, 182, 212, 0.1);
    --border-subtle: #e5e7eb;
    --text-main: #020617;
    --text-muted: #6b7280;
    --radius-lg: 1rem;
    --radius-md: 0.8rem;
    --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.14);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-image {
  height: 38px;          /* Hauptkontrolle der Größe */
  width: auto;           /* Seitenverhältnis behalten */
  display: block;
  margin-right: 10px;
}


body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: linear-gradient(circle at top, #ffffff 0, #ffffff 55%, #ffffff 100%);
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
    background: transparent;
}

.section-muted {
    padding: 4rem 0;
    background-color: #020617;

    background-image:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.55),
            rgba(2, 6, 23, 0.85)
        ),
        url("images/ProfInterests.png"); /* <-- ggf. Pfad anpassen */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #e5e7eb;
}

.section-muted h2 {
    color: #000000;
}

h1, h2, h3 {
    margin: 0 0 0.75rem;
    
}

h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: 1.7rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: #ffffff;
}

h4 {
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-top: 0px;
}

h5 {
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    color: rgba(15, 23, 42, 0.85);
    margin-top: 0px;
}

h6 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    color: rgba(255, 254, 250, 0.85);
    margin-top: 0px;
    margin-bottom: 15px
}

.flag-img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

.lang-sep {
    margin: 4px;
}


/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #000000;
    text-decoration: none;
}

.logo-math {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.00em;
}

.logo-math sup.exp {
    font-size: 0.3em;         
    vertical-align: super;
    position: relative;
    top: -0.8em;               
    font-weight: 500;
}

.logo-math .space {
    display: inline-block;
    width: 0em;
}

.logo-mark {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 45% 15%,#ffffff , #0ea5e9 40%, #071131 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.45);
    transform: rotate(30deg);
}

.logo-text span {
    display: block;
    font-weight: 600;
    font-size: rem;
}

.logo-text small {
    display: block;
    font-size: 0.72rem;
    color: #000000;
}

.main-nav {
    display: flex;
    gap: 1.3rem;
    font-size: 0.9rem;

}

.main-nav a {
    color: #000000;
    position: relative;
    padding-bottom: 0rem;
    text-decoration: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Burger Button (standard: hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #071131;
  margin: 5px 0;
  border-radius: 999px;
}

/* Mobile Menü (standard: hidden) */
.mobile-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(4, 6, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.75rem 1.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  color: #ffffff;
  text-decoration: none;
}

/* Open-State */
.site-header.is-open .mobile-nav {
  display: block;
}

/* Responsive: ab hier Burger statt Desktop-Navigation */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-block; }
}


/* ---------- Hero ---------- */

.hero {
    padding: 4.5rem 0 4rem;
    color: #000000;
    
}

.hero-text {
    align-items: start;
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #071131;
    margin-bottom: 0.9rem;
}

.hero-sub {
    margin-top: 0.75rem;
    max-width: 36rem;
    color: #071131;
    font-size: 0.95rem;
}

.hero-actions {
    margin-top: 1.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    
}

.hero-panel {
    background-image:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.55),
            rgba(2, 6, 23, 0.85)
        ),
        url("images/ProfInterests.png");

    background-position: 80% 80%;      /* nach rechts + oben */
    border-radius: var(--radius-lg);
    padding: 1rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: var(--shadow-soft);
}

.profile-image {
    display: block;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-md);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.pill {
    display: inline-block;
    position: relative;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;

    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.5);

    text-decoration: none;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s; 
}

.pill:hover {
    background: var(--accent-soft);
    border-color: rgba(56, 189, 248, 0.6);
    color: #ffffff;
}

.pill:hover::after{
    width: 70%;
} 

.pill-text {
    content: "";
    position: relative;
}

.pill-text:hover {
    content: "";
    border-bottom: 1px solid #ffffff;
}

.pill-text::after {
    width: 100%;
}

.hero-stats {
    display: grid;
    gap: 0.9rem;
    font-size: 0.85rem;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
    text-decoration: underline;
}

.stat-value {
    color: #ffffff;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
    margin: 10px;
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(80deg, #071131, #0ea5e9);
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.8);
    background-image:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.55),
            rgba(2, 6, 23, 0.85)
        ),
        url("images/ProfInterests.png");
        background-size: 200% auto;
        background-position: 50% 50%;
        background-repeat: no-repeat;
}

.btn.primary:hover {
    background: linear-gradient(50deg, #071131, #0ea5e9);
    transform: translateY(-1px)  scale(1.03);
    border-color: rgba(148, 163, 184);
    background-image:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.55),
            rgba(2, 6, 23, 0.85)
        ),
        url("images/ProfInterests.png");
        background-size: 180% auto;
        background-position: 50% 50%;
        background-repeat: no-repeat;
}

.btn.subtle {
    background: linear-gradient(40deg, #071131, #0ea5e9);
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.8);
    background-image:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.55),
            rgba(2, 6, 23, 0.85)
        ),
        url("images/ProfInterests.png");
        background-size: 100% auto;
        background-position: 50% 50%;
        background-repeat: no-repeat;
}

.btn.subtle:hover {
    background: linear-gradient(10deg, #071131, #0ea5e9);
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(148, 163, 184);
    background-image:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.55),
            rgba(2, 6, 23, 0.85)
        ),
        url("images/ProfInterests.png");
        background-size: 105% auto;
        background-position: 50% 50%;
        background-repeat: no-repeat;
}

/* ---------- Über mich & Cards ---------- */

.two-column {
    display: grid;
    gap: 2.2rem;
    align-items: flex-start;
    color: rgba(15, 23, 42, 0.94);
}

.section:not(.section-muted):not(.section-interests) {
    background: radial-gradient(circle at top left,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.94) 35%,
        #ffffff 80%
    );
    color: #e5e7eb;
}


.card-grid {
    display: grid;
    gap: 1.2rem;
}

.card {
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-card);
    font-size: 0.9rem;
     border-color: rgba(148, 163, 184);
    background-image:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.55),
            rgba(2, 6, 23, 0.85)
        ),
        url("images/ProfInterests.png");
        background-position: 0% 0%;
        
}

.card ul {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
    color: rgb(255, 255, 255);
}

.links {
    color: #ffffff;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Skills ---------- */

.skills-layout {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.3rem;
}

.skill-column {
    background: #040612;
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--shadow-card);
    font-size: 0.9rem;
}

.skill-column ul {
    margin: 0.4rem 0 0;
    padding-left: 1.2rem;
}

.skill-column h3 {
    color: #e5e7eb;
}

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

.timeline {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.3rem;
}

.timeline-item {
    background: #040612;
    border-radius: var(--radius-md);
    padding: 1.3rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: var(--shadow-card);
    font-size: 0.9rem;
    color: #ffffff;
    }

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #cbd5f5;
    align-self: flex-start;
    margin-left: 0.8rem;

}

/* ---------- Interessen ---------- */

.section-interests {
    position: relative;
    color: #e5e7eb;

    /* Fallback: wenn du das siehst, greift die Klasse */
    background-color: #020617;

    background-image:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.55),
            rgba(2, 6, 23, 0.85)
        ),
        url("images/ProfInterests.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.section-interests .interest-card {
    background: #040612;
    backdrop-filter: blur(6px);
}


.interest-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.3rem;
}

.interest-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-card);
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* ---------- Kontakt ---------- */

.contact-layout {
    display: grid;
    gap: 2.2rem;
    color: #000000;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    font-size: 0.9rem;
}

.contact-list li {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.contact-list span {
    width: 80px;
    color: #9ca3af;
}

.contact-list a {
    color: #22d3ee;
}

.contact-note {
    display: flex;
    justify-content: flex-end;
    color: #ffffff;
}

.note-card {
    background: #040612;
    border-radius: var(--radius-md);
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-card);
    font-size: 0.9rem;
}

.note-secondary {
    font-size: 0.8rem;
    color: #ffffff;
    margin-top: 0.6rem;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    background: #020617;
    color: #9ca3af;
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    }

    .two-column {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
    }

    .skills-layout,
    .interest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    }
}

@media (max-width: 767px) {
    .main-nav {
        display: none; /* für einfache mobile Version ohne Burger-Menü */
    }

    .site-header {
        border-bottom: 1px solid rgba(15, 23, 42, 0.95);
    }

    .section,
    .section-muted {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    .section-interests {
        background-position: center top;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ---------- Animations ---------- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }


@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 56.25em) { /* ~900px bei 16px Basis */
  .main-nav { display: none; }
  .nav-toggle { display: inline-block; }
}


/* ---------- Timeline stagger reveal ---------- */
.timeline .reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.timeline .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Interests stagger reveal ---------- */
.interest-grid .reveal-interest {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.interest-grid .reveal-interest.is-visible {
  opacity: 1;
  transform: translateY(0);
}









/* ---------- Contact Page ---------- */

.contact-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.contact-center {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.2rem;
  padding: 2rem 2.2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.contact-card h1 {
  margin-bottom: 0.4rem;
}

.contact-intro {
  font-size: 0.95rem;
  color: #cbd5f5;
  margin-bottom: 1.6rem;
}
