/* =========================================================
   DSCA BUSINESS AVIATION LAW
   Alternatives Farbkleid Anthrazit
   ========================================================= */

:root {
    /* Logo-Farben */
    --brand-purple: #3b1490;
    --brand-purple-dark: #24104f;
    --brand-purple-deep: #2b145c;
    --brand-purple-soft: #5c43a3;

    --brand-silver: #adadad;
    --brand-silver-light: #f7f7f8;
    --brand-silver-mid: #d8d8dc;

    /* Alternatives Farbsystem */
    --dark: #16181d;
    --navy: #23262d;
    --blue: #2d3150;

    --light: #f8f7f5;
    --white: #ffffff;

    --text: #20232a;
    --muted: #727682;

    /* Akzent */
    --gold: #c7b89a;
    --gold-dark: #9e8d6d;

    /* Zentrale Steuerung aller Schrägen */
    --slope: 56px;

    --max-width: 1500px;
    --side-space: clamp(24px, 7vw, 96px);
    --transition: 0.35s ease;
}

/* =========================================================
   RESET / BASIS
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

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

a {
    color: inherit;
}

section {
    scroll-margin-top: 120px;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
    --header-progress: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding:
        calc(34px - (22px * var(--header-progress)))
        var(--side-space)
        calc(72px - (60px * var(--header-progress)));
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(173, 173, 173, 0.35);
    backdrop-filter: blur(14px);
    box-shadow:
        0
        calc(14px * var(--header-progress))
        calc(30px * var(--header-progress))
        rgba(22, 24, 29, 0.08);
    transition: background var(--transition);
}

header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 240px;
    height: 4px;
    background: var(--brand-purple);
    clip-path: polygon(
        0 0,
        100% 0,
        calc(100% - 18px) 100%,
        0 100%
    );
}

header .logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    transform:
        translateX(
            calc(
                (50vw - var(--side-space) - 155px)
                * (1 - var(--header-progress))
            )
        );
    transition: none;
}

header .logo img {
    width: calc(310px - (160px * var(--header-progress)));
    height: auto;
    transition: none;
}

header nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transform: translateY(calc(86px * (1 - var(--header-progress))));
    transition: none;
}

header nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(16px, 3vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav li {
    display: flex;
    align-items: center;
}

header nav li:last-child {
    flex-shrink: 0;
}

header nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark);
    transition: color var(--transition), opacity var(--transition);
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 2px;
    background: var(--brand-purple);
    transition: width var(--transition);
}

header nav a:hover::after {
    width: 100%;
}

header nav a:hover {
    color: var(--brand-purple);
}

header nav img {
    width: 24px;
    height: auto;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 76vh;
    display: flex;
    align-items: center;
    padding: 120px var(--side-space);

    color: var(--white);
    background:
        linear-gradient(
            135deg,
            #16181d 0%,
            #23262d 45%,
            #2b2450 100%
        );

    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--slope)),
        0 100%
    );

    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            transparent 0 52%,
            rgba(199, 184, 154, 0.18) 52% 54%,
            transparent 54%
        ),
        linear-gradient(
            120deg,
            transparent 0 72%,
            rgba(255, 255, 255, 0.06) 72% 74%,
            transparent 74%
        );
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: 40px;
    width: 260px;
    height: 260px;
    background: rgba(199, 184, 154, 0.12);
    clip-path: polygon(
        25% 0,
        75% 0,
        100% 50%,
        75% 100%,
        25% 100%,
        0 50%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 940px;
}

.hero h1 {
    margin: 0 0 28px;
    max-width: 860px;

    font-size: clamp(44px, 7vw, 94px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.hero p {
    max-width: 720px;
    margin: 0 0 36px;
    font-size: clamp(18px, 2vw, 24px);
    color: rgba(255, 255, 255, 0.84);
}

.hero a {
    display: inline-block;
    padding: 15px 28px;

    background: var(--gold);
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    clip-path: polygon(
        16px 0,
        100% 0,
        calc(100% - 16px) 100%,
        0 100%
    );

    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.hero a:hover {
    background: var(--white);
    color: var(--brand-purple);
    transform: translateY(-2px);
}

/* =========================================================
   MAIN / SECTION-GRUNDLAYOUT
   ========================================================= */

main section {
    position: relative;
    padding: 110px var(--side-space);
    overflow: hidden;
}

main section > h2,
main section > div {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

main section h2 {
    margin-top: 0;
    margin-bottom: 34px;

    color: var(--navy);
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

main section h2::after {
    content: "";
    display: block;
    width: 96px;
    height: 4px;
    margin-top: 18px;
    background: var(--brand-purple);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

main section p {
    font-size: 18px;
    color: var(--muted);
}

/* =========================================================
   HOME / WILLKOMMEN
   ========================================================= */

.home {
    background: var(--white);
}

.home-content {
    position: relative;
    padding: 38px 42px;
    border-left: 6px solid var(--brand-purple);
    background: var(--light);
}

.home-content::after {
    content: "";
    position: absolute;
    right: -46px;
    top: -46px;
    width: 130px;
    height: 130px;
    background: rgba(59, 20, 144, 0.07);
    clip-path: polygon(
        25% 0,
        75% 0,
        100% 50%,
        75% 100%,
        25% 100%,
        0 50%
    );
}

/* =========================================================
   PORTFOLIO
   ========================================================= */

.portfolio {
    background: var(--brand-silver-light);
    clip-path: polygon(
        0 var(--slope),
        100% 0,
        100% 100%,
        0 calc(100% - var(--slope))
    );
}

.portfolio-content {
    position: relative;
    padding: 44px;
    background: var(--white);
    border-left: 6px solid var(--brand-purple);
    box-shadow: 0 18px 44px rgba(22, 24, 29, 0.07);
}

.portfolio-content::before {
    content: "Business Aviation Law";
    position: absolute;
    right: 30px;
    bottom: 20px;

    font-size: clamp(28px, 5vw, 78px);
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.06em;

    color: rgba(59, 20, 144, 0.045);
    pointer-events: none;
}

.portfolio-content h3 {
    margin: 42px 0 16px;
    color: var(--brand-purple-dark);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.portfolio-content h3:first-child {
    margin-top: 0;
}

.portfolio-content ul {
    margin: 0 0 28px;
    padding-left: 10px;
    list-style: none;
}

.portfolio-content li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 24px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.portfolio-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 11px;
    height: 2px;
    background: var(--brand-purple);
}

/* =========================================================
   ANWÄLTE
   ========================================================= */

.attorneys {
    background: var(--white);
    overflow: visible;
}

.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.attorneys-content {
    position: relative;
    height: 560px;
    padding: 38px 30px 54px;
    background: var(--light);
    border-top: 6px solid var(--navy);
    overflow: visible;
    isolation: isolate;
    contain: paint;
    text-align: center;
}

.portrait-shadow {
    position: relative;
    z-index: 2;
    
    width: 100%;
    max-width: 430px;
    margin: 0 auto 8px;
    
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    
    transition: transform 0.45s ease;
}

.portrait-shadow:hover {
    transform: translateY(-6px) translateZ(0);
}

.portrait-shadow img {
    width: 100%;
    height: auto;
    display: block;
    
    opacity: 0.999;
    
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: filter;
    
    filter:
        drop-shadow(0 22px 34px rgba(43, 20, 92, 0.24))
        grayscale(48%)
        sepia(1%)
        saturate(94%)
        brightness(1.14)
        contrast(0.92);
    transition: filter 0.45s ease;
}

.portrait-shadow:hover img {
    filter:
        drop-shadow(0 26px 40px rgba(43, 20, 92, 0.28))
        grayscale(0%)
        sepia(0%)
        saturate(100%)
        brightness(1)
        contrast(1.00);
}

/* Schatten Funktioniert hierbei nicht - div .potrait-shadow scheint Lösung zu sein  (?)
.attorneys-content img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
    height: auto;
    display: block;
    margin: 0 auto 8px;
    filter:
        grayscale(82%)
        sepia(2%)
        saturate(112%)
        brightness(0.97)
        contrast(1.04)
        drop-shadow(0 18px 24px rgba(43, 20, 92, 0.18));
    transition:
        filter 0.45s ease,
        transform 0.45s ease;
}

.attorneys-content img:hover {
    filter:
        grayscale(0%)
        sepia(0%)
        saturate(100%)
        brightness(1)
        contrast(1.01)
        drop-shadow(0 22px 32px rgba(43, 20, 92, 0.22));
    transform: translateY(-6px);
}
*/

.photo-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 14px;
    max-height: 14px;
    margin: 0 0 18px;
    font-size: 8px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(114, 118, 130, 0.32);
    white-space: nowrap;
}

.attorneys-content::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;

    background: var(--brand-purple);
    opacity: 0.11;

    clip-path: polygon(
        25% 0,
        75% 0,
        100% 50%,
        75% 100%,
        25% 100%,
        0 50%
    );
}

.attorneys-content h3 {
    position: relative;
    margin: 0 0 16px;
    color: var(--brand-purple-dark);
    font-size: 24px;
    line-height: 1.15;
    white-space: nowrap;
}

.attorneys-content p {
    position: relative;
    margin: 0;
}

/* =========================================================
   KONTAKT
   ========================================================= */

.contact {
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            #16181d 0%,
            #23262d 50%,
            #2b2450 100%
        );

    clip-path: polygon(
        0 var(--slope),
        100% 0,
        100% 100%,
        0 100%
    );
}

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

.contact h2::after {
    background: var(--gold);
}

.contact-content {
    position: relative;
    padding: 44px;
    border-left: 6px solid var(--gold);
    background: rgba(255, 255, 255, 0.06);
}

.contact-content p {
    white-space: pre-line;
    margin: 0;

    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.contact-content a {
    color: var(--white);
    font-weight: 700;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
}

.contact-content a:hover {
    color: var(--gold);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 60px var(--side-space) 42px;

    background: var(--dark);
    color: rgba(255, 255, 255, 0.72);
}

footer h2 {
    display: none;
}

footer .footer-content {
    max-width: var(--max-width);
    margin: 0 auto 14px;
}

footer .footer-content:last-child {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

footer p {
    margin: 0;
}

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

footer a:hover {
    color: var(--gold);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    header nav ul {
        gap: 14px;
        flex-wrap: nowrap;
    }
    
    header nav a {
        font-size: 13px;
        letter-spacing: 0.06em;
    }
    
    .attorneys-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    :root {
        --slope: 30px;
    }

    header {
        grid-template-columns: 1fr;
        padding: 18px var(--side-space);
    }
    
    header .logo {
        justify-content: center;
        margin-bottom: 18px;
        transform: none;
    }
    
    header .logo img {
        width: 190px;
    }
    
    header nav {
        justify-content: center;
        transform: none;
    }
    
    header nav ul {
        justify-content: center;
        gap: 14px 18px;
    }

    header nav a {
        font-size: 12px;
    }

    .hero {
        min-height: 68vh;
        padding: 90px var(--side-space);
    }

    main section {
        padding: 82px var(--side-space);
    }

    .home-content,
    .portfolio-content,
    .contact-content {
        padding: 30px 26px;
    }
    
    .attorneys-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   IMPRESSUM
   ========================================================= */
    
.impressum {
    background: var(--white);
}

.impressum > h2 {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.impressum-content {
    position: relative;
    
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px;
    
    background: var(--brand-silver-light);
    border-left: 6px solid var(--brand-purple);
    box-shadow: 0 18px 44px rgba(22, 24, 29, 0.07);
    
    overflow: hidden;
}

.impressum-content::before {
    content: "";
    position: absolute;
    right: 28px;
    top: 24px;
    
    font-size: clamp(34px, 6vw, 86px);
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.06em;
    
    color: rgba(59, 20, 144, 0.045);
    pointer-events: none;
}

.impressum-content::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    
    width: 180px;
    height: 180px;
    
    background: rgba(59, 20, 144, 0.08);
    
    clip-path: polygon(
        25% 0,
        75% 0,
        100% 50%,
        75% 100%,
        25% 100%,
        0 50%
    );
}

.impressum-content h3,
.impressum-content h4,
.impressum-content h5,
.impressum-content p,
.impressum-content address,
.impressum-content ul {
    position: relative;
    z-index: 2;
}

.impressum-content h3 {
    margin: 46px 0 14px;
    
    color: var(--brand-purple-dark);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.impressum-content h3:first-child {
    margin-top: 0;
}

.impressum-content h4 {
    margin: 28px 0 10px;
    
    color: var(--muted);
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Falls ein h4 direkt nach einem h3 kommt, etwas kompakter */
.impressum-content h3 + h4 {
    margin-top: 18px;
}

.impressum-content h5 {
    margin: 18px 0 8px;
    
    color: var(--muted);
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    
    opacity: 0.9;    
}

.impressum-content h4 + h5 {
    margin-top: 12px;
}

.impressum-content p,
.impressum-content address {
    margin: 0 0 22px;
    
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    font-style: normal;
}

.impressum-content ul {
    margin: 0 0 26px;
    padding-left: 10px;
    
    list-style: none;
}

.impressum-content li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 24px;
    
    color: var(--muted);
    font-size: 17px;
}

.impressum-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    
    width: 11px;
    height: 2px;
    
    background: var(--brand-purple);
}

.impressum-content a {
    color: var(--brand-purple);
    font-weight: 700;
    text-decoration-color: rgba(59, 20, 144, 0.35);
    text-underline-offset: 4px;
}

.impressum-content a:hover {
    color: var(--brand-purple-soft);
    text-decoration-color: var(--brand-purple-soft);
}

/* Mobile Darstellung */
@media (max-width: 720px) {
    .impressum-content {
        padding: 30px 26px;
    }
    
    .impressum-content::before {
        right: 20px;
        top: 18px;
        font-size: 42px;
    }
    
    .impressum-content h3 {
        margin-top: 34px;
        font-size: 21px;
    }
    
    .impressum-content h4 {
        margin-top: 24px;
        font-size: 16px;
        letter-spacing: 0.04em;
    }
    
    .impressum-content p,
    .impressum-content address,
    .impressum-content li {
        font-size: 16px;
    }
}