/**
 * Custom CSS für Steuerkanzlei Schlötzer
 * Version: Bereinigte & Optimierte High-End Gesamtarchitektur (Teil 1)
 * Stil: Premium Boxed Editorial Layout mit Champagner-Wärme & 3D-Plastizität
 */

/* ==========================================================================
   Lokale Schriftarten-Registrierung (.ttf)
   ========================================================================== */

/* --- INTER --- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_24pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_24pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_24pt-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* --- PLAYFAIR DISPLAY --- */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* --- LORA --- */
@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
/* --- MONTSERRAT --- */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* ==========================================================================
   1. Reset & globale Variablen (Vollständig konsolidiert)
   ========================================================================== */
:root {
    /* ECHTE KANZLEI-FARBEN (Corporate Identity) */
    --color-primary: #102a43;        /* Original Kanzlei-Dunkelblau (Body-Background & Fundament) */
    --color-accent: #1982c4;         /* Original Kanzlei-Blau (CI-Farbe für Buttons & Links) */
    --color-accent-hover: #11689f;   /* KORREKTUR: Validierter CI-Hoverton ohne %-Zeichen */

    /* WARME EDELTÖNE GEGEN STERILITÄT */
    --color-gold: #c5a880;           /* Subtiler Gold-Bronze-Ton für Details */
    --color-bg-light: #f7f5f0;       /* Warmes Champagner-/Elfenbein-Weiß für den Inhalts-Hintergrund */
    --color-text: #2c3e50;           /* Gedämpftes Schieferblau für Fließtext */
    --color-white: #ffffff;
    --border-subtle: rgba(16, 42, 67, 0.06);

    /* Plastische Schattenebenen & Raumeffekte */
    --shadow-premium: 0 15px 35px rgba(16, 42, 67, 0.04), 0 1px 3px rgba(0,0,0,0.01);
    --shadow-hover: 0 30px 60px rgba(16, 42, 67, 0.08), 0 8px 20px rgba(16, 42, 67, 0.02);
    --shadow-boxed-layout: 0 15px 50px rgba(0, 0, 0, 0.35), 0 5px 15px rgba(10, 42, 67, 0.15);

    /* Typografie (Premium Editorial Kontrast) */
    --font-headings: "Playfair Display", "Georgia", serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Äußerer Kanzleiblau-Rahmen, der das Projekt harmonisch bettet */
html {
    background-color: var(--color-primary); /* Das Kanzleiblau liegt ganz unten drunter */
    min-height: 100vh;
}

body {
    font-family: var(--font-body);
    background: transparent; /* Zwingt transparent, damit html-Farbe durchscheint */
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    
    /* Hier ist der atmende Rahmen um die Seite */
    padding: 50px 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Das zentrierte Inhaltsband mit abgerundeten Ecken und Ecken-Schutz */
.site-wrapper {
    width: 100%;
    max-width: 1400px;
    background-color: var(--color-bg-light);
    box-shadow: var(--shadow-boxed-layout);
    min-height: calc(100vh - 100px); /* KORREKTUR: Klammerfehler behoben */
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 12px;
    
    /* KORREKTUR: Platziert, damit Karten rausschweben dürfen, aber der Footer unten bündig stanzt */
    border-left: 1px solid rgba(197, 168, 128, 0.25);
    border-right: 1px solid rgba(197, 168, 128, 0.25);
    
    /* KORREKTUR: Zwingt das Inhaltsband, Ausbrüche an den runden Footer-Ecken zu verhindern */
    overflow: hidden; 
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}
/* ==========================================================================
   2. Header, Navigation & Interaktionen (Teil 2)
   ========================================================================== */

/* Kristallklar getrennter, leicht transparenter Premium-Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
}

.header-container {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Edler Logo-Wrapper, der das bs-logo.png ausbrechen lässt */
.logo-wrapper {
    position: relative;
    display: inline-block;
    z-index: 10;
    height: 60px;
}

.kanzlei-logo {
    position: absolute;
    top: -15px;
    left: 0;
    width: auto;
    height: 110px;
    max-width: 140px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 8px 15px rgba(16, 42, 67, 0.06));
}

.logo-wrapper:hover .kanzlei-logo {
    transform: scale(1.03) translateY(2px);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}
/* ==========================================================================
   3. Tasten & Interaktionen-Elemente (Echtes CI-Blau)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(25, 130, 196, 0.15);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(25, 130, 196, 0.25);
}

.btn-secondary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    margin-left: 15px;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. Startseiten-Hero mit moderaten Schriftgrößen & Kanten-Schutz (Teil 3)
   ========================================================================== */
.hero-section {
    padding: 80px 0;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 40px;
    padding: 0 40px; /* FIX: Schützt Text und Bild davor, an die Ränder zu quetschen */
}

.hero-text-block {
    grid-column: 1 / span 6;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-headings);
    font-size: 2.6rem;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.accent-text {
    font-style: italic;
    color: var(--color-accent);
    font-weight: 400;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 35px;
    max-width: 500px;
}
.hero-image-block {
    grid-column: 7 / span 6;
    position: relative;
}

.custom-image-placeholder {
    height: 480px;
    background: linear-gradient(135deg, #bcccdc, #9fb3c8);
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    position: relative;
    border: 1px solid rgba(16, 42, 67, 0.04);
}

/* Schwebende Zitat-Karte */
.image-overlay-card {
    position: absolute;
    bottom: 20px;
    left: -40px;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow-hover);
    max-width: 320px;
    border-left: 4px solid var(--color-gold);
}

.card-quote {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-author {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    color: var(--color-text);
}

/* ==========================================================================
   5. Zielgruppen-Karten & 3D-Editorial-Leistungsmodule (Teil 4)
   ========================================================================== */
.target-section {
    padding: 100px 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-headings);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

.target-card {
    text-decoration: none;
    color: inherit;
    background-color: var(--color-bg-light);
    padding: 50px 40px;
    border-radius: 6px;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(16, 42, 67, 0.04);
    box-shadow: var(--shadow-premium);
}

.card-left { grid-column: 1 / span 6; }
.card-right { grid-column: 7 / span 6; margin-top: 40px; }

.target-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(25, 130, 196, 0.2);
    background-color: var(--color-white);
}
.card-number {
    font-size: 3rem;
    font-family: var(--font-headings);
    color: rgba(16, 42, 67, 0.05);
    display: block;
    line-height: 1;
    margin-bottom: 15px;
}

.target-card h3 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.target-card p {
    color: var(--color-text);
    margin-bottom: 25px;
}

.card-link {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* LEISTUNGSSEITE: Plastischer High-End Umbau ohne Kästen-Einerlei */
.editorial-section {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
}

.editorial-header {
    margin-bottom: 60px;
    max-width: 600px;
}

.editorial-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.editorial-main-title {
    font-family: var(--font-headings);
    font-size: 2.6rem;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.editorial-main-title .italic-accent {
    font-style: italic;
    color: var(--color-accent);
    font-weight: 400;
}

.premium-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Die Spalten werden zu edlen 3D-Paneelen */
.editorial-column {
    background-color: var(--color-white);
    padding: 45px;
    border-radius: 8px;
    border: 1px solid rgba(16, 42, 67, 0.05);
    box-shadow: var(--shadow-premium);
    transform: perspective(1000px) translateZ(0);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-column:hover {
    transform: perspective(1000px) translateY(-8px) translateZ(15px);
    border-color: rgba(25, 130, 196, 0.2);
    box-shadow: var(--shadow-hover);
}

.column-header {
    border-bottom: 2px solid var(--color-bg-light);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.column-num {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    color: var(--color-gold);
    font-style: italic;
}

.column-header h2 {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    color: var(--color-primary);
    margin: 0;
}

.editorial-column:hover .column-header {
    border-color: var(--color-accent);
}

.editorial-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--color-bg-light);
    transition: all 0.35s ease;
}

.editorial-item:last-child { border-bottom: none; }

.editorial-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
    transition: color 0.3s;
}

.editorial-item:hover {
    background-color: rgba(25, 130, 196, 0.01);
    padding-left: 10px;
}

.editorial-item:hover h3 { color: var(--color-accent); }

.editorial-btn {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--color-gold);
}

.editorial-btn:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    transform: translateX(4px);
}
/* ==========================================================================
   6. Core-Unterseiten, Dynamische Listen & Kanzlei-Footer (Teil 5)
   ========================================================================== */
.section-header-compact {
    margin-bottom: 40px;
    border-left: 4px solid var(--color-gold);
    padding-left: 15px;
}

.section-header-compact h1 {
    font-family: var(--font-headings);
    font-size: 2.6rem;
    color: var(--color-primary);
}

/* Gemeinsame Designbasis für Listen und Formularpanels */
.news-compact-list, .compact-form, .team-member-card {
    background-color: var(--color-white);
    border-radius: 6px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(16, 42, 67, 0.04);
}

/* Team-Karten */
.team-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.team-member-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.4s;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.member-image-placeholder {
    width: 90px;
    height: 90px;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border: 2px solid var(--border-subtle);
}

.team-member-card h3 {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    color: var(--color-primary);
}

.team-member-card .role {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-top: 8px;
}

/* Aktuelles (Dynamische Zeilen) */
.news-row {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(16, 42, 67, 0.05);
    align-items: center;
}

.news-row:last-child { border-bottom: none; }

.news-date {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
    font-size: 0.85rem;
}

/* Kontaktseite */
.contact-compact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
}

.fast-channels {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.channel-link {
    display: block;
    padding: 18px;
    background-color: var(--color-white);
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(16, 42, 67, 0.04);
    transition: all 0.3s;
}

.channel-link:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.address-box {
    font-size: 1rem;
    border-left: 3px solid var(--color-gold);
    padding-left: 20px;
    line-height: 1.7;
}

.compact-form { padding: 45px; }
.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(16, 42, 67, 0.12);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-primary);
    background-color: var(--color-bg-light);
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(25, 130, 196, 0.1);
}

/* ==========================================================================
   🚨 PLATIN-FOOTER-FIX: Absolute Brandmauer gegen Durchblitzen
   ========================================================================== */
.main-footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.65);
    padding: 40px 0 35px 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 5px solid var(--color-gold);
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.15);
    margin-top: auto;
    
    /* Zieht den Footer über die Haarlinien des Wrappers */
    width: auto;
    margin-left: -1px;
    margin-right: -1px;
    margin-bottom: -1px; /* Drückt das Element auf die absolute Unterkante */
    
    /* Schmiegt sich perfekt an die Rundung des Site-Wrappers an */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    
    border-left: none;
    border-right: none;
    box-sizing: border-box;
    
    /* Schneidet eventuell überstehende Containerkanten gnadenlos ab */
    overflow: hidden; 
}

.site-content {
    padding-top: 40px;
    padding-bottom: 60px;
    flex: 1 0 auto; /* Drückt den Footer sauber an die wrapper-Unterkante */
}

/* ==========================================================================
   7. Absolute Mobile Responsive Absicherung (Teil 6)
   ========================================================================== */

/* Nahtloser Übergang: Bricht knapp vor der maximalen Box-Breite in Vollbild um */
@media (max-width: 1440px) {
    .site-wrapper {
        max-width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0; /* Verhindert Eckenblitzer auf Laptops */
    }
    body {
        padding: 0; /* Entfernt den äußeren Rahmen, wenn der Platz knapp wird */
    }
}

/* Umbruch für Tablets und Smartphones */
@media (max-width: 968px) {
    .hero-text-block,
    .hero-image-block,
    .card-left,
    .card-right,
    .premium-services-grid,
    .team-compact-grid,
    .contact-compact-grid {
        grid-column: 1 / span 12;
        grid-template-columns: 1fr;
    }
    .card-right {
        margin-top: 0;
    }
    .hero-image-block {
        order: -1;
        margin-bottom: 30px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .main-header .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .logo-wrapper {
        height: auto;
        margin-bottom: 15px;
        display: block;
        text-align: center;
    }
    .kanzlei-logo {
        position: relative;
        top: 0;
        height: 85px;
        margin: 0 auto;
    }
    .container {
        padding: 0 20px;
    }
    .image-overlay-card {
        left: 20px;
        bottom: -20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 850px) {
    .editorial-main-title {
        font-size: 2.2rem;
    }
    .editorial-section {
        padding: 40px 0;
    }
}
/* ==========================================================================
   🚨 ULTIMATIVER LOGIK-FIX: STRIP-DOWN DES INHALTS-PADDING
   ========================================================================== */

/* Eliminiert den versteckten 60px-Balken unter dem Footer im Inhaltscontainer */
.site-content, 
main, 
#site-content {
    padding-bottom: 0 !important; /* Löscht das herbeigesehnte Padding radikal! */
}

/* Zwingt den Footer, sich ohne Wenn und Aber an den Wrapper-Boden zu klammern */
.main-footer {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 50;
}

/* Stanzt den Wrapper an der Unterkante absolut flach ab */
.site-wrapper {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}
/* ==========================================================================
   🚨 RENDERING-FIX: OPTISCHES GLÜHEN AN DEN FOOTER-KANTEN ELIMINIEREN
   ========================================================================== */
.main-footer {
    /* Deaktiviert den fehlerhaften Innenschatten, der die helle Haarlinie erzeugt */
    box-shadow: none !important; 
    
    /* Erzeugt die exakt gleiche plastische Tiefenwirkung nach oben, schützt aber die Ecken */
    box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.08) !important;
    
    /* Stellt sicher, dass das tiefe Kanzleiblau absolut deckend bis zur Kante fließt */
    background-color: var(--color-primary) !important;
}
