/*
Theme Name: PerPlanSys
Theme URI: https://perplansys.com
Author: PerPlanSys
Author URI: https://perplansys.com
Description: Eigenständiges WordPress-Theme für PerPlanSys – Software für Projekt- und Ressourcenplanung. Modern, seriös, ohne Drittanbieter-Tracking.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: perplansys
*/

/* ────────── Design-Tokens (Tiefblau + Stahlgrau) ────────── */
:root {
    --pps-text:       #1A2230;
    --pps-heading:    #0F2A47;
    --pps-dark:       #0B1F36;
    --pps-primary:    #0F2A47;
    --pps-accent:     #2E6BE6;
    --pps-accent-dk:  #1E4FB0;
    --pps-card:       #EEF3FA;
    --pps-border:     #DCE3ED;
    --pps-muted:      #5B6677;
    --pps-background: #F5F7FA;
    --pps-white:      #FFFFFF;
    --pps-alert:      #C8503A;

    --pps-shadow:     0 12px 40px rgba(15, 42, 71, 0.12);
    --pps-shadow-sm:  0 2px 14px rgba(15, 42, 71, 0.07);
    --pps-radius:     18px;
    --pps-radius-sm:  12px;

    --pps-font-display: 'Manrope', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --pps-font-body:    'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ────────── Reset & Basis ────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--pps-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--pps-text);
    background: var(--pps-background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--pps-font-display);
    color: var(--pps-heading);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 16px; }
a { color: var(--pps-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pps-accent-dk); }

em { font-style: normal; color: var(--pps-accent); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ────────── Header ────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
    border-bottom-color: var(--pps-border);
    box-shadow: var(--pps-shadow-sm);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--pps-heading);
}
.site-brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-brand-text {
    font-family: var(--pps-font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pps-heading);
    letter-spacing: -0.02em;
}
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--pps-text);
    font-weight: 500;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav .current-menu-item > a {
    color: var(--pps-heading);
    border-bottom-color: var(--pps-accent);
}
.site-nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 24px;
    color: var(--pps-heading);
    cursor: pointer;
}
@media (max-width: 820px) {
    .site-nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%;
        right: 24px;
        background: var(--pps-white);
        border: 1px solid var(--pps-border);
        border-radius: var(--pps-radius-sm);
        box-shadow: var(--pps-shadow);
        padding: 16px 24px;
        display: none;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 14px; }
}

/* ────────── Hero ────────── */
.hero {
    background: linear-gradient(135deg, var(--pps-dark) 0%, var(--pps-accent) 100%);
    color: var(--pps-white);
    padding: 84px 0 92px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 82%;
    margin: 0 auto;
    border-radius: var(--pps-radius);
}
@media (max-width: 720px) {
    .hero { max-width: 100%; border-radius: 0; }
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 25%, rgba(255,255,255,0.14), transparent 60%);
    pointer-events: none;
}
.hero h1 { color: var(--pps-white); margin-bottom: 18px; }
.hero p {
    font-size: 1.18rem;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.92);
}
.hero em { color: #BCD3FF; }
.hero .label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 99px;
    padding: 5px 14px;
    margin-bottom: 20px;
}

/* ────────── Sections ────────── */
.section { padding: 80px 0; }
.section-tint { background: var(--pps-card); }
.section-white { background: var(--pps-white); }
.section h2 { text-align: center; }
.section-intro {
    text-align: center;
    color: var(--pps-muted);
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

.label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--pps-accent);
    font-weight: 700;
    margin-bottom: 8px;
}
.label-light { color: rgba(255, 255, 255, 0.9); }

.divider-accent {
    width: 56px;
    height: 3px;
    background: var(--pps-accent);
    border-radius: 99px;
    margin: 12px 0 20px;
}
.divider-center { margin-left: auto; margin-right: auto; }

/* ────────── Buttons ────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--pps-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .25s;
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: linear-gradient(135deg, var(--pps-accent), var(--pps-accent-dk));
    color: var(--pps-white);
    box-shadow: 0 4px 18px rgba(46, 107, 230, .35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(46, 107, 230, .45);
    color: var(--pps-white);
}
.btn-dark {
    background: linear-gradient(135deg, var(--pps-dark), var(--pps-heading));
    color: var(--pps-white);
}
.btn-dark:hover { color: var(--pps-white); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--pps-heading);
    border: 2px solid var(--pps-heading);
}
.btn-outline:hover {
    background: var(--pps-heading);
    color: var(--pps-white);
}

/* ────────── Feature-Grid ────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin: 40px 0;
}
.feature-card {
    background: var(--pps-white);
    border: 1px solid var(--pps-border);
    border-radius: var(--pps-radius);
    padding: 32px 28px;
    box-shadow: var(--pps-shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pps-shadow);
    border-color: #C7D6EC;
}
.feature-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--pps-heading), var(--pps-accent));
    color: var(--pps-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.feature-card h3 { color: var(--pps-heading); margin-bottom: 10px; }
.feature-card p { color: var(--pps-muted); font-size: 15px; margin: 0; }
.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}
.feature-card ul li {
    font-size: 14px;
    color: var(--pps-text);
    padding: 4px 0 4px 18px;
    position: relative;
    line-height: 1.55;
}
.feature-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--pps-accent);
}

/* ────────── Inline-Card (Rechtstexte u.ä.) ────────── */
.pps-card {
    background: var(--pps-card);
    border: 1px solid var(--pps-border);
    border-radius: var(--pps-radius-sm);
    padding: 18px 22px;
    margin: 16px 0 22px;
}
.pps-card p { margin: 4px 0; font-size: 15px; }
.pps-card strong { color: var(--pps-heading); }

/* ────────── Rechtstext-Layout ────────── */
.legal-page {
    background: var(--pps-white);
    padding: 60px 0 80px;
}
.legal-page h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 4px;
}
.legal-page .stand {
    color: var(--pps-muted);
    font-style: italic;
    margin-bottom: 28px;
    font-size: 14px;
}
.legal-page h2 {
    font-size: 1.4rem;
    color: var(--pps-heading);
    border-bottom: 2px solid var(--pps-accent);
    padding-bottom: 6px;
    margin: 40px 0 14px;
}
.legal-page h3 {
    font-size: 1.08rem;
    color: var(--pps-accent-dk);
    margin: 24px 0 8px;
}
.legal-page p { color: var(--pps-text); margin-bottom: 12px; }
.legal-page ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
}
.legal-page ul li {
    padding: 4px 0 4px 20px;
    position: relative;
    color: var(--pps-text);
}
.legal-page ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    top: 4px;
    color: var(--pps-accent);
    font-weight: 700;
}

/* ────────── Footer ────────── */
.site-footer {
    background: var(--pps-heading);
    color: rgba(255, 255, 255, 0.75);
    padding: 60px 0 30px;
    margin-top: 80px;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.site-footer a:hover { color: var(--pps-white); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer-brand .site-brand-text { color: var(--pps-white); }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer-brand .footer-stores {
    color: #9CC0FF;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 14px;
    letter-spacing: .01em;
}
.footer-col h4 {
    color: var(--pps-white);
    font-family: var(--pps-font-body);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 6px 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; font-size: 14px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    font-size: 13px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ────────── Hilfsklassen ────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
