/*
Theme Name: Mein Modernes Portfolio
Author: Dein Name
Description: Ein modernes One-Page Portfolio Theme mit HTML5, CSS3, PHP und jQuery.
Version: 4.1
*/

:root {
    --primary-color: #00ffd9; 
    --bg-color: #121212;      
    --card-bg: #1e1e1e;       
    --text-color: #e0e0e0;    
    --heading-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: sans-serif;
    line-height: 1.6;
    padding-top: 100px; 
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    background-color: rgba(18, 18, 18, 0.98); 
    padding: 15px 0; 
    position: fixed;
    width: 100%;
    top: 0; 
    z-index: 9999; 
    border-bottom: 1px solid #333;
    transition: transform 0.3s ease-in-out, top 0.3s ease; 
}

header.header-hidden {
    transform: translateY(-100%); 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;      
    font-weight: bold;      
    color: #fff;            
    text-decoration: none;  
    letter-spacing: 1px;    
    transition: color 0.3s;
}

.site-title:hover {
    color: var(--primary-color); 
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 90vh; 
    display: flex;
    align-items: center;
    padding-bottom: 50px;
    padding-top: 20px; 
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    min-height: 80px; 
    position: relative; 
}

.typewriter-text {
    color: var(--primary-color);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: #fff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 30px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image {
    max-width: 100%;
    width: 400px; 
    height: auto;
    border-radius: 20px; 
    box-shadow: 20px 20px 0px var(--primary-color); 
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* =========================================
   ANIMATIONEN & KARTEN
   ========================================= */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-text {
    opacity: 0;
    transform: translateX(-20px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-text.is-visible {
    opacity: 1;
    transform: none;
}

.interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    margin-top: 30px;
}

.interest-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px); 
    display: flex; 
    align-items: flex-start;
    gap: 15px; 
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(30px) scale(0.5);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.interest-card.is-visible {
    opacity: 1;
    transform: none;
}

.interest-card.is-visible .icon-wrapper i {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.2s; 
}

.interest-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-left-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.interest-card strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}
.interest-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =========================================
   SECTIONS GENERAL
   ========================================= */
section {
    padding: 80px 0;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.center-wrap {
    text-align: center;
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.text-content p {
    margin-bottom: 20px;
}

.text-content .last-paragraph {
    margin-bottom: 40px;
}

.interests-title {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    opacity: 0; 
}
.interests-title.is-visible { opacity: 1; transition: opacity 1s; }


.dark-section {
    background-color: #1a1a1a;
}

.narrow-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* =========================================
   WERDEGANG & PROJEKTE
   ========================================= */
.timeline-item {
    background: var(--card-bg);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 5px 5px 0;
    transition: transform 0.3s;
}
.timeline-item:hover {
    transform: translateX(10px); 
}
.timeline-item h3 { margin-bottom: 5px; }
.timeline-date { color: #888; font-size: 0.9rem; margin-bottom: 10px; display: block; }

.main-project-slider, .project-image-slider { visibility: hidden; }
.main-project-slider.slick-initialized, .project-image-slider.slick-initialized { visibility: visible; }

.project-slide { padding: 0 15px; }
.project-card { background: var(--card-bg); border-radius: 8px; overflow: hidden; padding-bottom: 20px; transition: transform 0.3s; }
.project-image-slider .img-slide img { width: 100%; height: 250px; object-fit: cover; }
.project-placeholder { height: 250px; background: #333; display: flex; align-items: center; justify-content: center; color: #888; }
.project-content { padding: 20px; }
.project-content h3 { margin-bottom: 10px; }

.btn-small {
    display: inline-block; margin-top: 15px; padding: 8px 15px;
    background-color: var(--primary-color); color: #000; text-decoration: none;
    font-weight: bold; font-size: 0.9rem; border-radius: 4px;
}
.btn-small:hover { background-color: #fff; }

.main-project-slider .slick-prev, .main-project-slider .slick-next {
    width: 40px; height: 40px; background: rgba(0,212,255, 0.2); border-radius: 50%; z-index: 10;
}
.main-project-slider .slick-prev:hover, .main-project-slider .slick-next:hover { background: var(--primary-color); }
.main-project-slider .slick-prev { left: -30px; } .main-project-slider .slick-next { right: -30px; }
.main-project-slider .slick-prev:before { content: '<'; font-size: 20px; color: white; }
.main-project-slider .slick-next:before { content: '>'; font-size: 20px; color: white; }

.project-image-slider .slick-prev, .project-image-slider .slick-next { width: 30px; height: 30px; background: rgba(0,0,0,0.5); z-index: 5; }
.project-image-slider .slick-prev { left: 0; } .project-image-slider .slick-next { right: 0; }
.project-image-slider .slick-prev:before { content: '‹'; font-size: 24px; color: #fff; } .project-image-slider .slick-next:before { content: '›'; font-size: 24px; color: #fff; }

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #0a0a0a; 
    padding: 50px 0 30px;
    text-align: center;
    margin-top: 100px;
    border-top: 1px solid #222;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav li a {
    color: #888;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-nav li a:hover {
    color: var(--primary-color);
}

.copyright-text {
    color: #555;
    font-size: 0.9rem;
}

/* =========================================
   404 GEIST (Basis Design)
   ========================================= */
.error-404-section {
    min-height: 85vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.error-title { font-size: 8rem; font-weight: 900; line-height: 1; color: var(--primary-color); margin: 20px 0 10px; }
.error-subtitle { font-size: 2rem; margin-bottom: 20px; color: #fff; }
.error-text { color: #aaa; max-width: 600px; margin: 0 auto 40px; font-size: 1.1rem; }

.ghost, .ghost-head-shape {
    position: relative;
    background: #fff;
    width: 120px;
    height: 100px;
    border-radius: 60px 60px 0 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.ghost-face { position: absolute; top: 35%; left: 50%; transform: translate(-50%, -50%); width: 70px; }
.ghost-eyes { display: flex; justify-content: space-between; margin-bottom: 10px; }
.ghost-eyes span { width: 15px; height: 15px; background: #121212; border-radius: 50%; animation: blinkEyes 4s infinite; }
.ghost-mouth { width: 25px; height: 10px; background: #121212; border-radius: 50%; margin: 0 auto; }
.ghost-mouth-strain { width: 30px; height: 5px; background: #121212; border-radius: 10px; margin: 0 auto; transform: translateY(5px); }

.ghost-torso { position: absolute; bottom: -20px; left: 0; width: 100%; height: 60px; background: #fff; z-index: -1; }
.ghost-tail { position: absolute; bottom: -35px; left: 0; width: 100%; display: flex; }
.ghost-tail span { flex: 1; height: 35px; background: #fff; border-radius: 0 0 50% 50%; box-shadow: inset 0 -5px 10px rgba(0,0,0,0.05); }
.ghost-tail span:nth-child(even) { height: 25px; }
.ghost-shadow { position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); width: 100px; height: 20px; background: rgba(0, 212, 255, 0.2); border-radius: 50%; filter: blur(10px); animation: shadowScale 3s ease-in-out infinite; }

@keyframes shadowScale { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.2; } 50% { transform: translateX(-50%) scale(0.8); opacity: 0.1; } }
@keyframes blinkEyes { 0%, 48%, 52%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.1); } }


/* =========================================
   DAS INTRO (FAKE 404 - Kontakt)
   ========================================= */
.fake-404-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    z-index: 99999; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s;
}

.ghost-intro-wrapper {
    transform: scale(1.5);
    margin-bottom: 50px;
    animation: floatGhost 3s ease-in-out infinite;
    transition: transform 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045); 
}
@keyframes floatGhost { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.intro-404-text {
    font-size: 3rem; color: var(--primary-color); font-family: monospace;
    transition: opacity 0.5s;
}


/* =========================================
   DER HEBE-GEIST (Kontakt)
   ========================================= */
.contact-wrapper-hidden {
    position: relative;
    transform: translateY(100vh); 
    opacity: 1; 
    transition: transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    padding-top: 150px;
    padding-bottom: 80px;
}

.ghost-pull-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.lifting-ghost-container {
    position: absolute;
    top: -65px; 
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    z-index: 0; 
}

.ghost-head-shape {
    height: 80px;
    border-radius: 60px 60px 0 0;
    box-shadow: none;
}

.ghost-hands-grip {
    position: absolute;
    bottom: -15px; 
    left: 50%;
    transform: translateX(-50%);
    width: 140px; 
    z-index: 2; 
}

.hand-left, .hand-right {
    position: absolute;
    top: 0;
    width: 25px; height: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.hand-left { left: 10px; }
.hand-right { right: 10px; }

.ghost-arms {
    position: absolute;
    top: 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.arm-left, .arm-right {
    width: 20px; height: 40px; background: #fff; border-radius: 10px;
    transform-origin: top center;
}
.arm-left { transform: rotate(30deg) translateX(-10px); }
.arm-right { transform: rotate(-30deg) translateX(10px); }


/* =========================================
   ANIMATION ABLAUF (Hebe + Wegfliegen)
   ========================================= */
body.play-transition .ghost-intro-wrapper {
    transform: translateY(100vh) scale(1.5); 
    animation: none; 
}

body.play-transition .intro-404-text { opacity: 0; }

body.play-transition .contact-wrapper-hidden {
    transform: translateY(0);
}

body.play-transition .fake-404-overlay {
    background-color: transparent;
    pointer-events: none; 
}

@keyframes ghostFlyAway {
    0% { transform: translateX(-50%); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-300%); opacity: 0; }
}

body.play-transition .lifting-ghost-container {
    animation: ghostFlyAway 2s ease-in forwards;
    animation-delay: 3s; 
}


/* =========================================
   INHALT STYLES (Kontakt)
   ========================================= */
.content-box {
    position: relative;
    z-index: 1; 
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #333;
    border-top: 4px solid var(--primary-color); 
}

.contact-header-small { text-align: center; margin-bottom: 20px; }
.contact-header-small h2 { color: #fff; margin-bottom: 10px; font-size: 1.8rem; }
.status-badge-small { display: inline-flex; align-items: center; background: rgba(0, 255, 0, 0.1); color: #00ff88; padding: 3px 10px; border-radius: 15px; font-size: 0.8rem; border: 1px solid rgba(0, 255, 0, 0.2); }
.contact-divider { border: 0; height: 1px; background: #333; margin: 20px 0 30px; }
.status-dot { width: 8px; height: 8px; background-color: #00ff88; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 5px #00ff88; animation: neonPulse 2s infinite; }

.pulsing-box { animation: neonPulse 2s infinite alternate; }
.contact-block { opacity: 0; transform: translateX(-100px) scale(0.8); transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.contact-block:nth-child(even) { transform: translateX(100px) scale(0.8); }
.contact-block.is-visible { opacity: 1; transform: translateX(0) scale(1); }
.contact-block:nth-child(1).is-visible { transition-delay: 1.5s; }
.contact-block:nth-child(2).is-visible { transition-delay: 1.7s; }
.contact-block:nth-child(3).is-visible { transition-delay: 1.9s; }
.contact-block:nth-child(4).is-visible { transition-delay: 2.1s; }

.shake-hover:hover { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; transform: translate3d(0, 0, 0); box-shadow: 0 0 20px var(--primary-color) !important; }
@keyframes neonPulse { from { box-shadow: 0 0 5px rgba(0, 212, 255, 0.2), inset 0 0 5px rgba(0, 212, 255, 0.1); border-color: #333; } to { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), inset 0 0 10px rgba(0, 212, 255, 0.3); border-color: var(--primary-color); } }
@keyframes shake { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(2px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 40%, 60% { transform: translate3d(4px, 0, 0); } }


/* =========================================
   PROJEKT "MEHR ANZEIGEN" BUTTON (NEU)
   ========================================= */
.btn-more-toggle {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 0;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.btn-more-toggle:hover {
    color: #fff;
    text-decoration: underline;
}

.btn-more-toggle i {
    transition: transform 0.3s ease;
}

.btn-more-toggle.active i {
    transform: rotate(180deg);
}

.text-full {
    margin-top: 10px;
    color: #ccc; 
}


/* =========================================
   WORDPRESS ADMIN BAR FIX
   ========================================= */
body.admin-bar header { top: 32px; }

/* =========================================
   RESPONSIVE DESIGN (Handy Fixes)
   ========================================= */
@media (max-width: 900px) {
    body.admin-bar header { top: 0; }
    .hero { text-align: center; height: auto; padding-top: 30px; }
    .hero-split { flex-direction: column-reverse; gap: 30px; }
    .hero-text { text-align: center; }
    .hero-image { width: 280px; }
    header { padding: 10px 0; }
    .header-flex { flex-direction: column; padding-bottom: 5px; gap: 10px; }
    nav ul { justify-content: center; padding: 0; flex-wrap: wrap; gap: 15px; }
    .interests-grid { grid-template-columns: 1fr; }
    .error-title { font-size: 5rem; }
}