/*
 * OZB Forum – Styles
 * Nur aktiv auf Seiten mit [ozb_blog] Shortcode.
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&display=swap');

.ozb-blog-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a18;
}

/* --- Intro ------------------------------------------------- */
.ozb-intro {
    padding: 8px 0 24px;
    font-size: 15px;
    line-height: 1.65;
}

/* --- Typografie-System ------------------------------------- */

.ozb-over {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1a1a18;
    margin-bottom: 4px;
}

.ozb-head {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a18;
}

.ozb-copy {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    color: #1a1a18;
    padding: 20px 0 8px;
}

.ozb-copy p { margin: 0 0 14px; }

/* --- Trennlinie -------------------------------------------- */
.ozb-divider {
    border: none;
    border-top: 0.5px solid #1a1a18;
    margin: 0;
}

/* --- Neuer-Beitrag-Block ----------------------------------- */
.ozb-new-post-wrap {
    /* wie ein Akkordeon-Item */
}

.ozb-new-post-toggle {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 32px 18px 0;
    cursor: pointer;
    position: relative;
    color: inherit;
    font-family: 'DM Sans', sans-serif;
    box-shadow: none;
}

.ozb-new-post-toggle:focus-visible {
    outline: 2px solid #888;
    outline-offset: 2px;
}

.ozb-new-post-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    padding: 0;
}

.ozb-new-post-wrap.is-open .ozb-new-post-body {
    max-height: 2000px;
    padding: 16px 0 24px;
}

/* Plus/Minus Icon im Neuer-Beitrag-Toggle */
.ozb-new-post-wrap.is-open .ozb-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

/* --- Forumformular ----------------------------------------- */
.ozb-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #1a1a18;
    margin: 10px 0 4px;
}

.ozb-new-post-form input[type="text"],
.ozb-new-post-form input[type="email"],
.ozb-new-post-form textarea,
.ozb-new-post-form select {
    width: 100%;
    padding: 10px 12px;
    border: 0.5px solid #1a1a18;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a18;
    box-sizing: border-box;
    border-radius: 0;
    margin-bottom: 10px;
}

.ozb-new-post-form textarea {
    min-height: 140px;
    resize: vertical;
}

.ozb-new-post-form .ozb-form-row {
    display: flex;
    gap: 10px;
}

.ozb-new-post-form .ozb-form-row input {
    flex: 1;
    margin-bottom: 6px;
}

/* --- Akkordeon-Trigger ------------------------------------- */
.ozb-accordion-trigger {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 32px 18px 0;
    cursor: pointer;
    position: relative;
    color: inherit;
    font-family: 'DM Sans', sans-serif;
    box-shadow: none;
}

.ozb-accordion-trigger:focus-visible {
    outline: 2px solid #888;
    outline-offset: 2px;
}

.ozb-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
}

.ozb-icon::before,
.ozb-icon::after {
    content: '';
    position: absolute;
    background: #1a1a18;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ozb-icon::before { width: 14px; height: 0.5px; top: 50%; left: 0; }
.ozb-icon::after  { width: 0.5px; height: 14px; top: 0;   left: 50%; }

.ozb-accordion-item.is-open .ozb-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

/* --- Akkordeon-Body ---------------------------------------- */
.ozb-accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.ozb-accordion-item.is-open .ozb-accordion-body {
    max-height: 5000px;
}

/* --- Kommentare -------------------------------------------- */
.ozb-comments-list { padding: 8px 0 0; }

.ozb-comment {
    padding: 12px 0;
    border-bottom: 0.5px solid rgba(26,26,24,0.15);
}

.ozb-comment:last-child { border-bottom: none; }

.ozb-comment-meta {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #1a1a18;
    margin-bottom: 4px;
}

.ozb-comment-text {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
}

/* --- Kommentarformular ------------------------------------- */
.ozb-comment-form-wrap { padding-bottom: 24px; }
.ozb-comment-form { margin-top: 16px; }

.ozb-comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 12px;
    border: 0.5px solid #1a1a18;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a18;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 10px;
    border-radius: 0;
}

.ozb-comment-form .ozb-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.ozb-comment-form input[type="text"],
.ozb-comment-form input[type="email"] {
    flex: 1;
    padding: 9px 12px;
    border: 0.5px solid #1a1a18;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #1a1a18;
    box-sizing: border-box;
    border-radius: 0;
}

.ozb-form-hint {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #666;
    margin: 0 0 10px;
}

.ozb-form-legal {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #1a1a18;
    line-height: 1.5;
    margin-bottom: 12px;
}

.ozb-form-legal p { margin: 0 0 6px; }

.ozb-submit-btn {
    background: #a03030;
    color: #fff;
    border: none;
    padding: 11px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0;
}

.ozb-submit-btn:hover { background: #882828; }

.ozb-form-message {
    margin-top: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

.ozb-form-message.success { color: #2a7a2a; }
.ozb-form-message.error   { color: #a03030; }

@media (max-width: 480px) {
    .ozb-form-row { flex-direction: column; }
}
