/* Local Fonts */
@font-face {
    font-family: 'Prata';
    src: url('../fonts/prata-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dmsans-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dmsans-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dmsans-400-italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dmsans-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dmsans-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dmsans-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrainsmono-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrainsmono-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
:root {
    --bg: #0a101e;
    --bg-light: #0f1729;
    --bg-card: #131d30;
    --bg-card-hover: #182440;
    --accent: #fec544;
    --accent-hover: #ffd36a;
    --text: #fdfeff;
    --text-muted: #a9adb8;
    --text-dim: #7a8194;
    --border: rgba(255,255,255,0.06);
    --green: #4ade80;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; font-size: 16px; overflow-x: hidden; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-hover); }

/* WCAG 2.2 — Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: #0a101e;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    color: #0a101e;
}

/* WCAG 2.2 — Focus Visible */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   NAVIGATION
========================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.85rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: 1200px;
    width: 100%;
    padding: 0;
}

.nav.scrolled {
    background: rgba(10, 16, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.nav-logo img {
    height: 68px;
    width: auto;
    filter: brightness(10);
}

.nav-logo-text {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    transition: all 0.3s ease;
}

.nav-phone:hover {
    background: var(--accent);
    color: #0a101e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(254,197,68,0.2);
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    width: 30px;
    height: 24px;
    position: relative;
}

.nav-burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: absolute;
    left: 3px;
}

.nav-burger span:nth-child(1) { top: 3px; }
.nav-burger span:nth-child(2) { top: 11px; }
.nav-burger span:nth-child(3) { top: 19px; }

.nav-burger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

.nav-burger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--bg-light);
    border-left: 1px solid var(--border);
    z-index: 200;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-header img {
    height: 28px;
    width: auto;
    filter: brightness(10);
}

.mobile-menu-header span {
    font-family: 'Prata', serif;
    font-size: 1rem;
}

.mobile-menu-close {
    margin-left: auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-close:hover {
    color: var(--accent);
    border-color: rgba(254, 197, 68, 0.45);
    background: rgba(254, 197, 68, 0.12);
}

.mobile-menu-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: #fff;
    border-left-color: var(--accent);
}

.mobile-menu-nav a svg {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    flex-shrink: 0;
}

.mobile-menu-nav a:hover svg,
.mobile-menu-nav a.active svg {
    opacity: 1;
    color: var(--accent);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 1.75rem;
}

.mobile-menu-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border);
}

.mobile-menu-phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent) !important;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.mobile-menu-phone svg {
    width: 16px;
    height: 16px;
}

.mobile-menu-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted) !important;
    text-decoration: none;
}

.mobile-menu-email svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

/* =========================================
   HERO
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(254,197,68,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74,222,128,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.2s forwards;
}

.hero-tag-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
}

.hero-name {
    font-family: 'Prata', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
}

.hero-name .accent {
    color: var(--accent);
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.65s forwards;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.7s 0.8s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: #0a101e;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(254,197,68,0.25);
    color: #0a101e;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--text);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Hero Portrait */
.hero-portrait {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards;
}

.hero-portrait-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-portrait-wrapper::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(254,197,68,0.2);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.hero-portrait-wrapper::after {
    content: '';
    position: absolute;
    inset: -28px;
    border: 1px dashed rgba(254,197,68,0.08);
    border-radius: 50%;
    animation: spin 30s linear infinite reverse;
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 100% 0;
    border: 3px solid var(--bg-card);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.hero-portrait-badge {
    position: absolute;
    bottom: 30px;
    right: 10px;
    background: var(--accent);
    color: #0a101e;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(254,197,68,0.3);
}

.hero-stats {
    position: absolute;
    top: 20px;
    left: -20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-stats-number {
    font-family: 'Prata', serif;
    font-size: 1.8rem;
    color: var(--accent);
    line-height: 1;
}

.hero-stats-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* =========================================
   SECTIONS COMMON
========================================= */
.section {
    padding: 6rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-full {
    padding: 6rem 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-tag-line {
    width: 30px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.section-title {
    font-family: 'Prata', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* =========================================
   ABOUT
========================================= */
.about-bg {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text);
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.about-info-item {
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    min-width: 0;
    transition: all 0.3s ease;
}

.about-info-item:hover {
    border-color: rgba(254,197,68,0.15);
    transform: translateY(-2px);
}

.about-info-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.about-info-value {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.25rem;
    text-align: center;
    min-width: 0;
    transition: all 0.3s ease;
}

.about-stat:hover {
    border-color: rgba(254,197,68,0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.about-stat-number {
    font-family: 'Prata', serif;
    font-size: 2.3rem;
    color: var(--accent);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* =========================================
   SERVICES / SCHWERPUNKTE
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: rgba(254,197,68,0.15);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(254,197,68,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.service-card h3 {
    font-family: 'Prata', serif;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* =========================================
   SKILLS
========================================= */
.skills-bg {
    background: var(--bg-light);
}

.skills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: 4rem;
}

.skill-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--border);
}

/* unterste Zeile je Spalte (3. und 6.) ohne Trennlinie */
.skill-row:nth-child(3n) {
    border-bottom: none;
}

/* eigenes Aufzählungszeichen statt der Zahl: goldene Raute (füllt sich bei Hover) */
.skill-num {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    width: 1.7rem;
    font-size: 0;
}

.skill-num::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: 0.5rem;
    flex-shrink: 0;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.skill-row:hover .skill-num::before {
    transform: rotate(45deg) translate(2px, -2px);
}

.skill-body {
    padding-top: 0.2rem;
}

.skill-title {
    font-size: 1.12rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.skill-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* =========================================
   RESUME / TIMELINE
========================================= */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.resume-col-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.resume-col-icon {
    width: 36px;
    height: 36px;
    background: rgba(254,197,68,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-col-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.resume-col-title h3 {
    font-family: 'Prata', serif;
    font-size: 1.3rem;
    font-weight: 400;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    z-index: 1;
}

.timeline-item:hover::before {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(254,197,68,0.3);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.timeline-title {
    font-family: 'Prata', serif;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* =========================================
   PORTFOLIO / ARBEITSPROBEN
========================================= */
.portfolio-bg {
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.7);
}

.portfolio-item:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,16,30,0.9) 0%, rgba(10,16,30,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

@media (hover: none) {
    .portfolio-overlay {
        opacity: 1;
    }
    .portfolio-title {
        transform: translateY(0);
    }
}

.portfolio-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.portfolio-title {
    font-family: 'Prata', serif;
    font-size: 1.1rem;
    transform: translateY(8px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-title {
    transform: translateY(0);
}

/* =========================================
   CLIENTS / KUNDEN
========================================= */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.client-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 5/3;
    min-width: 0;
    overflow: hidden;
    perspective: 700px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.client-card:hover {
    border-color: rgba(254,197,68,0.5);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}

.client-card img {
    max-width: 84%;
    max-height: 60px;
    width: auto;
    height: auto;
    backface-visibility: hidden;
    transition: transform 0.42s ease;
}

/* Kunden: Textzeile "Weitere Auftraggeber" unter den Kacheln */
.clients-more {
    margin: 2.75rem auto 0;
    max-width: 860px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.clients-more-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fec544;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}

/* =========================================
   ARBEITSPROBEN / PDF-AUSZÜGE
========================================= */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1.5rem;
}

.proof-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.6rem 1.6rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.proof-card:hover {
    transform: translateY(-5px);
    border-color: rgba(254,197,68,0.4);
    box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.proof-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.proof-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: #0a101e;
    background: var(--accent);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

.proof-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.proof-title {
    font-family: 'Prata', serif;
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0;
}

.proof-excerpt {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proof-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.proof-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.proof-card:hover .proof-cta svg {
    transform: translateX(4px);
}

/* PDF-Lightbox (Canvas-Rendering via PDF.js, ohne iframe) */
.pdf-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: rgba(5,8,15,0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pdf-lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
}

.pdf-lightbox {
    display: flex;
    flex-direction: column;
    width: min(960px, 100%);
    height: min(88vh, 100%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    transform: translateY(16px) scale(0.985);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdf-lightbox-overlay.open .pdf-lightbox {
    transform: none;
}

.pdf-lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem 1rem;
    flex-wrap: wrap;
    padding: 0.7rem 0.85rem 0.7rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0));
    flex-shrink: 0;
}

.pdf-lightbox-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}

.pdf-lightbox-tag {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #0a101e;
    background: var(--accent);
    padding: 0.22rem 0.45rem;
    border-radius: 4px;
}

.pdf-lightbox-title {
    font-family: 'Prata', serif;
    font-size: 1rem;
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pdf-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.pdf-lightbox-open {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pdf-lightbox-open svg {
    width: 14px;
    height: 14px;
}

.pdf-lightbox-open:hover {
    color: var(--accent);
    border-color: rgba(254,197,68,0.5);
    background: rgba(254,197,68,0.08);
}

.pdf-lightbox-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pdf-lightbox-close svg {
    width: 17px;
    height: 17px;
}

.pdf-lightbox-close:hover {
    color: var(--accent);
    border-color: rgba(254,197,68,0.45);
    background: rgba(254,197,68,0.12);
}

.pdf-lightbox-doc {
    flex: 1;
    overflow: auto;
    padding: 1.25rem;
    background: #525659;
    text-align: center;
}

.pdf-page {
    display: block;
    margin: 0 auto 1rem;
    height: auto;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.pdf-page:last-child {
    margin-bottom: 0;
}

.pdf-lightbox-status {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #e8e8ea;
    font-size: 0.9rem;
}

.pdf-zoom {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding: 3px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.pdf-zoom-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.pdf-zoom-btn svg {
    width: 15px;
    height: 15px;
}

.pdf-zoom-btn:hover:not(:disabled) {
    color: var(--accent);
    background: rgba(254,197,68,0.16);
}

.pdf-zoom-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.pdf-zoom-level {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e6e8ee;
    min-width: 3.6em;
    text-align: center;
}

/* Sternchen-Hinweis unter den Arbeitsproben */
.proof-note {
    margin: 1.7rem 0 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;
}

/* Cookie Banner */
/* Cookie-Consent (zentriertes Modal, wacon-artig) */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(5, 8, 15, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-box {
    position: relative;
    width: min(540px, 100%);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-modal.show .cookie-modal-box {
    transform: none;
}

.cookie-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cookie-modal-close svg {
    width: 17px;
    height: 17px;
}

.cookie-modal-close:hover {
    color: var(--accent);
    border-color: rgba(254, 197, 68, 0.45);
    background: rgba(254, 197, 68, 0.12);
}

.cookie-modal-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.cookie-modal-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(254, 197, 68, 0.12);
    color: var(--accent);
}

.cookie-modal-icon svg {
    width: 24px;
    height: 24px;
}

.cookie-modal-title {
    font-family: 'Prata', serif;
    font-size: 1.35rem;
    color: var(--text);
    margin: 0;
    font-weight: 400;
}

.cookie-modal-intro {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.cookie-modal-intro a {
    color: var(--accent);
    text-decoration: underline;
}

/* Cookie-Buttons: alle identisch & gleich groß (gleichwertige Auswahl, DSGVO) */
.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cookie-btn:hover {
    color: var(--accent);
    border-color: rgba(254, 197, 68, 0.5);
    background: rgba(254, 197, 68, 0.1);
}

.cookie-groups {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cookie-view[hidden] {
    display: none;
}

/* (frühere unterschiedliche Cookie-Button-Stile vereinheitlicht zu .cookie-btn) */

.cookie-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cookie-modal-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.cookie-modal-foot a {
    color: var(--text-muted);
    text-decoration: none;
}

.cookie-modal-foot a:hover {
    color: var(--accent);
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.cookie-toggle:hover {
    border-color: rgba(254,197,68,0.15);
}

.cookie-toggle-info {
    flex: 1;
}

.cookie-toggle-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.cookie-toggle-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-switch-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-switch input:checked + .cookie-switch-slider {
    background: var(--accent);
}

.cookie-switch input:checked + .cookie-switch-slider::before {
    transform: translateX(20px);
    background: #0a101e;
}

.cookie-switch.disabled .cookie-switch-slider {
    background: var(--accent);
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-switch.disabled .cookie-switch-slider::before {
    transform: translateX(20px);
    background: #0a101e;
}

/* (alte .cookie-details-footer-Regeln entfernt – Modal-Layout) */

/* =========================================
   TO TOP BUTTON
========================================= */
.to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #0a101e;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(254,197,68,0.25);
}

.to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(254,197,68,0.35);
}

.to-top svg {
    width: 20px;
    height: 20px;
}

/* =========================================
   CONTACT
========================================= */
.contact-bg {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    font-family: 'Prata', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(254,197,68,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.contact-detail-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.contact-detail-value {
    font-size: 0.95rem;
    color: var(--text);
}

.contact-detail-value a {
    color: var(--text);
    transition: color 0.3s ease;
}

.contact-detail-value a:hover {
    color: var(--accent);
}


/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form .btn-primary {
    align-self: flex-start;
}

.form-required-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: -0.25rem;
}

/* Erfolgs-Ansicht nach dem Absenden (ersetzt das Formular) */
.form-success {
    text-align: center;
    padding: 3rem 1.5rem;
    animation: formSuccessIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.form-success-icon {
    width: 64px;
    height: 64px;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.form-success h3 {
    font-family: 'Prata', serif;
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 0.75rem;
}
.form-success p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 34ch;
    margin: 0 auto;
}
@keyframes formSuccessIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(254,197,68,0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

.form-privacy {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.form-privacy a {
    color: var(--accent);
    text-decoration: underline;
}

/* Parsley Validation */
.form-group input.parsley-error,
.form-group textarea.parsley-error {
    border-color: #ef4444;
    background: rgba(239,68,68,0.05);
}

.form-group input.parsley-success,
.form-group textarea.parsley-success {
    border-color: #4ade80;
}

.parsley-errors-list {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
}

.parsley-errors-list li {
    font-size: 0.75rem;
    color: #ef4444;
    line-height: 1.4;
}

.form-checkbox .parsley-errors-list {
    margin-top: 0.3rem;
}

.form-checkbox input.parsley-error + .form-checkbox-label {
    color: #ef4444;
}

/* Captcha */
.form-captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-captcha-question {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--accent);
    white-space: nowrap;
    background: rgba(254,197,68,0.06);
    border: 1px solid rgba(254,197,68,0.15);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.form-captcha input {
    width: 80px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
}

.form-captcha-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* Honeypot */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Status messages */
.form-status:empty {
    display: none;
}

.form-status {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.form-status-success {
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.25);
    color: #4ade80;
}

.form-status-error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
    color: #ef4444;
}

/* Checkbox Group */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-top: 1px;
    transition: all 0.3s ease;
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #0a101e;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(254,197,68,0.15);
    outline: none;
}

.form-checkbox-label {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.form-checkbox-label a {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-family: 'Prata', serif;
    font-size: 1.3rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(254,197,68,0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.modal-body h3 {
    font-size: 1rem;
    color: var(--text);
    margin: 1.3rem 0 0.4rem;
    font-weight: 600;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 0.75rem;
}

.modal-body h1 { display: none; }

.modal-body h2 {
    font-family: 'Prata', serif;
    font-size: 1.2rem;
    color: var(--text);
    margin: 1.8rem 0 0.7rem;
    font-weight: 400;
}

.modal-body h1 + h2,
.modal-body h2:first-child {
    margin-top: 0;
}

.modal-body h4 {
    font-size: 0.92rem;
    color: var(--text);
    margin: 1.1rem 0 0.35rem;
    font-weight: 600;
}

.modal-body ul {
    margin: 0 0 0.9rem 1.1rem;
    padding: 0;
}

.modal-body li {
    margin-bottom: 0.35rem;
}

.modal-body a {
    color: var(--accent);
    word-break: break-word;
}

.modal-body strong {
    color: var(--text);
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--text-dim);
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.6rem 1.5rem 2.6rem;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.2fr 1.1fr;
    gap: 2.5rem;
}

.footer-brand { max-width: 25rem; }

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.footer-logo img { height: 36px; width: auto; }

.footer-logo span {
    font-family: 'Prata', serif;
    font-size: 1.18rem;
    color: var(--text);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.footer-col a,
.footer-col > span {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.footer-col a {
    width: fit-content;
    transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--accent); }

.footer-link {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    text-align: left;
    padding: 0;
    width: fit-content;
    transition: color 0.3s ease;
}

.footer-link:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom > span {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.footer-credit {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
}

/* Artikel-Modal */
.article-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.article-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.article-modal {
    position: relative;
    max-width: 820px;
    margin: 2rem auto;
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-modal-overlay.open .article-modal {
    transform: translateY(0) scale(1);
}

.article-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(10,16,30,0.7);
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(4px);
}

.article-modal-close:hover {
    background: var(--accent);
    color: #0a101e;
}

.article-modal-content .article-hero {
    position: relative;
    width: 100%;
    max-height: 360px;
    overflow: hidden;
}

.article-modal-content .article-hero img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    filter: brightness(0.6);
}

.article-modal-content .article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(10,16,30,0.95));
}

.article-modal-content .article-tag {
    display: inline-block;
    background: var(--accent);
    color: #0a101e;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.article-modal-content .article-hero h1 {
    font-family: 'Prata', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--text);
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.article-modal-content .article-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-modal-content .article-body {
    padding: 2rem 2.5rem 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.article-modal-content .article-body p {
    margin-bottom: 1.25rem;
}

.article-modal-content .article-body strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .article-modal {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    .article-modal-content .article-body {
        padding: 1.5rem;
    }
}

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .hero { padding: 0 2.5rem; }
    .section, .section-full { padding: 5rem 2.5rem; }
    .hero-portrait-wrapper { width: 300px; height: 300px; }
    .nav-inner { padding: 0 2rem; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2.2rem; padding: 3.2rem 2.5rem 2.4rem; }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
    .footer-bottom { padding: 1.5rem 2.5rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }

    /* PDF-Lightbox: Bedienelemente (Zoom, Neuer Tab, Schließen) nach oben, Titel darunter */
    .pdf-lightbox-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .pdf-lightbox-actions {
        order: -1;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: space-between;
    }
    .pdf-lightbox-open {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
    }
    .pdf-lightbox-heading {
        order: 0;
        flex: 0 0 auto;
    }

    .nav-burger { display: flex; z-index: 101; }

    .mobile-menu-overlay { display: block; }
    .mobile-menu { display: flex; }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-tag { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }

    .hero-portrait { order: -1; }
    .hero-portrait-wrapper { width: 220px; height: 220px; }
    .hero-stats { display: none; }

    .section, .section-full { padding: 4rem 1.5rem; }

    .about-grid,
    .skills-list,
    .resume-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .skills-list { grid-auto-flow: row; grid-template-rows: auto; gap: 0; }
    .skill-row:nth-child(3n) { border-bottom: 1px solid var(--border); }
    .skill-row:last-child { border-bottom: none; }

    .about-stats { grid-template-columns: 1fr; gap: 0.75rem; }
    .about-stat { padding: 1.5rem 1.25rem; }
    .about-stat-number { font-size: 2.2rem; }
    .about-info-grid { gap: 0.75rem; }

    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .client-card { padding: 0.85rem; }
    .client-card img { max-height: 96px; max-width: 95%; }

    .form-row { grid-template-columns: 1fr; }

    .cookie-modal {
        padding: 1rem;
        align-items: flex-end;
    }

    .cookie-modal-box {
        padding: 1.5rem;
    }

    .cookie-modal-actions {
        flex-direction: column;
    }

    .modal {
        max-height: 90vh;
        margin: 1rem;
    }

    .modal-body { padding: 1.5rem; }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 1.5rem;
    }
}

/* =========================================
   LEGAL PAGES (Impressum / Datenschutz)
========================================= */
.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.legal-home { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.legal-home img { height: 40px; width: auto; }
.legal-home span { font-family: 'Prata', serif; font-size: 1.15rem; color: var(--text); }
.legal-back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-size: 0.88rem; }
.legal-back svg { width: 16px; height: 16px; }
.legal-back:hover { color: var(--accent); }

.legal-main { max-width: 800px; margin: 0 auto; padding: 3.5rem 1.5rem 4.5rem; }
.legal-content h1 { font-family: 'Prata', serif; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--text); margin-bottom: 1.8rem; line-height: 1.2; }
.legal-content h2 { font-size: 1.15rem; color: var(--text); margin: 2.2rem 0 0.6rem; }
.legal-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--accent); word-break: break-word; }
.legal-content h3 { font-size: 1.02rem; color: var(--text); margin: 1.4rem 0 0.5rem; font-weight: 600; }
.legal-content h4 { font-size: 0.95rem; color: var(--text); margin: 1.1rem 0 0.35rem; font-weight: 600; }
.legal-content ul { margin: 0 0 1rem 1.3rem; padding: 0; }
.legal-content li { margin-bottom: 0.4rem; line-height: 1.7; color: var(--text-muted); }

.legal-footer {
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.6rem 1.5rem;
    font-size: 0.84rem;
    color: var(--text-dim);
}
.legal-footer a { color: var(--text-dim); }
.legal-footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
    .legal-footer { flex-direction: column; align-items: flex-start; }
}
