/* ==========================================================================
   Base
   ========================================================================== */

@font-face {
    font-family: 'MaisonNeue';
    src: url('fonts/MaisonNeueMG-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: block;
}

:root {
    --color-bg:           #e6e6e6;
    --color-bg-dark:      #1a2533;
    --color-text:         #222222;
    --color-text-light:   #ffffff;
    --color-accent:       #dfea72;
    --color-accent-hover: #c8d44e;
    --color-border:       rgba(34, 34, 34, 0.15);
    --color-border-light: rgba(255, 255, 255, 0.2);
    --font: 'MaisonNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --page-padding: clamp(1.5rem, 4vw, 4rem);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
}

body {
    font-family: var(--font);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    border: 15px solid var(--color-bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ==========================================================================
   Burger Menu
   ========================================================================== */

.burger-toggle {
    position: fixed;
    top: var(--page-padding);
    right: var(--page-padding);
    z-index: 1001;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
}

.burger-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-accent);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-toggle.open span:nth-child(2) {
    opacity: 0;
}

.burger-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-bg-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: var(--page-padding);
    border: 15px solid var(--color-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.menu-nav {
    text-align: right;
}

.menu-nav a {
    display: block;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border-light);
    transition: color 0.2s ease;
}

.menu-nav a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    padding: var(--page-padding);
    padding-bottom: 0;
    margin-bottom: 0;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.hero-inner {
    width: 100%;
    padding-bottom: 0;
}

.hero-title {
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.0;
    letter-spacing: 0.05em;
}

.hero-title span {
    display: block;
}

.hero-title span:first-child {
    margin-left: 6px;
}

.hero-title span:last-child {
    display: block;
    margin-bottom: -0.25em;
}

.hero-contact-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0 var(--page-padding);
    background: var(--color-bg-dark);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    min-height: 225px;
}

.pipe-dim {
    opacity: 0.4;
    margin: 0 0.2rem;
    font-weight: 300;
}

.hero-contact-bar a {
    color: var(--color-accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.hero-contact-bar a:hover {
    border-bottom-color: var(--color-accent);
}

.hero-contact {
    display: none;
}

.hero-divider {
    width: 40px;
    height: 1px;
    background: var(--color-border-light);
}

/* ==========================================================================
   Statement
   ========================================================================== */

.statement-text {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-light);
    max-width: 900px;
    margin-bottom: 8.5rem;
}

/* ==========================================================================
   Cards Section
   ========================================================================== */

.cards-section {
    padding: 0 var(--page-padding) 5rem;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.cards-section-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-label {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    color: inherit;
    opacity: 0.7;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    border: 2px solid white;
    border-radius: 4px;
    padding: clamp(1.25rem, 2.8vw, 2.5rem);
    display: flex;
    flex-direction: column;
    aspect-ratio: 1.414 / 1;
    transition: border-color 0.3s ease, background 0.3s ease;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    overflow: hidden;
}

.card:hover {
    border-color: var(--color-accent);
    background: rgba(223, 234, 114, 0.06);
}

.card-tag {
    font-size: clamp(0.7rem, 1.3vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.25em;
    margin-bottom: clamp(0.6rem, 1.4vw, 1.25rem);
    text-transform: uppercase;
}

.card-title {
    font-size: clamp(0.65rem, 1.25vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.35;
    flex: 1;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: clamp(0.65rem, 1.25vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.card-list li {
    position: relative;
    padding-left: 1em;
}

.card-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-weight: 400;
}

.card-link {
    font-size: clamp(0.55rem, 1vw, 0.9rem);
    color: var(--color-accent);
    margin-top: auto;
    display: inline-block;
    width: fit-content;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.card:hover .card-link {
    opacity: 0.8;
    border-bottom-color: var(--color-accent);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-section {
    padding: 6rem var(--page-padding);
    background: var(--color-bg);
}

.about-inner {
    max-width: 1200px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.about-right p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Location
   ========================================================================== */

.location-section {
    padding: 8.5em var(--page-padding) 4.5rem;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    margin-top: 15px;
}

.location-section .section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: var(--color-text-light);
    opacity: 1;
    display: block;
}

.location-grid {
    display: grid;
    grid-template-columns: max-content max-content max-content;
    gap: 2rem;
}

.location-left {
    grid-row: 1;
}

.location-address {
    display: inline;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-accent);
    text-decoration: none;
    transition: border-color 0.2s ease;
    padding: 0.6rem 0;
    margin: -0.6rem 0;
    box-shadow: inset 0 0 0 0 transparent;
}

.location-address:hover {
    box-shadow: inset 0 -1px 0 0 var(--color-accent);
}

.location-map {
    grid-row: 1;
    position: relative;
    width: 200px;
    margin-right: 4rem;
}

.location-map a {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
}

.map-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.map-image:hover {
    opacity: 1;
}

.location-right {
    grid-row: 1;
}

.location-hours {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.location-right p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

.contact-link {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    width: fit-content;
}

.contact-link:hover {
    border-bottom-color: var(--color-accent);
}

.datenschutz-link {
    display: inline-block;
    margin-top: calc(1.2rem * 1.8 * 2 + 1rem);
    font-size: 0.9rem;
    color: var(--color-text-light);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.datenschutz-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.team-page .location-section,
.service-page .location-section {
    padding-top: 2rem;
}

.page-divider-wrap {
    background: var(--color-bg-dark);
    padding: 6rem var(--page-padding) 0; 
}

.page-divider-wrap hr {
    border: none;
    height: 1px;
    background: var(--color-border-light);
    margin: 0;
    margin-bottom: 4rem;
}

.service-block:last-child {
    margin-bottom: 6rem;
}

.kanzlei-slider {
    margin-bottom: 6rem;
}

.datenschutz-content {
    margin-bottom: 6rem;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .location-map {
        padding-top: 0;
    }
}

/* ==========================================================================
   Wordmark
   ========================================================================== */

.wordmark-section {
    padding: 1rem var(--page-padding) 1rem;
    padding-left: 1.8rem;
    background: var(--color-bg-dark);
}

.wordmark {
    display: block;
    font-size: 4.4vw;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    opacity: 0.08;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .wordmark { font-size: 5.4vw; }
}

@media (max-width: 480px) {
    .wordmark { font-size: 5.2vw; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: 1rem var(--page-padding) 0;
    background: var(--color-bg-dark);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-inner a {
    color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-inner a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Dienstleistungen
   ========================================================================== */

.service-page {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    min-height: 100vh;
}

.service-main {
    padding: var(--page-padding);
    min-height: 80vh;
}

.service-tabs {
    display: inline-flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.5rem 0 0.5rem;
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
}

.tab-button.active {
    opacity: 1;
    color: var(--color-accent);
}

.tab-button.active::after,
.tab-button:hover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.service-block {
    margin-bottom: 2.5rem;
}

.service-block .card-title {
    max-width: 900px;
    font-size: 1.3rem;
}

.service-block .card-title strong {
    font-weight: 700;
}

.lawyer-highlight {
    display: inline-block;
    white-space: nowrap;
    color: var(--color-text);
    font-weight: 600;
    background-color: var(--color-bg);
    padding: 0.30em 0.40em 0.15em;
    border-radius: 2px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.lawyer-highlight:hover {
    background-color: var(--color-accent);
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

.service-page .burger-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.service-page .burger-toggle span:nth-child(2) {
    opacity: 0;
}

.service-page .burger-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   Team
   ========================================================================== */

.team-page {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    min-height: 100vh;
}

.team-main {
    padding: var(--page-padding);
}

.team-heading {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 3rem;
    display: inline-block;
    border-bottom: 1px solid var(--color-accent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 8rem;
}

.team-member {
    display: block;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border-light);
}

.team-member:nth-child(-n+2) {
    padding-top: 0;
}

.team-member:last-child {
    border-bottom: none;
}

.team-photo-wrapper {
    width: 55%;
    aspect-ratio: 3 / 4;
    overflow: visible;
    margin-bottom: 3rem;
    border-radius: 3px;
    position: relative;
}

.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    border-radius: 3px;
}

.team-label {
    position: absolute;
    top: 10%;
    left: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.team-name {
    position: static;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-text);
    background-color: var(--color-bg);
    padding: 0.2em 0.6em 0.1em;
    border-radius: 2px;
    white-space: nowrap;
}

.team-title {
    position: absolute;
    top: calc(10% + 3.8rem);
    left: 100%;
    margin-left: 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.team-specialization {
    position: absolute;
    top: calc(10% + 5.8rem);
    left: 100%;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--color-text-light);
}

.team-email {
    position: absolute;
    bottom: 0;
    left: 100%;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    white-space: nowrap;
}

.team-email:hover {
    border-bottom-color: var(--color-accent);
}

/* ==========================================================================
   CV Tags & Overlay
   ========================================================================== */

.cv-tags {
    position: absolute;
    bottom: 3.4rem;
    left: 100%;
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cv-tag {
    font-size: 0.9rem;
    color: var(--color-accent);
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    width: fit-content;
    white-space: nowrap;
}

.cv-tag:hover {
    border-bottom-color: var(--color-accent);
}

.cv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 37, 51, 0.92);
    border: 2px solid white;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
    overflow: hidden;
}

.cv-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cv-overlay ul {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    max-height: calc(100% - 2.5rem);
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-text-light);
    line-height: 1.7;
}

.cv-overlay ul::-webkit-scrollbar {
    display: none;
}

.cv-overlay[data-cv="sprachen"] ul {
    bottom: auto;
    top: 35%;
    transform: translateY(-50%);
    left: 38%;
    max-height: 80%;
}

.team-member[id] {
    scroll-margin-top: 2rem;
}

.cv-overlay[data-cv="erfahrung"] li {
    margin-bottom: 0.6rem;
}

.cv-year {
    display: block;
    opacity: 0.45;
}

/* ==========================================================================
   Typewriter Animation
   ========================================================================== */

.type-cursor {
    animation: blink 0.6s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==========================================================================
   Kanzlei
   ========================================================================== */

.kanzlei-main {
    padding: var(--page-padding);
}

.kanzlei-heading {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 3rem;
    display: inline-block;
    border-bottom: 1px solid var(--color-accent);
}

.kanzlei-text {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-light);
    max-width: 900px;
}

.kanzlei-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin-top: 3rem;
    border-radius: 3px;
    overflow: hidden;
}

.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.slider-img.active {
    opacity: 1;
}

/* ==========================================================================
   Datenschutz
   ========================================================================== */

.datenschutz-main {
    padding: var(--page-padding);
}

.datenschutz-heading {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 3rem;
    display: inline-block;
    border-bottom: 1px solid var(--color-accent);
}

.datenschutz-content {
    max-width: 900px;
}

.ds-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.ds-section-title:first-child {
    margin-top: 0;
}

.ds-text {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
}

.ds-text strong {
    font-weight: 700;
    color: var(--color-text-light);
}

/* ==========================================================================
   scrollbar
   ========================================================================== */

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

*::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
}

/* ==========================================================================
   ≤ 1500px
   ========================================================================== */
@media (max-width: 1500px) {
    .card-list {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   ≤ 1400px
   ========================================================================== */
@media (max-width: 1400px) {
    .card-list {
        font-size: 0.90rem;
    }
    .team-specialization {
        width: 200px;
    }
}

/* ==========================================================================
   ≤ 1300px
   ========================================================================== */
@media (max-width: 1300px) {
    .card-list {
        font-size: 0.85rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .team-member:nth-child(-n+2) {
        padding-top: 3rem;
    }

    .team-member:first-child {
        padding-top: 0;
    }

    .team-photo-wrapper {
        width: 32%;
    }
}

/* ==========================================================================
   ≤ 1200px
   ========================================================================== */

@media (max-width: 1200px) {
    .card-list {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   ≤ 1100px
   ========================================================================== */
@media (max-width: 1100px) {

    .card {
        aspect-ratio: auto;
        min-height: 240px;
        padding: 2rem;
        overflow: visible;
    }

    .card-tag {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-link {
        font-size: 0.9rem;
        margin-top: 2rem;
    }

    .card-list {
        font-size: 1.1rem;
    }

    .hero {
        padding: 2.5rem var(--page-padding) 0;
    }

    .hero-title span:first-child {
        margin-left: 5px;
    }

    .hero-contact-bar {
        gap: 1.25rem;
        font-size: 1.05rem;
        min-height: 140px;
        padding: 4rem var(--page-padding) 4rem;
    }

    .statement-text {
        margin-bottom: 4rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        aspect-ratio: auto;
        min-height: 240px;
        padding: 2rem;
    }

    .cards-section {
        padding: 0 var(--page-padding) 3rem;
    }

    .location-section {
        padding: 6rem var(--page-padding) 2rem;
    }

    .statement-text {
        font-size: clamp(1.3rem, 6vw, 2rem);
        margin-bottom: 6rem;
    }

    .location-grid {
        grid-template-columns: max-content max-content max-content;
        gap: 1.5rem;
    }

    .location-left,
    .location-right {
        grid-row: 1;
    }

    .location-map {
        grid-row: 1;
        width: 140px;
        margin-right: 2rem;
    }

    .location-map a {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        display: flex;
    }

    .map-image {
        height: 100%;
        width: auto;
    }

    .wordmark-section {
        padding-left: 2rem;
    }

    .wordmark {
        font-size: 4.2vw;
    }
}

/* ==========================================================================
   ≤ 1000px — Team as 2-column grid with vertical card layout
   ========================================================================== */
@media (max-width: 1000px) {

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2.5rem;
    }

    .team-member:nth-child(-n+2) {
        padding-top: 0;
    }

    .team-member {
        padding-top: 3rem;
    }

    .team-photo-wrapper {
        width: 80%;
        margin-bottom: 1.25rem;
    }

    .team-label {
        position: absolute;
        top: -2rem;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        margin-top: 0;
        margin-bottom: 0;
        z-index: 3;
    }

    .team-name {
        font-size: 1.2rem;
    }

    .team-title {
        position: static;
        left: auto;
        top: auto;
        margin-top: 1rem;
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .team-specialization {
        position: static;
        left: auto;
        top: auto;
        margin-left: 0;
        width: 100%;
        height: 4rem;
        margin-bottom: 1rem;
        overflow: hidden;
    }

    #enz .team-specialization {
        height: 2.7rem;
    }

    .cv-tags {
        position: static;
        bottom: auto;
        left: auto;
        margin-left: 0;
        flex-direction: column;
        gap: 0.3rem;
        margin-bottom: 1rem;
    }

    .cv-overlay {
        bottom: auto;
        aspect-ratio: 3 / 4;
        width: 100%;
    }

    .team-email {
        position: static;
        bottom: auto;
        left: auto;
        margin-left: 0;
        margin-top: 1.2rem;
        display: inline-block;
        width: fit-content;
    }
}

/* ==========================================================================
   ≤ 900px
   ========================================================================== */
@media (max-width: 900px) {
    .hero-title span:first-child {
        margin-left: 4px;
    }
}

/* ==========================================================================
   ≤ 850px
   ========================================================================== */
@media (max-width: 850px) {

    .service-tabs {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .team-member {
        padding-top: 1rem;
    }

    .team-member:nth-child(-n+2) {
        padding-top: 1rem;
    }

    .team-member:first-child {
        padding-top: 0;
    }

    .team-photo-wrapper {
        width: 55%;
    }

    .team-label {
        top: 10%;
        left: 90%;
        transform: none;
        align-items: center;
    }

    .team-specialization {
        height: auto;
    }

    #enz .team-specialization {
        height: auto;
    }
}

/* ==========================================================================
   ≤ 780px
   ========================================================================== */
@media (max-width: 780px) {

    .location-section {
        padding: 4rem var(--page-padding) 2rem;
    }

    .statement-text {
        font-size: clamp(1.3rem, 6vw, 2rem);
        margin-bottom: 4rem;
    }

    .location-grid {
        grid-template-columns: max-content max-content;
        gap: 2rem 2rem;
    }

    .location-left {
        grid-row: 1;
        grid-column: 1;
    }

    .location-map {
        grid-row: 1;
        grid-column: 2;
        width: 140px;
        margin-right: 0;
    }

    .location-right {
        grid-row: 2;
        grid-column: 1 / -1;
    }

    .location-map a {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        display: flex;
    }

    .map-image {
        height: 100%;
        width: auto;
    }

    .datenschutz-link {
        margin-top: 1rem;
    }

    .wordmark-section {
        padding-left: 1.8rem;
    }

    .wordmark {
        font-size: 4.1vw;
    }
}

/* ==========================================================================
   ≤ 652px
   ========================================================================== */
@media (max-width: 652px) {

    .hero-title {
        font-size: clamp(3rem, 11vw, 3.5rem);
        line-height: 1.05;
    }

    .hero-contact-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 1rem;
        min-height: auto;
        padding: 2.5rem var(--page-padding) 2.5rem;
    }

    .hero-divider {
        display: none;
    }

    .wordmark-section {
        padding-left: 1.5rem;
    }

    .wordmark {
        font-size: 4.1vw;
    }
}

/* ==========================================================================
   ≤ 600px
   ========================================================================== */
@media (max-width: 600px) {

    .location-map {
        display: none;
    }

    .team-name {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Mobile — ≤ 500px
   ========================================================================== */
@media (max-width: 500px) {

    .burger-toggle {
        top: 1.1rem;
        right: 1rem;
    }

    .menu-nav a {
        font-size: 2rem;
        padding: 0.5rem 0;
    }

    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
        line-height: 1.05;
        letter-spacing: 0.03em;
    }

    .hero {
        padding: 2rem var(--page-padding) 0;
    }

    .hero-title span:first-child {
        margin-left: 3px;
    }

    .hero-contact-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 1rem;
        min-height: auto;
        padding: 2.5rem var(--page-padding) 2.5rem;
    }

    .hero-divider {
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        aspect-ratio: 1.414 / 1;
        height: auto;
        padding: 2rem;
    }

    .cards-section {
        padding: 0 var(--page-padding) 3rem;
    }

    .card-tag {
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .statement-text {
        font-size: clamp(1.3rem, 6vw, 2rem);
        margin-bottom: 4rem;
    }

    .location-section {
        padding: 2rem var(--page-padding) 2rem;
    }

    .location-left,
    .location-right {
        grid-row: auto;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .location-map {
        display: none;
    }

    .location-address,
    .contact-link {
        font-size: 1rem;
    }

    .datenschutz-link {
        margin-top: 1rem;
    }

    .wordmark-section {
        padding-left: 1.5rem;
    }

    .wordmark {
        font-size: 3.9vw;
    }

    .lawyer-highlight {
        display: block;
        width: fit-content;
        margin-bottom: 0.5em;
    }
}

/* ==========================================================================
   ≤ 499px (phones, scales down to 320px)
   ========================================================================== */
@media (max-width: 499px) {

    .burger-toggle {
        top: 1.1rem;
        right: 1rem;
    }

    .menu-nav a {
        font-size: clamp(1.5rem, 7vw, 2rem);
        padding: 0.5rem 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 11vw, 3.5rem);
        line-height: 1.05;
        letter-spacing: 0.03em;
    }

    .hero {
        padding: clamp(1rem, 5vw, 2rem) var(--page-padding) 0;
    }

    .hero-title span:first-child {
        margin-left: 2px;
    }

    .hero-contact-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(1rem, 2vw, 0.75rem);
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        min-height: auto;
        padding: clamp(2.5rem, 5vw, 2.5rem) var(--page-padding) clamp(2.5rem, 5vw, 2.5rem);
    }

    .hero-divider {
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 3vw, 1.5rem);
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .card {
        aspect-ratio: 1.414 / 1;
        height: auto;
        width: 100%;
        max-width: 100%;
        padding: clamp(1.25rem, 5vw, 2rem);
        box-sizing: border-box;
        overflow: hidden;
    }

    .cards-section {
        padding: 0 var(--page-padding) clamp(2rem, 6vw, 3rem);
        overflow: hidden;
    }

    .card-tag {
        font-size: clamp(0.85rem, 4vw, 1.2rem);
        margin-bottom: clamp(0.75rem, 3vw, 1.25rem);
    }

    .card-title {
        font-size: clamp(0.85rem, 4vw, 1.2rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card-list {
        font-size: 0.75rem;
    }

    .card-link {
        font-size: clamp(0.75rem, 3vw, 0.9rem);
        margin-top: clamp(3rem, 4vw, 2rem);
    }

    .statement-text {
        font-size: clamp(1rem, 5vw, 2rem);
        margin-bottom: clamp(2rem, 8vw, 4rem);
    }

    .location-section {
        padding: clamp(1.5rem, 4vw, 2rem) var(--page-padding) clamp(1.5rem, 4vw, 2rem);
    }

    .location-left,
    .location-right {
        grid-row: auto;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 6vw, 2.5rem);
    }

    .location-map {
        display: none;
    }

    .location-address,
    .contact-link {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .datenschutz-link {
        margin-top: clamp(0.75rem, 3vw, 1rem);
    }

    .wordmark-section {
        padding-left: clamp(1rem, 2vw, 1.5rem);
    }

    .wordmark {
        font-size: 3.9vw;
    }

    .service-tabs {
        gap: clamp(0.75rem, 3vw, 1.25rem);
        margin-bottom: clamp(1.5rem, 6vw, 2.5rem);
    }

    .tab-button {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        letter-spacing: 0.15em;
    }

    .service-block {
        margin-bottom: clamp(1.25rem, 5vw, 1.75rem);
    }

    .service-block .card-title {
        font-size: clamp(0.85rem, 4vw, 1rem);
        line-height: 1.6;
    }

    .lawyer-highlight {
        padding: 0.25em 0.35em 0.12em;
        display: block;
        width: fit-content;
        margin-bottom: 0.5em;
    }

    .kanzlei-heading {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        letter-spacing: 0.2em;
        margin-bottom: clamp(1.5rem, 6vw, 2.25rem);
    }

    .kanzlei-text {
        font-size: clamp(0.9rem, 4vw, 1.05rem);
        line-height: 1.6;
    }

    .kanzlei-slider {
        margin-top: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: clamp(3rem, 10vw, 5rem);
    }

    .datenschutz-heading {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        letter-spacing: 0.2em;
        margin-bottom: clamp(1.5rem, 6vw, 2.25rem);
    }

    .ds-section-title {
        font-size: clamp(0.9rem, 3.8vw, 1rem);
        margin-top: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.6rem;
    }

    .ds-text {
        font-size: clamp(0.82rem, 3.4vw, 0.9rem);
        line-height: 1.7;
        margin-bottom: 0.6rem;
    }

    .team-heading {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        letter-spacing: 0.2em;
        margin-bottom: clamp(1.5rem, 6vw, 2.25rem);
    }

    .team-photo-wrapper {
        width: 100%;
    }

    .team-label {
        position: absolute;
        top: -1rem;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        z-index: 3;
    }

    .team-name {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .team-title {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
    }

    .team-specialization {
        font-size: clamp(0.82rem, 3.4vw, 0.9rem);
        line-height: 1.7;
    }

    .cv-tag,
    .team-email {
        font-size: clamp(0.82rem, 3.4vw, 0.9rem);
    }
}

/* ==========================================================================
   Content cap — sections full-width, content capped at 1600px
   ========================================================================== */

.hero-inner,
.cards-section-inner,
.location-inner,
.service-main,
.team-main,
.kanzlei-main,
.datenschutz-main {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.hero-contact-bar {
    padding-left: max(var(--page-padding), calc((100vw - 30px - 1600px) / 2));
    padding-right: max(var(--page-padding), calc((100vw - 30px - 1600px) / 2));
}

@media (min-width: 1700px) {
    .wordmark-section {
        padding-left: calc((100% - 1600px) / 2);
        padding-right: calc((100% - 1600px) / 2 + var(--page-padding));
    }

    .wordmark {
        font-size: min(4.4vw, 4.4rem);
    }
}

.page-divider-wrap hr {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}