/*
Theme Name: Pfahl Law
Theme URI: https://ra-pfahl.de
Author: Lisa Pfahl
Author URI: https://ra-pfahl.de
Description: Professionelles WordPress-Theme für die Kanzlei Pfahl Law – Rechtsanwältin für Arbeitsrecht in München.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: pfahl-law
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    --beige: #F5F0E8;
    --beige-dark: #EDE5D5;
    --black: #1A1A18;
    --black-soft: #2C2C28;
    --orange: #D4622A;
    --orange-hover: #B8501F;
    --gray: #6B6B62;
    --white: #FDFCF9;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--black);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(253, 252, 249, 0.95);
    border-bottom: 1px solid rgba(26, 26, 24, 0.08);
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    backdrop-filter: blur(8px);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--black);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--black-soft);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--black);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 2px;
    font-weight: 500 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--orange) !important;
    color: var(--white) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    min-height: 100vh;
    background: var(--black);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 64px;
    overflow: hidden;
}

.hero-left {
    padding: 80px 64px 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--orange);
    display: inline-block;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 5.5vw, 76px);
    font-weight: 300;
    line-height: 1.08;
    color: var(--white);
}

.hero-title em {
    font-style: italic;
    color: var(--orange);
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(253, 252, 249, 0.65);
    max-width: 440px;
    line-height: 1.75;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 16px;
    border-top: 1px solid rgba(253, 252, 249, 0.1);
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--white);
    line-height: 1;
}

.stat-num span { color: var(--orange); font-size: 24px; }

.stat-label {
    font-size: 12px;
    color: rgba(253, 252, 249, 0.45);
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.hero-right {
    position: relative;
    overflow: hidden;
    background: var(--black-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(253, 252, 249, 0.05);
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
}

.hero-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(253, 252, 249, 0.3);
    font-size: 13px;
    letter-spacing: 0.1em;
}

.hero-deco {
    position: absolute;
    top: 0; right: 0;
    width: 1px;
    height: 60%;
    background: var(--orange);
    opacity: 0.4;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary,
.btn-primary:visited {
    background: var(--orange);
    color: var(--white);
    padding: 14px 32px;
    border: none;
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-block;
}

.btn-primary:hover { background: var(--orange-hover); color: var(--white); }

.btn-outline,
.btn-outline:visited {
    background: transparent;
    color: var(--white);
    padding: 13px 32px;
    border: 1px solid rgba(253, 252, 249, 0.25);
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    display: inline-block;
}

.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* =============================================
   SECTIONS BASE
   ============================================= */
.section { padding: 100px 80px; }

.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--orange);
    display: inline-block;
}

.section-label--light::before { background: rgba(253, 252, 249, 0.4); }

.section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 3.5vw, 52px);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--black);
}

.section h2 em { font-style: italic; color: var(--orange); }

/* =============================================
   ÜBER MICH
   ============================================= */
.ueber-mich {
    background: var(--beige);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ueber-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--black-soft);
    margin-bottom: 20px;
    font-weight: 300;
}

.ueber-text p:last-child { margin-bottom: 0; }

.usp-list { display: flex; flex-direction: column; }

.usp-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(26, 26, 24, 0.1);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.usp-item:first-child { border-top: 1px solid rgba(26, 26, 24, 0.1); }

.usp-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--orange);
    min-width: 28px;
    padding-top: 2px;
}

.usp-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.usp-desc { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* =============================================
   LEISTUNGEN
   ============================================= */
.leistungen { background: var(--white); }

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 56px;
    border: 2px solid var(--black);
}

.leistung-card {
    padding: 40px 36px;
    background: var(--white);
    border-right: 2px solid var(--black);
    transition: background 0.25s;
}

.leistung-card:nth-child(3n) { border-right: none; }
.leistung-card:hover { background: var(--black); }

.leistung-icon {
    font-size: 28px;
    margin-bottom: 20px;
    display: block;
    color: var(--orange);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.leistung-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--black);
    transition: color 0.25s;
}

.leistung-card:hover h3 { color: var(--white); }

.leistung-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    transition: color 0.25s;
}

.leistung-card:hover p { color: rgba(253, 252, 249, 0.6); }

/* =============================================
   ZIELGRUPPEN
   ============================================= */
.zielgruppen {
    background: var(--orange);
    padding: 64px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.zielgruppen h2 { color: var(--white); margin-bottom: 0; }
.zielgruppen h2 em { color: var(--beige); }

.ziel-karten { display: flex; flex-direction: column; gap: 16px; }

.ziel-karte {
    background: rgba(253, 252, 249, 0.12);
    border: 1px solid rgba(253, 252, 249, 0.2);
    border-radius: 2px;
    padding: 24px 28px;
}

.ziel-karte-title {
    font-weight: 500;
    font-size: 16px;
    color: var(--white);
    margin-bottom: 6px;
}

.ziel-karte-desc {
    font-size: 14px;
    color: rgba(253, 252, 249, 0.75);
    line-height: 1.65;
}

/* =============================================
   BLOG
   ============================================= */
.blog-section { background: var(--beige-dark); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.blog-card {
    background: var(--white);
    padding: 32px;
    border-bottom: 3px solid transparent;
    transition: border-color 0.25s;
    text-decoration: none;
    display: block;
}

.blog-card:hover { border-color: var(--orange); }

.blog-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.blog-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--black);
    line-height: 1.3;
}

.blog-card p { font-size: 14px; color: var(--gray); line-height: 1.65; }

.blog-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--orange);
    padding-bottom: 1px;
}

/* =============================================
   KONTAKT
   ============================================= */
.kontakt {
    background: var(--black);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.kontakt h2 { color: var(--white); }

.kontakt-info p {
    font-size: 16px;
    color: rgba(253, 252, 249, 0.6);
    line-height: 1.8;
    font-weight: 300;
}

.kontakt-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kontakt-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: rgba(253, 252, 249, 0.7);
}

.kontakt-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(253, 252, 249, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--orange);
    flex-shrink: 0;
}

.kontakt-row a {
    color: rgba(253, 252, 249, 0.7);
    text-decoration: none;
}

.kontakt-row a:hover { color: var(--orange); }

/* Kontaktformular */
.kontakt-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(253, 252, 249, 0.5);
}

.form-input,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    background: rgba(253, 252, 249, 0.06);
    border: 1px solid rgba(253, 252, 249, 0.12);
    border-radius: 2px;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.form-input:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus { border-color: var(--orange); }

.form-input::placeholder,
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: rgba(253, 252, 249, 0.25); }

textarea.form-input,
.wpcf7 textarea { min-height: 120px; resize: vertical; }

.form-note {
    font-size: 12px;
    color: rgba(253, 252, 249, 0.3);
    line-height: 1.6;
}

.wpcf7-submit {
    background: var(--orange) !important;
    color: var(--white) !important;
    padding: 16px 32px !important;
    border: none !important;
    border-radius: 2px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background 0.2s !important;
}

.wpcf7-submit:hover { background: var(--orange-hover) !important; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--black-soft);
    padding: 32px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(253, 252, 249, 0.06);
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: rgba(253, 252, 249, 0.6);
    letter-spacing: 0.02em;
    text-decoration: none;
}

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

.footer-links { display: flex; gap: 24px; }

.footer-links a {
    font-size: 13px;
    color: rgba(253, 252, 249, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: rgba(253, 252, 249, 0.7); }

.footer-copy { font-size: 12px; color: rgba(253, 252, 249, 0.25); }

/* =============================================
   WORDPRESS CORE OVERRIDES
   ============================================= */
.wp-block-image img { border-radius: 0; }
.alignwide { max-width: 100%; }
.entry-content { max-width: none; }

/* Blog Single Post */
.single-post-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 40px 80px;
}

.single-post-wrap h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 24px;
}

.single-post-wrap .post-meta {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(26, 26, 24, 0.1);
}

.single-post-wrap .entry-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--black-soft);
    margin-bottom: 24px;
}

.single-post-wrap .entry-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    margin: 48px 0 16px;
    color: var(--black);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    .hero-left { padding: 80px 48px; }
    .ueber-mich { grid-template-columns: 1fr; gap: 48px; }
    .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
    .leistung-card:nth-child(3n) { border-right: 2px solid var(--black); }
    .leistung-card:nth-child(2n) { border-right: none; }
    .zielgruppen { grid-template-columns: 1fr; gap: 40px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .kontakt { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    .site-nav { padding: 0 24px; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 24px; gap: 20px; border-bottom: 1px solid rgba(26,26,24,0.08); }
    .nav-links.is-open { display: flex; }
    .nav-toggle { display: flex; }
    .section { padding: 64px 24px; }
    .zielgruppen { padding: 64px 24px; }
    .leistungen-grid { grid-template-columns: 1fr; }
    .leistung-card { border-right: none !important; border-bottom: 2px solid var(--black); }
    .blog-grid { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; gap: 20px; text-align: center; padding: 32px 24px; }
    .hero-left { padding: 60px 24px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
}
