/* Alleshier – Inhalt / Legal – uses ah-tokens.css */

/* Content typography */
.ah-content {
    max-width: 920px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.75;
}

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

.ah-content p {
    margin-bottom: .85rem;
}

.ah-content p:last-child {
    margin-bottom: 0;
}

.ah-content h2,
.ah-content h3 {
    margin-top: 1.6rem;
    margin-bottom: .75rem;
}

.ah-content ul,
.ah-content ol {
    margin-bottom: 1rem;
}

/* Social buttons */
.ah-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--ah-muted);
    border: 1px solid var(--ah-border);
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.ah-social-btn i {
    font-size: 18px;
    line-height: 1;
}

.ah-social-btn:hover,
.ah-social-btn:focus-visible {
    color: #fff;
    border-color: var(--ah-accent);
    background: var(--ah-accent);
    box-shadow: var(--ah-shadow);
    transform: translateY(-1px);
}

.ah-social-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Erste Überschrift im Content ausblenden, da der Hero sie bereits zeigt */
.ah-hide-first-title > h1:first-child,
.ah-hide-first-title > h2:first-child {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Impressum */
.ah-impressum dt,
.ah-impressum dd {
    word-break: normal;
}

.ah-impressum dt {
    overflow-wrap: normal;
    hyphens: none;
}

.ah-impressum dd {
    overflow-wrap: break-word;
    hyphens: auto;
}

.ah-impressum dl.row > dt {
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: manual !important;
}

.ah-impressum dl.row > dd {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.ah-impressum a {
    color: #495057;
    text-decoration: none;
}

.ah-impressum a:hover,
.ah-impressum a:focus-visible {
    color: #212529;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.ah-legal-sidebar {
    margin-top: -2px;
}

/* Legal-Content aus der Datenbank */
.ah-content .ah-legal {
    max-width: 920px;
    margin: 0 auto;
    line-height: 1.75;
    hyphens: auto;
}

.ah-content .ah-legal-contact {
    max-width: 920px;
    margin-right: auto;
    margin-bottom: 18px;
    margin-left: auto;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 14px;
    background: rgba(0, 0, 0, .018);
}

.ah-content .ah-legal-contact address {
    margin: 0;
    font-style: normal;
}

.ah-content .ah-legal-kicker {
    margin: 0 0 .5rem;
    font-size: .95rem;
    font-weight: 700;
}

.ah-content .ah-legal-h {
    margin-top: 1.8rem;
    margin-bottom: .75rem;
    color: var(--ah-accent, #f59e0b);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .2px;
}

.ah-content .ah-legal-subh {
    margin-top: 1.2rem;
    margin-bottom: .35rem;
    color: var(--ah-accent, #f59e0b);
    font-size: 1rem;
    font-weight: 700;
}

.ah-content .ah-legal ul {
    margin: .5rem 0 1rem 1.1rem;
}

.ah-content .ah-legal li {
    margin: .25rem 0;
}

.ah-content .ah-legal a {
    color: var(--ah-accent, #f59e0b);
    font-weight: 600;
    text-decoration: none;
}

.ah-content .ah-legal a:hover {
    text-decoration: underline;
}

/* Inhaltsverzeichnis */
.ah-toc {
    max-width: 920px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 16px;
    background: rgba(0, 0, 0, .02);
}

.ah-toc-title {
    margin-bottom: .5rem;
    font-weight: 800;
}

.ah-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ah-toc-list li {
    margin: .25rem 0;
}

.ah-toc-list li.lvl-3 {
    padding-left: 1rem;
    font-size: .95rem;
}

.ah-toc a {
    color: var(--ah-accent, #f59e0b);
    font-weight: 600;
    text-decoration: none;
}

.ah-toc a:hover {
    text-decoration: underline;
}