/*
Theme Name: Flinkes Buch Onepage
Theme URI: https://www.flinkes-buch.de
Author: Flinkes Buch e.K. & ChatGPT
Description: Minimalistisches Onepage-Theme mit zentralem Logo und Button-Navigation für Flinkes Buch e.K. – mit Customizer-Optionen.
Version: 1.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flinkesbuch
*/

:root {
    --fb-green: #B1C692;
    --fb-text: #333333;
    --fb-bg: #ffffff;
    --fb-max-width: 1040px;
    --fb-radius: 18px;
    --fb-border-width: 3px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--fb-bg);
    color: var(--fb-text);
}

.fb-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 32px 16px;
}

.fb-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:flex-start;
    margin: 0 auto 32px auto;
    max-width: var(--fb-max-width);
    text-align: center;
    width: 100%;
}

.fb-logo {
    width: 100%;
    display: flex;
    justify-content: center;
}

.fb-logo img {
    max-width: 720px;
    width: 100%;
    height: auto;
}

.fb-menu-toggle {
    display: none;
    margin-top: 24px;
    padding: 10px 22px;
    border-radius: 999px;
    border: var(--fb-border-width) solid var(--fb-green);
    background: #ffffff;
    color: var(--fb-text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.fb-menu-toggle:hover,
.fb-menu-toggle:focus-visible {
    background: var(--fb-green);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.fb-nav-buttons {
    width: 100%;
    max-width: var(--fb-max-width);
    margin: 24px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: center;
}

.fb-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    border: var(--fb-border-width) solid var(--fb-green);
    background: #ffffff;
    color: var(--fb-text);
    text-decoration: none;
    font-size: 0.95rem;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    line-height: 1.3;
    flex: 1 1 260px;
    max-width: 320px;
}

.fb-nav-button:hover,
.fb-nav-button:focus-visible {
    background: var(--fb-green);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.fb-nav-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.fb-main {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.fb-content {
    width: 100%;
    max-width: var(--fb-max-width);
    border-radius: var(--fb-radius);
    border: var(--fb-border-width) solid var(--fb-green);
    padding: 24px 20px 28px 20px;
    margin: 0 auto 24px auto;
    background: #ffffff;
}

.fb-page-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.fb-page-content {
    font-size: 1rem;
    line-height: 1.6;
}

.fb-footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.8rem;
    color: #888888;
    padding-top: 16px;
    padding-bottom: 16px;
}

.fb-footer-links {
    margin-top: 4px;
    margin-bottom: 4px;
}

.fb-footer-links a {
    margin: 0 6px;
    font-size: 0.8rem;
    color: var(--fb-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.fb-footer-links a:hover,
.fb-footer-links a:focus-visible {
    border-bottom-color: var(--fb-green);
    outline: none;
}

.fb-footer small {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #777777;
}

@media (min-width: 1200px) {
    .fb-wrapper {
        padding-top: 48px;
    }
    .fb-content {
        padding: 32px 28px 36px 28px;
    }
    .fb-page-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 640px) {
    .fb-wrapper {
        padding-top: 24px;
    }

    .fb-menu-toggle {
        display: inline-flex;
    }

    .fb-nav-buttons {
        display: none;
        margin-top: 16px;
        justify-content: stretch;
    }

    .fb-nav-buttons.is-open {
        display: flex;
    }

    .fb-nav-button {
        flex: 1 1 100%;
        max-width: none;
    }
}
