/* ============================================================
   Wirtschaftskanzlei.com — Layout Skeleton (matches screenshot)
   Each zone has a temporary background color so the layout
   geometry can be verified at a glance.
   ============================================================ */

:root {
    --bg_light: #eeece8;
    --bg_dark_green: #2b4c44;
    --bg_footer: #5a3e30;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: Georgia, "Times New Roman", serif;
    color: #222;
    line-height: 1.5;
    background: #ece6d8; /* base cream */
}

.placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- HEADER ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(238, 236, 232, 0.75);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 18px 40px;
}

.header-logo {
    padding: 10px 14px;
    justify-self: start;
    display: flex;
    align-items: center;
}

.header-logo img {
    display: block;
    height: 28px;
    width: auto;
}

.header-nav {
    justify-self: end;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 6px 10px;
}

.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    color: #1a1916;
    border: 1px solid #1a1916;
    border-radius: 999px;
    padding: 10px 32px 10px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-select:hover {
    background: #1a1916;
    color: #fff;
}

.lang-select:focus {
    outline: none;
}

.lang-switch::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    color: #1a1916;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    transition: color 0.2s ease;
}

.lang-switch:hover::after {
    color: #fff;
}

.header-link {
    background: transparent;
    color: #1a1916;
    border: 1px solid #1a1916;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-link:hover {
    background: #1a1916;
    color: #fff;
}

.header-phone {
    background: #1a1916;
    color: #fff;
    border: 1px solid #1a1916;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-phone:hover {
    background: transparent;
    color: #1a1916;
}

/* ---------- HERO ---------- */
.hero {
    background: #d1e7ff;          /* BLUE zone */
    padding: 0;
}

.hero-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 40px;
    padding: 40px 40px 60px 26px;
    background: var(--bg_light);
}

.hero-title {
    font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
    font-weight: 500;
    font-size: 80px;
    line-height: 1.0;
    letter-spacing: -0.005em;
    color: #1a1916;
}

.hero-subtitle {
    padding: 12px 16px;
    justify-self: start;
    align-self: end;
    font-size: 20px;
    font-family: "Times New Roman", Times, serif;
    max-width: 440px;
}

.hero-image {
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- GREEN BAND SEPARATOR ---------- */
.band-green {
    background: var(--bg_dark_green);
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 60px 0 26px;
    color: #eeece8;
}

.band-quote {
    text-align: left;
    max-width: 1100px;
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.band-quote.is-visible {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .band-quote {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.band-quote p {
    font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
    font-weight: 400;
    font-size: clamp(28px, 7vw, 70px);
    line-height: 1.15;
    margin: 0;
}

.band-quote-author {
    margin-top: 28px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-style: normal;
    font-size: 16px;
    letter-spacing: 0.01em;
    opacity: 0.85;
}

/* ---------- EXPERTISE (split) ---------- */
.expertise {
    display: grid;
    grid-template-columns: 9fr 11fr;
    min-height: 360px;
    background: var(--bg_light);
}

.expertise-left {
    padding: 60px 60px 60px 16px;
}

.title {
    font-size: 44px;
    font-weight: 400;
    padding: 6px 10px;
    display: inline-block;
}

.expertise-left .title {
    margin-bottom: 24px;
}

.expertise-left p {
    padding: 12px 14px 12px 10px;
    margin-bottom: 16px;
    font-size: 21px;
    max-width: 480px;
}

.expertise-right {
    padding: 60px 60px;
    background-image: url("img/columns.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.values-eyebrow {
    background: rgba(43, 76, 68, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--bg_light);
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 24px;
    font-size: 13px;
    font-family: -apple-system, "Segoe UI", sans-serif;
}

.values-list li {
    padding: 6px 12px;
    margin-bottom: 10px;
    font-size: 60px;
    line-height: 1.15;
    font-weight: 400;
    display: block;
    width: fit-content;
}

/* ---------- ABOUT (Die Kanzlei) ---------- */
.about {
    background: var(--bg_dark_green);
    padding: 0;
    color: var(--bg_light);
}

.about-top {
    display: grid;
    grid-template-columns: 9fr 11fr;
    gap: 0;
    padding: 0;
}

.about-top-left {
    padding: 66px 16px 66px 16px;
}


.about-top-right {
    padding: 50px 0 50px 0;
    background: var(--bg_light);
    color: #1a1916;
}

.about-top-right p {
    padding: 12px 14px;
    font-size: 21px;
    max-width: 460px;
}

.about-bottom {
    display: grid;
    grid-template-columns: 4.5fr 4.5fr 11fr;   /* keeps the 9fr | 11fr split at 45% */
    align-items: stretch;
    min-height: 400px;
}

.about-bottom-image {
    grid-column: 2 / 4;                         /* spans from middle of col 1 to right edge */
    overflow: hidden;
    position: relative;
}

.about-bottom-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.image-chip {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(43, 76, 68, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--bg_light);
    padding: 12px 18px;
    border-radius: 4px;
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease;
}

.image-chip:hover {
    background: rgba(43, 76, 68, 0.75);
}

.image-cta {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(43, 76, 68, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--bg_light);
    padding: 16px 24px;
    border-radius: 4px;
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.image-cta:hover {
    background: #ffffff;
    color: var(--bg_dark_green);
}


/* ---------- CONTACT ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 0;
    scroll-margin-top: 120px;
}

.contact-side {
    background: var(--bg_dark_green);
    color: #fff;
    padding: 60px 24px 60px 26px;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.contact-side-logo {
    display: block;
    height: 28px;
    width: auto;
    filter: invert(1) brightness(2);
}

.contact-main {
    padding: 60px 80px;
}

.contact-title {
    padding: 12px 16px;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 32px;
    white-space: nowrap;
}

.contact-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-row:has(.form-field:only-child) {
    grid-template-columns: 1fr;
}

.form-field {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    font-family: -apple-system, "Segoe UI", sans-serif;
    color: #444;
}

.form-field input,
.form-field select,
.form-field textarea {
    border: 0;
    border-bottom: 1px solid #888;
    background: transparent;
    padding: 6px 0;
    font: inherit;
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    color: #1a1916;
    outline: none;
    transition: border-color 0.2s ease;
    caret-color: var(--bg_dark_green);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-bottom-color: var(--bg_dark_green);
    border-bottom-width: 2px;
    padding-bottom: 5px;
}

.form-field textarea {
    resize: vertical;
}

.form-field ::selection {
    background: var(--bg_dark_green);
    color: var(--bg_light);
}

.form-field .req {
    color: #b00020;
    margin-left: 2px;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
    border-bottom-color: #b00020;
    border-bottom-width: 2px;
    padding-bottom: 5px;
}

.form-field-error {
    color: #b00020;
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-size: 12px;
    margin-top: 4px;
    min-height: 14px;
}

.form-status {
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    margin: 0 12px;
    min-height: 18px;
}

.form-status.is-error {
    color: #b00020;
}

.form-status.is-success {
    color: var(--bg_dark_green);
    font-weight: 600;
}

.form-submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.btn-submit {
    background: #222;
    color: #fff;
    border: 0;
    padding: 14px 56px;
    border-radius: 999px;
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    cursor: pointer;
}

/* ---------- FOOTER ---------- */
.footer-wrap {
    display: grid;
    grid-template-columns: 4.5fr 15.5fr;     /* same 22.5% / 77.5% split as manfred image */
    background: var(--bg_dark_green);
}

.site-footer {
    grid-column: 2;
    background: var(--bg_footer);
    color: #f1e7d6;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    padding: 60px 60px;
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-size: 13px;
}

.footer-col {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-col a,
.footer-col p {
    padding: 2px 8px;
    line-height: 1.3;
}

.footer-col h4 {
    padding: 6px 10px;
    align-self: flex-start;
    font-weight: 600;
    font-size: 26px;
    margin-bottom: 8px;
}

.footer-col a {
    padding: 4px 8px;
    align-self: flex-start;
    color: #fff;
}

.footer-info p,
.footer-location p {
    align-self: flex-start;
    color: #fff;
}

.footer-location {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 8px;
}

.footer-location > p:first-child {
    font-weight: 700;
}

.footer-address {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.footer-address:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---------- CONTENT PAGES (about, datenschutz, impressum) ---------- */
.content-page {
    background: var(--bg_light);
    padding: 66px 0 0;
}

.content-page-title {
    /* full width, left-aligned to match the visual gap of index titles
       (16px container margin + 10px .title internal padding = 26px from edge) */
    display: inline-block;
    margin: 0 16px 32px;
    font-size: 88px;
    line-height: 1.0;
}

.content-page-inner {
    max-width: none;
    margin: 0;
    padding: 0 16px 80px 50px;
}

.content-page-inner > .title {
    margin-bottom: 24px;
}

.about-intro {
    display: grid;
    grid-template-columns: 600px 1fr;
    column-gap: 40px;
    row-gap: 0;
    padding: 0 16px 0 0;
}

/* Row 2 brown background: a pseudo grid-item spanning both columns +
   the gap, sitting underneath the image (col 1) and biography (col 2). */
.about-intro::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 2;
    background: var(--bg_footer);
    margin-right: -16px; /* cancel parent right padding to hit viewport edge */
}

.about-intro-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 900px;
    overflow: hidden;
}

.about-intro-text {
    grid-column: 2;
    grid-row: 1;
}

.about-intro-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.about-intro-text > h2:first-child {
    margin-top: 0;
}

.about-intro-meta {
    max-width: 760px;
    margin: 0 14px 32px;
}

.about-intro-meta hr {
    border: 0;
    border-top: 1px solid #1a1916;
    margin: 0;
}

.about-intro-meta-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 20px 0;
}

.about-intro-meta .meta-label {
    display: block;
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.content-page .about-intro-meta-cols a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    color: #1a1916;
    text-decoration: none;
}

.content-page .about-intro-meta-cols a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-page .about-intro-text p {
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 21px;
    line-height: 1.5;
    max-width: 760px;
    font-family: Georgia, "Times New Roman", serif;
}

.biography-block {
    grid-column: 2;
    grid-row: 2;
    color: var(--bg_light);
    padding: 36px 32px 86px;
    margin: 0;
    /* background comes from .about-intro::before (row 2 brown band) */
}

.content-page .biography-block h2 {
    color: var(--bg_light);
    margin-top: 0;
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
}

.content-page .biography-block ul {
    list-style: disc;
    padding-left: 22px;
    margin: 0;
}

.content-page .biography-block li {
    color: var(--bg_light);
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.content-page .biography-block li:last-child {
    margin-bottom: 0;
}

.content-page h2 {
    font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.2;
    margin: 40px 0 16px;
    color: #1a1916;
}

.content-page h3 {
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 24px 0 8px;
    color: #4a4a4a;
}

.content-page p,
.content-page li {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 720px;
}

.content-page ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 18px;
}

.content-page ul li {
    margin-bottom: 6px;
}

.content-page a {
    color: var(--bg_dark_green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-page a:hover {
    text-decoration: none;
}

.content-page .lead {
    font-size: 21px;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 680px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .site-header,
    .hero-top,
    .expertise,
    .about-top,
    .about-bottom,
    .about-intro,
    .contact,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .hero-title { font-size: 36px; }
    .values-list li { font-size: 24px; }

    .about-image { margin: 20px; }
    .about-bottom .btn-more { margin: 20px; width: auto; }

    /* about-intro stacks: image (row 1) → text (row 2) → biography (row 3).
       Re-anchor the brown band to the biography row only. */
    .about-intro-image { grid-column: 1; grid-row: 1; height: 60vh; min-height: 380px; }
    .about-intro-text  { grid-column: 1; grid-row: 2; }
    .biography-block   { grid-column: 1; grid-row: 3; }
    .about-intro::before { grid-row: 3; }
}

/* ---------- PHONE TIER ---------- */
@media (max-width: 600px) {
    .site-header { padding: 12px 16px; }
    .header-logo { padding: 8px 0; }
    .header-logo img { height: 20px; }   /* logo is 504×36 → ~280px wide at 20px tall */
    .header-nav  { gap: 10px; padding: 4px 0; flex-wrap: wrap; justify-content: flex-end; }
    .header-phone { display: none; }

    .band-green { height: auto; padding: 48px 24px; }

    .content-page { padding-top: 32px; }
    .content-page-title {
        font-size: clamp(40px, 12vw, 64px);
        margin: 0 16px 20px;
    }
    .content-page-inner { padding: 0 16px 48px 24px; }
    .content-page h2 { font-size: 24px; margin: 28px 0 12px; }
    .content-page p, .content-page li, .content-page .lead { font-size: 16px; }

    .about-intro { padding: 0; }
    .about-intro::before { margin-right: 0; }
    .about-intro-meta { margin: 0 16px 24px; }
    .about-intro-meta-cols { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
    .content-page .about-intro-text p { font-size: 17px; padding: 8px 16px; }
    .biography-block { padding: 24px 20px 40px; }
    .content-page .biography-block li { font-size: 16px; }

    .form-row { grid-template-columns: 1fr; }
    .contact-side { min-height: 0; padding: 32px 20px; }
    .contact-main { padding: 32px 20px; }
    .contact-title {
        font-size: 22px;
        padding: 8px 0 20px;
        white-space: normal;
        word-wrap: break-word;
        margin-bottom: 16px;
    }
    .btn-submit { padding: 12px 32px; width: 100%; }

    /* shorter image box on phones; IMG keeps desktop's 100%/cover/right-center */
    .about-intro-image { height: 50vh; min-height: 320px; }
}
