/*
Theme Name: riscontra
Theme URI: https://riscontra.de
Author: Bernd Lambrecht
Author URI: https://riscontra.de
Description: Eigenständiges WordPress-Theme für riscontra – Abgleich von Zeiterfassungen mit Leistungsnachweisen.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riscontra
*/
/* ────────── Design-Tokens (Farben aus dem App-Icon) ────────── */
:root {
    --rc-text:       #1C2633;
    --rc-heading:    #1E3F66;
    --rc-dark:       #17324F;
    --rc-light:      #4A8FC7;
    --rc-accent:     #2E9E5B;
    --rc-accent-dk:  #237A46;
    --rc-card:       #E8F0F8;
    --rc-border:     #D6E0EA;
    --rc-muted:      #5F6B7A;
    --rc-background: #F3F6FA;
    --rc-white:      #FFFFFF;
    --rc-alert:      #C8503A;

    --rc-shadow:     0 8px 32px rgba(30, 63, 102, 0.14);
    --rc-shadow-sm:  0 2px 12px rgba(30, 63, 102, 0.08);
    --rc-radius:     20px;
    --rc-radius-sm:  12px;

    --rc-font-display: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --rc-font-body:    'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

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

h1, h2, h3, h4 {
    font-family: var(--rc-font-display);
    color: var(--rc-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 16px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

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

em { font-style: italic; color: var(--rc-heading); }

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

/* ────────── Header ────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
    border-bottom-color: var(--rc-border);
    box-shadow: var(--rc-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(--rc-heading);
}
.site-brand img { width: 40px; height: 40px; border-radius: 9px; }
.site-brand-text {
    font-family: var(--rc-font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--rc-heading);
    letter-spacing: .01em;
}
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--rc-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(--rc-heading);
    border-bottom-color: var(--rc-accent);
}
.site-nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 24px;
    color: var(--rc-heading);
    cursor: pointer;
}
@media (max-width: 820px) {
    .site-nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%;
        right: 24px;
        background: var(--rc-white);
        border: 1px solid var(--rc-border);
        border-radius: var(--rc-radius-sm);
        box-shadow: var(--rc-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(--rc-dark) 0%, var(--rc-light) 100%);
    color: var(--rc-white);
    padding: 80px 0 88px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 80%;
    margin: 0 auto;
    border-radius: var(--rc-radius);
}
@media (max-width: 720px) {
    .hero { max-width: 100%; border-radius: 0; }
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}
.hero h1 { color: var(--rc-white); margin-bottom: 18px; }
.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.92);
}
.hero .label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    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-cream { background: var(--rc-card); }
.section-white { background: var(--rc-white); }
.section h2 { text-align: center; }
.section-intro {
    text-align: center;
    color: var(--rc-muted);
    max-width: 620px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

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

.divider-accent {
    width: 60px;
    height: 3px;
    background: var(--rc-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: 50px;
    font-family: var(--rc-font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .25s;
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: linear-gradient(135deg, var(--rc-accent), var(--rc-accent-dk));
    color: var(--rc-white);
    box-shadow: 0 4px 18px rgba(46, 158, 91, .35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(46, 158, 91, .45);
    color: var(--rc-white);
}
.btn-green {
    background: linear-gradient(135deg, var(--rc-dark), var(--rc-heading));
    color: var(--rc-white);
}
.btn-green:hover { color: var(--rc-white); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--rc-heading);
    border: 2px solid var(--rc-heading);
}
.btn-outline:hover {
    background: var(--rc-heading);
    color: var(--rc-white);
}

/* ────────── Feature-Grid (Funktionen-Seite) ────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 40px 0;
}
.feature-card {
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 32px 28px;
    box-shadow: var(--rc-shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rc-shadow);
}
.feature-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rc-dark), var(--rc-light));
    color: var(--rc-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.feature-card h3 { color: var(--rc-heading); margin-bottom: 10px; }
.feature-card p { color: var(--rc-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(--rc-text);
    padding: 4px 0 4px 18px;
    position: relative;
    line-height: 1.55;
}
.feature-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rc-accent);
}

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

/* ────────── Rechtstext-Layout ────────── */
.legal-page {
    background: var(--rc-white);
    padding: 60px 0 80px;
}
.legal-page h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 4px;
}
.legal-page .stand {
    color: var(--rc-muted);
    font-style: italic;
    margin-bottom: 28px;
    font-size: 14px;
}
.legal-page h2 {
    font-size: 1.45rem;
    color: var(--rc-heading);
    border-bottom: 2px solid var(--rc-accent);
    padding-bottom: 6px;
    margin: 40px 0 14px;
}
.legal-page h3 {
    font-size: 1.1rem;
    color: var(--rc-accent-dk);
    margin: 24px 0 8px;
}
.legal-page p { color: var(--rc-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(--rc-text);
}
.legal-page ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    top: 4px;
    color: var(--rc-accent);
    font-weight: 700;
}

/* ────────── Footer ────────── */
.site-footer {
    background: var(--rc-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(--rc-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(--rc-white); }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer-brand .footer-stores {
    color: var(--rc-accent);
    font-size: 13px;
    font-weight: 500;
    margin: 12px 0 14px;
    letter-spacing: .01em;
}
.footer-col h4 {
    color: var(--rc-white);
    font-family: var(--rc-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; }

/* ────────── riscontra-Ergänzungen ────────── */
h1, h2, h3 { letter-spacing: -.01em; }
h1 { font-weight: 700; }
.legal-page ol { padding-left: 22px; }
.legal-page a { word-break: break-word; }

/* Ablauf-Schritte (Startseite) */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: step;
    margin-top: 32px;
}
.step {
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius-sm);
    padding: 26px 22px 22px;
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rc-heading);
    color: var(--rc-white);
    font-weight: 700;
    margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--rc-muted); font-size: 15px; margin: 0; }

/* Abgleich-Vorschau (Startseite) */
.match-demo {
    max-width: 560px;
    margin: 36px auto 0;
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius-sm);
    overflow: hidden;
    box-shadow: var(--rc-shadow-sm);
    font-size: 14px;
}
.match-demo table { width: 100%; border-collapse: collapse; }
.match-demo th, .match-demo td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--rc-border); }
.match-demo th { background: var(--rc-card); color: var(--rc-heading); font-weight: 600; }
.match-demo td.num { text-align: right; font-variant-numeric: tabular-nums; }
.match-demo tr.ok td:last-child { color: #237A46; font-weight: 600; }
.match-demo tr.diff td { background: #FCECEA; }
.match-demo tr.diff td:last-child { color: var(--rc-alert); font-weight: 600; }
.match-demo caption { caption-side: bottom; padding: 8px; color: var(--rc-muted); font-size: 12px; }

.badge-pro {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rc-white);
    background: var(--rc-accent);
    border-radius: 99px;
    padding: 2px 9px;
    margin-left: 6px;
    vertical-align: middle;
}
