@font-face {
    font-family: 'Fraunces';
    src: url('fonts/Fraunces.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}


body {
    background-color: #FBFAF7;
    margin: 0;
    font-family: 'Fraunces', serif;
}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-family: 'Fraunces', serif;
    border-bottom: 1px solid #ccc;
    background-color: white;
    height: 65px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: height 0.3s ease;
    
    text-transform: uppercase;
}



header p {
    margin: 0;
}

header .RiE:hover{
    transform: scale(1.1);
}


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

.hWp {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 2px;
}

.RiE{
    margin: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.WZR{
    display: flex;
    font-size: 33px;
}

header .WZR {
    padding-left: 30px;
}

header .Wp{
    font-size: 12px;
}

#Z {
    color: #8B7355;
}

.Wp {
    opacity: 50%;
}


.cta {
    justify-self: end;
    padding-right: 30px;
}

header.shrink {
    height: 55px;
}

.Lo {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
    transform-origin: left center;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.Lo:hover {
    opacity: 0.815;
}

.Ri {
    justify-self: center;
    display: flex;
    gap: 45px;
    font-size: 18px;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.cta-btn {
    display: inline-block;
    background-color: #3d3d38;
    color: white;
    text-decoration: none;
    font-family: 'Fraunces', serif;
    font-size: 15px;
    padding: 10px 22px;
    border-radius: 4px;
    transform-origin: right center;
    transition: background-color 0.2s ease, transform 0.3s ease;
}

.cta-btn:hover {
    background-color: #1f1f1c;
    transform: scale(1.1);
}

.cta-btn2{
    display: inline-block;
    background-color: #3d3d38;
    color: white;
    text-decoration: none;
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    padding: 25px 45px;
    border-radius: 15px;
    transition: background-color 0.2s ease, transform 0.3s ease;
}

.cta-btn2:hover {
    background-color: #1f1f1c;
    transform: scale(1.1);
}


header.shrink .Lo {
    transform: scale(0.85);
}

header.shrink .Ri {
    transform: scale(0.85);
}

header.shrink .cta-btn {
    transform: scale(0.85);
}

header.shrink .cta-btn:hover {
    transform: scale(0.935);
}

.hero {
    min-height: calc(100vh - 65px);
    background-image: url('hero_warmgrade.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    box-sizing: border-box;
    border-bottom: 1.25px solid #ccc;
}

.hero-box {
    background-color: rgba(61, 61, 56, 0.99);
    padding: 60px 80px;
    border-radius: 12px;
    text-align: center;
    max-width: 900px;
}

.hero-box h1 {
    font-family: 'Fraunces', serif;
    font-size: 6rem;
    font-weight: 500;
    line-height: 1.05;
    margin: 0 0 30px 0;
}

.hero-box h1 span {
    display: block;
}

.word-soll {
    color: white;
}

.word-haben {
    color: #8B7355;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 500px;
}

.subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #595959;
    max-width: 600px;
    margin: 0;
}

.zahlen {
    background-color: #FBFAF7;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
    border-bottom: 1px solid #ccc;
}

.zahlen-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.zahl {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.trenner {
    width: 1px;
    height: 60px;
    background-color: #8c8c8c;
    margin: 0 30px;
}

.zahl h3,
.zahl p {
    text-align: center;
}

.zahl h3 {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.zahl p {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
    margin: 0;
}

.leistung {
    background-color: white;
    border-bottom: 1px solid #ccc;
    padding: 110px 30px;
}

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

.leistung-content .subtitle {
    margin: 0 auto;
}

.leistung h2 {
    font-size: 3rem;
    font-weight: 450;
    margin: 0;
    padding-bottom: 30px;
}

.positionen {
    margin-top: 70px;
    text-align: left;
}

.positionen-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #8c8c8c;
    padding-bottom: 14px;
    border-bottom: 2px solid #3d3d38;
}

.position-row {
    display: grid;
    grid-template-rows: auto 0fr;
    transition: grid-template-rows 0.8s ease;
    border-bottom: 1px solid rgba(139, 115, 85, 0.25);
}

@media (hover: hover) {
    .position-row:hover {
        grid-template-rows: auto 1fr;
    }
}

.position-row.open {
    grid-template-rows: auto 1fr;
}

.row-main {
    display: grid;
    grid-template-columns: 60px auto 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    cursor: pointer;
}

.row-detail {
    overflow: hidden;
}

.row-detail p {
    background-color: white;
    color: #1a1a1a;
    line-height: 1.6;
    padding: 28px 36px;
    border-radius: 8px;
    max-width: 1050px;
    margin: 0 0 30px 0;
    border: 1px solid #8b735545;
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border-left: 2px solid #8B7355;
    
}

.num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #8B7355;
}

.name {
    font-family: 'Fraunces', serif;
    font-size: 2.3rem;
    font-weight: 400;
    color: #1a1a1a;
}

.dotted {
    border-top: 1px dotted rgba(139, 115, 85, 0.55);
}

.desc {
    color: #6b6b6b;
    font-size: 1rem;
}

.positionen-footer {
    display: flex;
    justify-content: flex-end;
    padding: 18px 0;
    border-top: 2px solid #3d3d38;
    border-bottom: 2px solid #3d3d38;
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: #8B7355;
}

.kanzlei {
    border-bottom: 1px solid #ccc;
}

.kanzlei-content {
    padding: 110px;
    background-color: #FBFAF7;
}

.kanzlei-content .overline {
    text-align: center;
    margin-bottom: 60px;
}

.kanzlei-row,
.kanzlei-row2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.kanzlei-row2 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.pers-text {
    width: 320px;
}

.pers-text h2 {
    font-size: 3rem;
    font-weight: 380;
}

.pers {
    width: 380px;
    height: auto;
    background-color: #3d3d38;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    box-sizing: border-box;
}

.pers2 {
    width: 380px;
    height: auto;
    background-color: #3d3d38;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    box-sizing: border-box;
}

.pers-foto {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    margin-bottom: 24px;
}

.pers-foto-schroeter {
    background-image: url('schroeter.png');
}

.pers-foto-wülfing {
    background-image: url('wuelfing.png');
}

.pers-linie {
    width: 48px;
    height: 2px;
    background-color: #8B7355;
    margin-bottom: 28px;
}

.pers h3, .pers2 h3 {
    font-family: 'Fraunces', serif;
    color: white;
    font-size: 1.9rem;
    font-weight: 500;
    margin: 0 0 14px 0;
}

.pers-rolle {
    color: #8B7355;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.overline {
    font-size: 14px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #8B7355;
    margin: 0 0 60px 0;
}

footer {
    padding-top: 40px;
    background-color: #FBFAF7;
    padding-bottom: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 100px;

}

footer p {
    margin: 0;
}

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

.logop .WZR,
.logop .Wp {
    margin-bottom: 10px;
}

.logop .Wp {
    font-size: 14px;
}

.Kontakt{
    font-weight: 550;
}

.Kontakt-Inhalt{
    margin-top: 35px;
}

.Kontakt-Inhalt p{
    margin-bottom: 5px;
    font-weight: 350;
}

.Links{
    font-weight: 550;
}

.Links-Inhalt{
    margin-top: 35px;
}

.Links-Inhalt p{
    margin-bottom: 5px;
    font-weight: 350;
}

.formular {
    background-color: white;
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ccc;
}

.formular .form-note {
    text-align: left;
    color: #8c8c8c;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.formular p{
    font-size: 1.25rem;
}

.formular-content{
    background-color: #FBFAF7;
    padding: 60px 80px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #ccc;
    text-align: left;
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
}

input[type=text], input[type=tel], input[type=email], select, textarea {
    box-sizing: border-box;
    width: 60%;
    padding: 10px 10px;
    border: none;
    border-bottom: 1px solid #8B7355;
    border-radius: 0;
    background-color: #FBFAF7;
    font-family: 'Fraunces', serif;
    outline: none;
    transition: width 0.8s ease-in-out;
    font-size: 1rem;
    color: #3d3d38;
}

input[type=text]:focus,
input[type=tel]:focus,
input[type=email]:focus,
select:focus,
textarea:focus {
    width: 80%;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

textarea {
    resize: none;
    min-height: 140px;
    max-height: 300px;
}

.form-message {
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: 6px;
    font-style: italic;
    line-height: 1.5;
}

.form-message.success {
    background-color: #efeadc;
    color: #3d3d38;
    border-left: 3px solid #8B7355;
}

.form-message.error {
    background-color: #f6dcdc;
    color: #6b2020;
    border-left: 3px solid #b54040;
}

.formular-content button{
    font-family: 'Fraunces', serif;
    border: 1px solid #8B7355;
    background-color: white;
    color: #3d3d38;
    padding: 20px 40px;
    font-weight: 500;
    font-size: 18px;
    margin-top: 24px;
}

.formular-content button:hover{
    background-color: rgb(250, 250, 250);
}

.formular-content a{
    color: #8B7355
}

.formular-content h2{
    font-size: 2rem;
    font-weight: 450;
    margin: 0;
    padding-bottom: 30px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    cursor: pointer;
    font-size: 1.1rem;
}

.checkbox-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 1px solid #8B7355;
    border-radius: 3px;
    background-color: white;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.15s ease;
}

.checkbox-row input[type="checkbox"]:checked {
    background-color: #8B7355;
}

.checkbox-row input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    line-height: 1;
}

.h2k{
    display: flex;
    justify-content: center;
}

.field-error {
    display: none;
    color: #b54040;
    font-size: 0.85rem;
    font-style: italic;
    margin: 4px 0 8px 4px;
}

.kontakt-form input.touched:invalid,
.kontakt-form select.touched:invalid,
.kontakt-form textarea.touched:invalid {
    border-bottom-color: #b54040;
}

.kontakt-form input.touched:invalid + .field-error,
.kontakt-form select.touched:invalid + .field-error,
.kontakt-form textarea.touched:invalid + .field-error {
    display: block;
}

.kontakt-form .checkbox-row.touched input:invalid {
    outline: 2px solid #b54040;
    outline-offset: 2px;
}

.kontakt-form .checkbox-row:has(input.touched:invalid) + .field-error {
    display: block;
}

.datenschutz {
    background-color: white;
    border-bottom: 1px solid #ccc;
}

.datenschutz-content {
    padding: 40px 40px;
    max-width: 1000px;
}

.datenschutz-content h2 {
    font-size: 2rem;
    font-weight: 450;
    margin: 0;
    padding-bottom: 10px;
}

.datenschutz-content h3 {
    font-size: 1.3rem;
    font-weight: 390;
    margin-top: 1.8em;
    margin-bottom: 0.3em;
}

.datenschutz-content p {
    font-size: 1.2rem;
    font-weight: 385;
    color: #3e3e3e;
    margin: 0.5em 0;
    line-height: 1.6;
}

.datenschutz-content ul {
    font-size: 1.2rem;
    font-weight: 385;
    color: #3e3e3e;
    line-height: 1.6;
    padding-left: 1.5em;
    margin: 0.5em 0;
}

.datenschutz-content li {
    margin-bottom: 0.4em;
}

.datenschutz-content strong {
    font-weight: 500;
    color: #1a1a1a;
}

.impressums{
    background-color: white;
    border-bottom: 1px solid #ccc;
}

.impressum-content{
    padding: 40px 40px;
    max-width: 1000px;
}

.impressum-content h2 {
    font-size: 2rem;
    font-weight: 450;
    margin: 0;
    padding-bottom: 10px;
}

.impressum-content h3 {
    font-size: 1.3rem;
    font-weight: 390;
    margin-top: 1.8em;
    margin-bottom: 0.3em;
}

.impressum-content p {
    font-size: 1.2rem;
    font-weight: 385;
    color: #3e3e3e;
    margin: 0.5em 0;
    line-height: 1.6;
}

.impressum-content ul {
    font-size: 1.2rem;
    font-weight: 385;
    color: #3e3e3e;
    line-height: 1.6;
    padding-left: 1.5em;
    margin: 0.5em 0;
}

.impressum-content li {
    margin-bottom: 0.4em;
}

.impressum-content strong {
    font-weight: 500;
    color: #1a1a1a;
}

.anschrift{
    background-color: white;
    border-bottom: 1px solid #ccc;
    
}

.anschrift-content{
    padding: 110px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.anschrift-content h2{
    font-size: 3rem;
    font-weight: 450;
    margin: 0 0 80px 0;
    text-align: center;
}

.burger {
    display: none;
    justify-self: end;
    margin-right: 25px;
    width: 30px;
    height: 22px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.burger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3d3d38;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }

.burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    background-color: #FBFAF7;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav a {
    text-decoration: none;
    color: #3d3d38;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mobile-nav .mobile-cta {
    margin-top: 16px;
    background-color: #3d3d38;
    color: white;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 1.15rem;
}

@media (max-width: 1000px) {
    .kanzlei-content {
        padding: 80px 40px;
    }
    .kanzlei-row,
    .kanzlei-row2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .kanzlei-row2 {
        padding: 60px 0;
    }
    .kanzlei-row2 .pers2 {
        order: -1;
    }
    .pers-text {
        text-align: center;
    }
}

@media (max-width: 768px) {

    header {
        grid-template-columns: 1fr auto;
        height: 65px;
    }
    .Ri,
    .cta {
        display: none;
    }
    .burger {
        display: block;
    }
    .mobile-nav {
        display: flex;
    }
    header .WZR {
        padding-left: 20px;
        font-size: 26px;
    }
    header .Wp {
        font-size: 10px;
    }

    header.shrink {
        height: 65px;
    }
    header.shrink .Lo {
        transform: none;
    }

    .hero {
        padding: 30px 20px;
    }
    .hero-box {
        padding: 40px 26px;
        max-width: 100%;
    }
    .hero-box h1 {
        font-size: 3.1rem;
        margin-bottom: 22px;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }

    .zahlen {
        padding: 40px 12px;
    }
    .zahl {
        padding: 0 6px;
    }
    .zahl h3 {
        font-size: 1.9rem;
    }
    .zahl p {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }
    .trenner {
        margin: 0 10px;
        height: 50px;
    }

    .leistung {
        padding: 70px 20px;
    }
    .leistung h2 {
        font-size: 2.1rem;
    }
    .leistung-content .subtitle {
        font-size: 1.05rem;
    }
    .positionen {
        margin-top: 50px;
    }
    .row-main {
        grid-template-columns: auto 1fr;
        column-gap: 14px;
        row-gap: 2px;
        padding: 22px 0;
    }
    .num {
        grid-row: 1;
        grid-column: 1;
        font-size: 1.2rem;
    }
    .name {
        grid-row: 1;
        grid-column: 2;
        font-size: 1.5rem;
    }
    .dotted {
        display: none;
    }
    .desc {
        grid-row: 2;
        grid-column: 2;
        font-size: 0.9rem;
    }
    .row-detail p {
        padding: 20px 22px;
        font-size: 1rem;
    }

    .kanzlei-content {
        padding: 70px 20px;
    }
    .kanzlei-row,
    .kanzlei-row2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .kanzlei-row2 {
        padding: 50px 0;
    }
    .pers,
    .pers2 {
        width: 100%;
        max-width: 360px;
        height: auto;
        padding: 32px;
    }
    .pers-text {
        width: 100%;
        max-width: 360px;
    }
    .pers-text h2 {
        font-size: 2.1rem;
    }

    .anschrift-content {
        padding: 70px 20px;
    }
    .anschrift-content h2 {
        font-size: 2.1rem;
        margin-bottom: 50px;
    }
    .cta-btn2 {
        font-size: 1.3rem;
        padding: 18px 32px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        padding: 50px 20px;
    }
    footer .WZR {
        justify-content: center;
    }

    .formular {
        padding: 30px 16px;
    }
    .formular-content {
        padding: 36px 24px;
    }
    .formular p {
        font-size: 1.05rem;
    }
    .formular-content h2 {
        font-size: 1.5rem;
    }
    input[type=text],
    input[type=tel],
    input[type=email],
    select,
    textarea,
    input[type=text]:focus,
    input[type=tel]:focus,
    input[type=email]:focus,
    select:focus,
    textarea:focus {
        width: 100%;
    }

    .impressum-content,
    .datenschutz-content {
        padding: 30px 20px;
    }
    .impressum-content h2,
    .datenschutz-content h2 {
        font-size: 1.6rem;
    }
    .impressum-content h3,
    .datenschutz-content h3 {
        font-size: 1.15rem;
    }
    .impressum-content p,
    .datenschutz-content p,
    .impressum-content ul,
    .datenschutz-content ul {
        font-size: 1.05rem;
    }
}


@media (max-width: 480px) {
    .hero-box {
        padding: 34px 20px;
    }
    .hero-box h1 {
        font-size: 2.5rem;
    }
    .zahl h3 {
        font-size: 1.55rem;
    }
    .zahl p {
        font-size: 0.55rem;
        letter-spacing: 0.05em;
    }
    .trenner {
        margin: 0 7px;
        height: 44px;
    }
    .name {
        font-size: 1.3rem;
    }
    .leistung h2 {
        font-size: 1.8rem;
    }
    .pers-text h2 {
        font-size: 1.9rem;
    }
    .anschrift-content h2 {
        font-size: 1.8rem;
    }
    .cta-btn2 {
        font-size: 1.15rem;
        padding: 16px 26px;
    }
}