/*
Theme Name: imfindi Professional
Theme URI:
Author: Tobias Buschmann
Author URI:
Description: Professionelles, responsives Unternehmens-Theme für imfindi – Tobias Buschmann. Immobilienverwaltung, Finanzdienstleistung und Projektentwicklung.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: imfindi
*/

:root {
    --primary: #173f3b;
    --primary-dark: #0b2926;
    --primary-soft: #edf3f1;

    --accent: #b4935a;
    --accent-dark: #94763f;
    --accent-light: #ddcda8;

    --text: #253431;
    --muted: #6b7976;

    --white: #ffffff;
    --light: #f5f7f6;
    --border: #dfe6e3;

    --container: 1180px;
    --radius: 16px;

    --shadow:
        0 20px 60px rgba(23, 63, 59, .11);

    --transition: 250ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 17px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
}

button,
input,
textarea {
    font-size: inherit;
}

.container {
    width: min(
        var(--container),
        calc(100% - 40px)
    );

    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.section-light {
    background: var(--light);
}

.section-soft {
    background: var(--primary-soft);
}

.section-dark {
    color: rgba(255,255,255,.82);
    background: var(--primary-dark);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 17px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--primary);
    line-height: 1.12;
}

h1 {
    font-size: clamp(44px, 7vw, 84px);
    letter-spacing: -.055em;
}

h2 {
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: -.045em;
}

h3 {
    font-size: 25px;
}

p {
    margin: 0 0 20px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 10px;
    padding: 10px 18px;
    color: white;
    background: var(--primary);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* --------------------------------
   HEADER
-------------------------------- */

.site-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;

    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(223,230,227,.8);

    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo img {
    width: auto;
    max-width: 190px;
    max-height: 60px;
}

.logo-text {
    color: var(--primary);
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.logo-text span {
    color: var(--accent);
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.main-navigation a {
    position: relative;

    display: block;
    padding: 8px 0;

    color: var(--text);

    font-size: 14px;
    font-weight: 750;
}

.main-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;

    content: "";

    background: var(--accent);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    border-radius: 10px;

    color: var(--primary);
    background: transparent;

    font-size: 26px;
    cursor: pointer;
}

/* --------------------------------
   HERO
-------------------------------- */

.hero {
    position: relative;

    min-height: 820px;

    display: flex;
    align-items: center;

    padding: 155px 0 105px;

    color: white;

    background-color: var(--primary);
    background-position: center;
    background-size: cover;
}

.hero::before {
    position: absolute;
    inset: 0;

    content: "";

    background:
        linear-gradient(
            90deg,
            rgba(7,36,33,.94) 0%,
            rgba(7,36,33,.72) 48%,
            rgba(7,36,33,.25) 100%
        );
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    max-width: 850px;
    margin-bottom: 30px;
    color: white;
}

.hero-text {
    max-width: 700px;

    color: rgba(255,255,255,.9);

    font-size: 21px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 38px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;

    margin-top: 70px;

    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.hero-meta strong {
    display: block;

    margin-bottom: 4px;

    color: white;
    font-size: 16px;
}

/* --------------------------------
   BUTTONS
-------------------------------- */

.btn {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 27px;

    border: 1px solid transparent;
    border-radius: 100px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: white;
    background: var(--accent);
}

.btn-primary:hover {
    color: white;
    background: var(--accent-dark);
}

.btn-white {
    color: var(--primary);
    background: white;
}

.btn-white:hover {
    color: var(--primary);
}

.btn-outline {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    color: white;
    background: var(--primary);
}

/* --------------------------------
   SECTION HEADINGS
-------------------------------- */

.section-heading {
    max-width: 780px;
    margin-bottom: 55px;
}

.section-heading.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

/* --------------------------------
   SERVICES
-------------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.service-card {
    overflow: hidden;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow:
        0 10px 35px rgba(23,63,59,.05);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.service-image {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;

    object-fit: cover;

    background: var(--primary);
}

.service-content {
    padding: 32px;
}

.service-number {
    margin-bottom: 18px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 850;
    letter-spacing: .16em;
}

/* --------------------------------
   SPLIT CONTENT
-------------------------------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.split-image {
    width: 100%;
    aspect-ratio: 4 / 5;

    object-fit: cover;

    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.check-list {
    margin: 30px 0;
    padding: 0;

    list-style: none;
}

.check-list li {
    position: relative;

    padding-left: 31px;
    margin-bottom: 13px;
}

.check-list li::before {
    position: absolute;
    top: 7px;
    left: 0;

    width: 18px;
    height: 18px;

    content: "✓";

    color: white;
    background: var(--accent);

    border-radius: 50%;

    font-size: 11px;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
}

/* --------------------------------
   VALUES
-------------------------------- */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.value {
    padding: 35px;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--radius);

    background: rgba(255,255,255,.045);
}

.value-number {
    margin-bottom: 18px;

    color: var(--accent-light);

    font-weight: 850;
}

/* --------------------------------
   FACTS
-------------------------------- */

.facts {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.fact {
    padding: 28px;

    border-top: 2px solid var(--accent);
}

.fact strong {
    display: block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 28px;
}

.fact span {
    color: var(--muted);
    font-size: 14px;
}

/* --------------------------------
   CTA
-------------------------------- */

.cta {
    padding: 82px 0;
    background: var(--accent);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta h2 {
    max-width: 760px;
    margin: 0;

    color: white;
}

/* --------------------------------
   PAGE HERO
-------------------------------- */

.page-hero {
    padding: 180px 0 95px;

    color: white;
    background: var(--primary);
}

.page-hero h1 {
    margin: 0;
    color: white;
}

.page-hero-text {
    max-width: 700px;
    margin-top: 25px;

    color: rgba(255,255,255,.82);
    font-size: 19px;
}

/* --------------------------------
   PAGE CONTENT
-------------------------------- */

.page-content {
    max-width: 880px;

    padding: 90px 0 120px;

    margin-inline: auto;
}

.page-content h2 {
    margin-top: 55px;
}

.page-content h3 {
    margin-top: 38px;
}

.page-content ul,
.page-content ol {
    padding-left: 25px;
}

/* --------------------------------
   CONTACT
-------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
}

.contact-box {
    padding: 38px;

    border-radius: var(--radius);

    background: var(--light);
}

.contact-item {
    margin-bottom: 28px;
}

.contact-label {
    display: block;

    margin-bottom: 4px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.contact-form p {
    margin-bottom: 21px;
}

.contact-form label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 750;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text);
    background: white;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(180,147,90,.14);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.checkbox {
    display: flex !important;
    align-items: flex-start;

    gap: 10px;

    font-size: 13px !important;
    font-weight: 400 !important;
}

.checkbox input {
    width: auto !important;
    margin-top: 5px;
}

.form-message {
    padding: 15px 18px;
    margin-bottom: 25px;

    border-radius: 8px;

    background: var(--primary-soft);
}

.form-error {
    background: #f9eded;
    color: #762e2e;
}

/* --------------------------------
   404
-------------------------------- */

.error-page {
    min-height: 70vh;

    display: flex;
    align-items: center;

    padding: 140px 0;
}

.error-code {
    margin-bottom: 10px;

    color: var(--accent);

    font-size: 90px;
    font-weight: 900;
    line-height: 1;
}

/* --------------------------------
   FOOTER
-------------------------------- */

.site-footer {
    padding: 70px 0 30px;

    color: rgba(255,255,255,.7);

    background: var(--primary-dark);
}

.site-footer h3 {
    color: white;
    font-size: 19px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;

    padding-bottom: 50px;
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    margin-bottom: 8px;
}

.site-footer a {
    color: rgba(255,255,255,.72);
}

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-top: 25px;

    border-top: 1px solid rgba(255,255,255,.12);

    font-size: 13px;
}

/* --------------------------------
   MOBILE
-------------------------------- */

@media (max-width: 950px) {

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;

        display: none;

        top: 84px;
        right: 0;
        left: 0;

        padding: 20px;

        background: white;

        border-bottom: 1px solid var(--border);

        box-shadow:
            0 20px 35px rgba(0,0,0,.08);
    }

    .main-navigation.open {
        display: block;
    }

    .main-navigation ul {
        align-items: stretch;
        flex-direction: column;
        gap: 2px;
    }

    .main-navigation a {
        padding: 13px 8px;
    }

    .services-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .facts {
        grid-template-columns: repeat(2,1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {

    body {
        font-size: 16px;
    }

    .container {
        width: calc(100% - 28px);
    }

    .section {
        padding: 75px 0;
    }

    .header-inner {
        min-height: 72px;
    }

    .main-navigation {
        top: 72px;
    }

    .hero {
        min-height: 730px;
        padding: 125px 0 75px;
    }

    .hero-text {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-meta {
        margin-top: 50px;
    }

    .service-content,
    .value,
    .contact-box {
        padding: 25px;
    }

    .facts {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .page-content {
        padding: 65px 0 90px;
    }
}
