/*
Theme Name: Behnami One Page
Theme URI: https://leonlab.ai/
Author: LeonLab
Author URI: https://leonlab.ai/
Description: Minimalistisches Standalone-Theme für Behnami mit vorgeschalteter Passwortfreigabe und boxed Gutenberg-Inhalt.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: behnami-one-page
Tags: one-column, accessibility-ready
*/

:root {
    --behnami-bg: #f5f7fb;
    --behnami-surface: #ffffff;
    --behnami-text: #172033;
    --behnami-text-soft: #5f6b85;
    --behnami-accent: #2f6fed;
    --behnami-accent-dark: #1f56c2;
    --behnami-border: rgba(23, 32, 51, 0.08);
    --behnami-shadow: 0 24px 60px rgba(20, 31, 56, 0.08);
    --behnami-radius: 22px;
    --behnami-content-width: 920px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--behnami-bg);
    color: var(--behnami-text);
    line-height: 1.7;
}

a {
    color: var(--behnami-accent);
}

a:hover,
a:focus {
    color: var(--behnami-accent-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.site-shell {
    min-height: 100vh;
}

.site-main {
    width: min(calc(100% - 32px), calc(var(--behnami-content-width) + 64px));
    margin: 0 auto;
    padding: 32px 0;
}

.content-box,
.password-gate {
    width: 100%;
    background: var(--behnami-surface);
    border: 1px solid var(--behnami-border);
    border-radius: var(--behnami-radius);
    box-shadow: var(--behnami-shadow);
}

.content-box {
    padding: 32px;
}

.content-box > * {
    max-width: var(--behnami-content-width);
    margin-left: auto;
    margin-right: auto;
}

.content-box > * + * {
    margin-top: 1.5rem;
}

.content-box .alignwide {
    max-width: 1040px;
}

.content-box .alignfull {
    max-width: none;
}

.password-gate-wrap {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 64px);
}

.password-gate {
    max-width: 520px;
    padding: 36px;
}

.password-gate__eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--behnami-accent-dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.password-gate h1 {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.password-gate p {
    margin: 0 0 18px;
    color: var(--behnami-text-soft);
}

.password-gate__form {
    display: grid;
    gap: 14px;
}

.password-gate label {
    font-weight: 600;
}

.password-gate input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(23, 32, 51, 0.14);
    border-radius: 14px;
    font: inherit;
    background: #fff;
}

.password-gate button,
.wp-block-button__link,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    background: var(--behnami-accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.password-gate button:hover,
.password-gate button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    background: var(--behnami-accent-dark);
    transform: translateY(-1px);
}

.password-gate__error {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(214, 48, 49, 0.08);
    color: #b42318;
    font-weight: 600;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer {
    width: min(calc(100% - 32px), calc(var(--behnami-content-width) + 64px));
    margin: 0 auto 28px;
    text-align: center;
}

.site-footer__credit {
    margin: 0;
    color: var(--behnami-text-soft);
    font-size: 0.9rem;
}

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

.site-footer__credit a:hover,
.site-footer__credit a:focus {
    color: var(--behnami-accent-dark);
    text-decoration: underline;
}

@media (max-width: 782px) {
    .site-main {
        width: min(calc(100% - 24px), calc(var(--behnami-content-width) + 40px));
        padding: 20px 0;
    }

    .content-box,
    .password-gate {
        padding: 24px 20px;
    }

    .site-footer {
        width: min(calc(100% - 24px), calc(var(--behnami-content-width) + 40px));
        margin-bottom: 20px;
    }
}
