/**
 * Tüzük (page/tuzuk) — § accordion, TOC, toolbar (hero = history/about ile aynı, inline page.php)
 */

/* Präambel: ilk H2 */
.tuzuk-surface .tuzuk-prose > h2:first-of-type {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark, #0f172a);
    margin: 0 0 1rem 0;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(201, 155, 59, 0.45);
}
.tuzuk-surface .tuzuk-prose > h2:first-of-type::before {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, #C99B3B, rgba(201, 155, 59, 0.2));
    border-radius: 2px;
    margin-bottom: 0.6rem;
}

/* Toolbar (Alle aufklappen) */
.page-satzung .tig-satzung-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    margin: 1.5rem 0 1.75rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.page-satzung .tig-satzung-toolbar a,
.page-satzung .tig-satzung-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.page-satzung .tig-satzung-toolbar a:hover,
.page-satzung .tig-satzung-toolbar button:hover {
    border-color: #C99B3B;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(201, 155, 59, 0.2);
}
.page-satzung .tig-satzung-toolbar a:nth-of-type(1) {
    background: linear-gradient(135deg, #2f2f2f, #1e293b);
    color: #fff;
    border-color: #1e293b;
}
.page-satzung .tig-satzung-toolbar a:nth-of-type(1):hover {
    background: #1e293b;
    border-color: #C99B3B;
    color: #fff;
}
.page-satzung .tig-satzung-toolbar a:nth-of-type(2) {
    background: #fff;
}

/* Inhaltsverzeichnis (§) */
.tig-satzung-toc-wrap {
    margin: 0 0 1.5rem 0;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.tig-satzung-toc-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 0.6rem;
}
.tig-satzung-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tig-satzung-toc a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.tig-satzung-toc a:hover {
    background: rgba(201, 155, 59, 0.15);
    border-color: #C99B3B;
    color: #0f172a;
    transform: translateY(-1px);
}

/* § maddeleri (accordion) */
.page-satzung .tig-satzung-h3 {
    cursor: pointer;
    list-style: none;
    position: relative;
    scroll-margin-top: 100px;
    padding: 0.75rem 1rem;
    margin: 0.65rem 0 0.25rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fafbfc;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.page-satzung .tig-satzung-h3:hover,
.page-satzung .tig-satzung-h3:focus {
    background: #fff;
    border-color: #C99B3B;
    outline: 2px solid rgba(201, 155, 59, 0.25);
    outline-offset: 1px;
    box-shadow: 0 4px 16px rgba(201, 155, 59, 0.12);
}
.page-satzung .tig-satzung-chevron {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: #C99B3B;
    transition: transform 0.25s ease;
    margin-left: 8px;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 155, 59, 0.1);
    border-radius: 8px;
}
.page-satzung .tig-satzung-h3[aria-expanded="true"] .tig-satzung-chevron {
    transform: rotate(180deg);
    background: rgba(201, 155, 59, 0.2);
}
.page-satzung .tig-satzung-panel--closed {
    display: none;
}
.page-satzung .tig-satzung-panel--open {
    display: block;
}
.page-satzung .tig-satzung-panel {
    padding: 0.5rem 0.4rem 1.35rem 0.15rem;
    margin: 0 0 0.5rem 0.35rem;
    border-left: 3px solid #C99B3B;
    padding-left: 1.1rem;
    font-size: 0.98rem;
    line-height: 1.75;
    color: #334155;
}
.page-satzung .tig-satzung-panel p,
.page-satzung .tig-satzung-panel li {
    font-size: 0.98rem;
}
.page-satzung .tig-satzung-panel ul {
    margin: 0.5rem 0 0.5rem 1.1rem;
    padding: 0;
}
.tuzuk-surface .tuzuk-prose.blog-content a {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tuzuk-surface .tuzuk-prose.blog-content strong {
    color: #0f172a;
}

@media (min-width: 768px) {
    .page-satzung .tig-satzung-h3 { font-size: 1.08rem; }
}

@media (max-width: 600px) {
    .tig-satzung-toc {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
        margin: 0 -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .tig-satzung-toc a { flex-shrink: 0; }
}

@media print {
    .tig-satzung-panel--closed { display: block !important; }
    .tig-satzung-chevron { display: none; }
    .tig-satzung-toc-wrap { display: none; }
    .tig-satzung-toolbar { display: none; }
    .tuzuk-main-wrap { margin-top: 0; }
    .tuzuk-surface { box-shadow: none; }
}
