/* =============================================
   KANZLEI RECHTMANN - WEBSITE STYLES
   Farbschema: Blau / Grau
   Anwalt: Dunkelblau (#1a365d)
   Notariat: Anthrazit/Grau (#374151)
   ============================================= */

/* Self-hosted fonts (Playfair Display & Source Sans 3, latin + latin-ext — OFL) */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/source-sans-3-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/source-sans-3-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/source-sans-3-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/source-sans-3-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/source-sans-3-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/source-sans-3-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/source-sans-3-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/source-sans-3-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Anwalt Colors - Dunkelblau */
    --anwalt-primary: #1a365d;
    --anwalt-light: #2c5282;
    --anwalt-dark: #0f2744;
    --anwalt-accent: #3182ce;
    --anwalt-subtle: rgba(26, 54, 93, 0.08);
    
    /* Notariat Colors - Anthrazit/Grau */
    --notariat-primary: #374151;
    --notariat-light: #4b5563;
    --notariat-dark: #1f2937;
    --notariat-accent: #6b7280;
    --notariat-subtle: rgba(55, 65, 81, 0.08);
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

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

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

/* WordPress Adminbar: fixen Header unterhalb der Leiste positionieren */
body.admin-bar .header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    display: none;
}

.header-top-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    height: 34px;
}

.header-top-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.header-top-item svg {
    color: rgba(255, 255, 255, 0.9);
}

.header-top-item:hover {
    color: #ffffff;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
    transition: height var(--transition-normal);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 68px;
    width: auto;
    transition: height var(--transition-normal);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    padding-left: 18px;
    border-left: 1px solid rgba(156, 163, 175, 0.5);
    line-height: 1.25;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    color: var(--gray-400);
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 500;
    color: var(--gray-900);
    letter-spacing: 0.7px;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--gray-500);
    margin-top: 4px;
}

.header-phone {
    display: none;
}

.header.scrolled .nav {
    height: 70px;
}

.header.scrolled .logo-img {
    height: 52px;
}

.header.scrolled .logo-text-wrapper {
    padding-left: 12px;
}

.header.scrolled .header-phone {
    padding-left: 16px;
    margin-left: 24px;
}

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

.nav-links .btn-nav-cta {
    padding: 10px 22px;
    border-radius: 4px;
    background: var(--anwalt-primary);
    border-color: var(--anwalt-primary);
    color: var(--white);
    margin-left: 8px;
}

.nav-links .btn-nav-cta:hover {
    background: var(--anwalt-light);
    border-color: var(--anwalt-light);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 8px 0;
}

.nav-links a.nav-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    font-size: 18px;
    line-height: 1;
    color: var(--gray-600);
}

.nav-links a.nav-home i {
    display: block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: var(--transition-normal);
}

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

.nav-links a:hover::after {
    width: 100%;
    background: var(--gray-300);
}

.nav-links .nav-anwalt:hover {
    color: var(--anwalt-primary);
}
.nav-links .nav-anwalt:hover::after {
    background: var(--anwalt-primary);
}

.nav-links .nav-notariat:hover {
    color: var(--notariat-primary);
}
.nav-links .nav-notariat:hover::after {
    background: var(--notariat-primary);
}

.nav-item-has-submenu {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.nav-item-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-submenu-chevron {
    transition: transform var(--transition-normal);
}

.nav-submenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--gray-500);
    line-height: 0;
    border-radius: 4px;
    transition: var(--transition-normal);
}

.nav-submenu-toggle:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    z-index: 100;
}

.nav-submenu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-item-has-submenu:hover .nav-submenu,
.nav-item-has-submenu:focus-within .nav-submenu {
    display: block;
}

.nav-submenu li {
    margin: 0;
}

.nav-submenu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
    transition: var(--transition-normal);
}

.nav-submenu a::after {
    display: none;
}

.nav-submenu-anwalt a:hover {
    color: var(--anwalt-primary);
    background: rgba(26, 54, 93, 0.06);
}

.nav-submenu-notariat a:hover {
    color: var(--notariat-primary);
    background: rgba(55, 65, 81, 0.06);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition-fast);
}

/* =============================================
   HERO SPLIT SECTION
   ============================================= */
.hero-split {
    display: flex;
    min-height: 87vh;
    padding-top: 80px;
    position: relative;
}

.hero-split-side {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    cursor: pointer;
    overflow: hidden;
}

.hero-split-side::before {
    content: '';
    position: absolute;
    inset: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.hero-anwalt {
    background-image: url('/wp-content/themes/kanzlei-rellingen-block-theme/imgs/5 - KR-19.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-notariat {
    background-image: url('https://kanzlei-rellingen.toptheweb-notify.de/wp-content/uploads/2026/06/8607515a-b1e8-4b89-8bd8-29e77977ef79.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-anwalt::before {
    background: linear-gradient(135deg, rgba(15, 39, 68, 0.72) 0%, rgba(26, 54, 93, 0.78) 100%);
}

.hero-notariat::before {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.72) 0%, rgba(55, 65, 81, 0.78) 100%);
}

/* Kein abweichender Hover-Hintergrund, damit Text lesbar bleibt */

.hero-split-overlay {
    display: none;
}

.hero-split-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 400px;
}

.hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-split-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--white);
    margin-bottom: 16px;
}

.hero-split-content p {
    font-size: 17px;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-split-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: radial-gradient(circle at 30% 20%, #ffffff, #f3f4f6);
    width: 116px;
    height: 116px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.hero-logo {
    width: 56px;
    height: auto;
}

/* =============================================
   HERO PAGE (DETAILSEITEN)
   ============================================= */
.hero-page {
    position: relative;
    padding: clamp(120px, 14vw, 176px) 0 clamp(72px, 10vw, 120px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 39, 68, 0.9) 0%, rgba(26, 54, 93, 0.92) 100%);
    z-index: -1;
}

.hero-page.hero-page-notariat::after {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(55, 65, 81, 0.92) 100%);
}

.hero-page-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-page-content {
    max-width: 640px;
    text-align: center;
    margin: 0 auto;
}

.hero-page h1 {
    font-size: clamp(26px, 3.4vw, 38px);
    color: var(--white);
    margin-bottom: 14px;
}

.hero-page p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(249, 250, 251, 0.9);
    margin-bottom: 32px;
}

.hero-page-meta {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(249, 250, 251, 0.7);
    margin-bottom: 10px;
}

.hero-page-anwalt::before {
    /* gleiches Bild wie Anwalt-Stage auf der Startseite */
    background-image: url('/wp-content/themes/kanzlei-rellingen-block-theme/imgs/5 - KR-19.jpg');
}

.hero-page-notariat::before {
    /* gleiches Bild wie Notariat-Stage auf der Startseite */
    background-image: url('https://kanzlei-rellingen.toptheweb-notify.de/wp-content/uploads/2026/06/8607515a-b1e8-4b89-8bd8-29e77977ef79.png');
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-anwalt-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-notariat-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-anwalt {
    background: var(--anwalt-primary);
    color: var(--white);
    border-color: var(--anwalt-primary);
}

.btn-anwalt:hover {
    background: var(--anwalt-light);
    border-color: var(--anwalt-light);
    transform: translateY(-2px);
}

.btn-notariat {
    background: var(--notariat-primary);
    color: var(--white);
    border-color: var(--notariat-primary);
}

.btn-notariat:hover {
    background: var(--notariat-light);
    border-color: var(--notariat-light);
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background: var(--anwalt-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--gray-600);
    color: var(--gray-900);
}

.btn-outline-dark {
    background: transparent;
    color: var(--gray-800);
    border-color: var(--gray-300);
}

.btn-outline-dark:hover {
    background: var(--gray-800);
    color: var(--white);
    border-color: var(--gray-800);
}

.btn-submit {
    background: var(--anwalt-primary);
    color: var(--white);
    width: 100%;
    padding: 16px 32px;
}

.btn-submit:hover {
    background: var(--anwalt-light);
    transform: translateY(-2px);
}

/* =============================================
   INTRO SECTION
   ============================================= */
.kanzlei-text-section {
    padding: 80px 0;
    background: var(--white);
}

.kanzlei

.intro {
    padding: 80px 0;
    background: var(--white);
}

.intro-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.kanzlei-name {
    margin-bottom: 24px;
}

.kanzlei-name span {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: var(--anwalt-primary);
    display: block;
    letter-spacing: 1px;
}

.kanzlei-name p {
    font-size: 14px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.intro h1 {
    font-size: clamp(28px, 4vw, 32px);
    margin-bottom: 24px;
    color: var(--gray-900);
}

.intro-lead {
    font-size: 19px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.intro-quote {
    margin: 20px 0 18px;
    padding: 16px 22px;
    border-left: 3px solid var(--anwalt-primary);
    background: var(--anwalt-subtle);
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--gray-800);
}

.intro-quote p {
    margin: 0;
}

.intro-quote cite {
    display: block;
    margin-top: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gray-500);
    text-transform: none;
}
.intro p {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 12px;
}

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

/* Zitat-Sektion: Diagonal-Band wie Bild-Divider — außen gray-50 (sichtbare Schrägen), innen Dunkelgrau */
.quote-section {
    --quote-divider-slant: clamp(2rem, 7vw, 5rem);
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.quote-section__inner {
    clip-path: polygon(
        0 var(--quote-divider-slant),
        100% 0,
        100% calc(100% - var(--quote-divider-slant)),
        0 100%
    );
    background: var(--gray-800);
    padding: clamp(3rem, 8vw, 5.25rem) 0;
}

.quote-band {
    max-width: 880px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.3125rem, 2.35vw, 1.75rem);
    line-height: 1.65;
    font-style: italic;
    color: var(--white);
}

.quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 26px;
    margin-bottom: 12px;
    color: var(--white);
    opacity: 0.35;
}

.quote-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.quote-band p {
    margin: 0;
}

.quote-band cite {
    display: block;
    margin-top: 18px;
    font-family: var(--font-body);
    font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

/* Intro Grid with Image */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-grid .intro-content {
    text-align: left;
}

.intro-cta {
    margin-top: 28px;
}

.intro-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   TRUST SECTION
   ============================================= */
.trust-section {
    padding: 28px 0 28px;
    background: var(--gray-50);
    color: var(--gray-700);
    margin-block-start: 0 !important;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.trust-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    flex-shrink: 0;
}

.trust-icon svg {
    width: 44px;
    height: 44px;
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trust-text strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray-800);
    text-align: left;
}

.trust-text span {
    font-size: 16px;
    line-height: 1.35;
    color: var(--gray-500);
    text-align: left;
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 42px);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
}

.section-header-light h2,
.section-header-light p {
    color: var(--white);
}

.section-header-light p {
    opacity: 0.8;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.tag-anwalt {
    background: var(--anwalt-subtle);
    color: var(--anwalt-primary);
}

.tag-notariat {
    background: var(--notariat-subtle);
    color: var(--notariat-primary);
}

.tag-karriere {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* Anwalt Section */
.section-anwalt {
    background-color: var(--white);
    background-image: none;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 40% auto;
}

/* Notariat Section */
.section-notariat {
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 40% auto;
}

/* Diagonal-Divider-Band: Volllbreite Bildfläche mit schrägen Kanten (clip-path) */
.section-diagonal-divider {
    --divider-slant: clamp(2rem, 7vw, 5rem);
    padding: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background-color: var(--white);
}

.section-diagonal-divider__inner {
    clip-path: polygon(
        0 var(--divider-slant),
        100% 0,
        100% calc(100% - var(--divider-slant)),
        0 100%
    );
}

.section-diagonal-divider img {
    display: block;
    width: 100%;
    max-width: none;
    height: clamp(220px, 42vw, 520px);
    object-fit: cover;
    object-position: center 38%;
}

/* Divider vor Notariat: oben weiß, unten gray-50 */
.section-anwalt + .section-diagonal-divider {
    background: linear-gradient(
        180deg,
        var(--white) 0%,
        var(--white) 45%,
        var(--gray-50) 55%,
        var(--gray-50) 100%
    );
}

.section-diagonal-divider + .section-anwalt,
.section-diagonal-divider + .section-notariat {
    position: relative;
    z-index: 1;
    padding-top: var(--section-padding);
}

.section-diagonal-divider + .section-contact {
    position: relative;
    z-index: 1;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Practice Areas – elegante, vertikale Auflistung für Unterseiten */
.practice-areas {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
    margin: 56px 0 0;
}

.practice-areas .service-card {
    box-shadow: none;
    border-radius: 0;
    border: none;
    padding: 0 0 36px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
}

.practice-areas .service-card:first-of-type {
    padding-top: 0;
}

.practice-areas .service-card-content {
    flex: 1;
}

.practice-areas .service-card-header {
    min-width: 260px;
    max-width: 260px;
    padding: 24px 22px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.practice-logo {
    display: none;
}

.practice-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 8px;
}

.practice-areas .service-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    text-align: left;
}

.practice-areas .service-card p {
    text-align: left;
}

.practice-areas .service-link {
    display: inline-block;
    margin-top: 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.practice-areas-anwalt .service-card h3 {
    color: var(--anwalt-dark);
}

.practice-areas-notariat .service-card h3 {
    color: var(--notariat-dark);
}

.practice-areas-anwalt .service-card-header {
    background: var(--anwalt-primary);
}

.practice-areas-notariat .service-card-header {
    background: var(--notariat-primary);
}

.practice-areas-anwalt .service-card-header h3,
.practice-areas-notariat .service-card-header h3 {
    color: #ffffff;
}

.practice-areas-anwalt .service-card-header,
.practice-areas-notariat .service-card-header {
    color: #ffffff;
}

.practice-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.practice-areas-anwalt .practice-cta-btn {
    background: var(--anwalt-primary);
    color: #ffffff;
    border-color: var(--anwalt-primary);
}

.practice-areas-notariat .practice-cta-btn {
    background: var(--notariat-primary);
    color: #ffffff;
    border-color: var(--notariat-primary);
}

.practice-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .practice-areas .service-card {
        flex-direction: column;
        gap: 20px;
    }

    .practice-areas .service-card-header {
        max-width: 100%;
    }
}

.service-card {
    background: var(--white);
    padding: 36px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.03);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: none;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition-normal);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-sm);
}

.service-card-anwalt .service-icon {
    background: var(--anwalt-primary);
    color: var(--white);
}

.service-card-notariat .service-icon {
    background: var(--notariat-dark);
    color: var(--white);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
}

.service-card p {
    color: var(--gray-500);
    font-size: 15px;
    text-align: center;
    margin-bottom: 16px;
}

.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    transition: var(--transition-fast);
    text-align: center;
    display: block;
}

.service-card-anwalt .service-link:hover {
    color: var(--anwalt-primary);
}

.service-card-notariat .service-link:hover {
    color: var(--notariat-primary);
}

/* Startseite: Kachel-Links mit Pfeil (Anwalt / Notariat) */
a.service-card.service-card-tile-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.service-card.service-card-tile-link:focus-visible {
    outline: 2px solid var(--anwalt-accent);
    outline-offset: 3px;
}

.section-notariat a.service-card.service-card-tile-link:focus-visible {
    outline-color: var(--notariat-accent);
}

.service-card-tile-link .service-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    /* Nur etwas Abstand nach unten zum Pfeil in der Ecke */
    padding-bottom: 28px;
}

.service-card-tile-link .service-icon {
    margin-left: auto;
    margin-right: auto;
}

.service-card-tile-link .service-card-main p {
    margin-bottom: 0;
}

.service-card-arrow {
    position: absolute;
    right: 16px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    pointer-events: none;
    transition: transform var(--transition-normal), color var(--transition-normal);
}

.service-card-arrow svg {
    display: block;
}

.service-card-tile-link.service-card-anwalt:hover {
    background: var(--anwalt-subtle);
    border-color: rgba(26, 54, 93, 0.14);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-card-tile-link.service-card-anwalt:hover .service-card-arrow {
    color: var(--anwalt-primary);
    transform: translate(5px, 2px);
}

.service-card-tile-link.service-card-anwalt:hover h3 {
    color: var(--anwalt-primary);
}

.service-card-tile-link.service-card-anwalt:hover p {
    color: var(--gray-600);
}

.service-card-tile-link.service-card-notariat:hover {
    background: var(--notariat-subtle);
    border-color: rgba(55, 65, 81, 0.16);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-card-tile-link.service-card-notariat:hover .service-card-arrow {
    color: var(--notariat-primary);
    transform: translate(5px, 2px);
}

.service-card-tile-link.service-card-notariat:hover h3 {
    color: var(--notariat-dark);
}

.service-card-tile-link.service-card-notariat:hover p {
    color: var(--gray-600);
}

@media (prefers-reduced-motion: reduce) {
    .service-card-tile-link:hover {
        transform: none;
    }

    .service-card-tile-link:hover .service-card-arrow {
        transform: none;
    }
}

/* Large Service Cards with Lists */
.service-card-large {
    grid-column: span 1;
}

.service-list {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.service-list li {
    font-size: 14px;
    color: var(--gray-600);
    padding: 6px 0 6px 20px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.service-card-anwalt .service-list li::before {
    background: var(--anwalt-accent);
}

.service-card-notariat .service-list li::before {
    background: var(--notariat-accent);
}

/* Längere Einleitungstexte unter Sektionsüberschriften (Anwalt / Notariat) */
.notariat-intro,
.anwalts-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.notariat-intro p,
.anwalts-intro p {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.8;
}

.anwalts-intro p + p {
    margin-top: 1em;
}

.section-intro-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
}

/* Outline-Buttons auf hellem Grund (Hero-Variante ist weiß/weiß für dunkle Flächen) */
.section-anwalt .section-intro-cta .btn-anwalt-outline {
    color: var(--anwalt-primary);
    border-color: var(--anwalt-primary);
}

.section-anwalt .section-intro-cta .btn-anwalt-outline:hover {
    background: var(--anwalt-primary);
    color: var(--white);
    border-color: var(--anwalt-primary);
}

.section-notariat .section-intro-cta .btn-notariat-outline {
    color: var(--notariat-primary);
    border-color: var(--notariat-primary);
}

.section-notariat .section-intro-cta .btn-notariat-outline:hover {
    background: var(--notariat-primary);
    color: var(--white);
    border-color: var(--notariat-primary);
}

/* Forms Section in Notariat */
.forms-section {
    margin-top: 60px;
    background: var(--white);
    border-radius: 12px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.forms-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.forms-content p {
    font-size: 17px;
    color: var(--gray-500);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.forms-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   TEAM SECTION
   ============================================= */
.section-team {
    background: var(--white);
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.team-card {
    background: linear-gradient(145deg, #ffffff 0%, #f9fbfd 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 39, 68, 0.09);
    border: 1px solid rgba(15, 39, 68, 0.08);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: row;
    position: relative;
}

.team-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--anwalt-primary) 0%, var(--anwalt-light) 100%);
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(15, 39, 68, 0.14);
}

.team-card-featured {
    grid-column: span 1;
}

.team-image {
    width: 36%;
    height: auto;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.team-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 39, 68, 0) 52%, rgba(15, 39, 68, 0.18) 100%);
    pointer-events: none;
}

.team-placeholder {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 600;
    color: var(--gray-300);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.team-info {
    flex: 1;
    padding: 30px 34px 28px;
}

.team-info h3 {
    font-size: clamp(24px, 2.2vw, 30px);
    margin-bottom: 10px;
    line-height: 1.2;
}

.team-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.team-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.team-role-anwalt {
    background: var(--anwalt-primary);
    color: var(--white);
}

.team-role-notariat {
    background: var(--notariat-dark);
    color: var(--white);
}

.team-role-mediator {
    background: #065f46;
    color: var(--white);
}

.team-specialties {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 22px;
    line-height: 1.6;
    font-weight: 500;
}

.team-quote {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 15px;
    font-style: italic;
    color: #0f2744;
    line-height: 1.45;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 39, 68, 0.16);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 39, 68, 0.2);
}

.team-quote::after {
    content: "";
    position: absolute;
    left: 28px;
    bottom: -10px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid rgba(15, 39, 68, 0.16);
    border-bottom: 1px solid rgba(15, 39, 68, 0.16);
    transform: rotate(45deg);
}

.team-vita h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 14px;
    font-family: var(--font-body);
}

.team-vita ul {
    list-style: none;
}

.team-vita li {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
    margin-bottom: 10px;
}

.team-vita li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    background: var(--anwalt-accent);
    border-radius: 50%;
}

.team-contact {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-200);
}

.team-contact a {
    font-size: 15px;
    font-weight: 500;
    color: var(--anwalt-primary);
    transition: var(--transition-fast);
}

.team-contact a:hover {
    color: var(--anwalt-light);
}

.team-cta {
    margin-top: 60px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-cta p {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.8;
    font-style: italic;
}

/* =============================================
   DOWNLOADS SECTION
   ============================================= */
.section-downloads {
}

.downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.downloads-item {
    margin: 0;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 24px;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(145deg, #ffffff 0%, #f9fbfd 100%);
    border: 1px solid rgba(15, 39, 68, 0.08);
    box-shadow: 0 12px 32px rgba(15, 39, 68, 0.08);
    color: var(--gray-700);
    transition: var(--transition-normal);
}

.download-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--anwalt-primary);
    background: var(--anwalt-subtle);
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.download-card-text {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray-800);
}

.download-card-arrow {
    margin-left: auto;
    color: var(--anwalt-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 93, 145, 0.28);
    box-shadow: 0 20px 40px rgba(15, 39, 68, 0.14);
}

.download-card:hover .download-card-icon {
    background: var(--anwalt-primary);
    color: var(--white);
}

.download-card:hover .download-card-arrow {
    transform: translateX(4px);
}

.download-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 93, 145, 0.25);
}

.downloads-contact {
    margin-top: 34px;
    text-align: center;
    color: var(--gray-600);
    font-size: 18px;
}

/* =============================================
   KARRIERE SECTION
   ============================================= */
.quote-section + .section-karriere {
    padding-top: clamp(36px, 4.5vw, 56px);
}

/* Startseite: vor dem Bild-Divider weniger Abstand nach unten (Hero-Margin + Section-Padding) */
.section-karriere:has(+ .section-diagonal-divider) {
    padding-bottom: clamp(28px, 3.5vw, 44px);
}

.section-karriere:has(+ .section-diagonal-divider) .karriere-hero {
    margin-bottom: 0;
}

.karriere-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.karriere-intro p {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.8;
}

/* Karriere Hero */
.karriere-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.karriere-hero-image {
    border-radius: 12px;
    overflow: hidden;
}

.karriere-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.karriere-hero-content {
    padding: 40px 40px 40px 0;
}

.karriere-hero-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.karriere-hero-content p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
}

.karriere-hero-content .btn-primary {
    margin-top: 20px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.job-card {
    background: var(--white);
    padding: 36px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.job-header {
    margin-bottom: 16px;
}

.job-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 20px;
    margin-bottom: 12px;
}

.job-card h3 {
    font-size: 22px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--gray-800);
}

.job-card > p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.job-highlights {
    list-style: none;
    margin-bottom: 24px;
}

.job-highlights li {
    font-size: 14px;
    color: var(--gray-600);
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.job-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 600;
}

.job-card-featured {
    border: 2px solid var(--anwalt-primary);
}

.job-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 20px 0 12px;
    font-family: var(--font-body);
}

.job-requirements {
    list-style: none;
    margin-bottom: 24px;
}

.job-requirements li {
    font-size: 14px;
    color: var(--gray-600);
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.job-requirements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

.karriere-cta {
    text-align: center;
    padding: 50px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.karriere-cta h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.karriere-cta p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.section-contact {
    background: var(--white);
    color: var(--gray-800);
    padding-top: 72px;
    padding-bottom: 88px;
}

.contact-section-header {
    text-align: center;
    max-width: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.contact-section-header h2 {
    font-size: clamp(30px, 3.6vw, 40px);
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    white-space: nowrap;
}

.contact-intro {
    font-size: 17px;
    line-height: 1.65;
    color: var(--gray-600);
    font-weight: 400;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 520px) {
    .contact-section-header h2 {
        white-space: normal;
    }
}

.contact-panel-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.contact-panel-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 48px;
    height: 2px;
    background: var(--anwalt-primary);
    border-radius: 1px;
}

/* Zweite Panel-Überschrift: Abstand per Padding (vermeidet Margin-Collapse mit den Zeilen darüber) */
.contact-info-inner > .contact-panel-title-follow {
    margin-top: 0;
    padding-top: 32px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
    gap: 36px;
    align-items: stretch;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

.contact-info {
    background: var(--white);
    border-radius: 18px;
    padding: 0;
    border: 1px solid rgba(26, 54, 93, 0.08);
    box-shadow: var(--shadow-sm);
}

.contact-info-inner {
    padding: 32px 28px 30px;
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-item:first-of-type {
    padding-top: 0;
}

.contact-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, var(--anwalt-subtle) 0%, rgba(26, 54, 93, 0.04) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    border: 1px solid rgba(26, 54, 93, 0.1);
    box-shadow: 0 1px 2px rgba(26, 54, 93, 0.06);
}

.contact-icon svg {
    color: var(--anwalt-primary);
}

.contact-item-body {
    min-width: 0;
    padding-top: 2px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gray-500);
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    color: var(--gray-800);
    line-height: 1.55;
    font-size: 15px;
}

.contact-item a {
    color: var(--anwalt-primary);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--anwalt-light);
    border-bottom-color: rgba(49, 130, 206, 0.45);
}

.office-hours {
    margin: 0;
}

.office-hours table {
    width: 100%;
    border-collapse: collapse;
}

.office-hours td {
    padding: 6px 0;
    color: var(--gray-700);
    font-size: 15px;
    vertical-align: top;
}

.office-hours td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--gray-800);
    font-weight: 500;
}

.office-hours tr:last-child td {
    padding-top: 10px;
    text-align: left;
}

.office-hours em {
    font-size: 14px;
    color: var(--gray-500);
    font-style: italic;
}

.accessibility-info strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.accessibility-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accessibility-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-300);
}

.accessibility-item svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 32px 30px 30px;
    border-radius: 18px;
    border: 1px solid rgba(26, 54, 93, 0.08);
    box-shadow: var(--shadow-sm);
}

.contact-form-wrapper .contact-panel-title {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-contact .form-group input,
.section-contact .form-group select,
.section-contact .form-group textarea {
    border-radius: 10px;
    border-color: var(--gray-200);
    padding: 14px 17px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.section-contact .form-group input:focus,
.section-contact .form-group select:focus,
.section-contact .form-group textarea:focus {
    border-color: var(--anwalt-accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.12);
}

.section-contact .form-group label {
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--gray-600);
}

.section-contact .contact-form .btn-submit {
    margin-top: 4px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    box-shadow: 0 4px 14px -4px rgba(26, 54, 93, 0.45);
}

.section-contact .contact-form .btn-submit:hover {
    box-shadow: 0 8px 22px -6px rgba(26, 54, 93, 0.5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--gray-900);
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--anwalt-accent);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox label {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--anwalt-primary);
    text-decoration: underline;
}

.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea,
.form-group input.error,
.form-group textarea.error {
    border-color: #b42318;
}

.form-checkbox.error label {
    color: #b42318;
}

.form-status {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.form-status[hidden] {
    display: none !important;
}

.form-status.is-success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.form-status.is-error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.contact-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* =============================================
   MAP SECTION
   ============================================= */
.section-map {
    padding: 0;
    position: relative;
}

.map-fullwidth {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.map-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.9);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: none;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.map-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
}

.map-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.map-card address {
    font-style: normal;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.map-card address strong {
    color: var(--gray-900);
    font-weight: 600;
}

.map-directions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.map-direction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray-600);
}

.map-direction-item svg {
    color: var(--anwalt-primary);
    flex-shrink: 0;
}

.btn-navigate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--anwalt-primary);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition-normal);
}

.btn-navigate:hover {
    background: var(--anwalt-light);
    transform: translateY(-2px);
}

.map-attribution {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--gray-600);
}

.map-attribution a {
    color: var(--anwalt-primary);
    text-decoration: underline;
}

/* =============================================
   SCROLL TO TOP BUTTON
   ============================================= */
.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 54, 93, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 900;
}

/* Remix Icon: arrow-up-line (RemixIcon, MIT) */
.scroll-top-btn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--anwalt-light);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 38px;
        height: 38px;
    }

    .scroll-top-btn-icon {
        width: 20px;
        height: 20px;
    }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--gray-900);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand .logo-text,
.footer-logo .logo-text {
    color: var(--gray-500);
}

.footer-brand .logo-name,
.footer-logo .logo-name {
    color: var(--white);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-bottom: 12px;
}

.footer-kanzlei-name {
    font-size: 14px;
    color: var(--gray-300);
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    font-size: 14px;
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    font-size: 14px;
    color: var(--gray-500);
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-bottom > p {
    font-size: 14px;
    color: var(--gray-600);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
    }
    
    .hero-split-side {
        min-height: 50vh;
    }
    
    .hero-split-center {
        position: static;
        transform: none;
        margin: -40px auto 24px;
        width: 80px;
        height: 80px;
    }
    
    .hero-logo {
        width: 48px;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    /* Hintergrundbilder in den Leistungssektionen auf Mobile deaktivieren */
    .section-anwalt {
        background-image: none;
    }
    .section-notariat {
        background-image: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .section-diagonal-divider {
        --divider-slant: clamp(1.25rem, 5vw, 2.75rem);
    }

    .section-diagonal-divider img {
        height: clamp(200px, 36vw, 380px);
    }

    .quote-section {
        --quote-divider-slant: clamp(1.25rem, 5vw, 2.75rem);
    }

    .quote-section__inner {
        padding: clamp(2.5rem, 10vw, 3.75rem) 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav {
        position: relative;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-item-has-submenu {
        border-bottom: 1px solid var(--gray-100);
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .nav-item-row {
        width: 100%;
    }

    .nav-item-row > a {
        flex: 1;
        display: block;
        padding: 15px 0;
    }

    .nav-submenu-toggle {
        display: inline-flex;
        flex-shrink: 0;
        padding: 12px;
        margin-right: -8px;
    }

    .nav-item-has-submenu.submenu-open .nav-submenu-chevron {
        transform: rotate(180deg);
    }

    .nav-submenu {
        display: none;
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        padding: 0 0 8px;
        margin: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--gray-50);
    }

    .nav-item-has-submenu:hover .nav-submenu,
    .nav-item-has-submenu:focus-within .nav-submenu {
        display: none;
    }

    .nav-item-has-submenu.submenu-open .nav-submenu {
        display: block;
    }

    .nav-submenu a {
        padding: 12px 20px;
        border-bottom: 1px solid var(--gray-100);
        white-space: normal;
    }

    .nav-submenu li:last-child a {
        border-bottom: none;
    }
    
    .nav-links > li > a,
    .nav-links > li:not(.nav-item-has-submenu) > a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .header-top {
        display: none;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-grid .intro-content {
        text-align: center;
        order: 1;
    }
    
    .intro-image {
        order: 2;
    }
    
    .section-image img {
        height: 280px;
    }
    
    .karriere-hero {
        grid-template-columns: 1fr;
    }
    
    .karriere-hero-content {
        padding: 30px;
    }
    
    .karriere-hero-image img {
        min-height: 250px;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .trust-item {
        gap: 10px;
    }

    .trust-icon {
        width: 32px;
        height: 32px;
    }

    .trust-icon svg {
        width: 32px;
        height: 32px;
    }

    .trust-text strong {
        font-size: 15px;
    }

    .trust-text span {
        font-size: 13px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .team-card {
        flex-direction: column;
        border-radius: 16px;
    }

    .team-image {
        width: 100%;
        min-height: 300px;
    }

    .team-quote {
        left: 12px;
        right: 12px;
        bottom: 10px;
        font-size: 14px;
        padding: 12px 14px;
    }

    .team-info {
        padding: 24px 20px 22px;
    }

    .team-info h3 {
        font-size: 25px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .forms-section {
        padding: 36px 24px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .map-fullwidth {
        height: auto;
        min-height: 0;
    }
    
    .map-image {
        /* Bleibt Hintergrund; Höhe kommt vom Overlay/Card-Inhalt */
        z-index: 0;
    }
    
    .map-overlay {
        position: relative;
        flex-direction: column;
        justify-content: flex-end;
        padding: 24px 16px 16px;
        background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.75) 100%);
        min-height: 420px;
        z-index: 1;
    }
    
    .map-card {
        max-width: 100%;
        margin-bottom: 28px;
        padding: 28px 24px;
    }
    
    .map-attribution {
        position: static;
        align-self: flex-end;
        margin-top: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-split-content {
        padding: 0 20px;
    }
    
    .hero-split-content h2 {
        font-size: 28px;
    }
    
    .service-card {
        padding: 28px 20px;
    }

    .service-card-tile-link .service-card-main {
        padding-bottom: 24px;
    }

    .service-card-tile-link .service-card-arrow {
        right: 12px;
        bottom: 12px;
    }

    .service-card-tile-link .service-card-arrow svg {
        width: 40px;
        height: 40px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .job-card {
        padding: 24px;
    }

    .downloads-list {
        grid-template-columns: 1fr;
    }

    .download-card {
        padding: 20px;
    }

    .download-card-text {
        font-size: 20px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Animations entfernt: Inhalte erscheinen ohne Einblend-Effekte. */
