/* ------------------------------------------------------------
   1. RESET & VARIABLES
------------------------------------------------------------ */
:root {
    --color-bg: #F9F9F7;          /* Gebrochenes Weiß / Ivory */
    --color-bg-light: #F0F0EE;    /* Etwas dunklerer Ton für Sektionen */
    --color-text: #2C2C2C;        /* Dunkles Anthrazit */
    --color-text-light: #595959;  /* Muted Text */
    --color-accent: #3A4A40;      /* Dunkles, seriöses Waldgrün/Grau */
    --color-border: #DCDCDA;
    --color-white: #FFFFFF;
    --color-placeholder: #EAEAE8; /* Für Bild-Platzhalter */
    
    --font-serif: 'Georgia', 'Times New Roman', Times, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --spacing-container: 2rem;
    --spacing-section: 6rem;      /* Viel Weißraum */
    --max-width: 1100px;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

/* ------------------------------------------------------------
   2. TYPOGRAPHY
------------------------------------------------------------ */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.4;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-text);
    display: inline-block;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

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

.text-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(44, 44, 44, 0.3);
}

.text-link:hover {
    text-decoration-color: var(--color-accent);
}

.small-text {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ------------------------------------------------------------
   3. LAYOUT UTILS
------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.section {
    padding: var(--spacing-section) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Standard Grid (Titel links, Inhalt rechts) */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr 2fr; /* 1/3 Titel, 2/3 Inhalt */
        gap: 4rem;
    }
}

/* Split Layout (Halbe/Halbe für Bild/Text Sektionen) */
.split-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .split-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 5rem;
    }
    .split-text, .split-image {
        flex: 1;
        width: 100%;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-text);
    color: var(--color-white);
    padding: 8px;
    z-index: 1001;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------
   4. HEADER & NAV
------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    background-color: rgba(249, 249, 247, 0.95);
    backdrop-filter: blur(5px);
    padding: 1.5rem 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, padding 0.3s;
}

.site-header.scrolled {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.main-nav ul {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.main-nav.active ul {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-nav-toggle {
        display: none !important;
    }
    .main-nav ul {
        display: flex;
        flex-direction: row;
        position: static;
        padding: 0;
        background: transparent;
        border: none;
        gap: 2rem;
    }
    .main-nav a {
        font-size: 0.95rem;
        position: relative;
    }
    .main-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: -4px;
        left: 0;
        background-color: var(--color-accent);
        transition: width 0.3s;
    }
    .main-nav a:hover::after,
    .main-nav a.active::after {
        width: 100%;
    }
}

.mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    display: block;
}

.mobile-nav-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    margin-bottom: 6px;
    transition: 0.3s;
}

/* ------------------------------------------------------------
   5. HERO SEKTION (Mit Bild-Support)
------------------------------------------------------------ */
.hero-section {
    padding: 3rem 0 4rem 0;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

@media (min-width: 900px) {
    .hero-section {
        min-height: 80vh;
    }
    .hero-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 5rem;
        align-items: center;
    }
    .hero-image-col {
        order: 2; 
    }
    .hero-text-col {
        order: 1;
    }
}

.hero-overline {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-top: 2rem;
    max-width: 600px;
}

/* ------------------------------------------------------------
   6. LISTEN (Kompetenz & Vita) - WICHTIG FÜR DESIGN
------------------------------------------------------------ */
.practice-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.cv-list {
    list-style: none;
    border-left: 1px solid var(--color-border);
    padding-left: 2rem;
}

.cv-list li {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Der Zeitstrahl-Punkt */
.cv-list li::before {
    content: '';
    position: absolute;
    left: -2.35rem; /* Exakt auf der Linie positioniert */
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-text-light);
    border-radius: 50%;
}

.cv-year {
    display: block;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

/* ------------------------------------------------------------
   7. BILD-PLATZHALTER
------------------------------------------------------------ */
.image-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 2px;
}

.placeholder-content {
    color: #999;
    text-align: center;
    font-size: 0.9rem;
    font-family: monospace;
    padding: 4rem;
}

.image-placeholder img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius:12px;
}

.portrait-format {
    aspect-ratio: 3 / 4;
}

.landscape-format {
    aspect-ratio: 16 / 9;
}

@media (max-width: 767px) {
    .hero-image-col {
        order: 2;
        margin-top: -1rem;
    }
    .portrait-format {
        aspect-ratio: 4 / 3;
        max-width: 100%;
    }
}

/* ------------------------------------------------------------
   8. MODERN CONTACT FORM (Mazars Style)
------------------------------------------------------------ */

/* Layout Container für Kontakt-Sektion */
.contact-split {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 900px) {
    .contact-split {
        flex-direction: row;
        align-items: flex-start;
        gap: 6rem;
    }
    .contact-info { flex: 0 0 35%; } /* Linke Spalte schmaler */
    .contact-form-container { flex: 1; }
}

/* Infos Links */
.contact-address-block {
    margin: 2rem 0;
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-link {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.contact-link .icon {
    display: inline-block;
    width: 20px;
    color: var(--color-accent);
    font-weight: 700;
}

/* Formular Grid System */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Abstand zwischen den Zeilen */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr; /* 2 Spalten auf Desktop */
    }
    .form-row.full-width {
        grid-template-columns: 1fr;
    }
}

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

/* Input Styles */
.modern-form label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #fff;
    border: 1px solid #C0C0C0; /* Helles Grau */
    border-radius: 6px; /* Boxy Look */
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent); /* Dezent */
    background-color: #fff;
}



/* Footer Area */
.form-footer {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-wrapper input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-accent);
}

.checkbox-wrapper label {
    text-transform: none;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0;
    color: var(--color-text-light);
    margin: 0;
}

/* Button Modern */
.btn-submit-modern {
    background-color: var(--color-accent); /* Ihr Akzentton */
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    align-self: flex-start; /* Linksbuendig */
    transition: background-color 0.3s;
}

.btn-submit-modern:hover {
    background-color: var(--color-text); /* Schwarz bei Hover */
}

/* Feedback Message */
.form-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 1rem;
    border-left: 3px solid transparent;
}
.form-feedback.success { 
    background-color: #f0fdf4; 
    border-color: var(--color-accent); 
    color: var(--color-accent); 
}
.form-feedback.error { 
    background-color: #fef2f2; 
    border-color: #b00020; 
    color: #b00020; 
}

/* ------------------------------------------------------------
   9. FOOTER & MODALS
------------------------------------------------------------ */
.site-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-nav a {
    margin: 0 0.5rem;
}

.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: var(--color-white);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    z-index: 2001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ------------------------------------------------------------
   ZUSATZ: EHRENÄMTER BLOCK IN VITA
------------------------------------------------------------ */
.cv-extra-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.cv-extra-block h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.simple-list {
    list-style: none;
    padding: 0;
}

.simple-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
}

.simple-list li::before {
    content: '—'; /* Eleganter Spiegelstrich */
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Kontakt Link Non-Interactive (für Fax) */
.contact-link.non-interactive {
    cursor: default;
    color: var(--color-text-light);
}
.contact-link.non-interactive:hover {
    color: var(--color-text-light);
}

/* ------------------------------------------------------------
   SPAM PROTECTION (Honeypot)
------------------------------------------------------------ */
.honey-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* ------------------------------------------------------------
   ZUSATZ: CONTENT WITH SIDE IMAGE (Für Profil Sektion)
------------------------------------------------------------ */
.content-with-side-image {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 900px) {
    .content-with-side-image {
        display: grid;
        grid-template-columns: 1.5fr 1fr; /* Text etwas breiter als Bild */
        gap: 3rem;
        align-items: start;
    }
    
    /* Kleiner optischer Kniff: Das Bild im Profil etwas nach unten schieben, 
       damit es dynamischer wirkt */
    .content-with-side-image .image-part {
        margin-top: 1rem; 
    }
}

/* ------------------------------------------------------------
   ZUSATZ: DOUBLE IMAGE COMPOSITION (Für Hintergrund-Section)
------------------------------------------------------------ */
.double-image-composition {
    position: relative;
    width: 100%;
    /* Auf Mobile einfach untereinander mit etwas Abstand */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.double-image-composition .main-img {
    width: 100%;
    z-index: 1;
}

.double-image-composition .accent-img {
    width: 60%; /* Das zweite Bild ist kleiner */
    align-self: flex-end; /* Rechtsbündig auf Mobile */
    margin-top: -2rem; /* Schiebt es leicht über das obere Bild */
    z-index: 2;
}

@media (min-width: 900px) {
    .double-image-composition {
        display: block; /* Zurück zu Block für Absolute Positioning */
        padding-bottom: 4rem; /* Platz unten für das überlappende Bild reservieren */
        padding-right: 2rem; /* Platz rechts */
    }

    .double-image-composition .main-img {
        width: 85%; /* Nicht ganz volle Breite */
    }

    .double-image-composition .accent-img {
        position: absolute;
        width: 55%; /* Größe des Detailbilds */
        bottom: 0;
        right: 0;
        margin-top: 0;
        align-self: auto;
    }
}