/* =========================================================
   dejongste.at – style.css
   ========================================================= */

/* --- Schriften: liegen auf deinem Server (keine Verbindung zu Google) --- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/inter-800.woff2') format('woff2'); }

/* --- Globale Variablen --- */
:root {
    --brand-main: #2b2c7c;
    --brand-accent: #4a4aff;
    --brand-light: #8a8aff;
    --bg-darkest: #090a10;
    --bg-darker: #0d0f1a;

    --glass-bg: rgba(43, 44, 124, 0.08);
    --glass-border: rgba(43, 44, 124, 0.25);
    --glass-hover: rgba(74, 74, 255, 0.35);

    --text-main: #ffffff;
    --text-muted: #a0a4b8;
    /* Akzentfarbe für KLEINEN Text: #4a4aff ist auf dem dunklen Hintergrund
       zu kontrastarm (3,5 : 1), #8a8aff ist gut lesbar (6,7 : 1). */
    --text-accent: #8a8aff;

    --color-linkedin: #0077b5;
    --color-email: #ea4335;
    --color-insta: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --success-green: #10b981;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Platz für die fixe Navigation beim Springen zu #Abschnitten */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-darkest);
    background-image: radial-gradient(circle at top right, #151633 0%, var(--bg-darkest) 50%);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Text ist jetzt markierbar – Recruiter wollen Namen/Adresse kopieren können */
}

body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease, transform 0.3s ease; }

/* Sichtbarer Rahmen für Tastatur-Bedienung */
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; }

/* Nur für Screenreader sichtbar */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute; top: -100px; left: 16px; z-index: 10001;
    padding: 10px 18px; border-radius: 8px;
    background: var(--brand-accent); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* --- Sprachumschaltung: nur die aktive Sprache wird angezeigt --- */
html[lang="en"] .lang-de, html[lang="en"] .lang-es,
html[lang="de"] .lang-en, html[lang="de"] .lang-es,
html[lang="es"] .lang-en, html[lang="es"] .lang-de { display: none !important; }

/* --- Layout & Container --- */
section {
    padding: 70px 25px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2.6rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -1px; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; font-weight: 400; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 26px;
    min-height: 44px;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-main));
    color: #fff;
    border: none; border-radius: 8px;
    font-weight: 500; font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(43, 44, 124, 0.4);
    transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}
.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(74, 74, 255, 0.6);
    background: linear-gradient(135deg, #5b5bff, var(--brand-main));
}
.btn-outline { background: transparent; border: 1px solid var(--glass-border); box-shadow: none; }
.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--brand-accent);
    box-shadow: 0 10px 25px rgba(74, 74, 255, 0.2);
}
/* Magnetische Buttons: schnellere Reaktion */
.magnetic-btn { transition: transform 0.15s ease-out, background 0.3s, box-shadow 0.3s, border-color 0.3s; }

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Milchglas als eigene Ebene – sonst wäre das mobile Menü in der Navbar "gefangen" */
.navbar::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: rgba(9, 10, 16, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.navbar.scrolled { border-bottom-color: rgba(74, 74, 255, 0.18); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }

.nav-logo {
    font-size: 1.3rem; font-weight: 700; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
    transition: transform 0.3s ease;
}
.nav-logo:hover { transform: scale(1.05); }
.nav-logo img { width: 28px; filter: drop-shadow(0 0 8px rgba(74, 74, 255, 0.4)); }
.nav-logo span { color: #fff; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: #fff; }
.nav-links a:not(.btn):hover { color: var(--text-accent); transform: translateY(-2px); }
.nav-links a.is-active:not(.btn) { color: var(--text-accent); }
.nav-links .btn { padding: 8px 20px; font-size: 0.9rem; }

/* --- Sprach-Auswahl --- */
.lang-dropdown-wrapper { position: relative; display: inline-block; }
.lang-toggle {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 20px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text-main); font-weight: 600; font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.lang-toggle:hover { border-color: var(--brand-accent); background: rgba(74, 74, 255, 0.15); }

.lang-dropdown {
    display: none; flex-direction: column;
    position: absolute; top: 100%; right: 0; margin-top: 10px;
    min-width: 130px; overflow: hidden;
    background: var(--bg-darker); border: 1px solid var(--glass-border); border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.lang-dropdown.show { display: flex; animation: dropIn 0.2s ease; }
.lang-option {
    padding: 10px 15px; text-align: left;
    background: transparent; border: none;
    color: var(--text-main); font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.lang-option:hover, .lang-option[aria-current="true"] { background: var(--glass-bg); color: var(--text-accent); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Hamburger (mobil) --- */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    position: relative; z-index: 1001;
    padding: 8px; background: none; border: 0; cursor: pointer;
}
.hamburger .bar {
    display: block; width: 26px; height: 2px; border-radius: 2px;
    background-color: var(--text-main);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) { .nav-links { gap: 20px; } }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; inset: 0;
        flex-direction: column; justify-content: center; gap: 40px;
        background: rgba(9, 10, 16, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        transform: translateX(100%);
        visibility: hidden; /* geschlossenes Menü ist auch per Tastatur nicht erreichbar */
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }
    .nav-links.active { transform: translateX(0); visibility: visible; transition: transform 0.3s ease, visibility 0s; }
    .nav-links a { font-size: 1.5rem; font-weight: 600; }
    .nav-links .btn { font-size: 1.2rem; padding: 15px 35px; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .lang-dropdown { right: auto; left: 50%; translate: -50% 0; }
}

/* --- Hero --- */
.hero {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding-top: 150px; padding-bottom: 20px;
}
.hero-text { flex: 1.2; max-width: 650px; z-index: 2; }

.hero-greeting {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; margin-bottom: 25px;
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 30px;
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-accent);
}
.hero-greeting::before {
    content: ''; display: block; width: 8px; height: 8px; flex-shrink: 0;
    background: var(--brand-accent); border-radius: 50%; box-shadow: 0 0 10px var(--brand-accent);
}

/* Vorname weiß, Nachname mit Farbverlauf */
.hero-title { font-size: 4.8rem; font-weight: 800; line-height: 1.05; margin-bottom: 20px; letter-spacing: -2px; color: #fff; }
.hero-title span {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-light) 50%, var(--brand-accent) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 30px; line-height: 1.7; }

/* Schreibmaschinen-Effekt: Buchstaben sind von Anfang an da (unsichtbar) → nichts springt */
.tw-char.is-hidden { color: transparent; }
.tw-char.caret { box-shadow: 2px 0 0 var(--brand-accent); animation: caretBlink 0.8s steps(1) infinite; }
.tw-char.caret-before { box-shadow: -2px 0 0 var(--brand-accent); animation: caretBlink 0.8s steps(1) infinite; }
@keyframes caretBlink { 50% { box-shadow: 0 0 0 transparent; } }

.hero-info-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-info-tags li {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border);
    font-size: 0.85rem; font-weight: 500; color: var(--text-main);
    cursor: default;
    transition: transform 0.3s var(--ease-bounce), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.hero-info-tags li:hover {
    transform: translateY(-3px); border-color: var(--brand-accent);
    background: rgba(74, 74, 255, 0.1); box-shadow: 0 5px 15px rgba(74, 74, 255, 0.2);
}

.hero-ctas { display: flex; gap: 15px; }

/* Profilbild mit Parallax */
.hero-img-wrapper { flex: 0.8; display: flex; justify-content: center; position: relative; perspective: 1000px; }
.hero-image-container { position: relative; z-index: 2; transition: transform 0.1s ease-out; }
.hero-image {
    width: 100%; max-width: 400px; position: relative; z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(74, 74, 255, 0.2));
    animation: floatCutout 6s ease-in-out infinite;
}
@keyframes floatCutout { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.hero-glow {
    position: absolute; top: 50%; left: 50%; z-index: 1;
    width: 350px; height: 350px; border-radius: 50%;
    background: var(--brand-accent); filter: blur(100px); opacity: 0.2;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* Sanftes Einblenden beim Laden (reines CSS – funktioniert auch ohne JavaScript) */
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-text, .hero-img-wrapper.desktop-only { animation: heroIn 0.9s var(--ease-out) both; }
.hero-img-wrapper.desktop-only { animation-delay: 0.15s; }

.mobile-only { display: none; }
.desktop-only { display: flex; }

@media (max-width: 992px) {
    .hero { flex-direction: column-reverse; justify-content: center; text-align: center; gap: 0; padding-top: 130px; padding-bottom: 10px; }
    .hero-text { display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: 3.5rem; }
    .desktop-only { display: none; }
    .mobile-only { display: flex; justify-content: center; position: relative; margin-bottom: 25px; width: 100%; }
    .hero-image { max-width: 150px; animation: none; filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(74, 74, 255, 0.2)); }
    .hero-glow { width: 140px; height: 140px; filter: blur(50px); }
    .hero-info-tags { justify-content: center; }
    .hero-ctas { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 420px) {
    .hero-title { font-size: 2.9rem; letter-spacing: -1.5px; }
    /* wächst mit der Bildschirmbreite – lange deutsche Wörter passen auch auf kleine Handys */
    .section-title { font-size: clamp(1.5rem, 8vw, 2.1rem); }
    .contact-card { padding: 36px 16px; }
}

/* --- Kurzinfos --- */
#about { padding-top: 10px; padding-bottom: 60px; margin-top: -20px; z-index: 20; }
@media (max-width: 992px) { #about { margin-top: 0; padding-top: 20px; } }

/* Glas-Karten mit Licht, das der Maus folgt */
.interactive-card {
    position: relative; overflow: hidden;
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}
.interactive-card::after {
    content: ''; position: absolute;
    top: var(--mouse-y, -100px); left: var(--mouse-x, -100px);
    width: 250px; height: 250px;
    background: radial-gradient(circle closest-side, rgba(74, 74, 255, 0.15), transparent);
    transform: translate(-50%, -50%) translateZ(-1px);
    pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 0;
}
.interactive-card:hover { border-color: var(--brand-accent); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.interactive-card:hover::after { opacity: 1; }
.card-content { position: relative; z-index: 1; transform: translateZ(20px); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.stat-card { padding: 25px 20px; text-align: center; cursor: default; border-radius: 12px; }
.stat-card p.label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 5px; font-weight: 600; }
.stat-card p.value { font-size: 1.1rem; font-weight: 600; color: var(--text-main); }

/* Grüner "Live"-Punkt */
.pulse-dot {
    display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%;
    background-color: var(--success-green);
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Skills --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.expertise-card { padding: 35px 25px; }
.expertise-card .icon { font-size: 2.2rem; margin-bottom: 15px; display: inline-block; transition: transform 0.3s; }
.expertise-card:hover .icon { transform: scale(1.2) rotate(5deg); }
.expertise-card h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.5px; }
.expertise-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* --- Projekte & Filter --- */
.project-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 18px; border-radius: 20px;
    background: var(--bg-darkest); border: 1px solid var(--glass-border);
    color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--brand-accent); color: #fff; background: rgba(74, 74, 255, 0.1); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 30px; }

/* Ohne "forwards", damit der 3D-Tilt nach dem Einblenden funktioniert */
.project-card { display: flex; flex-direction: column; cursor: pointer; animation: scaleIn 0.4s ease-out; }
.project-card.hide { display: none !important; }
.project-card > .card-content { height: 100%; display: flex; flex-direction: column; }
.project-card:focus-within { border-color: var(--brand-accent); }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.project-img {
    position: relative; z-index: 1;
    height: 180px; width: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-darker); border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s ease;
}
.project-img::after {
    content: ''; position: absolute; inset: 0; opacity: 0.5;
    background-image: linear-gradient(var(--glass-bg) 1px, transparent 1px), linear-gradient(90deg, var(--glass-bg) 1px, transparent 1px);
    background-size: 20px 20px;
}
.project-card:hover .project-img { background: var(--brand-main); }

.project-logo {
    width: 80px; max-height: 100%; object-fit: contain;
    position: relative; z-index: 2; opacity: 0.9;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}
.project-card:hover .project-logo { transform: scale(1.15); }

.project-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.project-tags { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.project-tags li {
    padding: 4px 12px; border-radius: 20px;
    border: 1px solid var(--glass-border); background: var(--bg-darkest);
    font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
}
.project-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.5px; }
.project-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; flex-grow: 1; }
.project-link {
    display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
    font-size: 0.9rem; font-weight: 600; color: #fff;
    transition: color 0.3s, gap 0.3s;
}
/* Der Link spannt sich unsichtbar über die ganze Karte → ganze Karte klickbar */
.project-link::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.project-card:hover .project-link { color: var(--text-accent); gap: 10px; }

/* --- Werdegang --- */
.modern-timeline { position: relative; max-width: 800px; margin: 0 auto; }
.modern-timeline::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 24px;
    width: 2px; background: var(--glass-border);
}
.timeline-item { position: relative; padding-left: 70px; margin-bottom: 45px; }
.timeline-item::before {
    content: ''; position: absolute; left: 17px; top: 6px; z-index: 2;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--brand-accent); box-shadow: 0 0 0 4px var(--bg-darkest);
    transition: transform 0.4s var(--ease-bounce), background 0.4s, box-shadow 0.4s;
}
.timeline-item:hover::before { background: #fff; box-shadow: 0 0 0 6px var(--glass-hover); transform: scale(1.3); }
.timeline-content { padding: 30px; }
.timeline-date {
    display: inline-block; margin-bottom: 10px;
    font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
    color: var(--text-accent);
}
.timeline-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; color: var(--text-main); letter-spacing: -0.5px; }
.timeline-subtitle { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 600px) {
    .modern-timeline::before { left: 14px; }
    .timeline-item { padding-left: 50px; }
    .timeline-item::before { left: 7px; }
    .timeline-content { padding: 20px; }
}

/* --- Kontakt (neu) --- */
#contact { padding-bottom: 40px; }
.contact-card {
    max-width: 780px; margin: 0 auto;
    padding: 55px 40px; border-radius: 20px; text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(74, 74, 255, 0.16), transparent 60%),
        var(--glass-bg);
}
.contact-card .section-title { margin-bottom: 12px; }
.contact-email {
    margin: 30px 0 26px;
    font-size: 1.45rem; font-weight: 600; letter-spacing: -0.3px;
    color: var(--text-main);
    overflow-wrap: anywhere;
}
.contact-email noscript { display: block; font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.copy-feedback { min-height: 1.6em; margin-top: 16px; font-size: 0.9rem; color: var(--success-green); }
@media (max-width: 600px) { .contact-card { padding: 40px 22px; } .contact-email { font-size: 1.2rem; } }

/* --- Social-Buttons (schweben rechts unten) --- */
.floating-socials {
    position: fixed; right: 30px; bottom: 30px; z-index: 9990;
    display: flex; flex-direction: column; gap: 15px;
    transition: opacity 0.3s, visibility 0.3s;
}
.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(9, 10, 16, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s var(--ease-bounce), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.social-icon img { width: 18px; height: 18px; opacity: 0.8; transition: opacity 0.3s; }
.social-icon:hover img { opacity: 1; }
.social-icon.linkedin:hover { background: var(--color-linkedin); border-color: var(--color-linkedin); transform: translateY(-5px) scale(1.1); box-shadow: 0 5px 15px rgba(0, 119, 181, 0.5); }
.social-icon.email:hover { background: var(--color-email); border-color: var(--color-email); transform: translateY(-5px) scale(1.1); box-shadow: 0 5px 15px rgba(234, 67, 53, 0.5); }
.social-icon.insta:hover { background: var(--color-insta); border-color: transparent; transform: translateY(-5px) scale(1.1); box-shadow: 0 5px 15px rgba(225, 48, 108, 0.5); }
body.menu-open .floating-socials { opacity: 0; visibility: hidden; }

@media (max-width: 768px) {
    .floating-socials {
        flex-direction: row; gap: 20px;
        bottom: 20px; right: auto; left: 50%; transform: translateX(-50%);
        padding: 10px 20px; border-radius: 30px;
        background: rgba(9, 10, 16, 0.95);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
    }
    .social-icon { width: 38px; height: 38px; border: none; background: transparent; box-shadow: none; }
}

/* --- Footer --- */
.site-footer {
    display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center;
    padding: 40px 20px; margin-top: 50px;
    background: rgba(9, 10, 16, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    position: relative; z-index: 10;
}
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-logo img { width: 24px; filter: drop-shadow(0 0 8px rgba(74, 74, 255, 0.4)); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; align-items: center; }
.footer-links button {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
    transition: color 0.3s;
}
.footer-links button:hover { color: var(--text-accent); }
.footer-divider { color: var(--glass-border); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
/* Platz für die mobile Social-Leiste */
@media (max-width: 768px) { .site-footer { padding-bottom: 100px; } }

/* --- Impressum / Datenschutz (natives <dialog>: Esc schließt, Fokus bleibt drin) --- */
.modal {
    width: 90%; max-width: 560px; max-height: min(85vh, 760px);
    margin: auto; padding: 0;
    background: var(--bg-darkest); color: var(--text-muted);
    border: 1px solid var(--brand-accent); border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: dropIn 0.3s ease; }
.modal::backdrop { background: rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    padding: 32px 32px 12px;
}
.modal-header h2 { color: #fff; font-size: 1.6rem; line-height: 1.25; }
.modal-body { padding: 8px 32px 32px; overflow-y: auto; }
.modal-body p { margin-bottom: 12px; }
.modal-body h3 { color: #fff; font-size: 1rem; margin: 20px 0 6px; }
.modal-body a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 2px; }
.modal-note { font-size: 0.85rem; margin-top: 20px; color: var(--text-accent); }
.close-modal {
    flex-shrink: 0; width: 40px; height: 40px; margin: -6px -10px 0 0;
    background: none; border: 0; border-radius: 8px;
    color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
    transition: color 0.3s, background 0.3s;
}
.close-modal:hover { color: var(--text-accent); background: var(--glass-bg); }
@media (max-width: 600px) {
    .modal-header { padding: 24px 22px 10px; }
    .modal-body { padding: 6px 22px 24px; }
}

/* --- Hintergrund-Blasen --- */
.bubble-anim {
    position: fixed; z-index: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(74, 74, 255, 0.15) 0%, transparent 70%);
    animation: bubbleAnimation 15s linear forwards;
}
@keyframes bubbleAnimation {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-110vh) scale(0.6); opacity: 0; }
}

/* --- Einblenden beim Scrollen ---
   Versteckt wird erst, wenn script.js läuft (.reveal-ready).
   Ohne JavaScript bleibt also alles sichtbar. */
.fade-up { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-ready .fade-up:not(.in-view) { opacity: 0; transform: translateY(40px); }
.reveal-setup .fade-up { transition: none !important; }

/* --- "Bewegung reduzieren" im Betriebssystem respektieren --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bubble-anim { display: none; }
}

/* Fenster-Titel am Handy: langes Wort darf umbrechen, X bleibt in der Box */
.modal-header h2 { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 600px) {
    .modal-header h2 { font-size: 1.3rem; }
    .close-modal { margin: -8px -8px 0 0; }
}
