/*
Theme Name: Paktrex
Theme URI: https://paktrex.de
Description: Paktrex - Vertragsverwaltung, self-hosted & open source
Author: Paktrex Team
Template: twentytwentyfive
Version: 1.0.0
*//* ===== PAKTREX BRAND DESIGN SYSTEM ===== */

/* --- Base / Reset --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--pk-dark) !important;
    color: var(--pk-gray-light) !important;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.wp-site-blocks, .entry-content {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero Section --- */
.pk-hero {
    background: var(--pk-darker);
    padding: 100px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pk-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 50% 50%, rgba(37,99,235,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.pk-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.pk-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    font-weight: 900 !important;
    color: var(--pk-white) !important;
    letter-spacing: -0.03em;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
}
.pk-hero h1 span {
    background: var(--pk-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pk-hero .pk-subtitle {
    font-size: 1.25rem;
    color: var(--pk-gray);
    margin-bottom: 36px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.pk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37,99,235,0.15);
    border: 1px solid rgba(37,99,235,0.3);
    color: var(--pk-blue-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
}
.pk-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--pk-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Buttons --- */
.pk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pk-btn:hover { transform: translateY(-1px); }
.pk-btn-primary {
    background: var(--pk-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.pk-btn-primary:hover { box-shadow: 0 6px 20px rgba(37,99,235,0.45); }
.pk-btn-outline {
    background: transparent;
    color: var(--pk-blue-light);
    border: 2px solid rgba(37,99,235,0.4);
}
.pk-btn-outline:hover { background: rgba(37,99,235,0.1); border-color: var(--pk-blue); }
.pk-btn-full { width: 100%; }
.pk-btn-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* --- Sections --- */
.pk-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.pk-section-dark { background: var(--pk-darker); }
.pk-section-alt { background: var(--pk-slate); margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
.pk-section-header {
    text-align: center;
    margin-bottom: 56px;
}
.pk-section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    font-weight: 800 !important;
    color: var(--pk-white) !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.02em;
}
.pk-section-header p {
    font-size: 1.1rem;
    color: var(--pk-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Feature Grid --- */
.pk-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.pk-feature-card {
    background: var(--pk-slate);
    border: 1px solid var(--pk-slate-light);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.25s ease;
}
.pk-feature-card:hover {
    border-color: rgba(37,99,235,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.pk-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}
.pk-feature-icon.blue { background: rgba(37,99,235,0.15); color: var(--pk-blue); }
.pk-feature-icon.green { background: rgba(16,185,129,0.15); color: var(--pk-green); }
.pk-feature-icon.purple { background: rgba(139,92,246,0.15); color: var(--pk-purple); }
.pk-feature-icon.cyan { background: rgba(6,182,212,0.15); color: var(--pk-cyan); }
.pk-feature-icon.amber { background: rgba(245,158,11,0.15); color: var(--pk-amber); }
.pk-feature-icon.red { background: rgba(239,68,68,0.15); color: var(--pk-red); }
.pk-feature-card h3 {
    color: var(--pk-white) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}
.pk-feature-card p {
    color: var(--pk-gray) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 !important;
}

/* --- Status Bar --- */
.pk-status-bar {
    background: var(--pk-slate);
    border: 1px solid var(--pk-slate-light);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.pk-status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pk-status-item .label {
    font-size: 0.8rem;
    color: var(--pk-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.pk-status-item .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pk-white);
}
.pk-status-item .value.green { color: var(--pk-green); }
.pk-status-item .value.blue { color: var(--pk-blue); }
.pk-status-item .value.amber { color: var(--pk-amber); }

/* --- Roadmap / Timeline --- */
.pk-timeline {
    position: relative;
    padding-left: 32px;
}
.pk-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pk-slate-light);
}
.pk-timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 24px;
}
.pk-timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--pk-slate-light);
    background: var(--pk-dark);
}
.pk-timeline-item.done::before { border-color: var(--pk-green); background: var(--pk-green); }
.pk-timeline-item.current::before { border-color: var(--pk-blue); background: var(--pk-blue); box-shadow: 0 0 12px rgba(37,99,235,0.5); }
.pk-timeline-item h4 { color: var(--pk-white) !important; font-weight: 700 !important; margin-bottom: 4px !important; }
.pk-timeline-item p { color: var(--pk-gray) !important; font-size: 0.9rem; line-height: 1.5; margin: 0 !important; }
.pk-timeline-item .pk-tag { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; margin-top: 6px; }
.pk-timeline-item .pk-tag.green { background: rgba(16,185,129,0.15); color: var(--pk-green); }
.pk-timeline-item .pk-tag.blue { background: rgba(37,99,235,0.15); color: var(--pk-blue); }
.pk-timeline-item .pk-tag.amber { background: rgba(245,158,11,0.15); color: var(--pk-amber); }

/* --- License Form --- */
.pk-license-form-wrapper { max-width: 500px; margin: 0 auto; }
.pk-form { display: flex; flex-direction: column; gap: 20px; }
.pk-form-group { display: flex; flex-direction: column; gap: 6px; }
.pk-label { font-size: 0.9rem; font-weight: 600; color: var(--pk-gray-light); }
.pk-input {
    padding: 12px 16px;
    background: var(--pk-dark);
    border: 1px solid var(--pk-slate-light);
    border-radius: 10px;
    color: var(--pk-white);
    font-size: 1rem;
    transition: border-color 0.2s;
}
.pk-input:focus { outline: none; border-color: var(--pk-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.pk-form-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 10px;
    color: var(--pk-amber);
    font-size: 0.85rem;
    line-height: 1.5;
}
.pk-license-result { text-align: center; }
.pk-license-success { padding: 32px; background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); border-radius: 16px; }
.pk-license-success h3 { color: var(--pk-green) !important; font-size: 1.25rem !important; margin: 16px 0 12px !important; }
.pk-license-key {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pk-white);
    background: var(--pk-dark);
    padding: 16px 24px;
    border-radius: 10px;
    letter-spacing: 0.1em;
    margin: 12px 0;
    border: 1px solid var(--pk-slate-light);
}
.pk-license-error { padding: 12px 16px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: 10px; color: var(--pk-red); }

/* --- Footer --- */
.pk-footer {
    background: var(--pk-darker);
    border-top: 1px solid var(--pk-slate-light);
    padding: 48px 24px 24px;
    margin-top: 80px;
}
.pk-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.pk-footer h4 { color: var(--pk-white) !important; font-size: 1rem !important; margin-bottom: 16px !important; }
.pk-footer a { color: var(--pk-gray); text-decoration: none; transition: color 0.2s; font-size: 0.9rem; display: block; margin-bottom: 8px; }
.pk-footer a:hover { color: var(--pk-blue-light); }
.pk-footer-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--pk-slate-light); text-align: center; color: var(--pk-gray); font-size: 0.85rem; }

/* --- Navigation --- */
.pk-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51,65,85,0.5);
    padding: 0 24px;
}
.pk-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.pk-nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--pk-blue) !important;
    text-decoration: none;
    letter-spacing: -0.03em;
}
.pk-nav-links { display: flex; gap: 32px; }
.pk-nav-links a {
    color: var(--pk-gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.pk-nav-links a:hover { color: var(--pk-white); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .pk-hero { padding: 60px 20px 50px; }
    .pk-hero h1 { font-size: 2rem !important; }
    .pk-section { padding: 48px 20px; }
    .pk-status-bar { flex-direction: column; gap: 16px; }
    .pk-footer-inner { grid-template-columns: 1fr; }
    .pk-nav-links { display: none; }
    .pk-feature-grid { grid-template-columns: 1fr; }
}

/* --- WordPress overrides (dark theme) --- */
.wp-block-heading h1, .wp-block-heading h2, .wp-block-heading h3,
h1, h2, h3, h4, h5, h6 {
    color: var(--pk-white) !important;
}
p, li { color: var(--pk-gray-light) !important; }
a { color: var(--pk-blue-light) !important; }
.has-background { background-color: var(--pk-slate) !important; }
.entry-content { background: transparent !important; }
header.wp-block-template-part, footer.wp-block-template-part { display: none !important; }