/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

:root {
    --esb-bg: #ffffff;
    --esb-fg: #231b17;
    --esb-muted: #6b625d;
    --esb-border: rgba(35, 27, 23, 0.18);
    --esb-shadow: 0 24px 60px rgba(35, 27, 23, 0.16);
    --esb-ring: rgba(104, 69, 47, 0.22);
    --esb-accent: #8a5f44;
    --esb-surface: #f7f1ec;
    --esb-surface-strong: #efe3d8;
    --esb-mark: #f4d35e;
    --esb-start-primary: #c79e88;
    --esb-start-ink: var(--esb-fg);
    --esb-start-dark: #1c2930;
    --esb-start-teal: #2e6977;
    --esb-start-white: var(--esb-bg);
    --esb-start-soft: rgba(255, 255, 255, 0.9);
    --esb-start-border: rgba(255, 255, 255, 0.25);
    --esb-start-panel: rgba(255, 255, 255, 0.12);
    --esb-start-panel-shadow: 0 22px 60px rgba(10, 14, 18, 0.4);
    --esb-font-family: franklin-gothic-urw, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --esb-start-serif: ThanatosText, Georgia, serif;
    --esb-start-sans: var(--esb-font-family);
}

html {
    scroll-behavior: smooth;
}

body.esb-start-page {
    margin: 0;
    background: var(--esb-start-primary);
    color: var(--esb-start-ink);
    font-family: var(--esb-start-sans);
}

body.esb-start-page #brx-content.wordpress {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.esb-start-page #brx-content > h1:first-child {
    display: none;
}

.esb-start,
.esb-start * {
    box-sizing: border-box;
}

.esb-start {
    min-height: 100vh;
    background: var(--esb-start-primary);
    font-family: var(--esb-start-sans);
    letter-spacing: 0;
}

.esb-container {
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}

.esb-hero {
    position: relative;
    min-height: 780px;
    padding: 80px 0 96px;
    overflow: visible;
}

.esb-hero__logo-wrap {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 42px;
}

.esb-hero__logo {
    width: min(288px, 72vw);
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(34, 22, 14, 0.38));
}

.esb-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.esb-search-panel {
    position: relative;
    z-index: 5;
    width: min(100%, 672px);
    padding: 28px;
    border: 1px solid var(--esb-start-border);
    border-radius: 20px;
    background: var(--esb-start-panel);
    box-shadow: var(--esb-start-panel-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
}

.esb-search-panel .esb-search-plugin {
    display: block;
}

.esb-search-panel .brxe-esb-search-box,
.esb-search-panel .esb-search-plugin,
.esb-search-panel esb-search-box {
    width: 100%;
}

.esb-search-panel esb-search-box {
    --esb-font-family: var(--esb-start-sans);
    --esb-bg: #fffaf6;
    --esb-fg: var(--esb-start-ink);
    --esb-border: color-mix(in srgb, var(--esb-start-ink) 20%, transparent);
    --esb-shadow: 0 18px 44px color-mix(in srgb, var(--esb-start-ink) 20%, transparent);
    --esb-ring: color-mix(in srgb, var(--esb-start-teal) 28%, transparent);
    --esb-accent: var(--esb-start-teal);
}

.esb-hero__title {
    margin: 26px 0 88px;
    color: var(--esb-start-ink);
    font-family: var(--esb-start-serif);
    font-size: clamp(2rem, 2.4vw, 2.25rem);
    font-weight: 600;
    line-height: 1.12;
    text-align: center;
}

.esb-hero__title span {
    font-family: var(--esb-start-serif);
}

.esb-quick-nav {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(8, 14, 18, 0.3);
}

.esb-quick-nav a,
.esb-quick-nav__link {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(12, 17, 22, 0.15);
    background: var(--esb-start-soft);
    color: #1b262d;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 13px 22px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    white-space: nowrap;
}

.esb-quick-nav a:hover,
.esb-quick-nav a:focus-visible,
.esb-quick-nav__link:hover,
.esb-quick-nav__link:focus-visible {
    background: #1f2a30;
    border-color: #1f2a30;
    color: var(--esb-start-white);
    outline: none;
}

.esb-book {
    position: relative;
    background:
        linear-gradient(120deg, rgba(46, 105, 119, 0.92), rgba(28, 41, 48, 0.95)),
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.12), transparent 45%);
    color: var(--esb-start-white);
}

.esb-book__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 0 80px;
}

.esb-book__wordmark {
    width: min(384px, 78vw);
    height: auto;
    margin-bottom: 34px;
}

.esb-book__image {
    width: min(80%, 980px);
    height: auto;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(8, 14, 18, 0.45);
}

.esb-support-copy {
    width: min(760px, 92%);
    margin-top: 48px;
    text-align: center;
}

.esb-support-copy h2 {
    margin: 0 0 28px;
    color: var(--esb-start-white);
    font-family: var(--esb-start-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.12;
}

.esb-support-copy p {
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.85;
}

.esb-donation {
    width: 100%;
    margin-top: 36px;
}

.esb-donation .brxe-html {
    position: relative;
    width: 100%;
}

.esb-donation .brxe-html::before {
    position: absolute;
    inset: 0;
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border-radius: 20px;
    background: var(--esb-start-white);
    color: var(--esb-start-ink);
    content: "Spendenformular wird geladen ...";
    font-size: 1rem;
    text-align: center;
}

.esb-donation iframe.twingle-widget {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    min-height: 1100px;
    border: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--esb-start-white);
    box-shadow: 0 20px 50px rgba(8, 14, 18, 0.35);
}

.esb-footer {
    background: #f9fafb;
    color: #374151;
    font-family: var(--esb-start-sans);
}

.esb-footer__inner {
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
    padding: 18px 0 34px;
}

.esb-footer__top {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.esb-footer__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.esb-footer__logo img {
    width: 95px;
    height: auto;
    display: block;
}

.esb-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.esb-footer__links a {
    color: #1f2937;
    font-size: 15px;
    line-height: 22px;
    text-decoration: none;
}

.esb-footer__links a:hover,
.esb-footer__links a:focus-visible {
    color: #2e6977;
    outline: none;
}

.esb-footer__rule {
    width: 100%;
    height: 1px;
    margin: 8px 0 26px;
    border: 0;
    background: #e5e7eb;
}

.esb-footer__copyright {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

@media (max-width: 900px) {
    .esb-hero {
        min-height: auto;
        padding: 56px 0 72px;
    }

    .esb-hero__title {
        margin-bottom: 56px;
    }

    .esb-quick-nav {
        width: min(100%, 620px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        overflow: visible;
        box-shadow: none;
    }

    .esb-quick-nav a,
    .esb-quick-nav__link {
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(8, 14, 18, 0.18);
        white-space: normal;
    }

    .esb-book__image {
        width: min(92%, 820px);
        border-radius: 22px;
    }
}

@media (max-width: 640px) {
    .esb-container {
        width: min(100% - 28px, 1180px);
    }

    .esb-hero {
        padding-top: 42px;
    }

    .esb-search-panel {
        padding: 18px;
        border-radius: 18px;
    }

    .esb-quick-nav {
        grid-template-columns: 1fr;
    }

    .esb-book__inner {
        padding: 52px 0 64px;
    }

    .esb-donation iframe.twingle-widget {
        min-height: 760px;
        border-radius: 0;
    }

    .esb-footer__inner {
        width: min(100% - 28px, 1180px);
    }

    .esb-footer__top {
        flex-direction: column;
        justify-content: center;
        gap: 18px;
        padding: 20px 0 8px;
    }

    .esb-footer__links {
        justify-content: center;
        gap: 14px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .esb-quick-nav a,
    .esb-quick-nav__link {
        transition: none;
    }
}
