:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --accent: #059669;
    --subtle: #f4f4f5;
    --border: #e4e4e7;
    --dim: #71717a;
    --max-width: 860px;
    --outer-bg: #f0f2f5; 
    --gap: 5rem;
}

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

html { 
    scroll-behavior: smooth; 
    background-color: var(--outer-bg); 
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: 40px 20px; 
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg);
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    border-radius: 32px 32px 0 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 5% 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem; 
}

.logo {
    font-weight: 800;
    font-size: 2.2rem;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2rem; 
}

.nav-links a {
    text-decoration: none;
    color: var(--dim);
    font-size: 0.75rem; 
    font-weight: 500; 
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px; 
}

.nav-links a:hover { 
    color: var(--accent); 
}

header.hero {
    padding: 5rem 5% 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

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

.hero p {
    font-size: 1.15rem;
    color: var(--dim);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

section {
    padding: var(--gap) 5% 0;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

#kontakt { padding-bottom: var(--gap); }

h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
}

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

.card {
    background: var(--subtle);
    padding: 2.2rem;
    border-radius: 24px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.card:hover { 
    transform: translateY(-5px); 
    background: #fff; 
    border-color: var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; color: var(--accent); }
.card p { font-size: 0.95rem; color: var(--dim); }

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 2rem;
}

.portfolio-item {
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

.portfolio-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (min-width: 860px) {
    .portfolio-item:nth-child(even) .portfolio-layout {
        flex-direction: row-reverse;
    }
}

.portfolio-content {
    flex: 1.5;
    min-width: 280px;
}

.portfolio-content p {
    margin-bottom: 1.5rem;
}

.portfolio-image-wrapper {
    flex: 1;
    min-width: 280px;
}

.portfolio-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    cursor: zoom-in;
    display: block;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.portfolio-image:hover {
    transform: scale(1.02);
}

.tag {
    display: inline-block;
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.portfolio-item h3 { 
    font-size: 1.6rem; 
    font-weight: 800; 
    margin-bottom: 1rem; 
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    gap: 8px;
}

.portfolio-link::after { content: '→'; transition: transform 0.2s ease; }
.portfolio-link:hover::after { transform: translateX(5px); }

.contact-wrapper {
    background: var(--subtle);
    padding: 3rem 8%;
    border-radius: 28px;
    max-width: 600px;
    margin: 0 auto;
}

.personal-info {
    text-align: center;
    margin-bottom: 2.5rem;
}

.personal-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.personal-info > a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-email-text {
    font-size: 0.8rem;
    color: var(--dim);
    margin-top: 0.5rem;
}
        
.contact-or-text {
    text-align: center;
    color: var(--dim);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.useme-badge-container {
    display: block;
    width: 100%;
    margin-top: 1.2rem;
}

.useme-badge {
    display: inline-block;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dim);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    max-width: 280px;
    text-align: center;
}
        
.useme-badge:hover { 
    border-color: var(--accent); 
    color: var(--text); 
    transform: translateY(-2px); 
}
        
.useme-badge span { 
    color: var(--accent); 
    font-weight: 800; 
    white-space: nowrap; 
}

.status-msg {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}
        
.status-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.status-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.form-group { margin-bottom: 1.2rem; }
label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.4rem; }
        
input, textarea {
    width: 100%; 
    padding: 0.9rem; 
    background: #fff; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    font-family: inherit; 
    display: block;
    transition: border-color 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.btn {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    display: block;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.btn:hover { 
    opacity: 0.9; 
    transform: translateY(-2px); 
}

.btn-auto {
    width: auto;
    display: inline-block;
    padding: 1rem 2.5rem;
}

footer {
    margin-top: auto;
    padding: 3rem 5%;
    text-align: center;
    color: var(--dim);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
    border-radius: 0 0 32px 32px;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    max-width: 450px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cookie-banner {
        left: auto;
        right: 40px;
        bottom: 40px;
    }
}

.cookie-container p {
    font-size: 0.85rem;
    color: var(--dim);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
}

.btn-cookie {
    background: var(--accent);
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    transition: opacity 0.2s ease;
}

.btn-cookie:hover {
    opacity: 0.9;
}

.btn-cookie-secondary {
    background: var(--subtle);
    color: var(--text);
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    transition: background 0.2s ease;
}

.btn-cookie-secondary:hover {
    background: var(--border);
}

@media (max-width: 768px) {
    :root { --gap: 3rem; }
    .grid { grid-template-columns: 1fr; }
    body { padding: 0; }
    .page-wrapper { border-radius: 0; border: none; min-height: 100vh; }
    
    nav { border-radius: 0; }
    .nav-container { padding: 1.5rem 5% 1.2rem; gap: 0.8rem; }
    .logo { font-size: 1.8rem; }
    .nav-links { gap: 1.2rem; }
    .nav-links a { font-size: 0.7rem; letter-spacing: 1px; }
    
    .portfolio-item { padding: 2rem; }
    .contact-wrapper { padding: 2.5rem 5%; }
    
    .lum-lightbox-inner img {
        max-width: 100vw !important;
        max-height: 80vh !important;
        width: 100% !important;
        height: auto !important;
    }
}
.form-gdpr-consent {
    margin-top: 15px;
    margin-bottom: 20px;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent);
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.checkbox-label a {
    color: #38bdf8;
    text-decoration: none;
}
.checkbox-label a:hover {
    text-decoration: underline;
}
.cookie-banner a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}
.cookie-banner a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .privacy-container h1 {
        font-size: 2rem;
    }
    .privacy-container h2 {
        font-size: 1.25rem;
    }
    .privacy-container p, .privacy-container li {
        font-size: 0.95rem;
    }
}

.lum-lightbox {
    z-index: 99999 !important;
}
