/*
 * Eigene Ergänzungen zu Bootstrap.
 * Wird nach bootstrap.min.css geladen und überschreibt es deshalb.
 */

:root {
    scroll-behavior: smooth;
}

/* Sprungmarken nicht unter der Navigationsleiste verstecken. */
[id] {
    scroll-margin-top: 5rem;
}

/*
 * Aus Markdown erzeugter Inhalt (Container mit .md).
 * Markdown kann keine CSS-Klassen setzen – deshalb werden die Elemente hier
 * direkt gestaltet, damit Bootstrap-Optik auch ohne Klassen greift.
 */

/* Überschriften im Fließtext bleiben kleiner als die Blocküberschrift. */
.md h1 { font-size: 1.5rem; }
.md h2 { font-size: 1.25rem; }
.md h3 { font-size: 1.1rem; }
.md h4,
.md h5,
.md h6 { font-size: 1rem; }

.md h1,
.md h2,
.md h3,
.md h4,
.md h5,
.md h6 {
    margin-top: 2rem;
    margin-bottom: .75rem;
    font-weight: 600;
}

.md > :first-child {
    margin-top: 0;
}

.md > :last-child {
    margin-bottom: 0;
}

.md blockquote {
    margin: 1.5rem 0;
    padding: .25rem 0 .25rem 1.25rem;
    border-left: .25rem solid var(--bs-primary-border-subtle);
    color: var(--bs-secondary-color);
}

.md blockquote > :last-child {
    margin-bottom: 0;
}

.md img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bs-border-radius);
}

.md hr {
    margin: 2rem 0;
}

.md code {
    padding: .15em .4em;
    background-color: var(--bs-secondary-bg);
    border-radius: var(--bs-border-radius-sm);
}

.md pre {
    padding: 1rem;
    background-color: var(--bs-secondary-bg);
    border-radius: var(--bs-border-radius);
    overflow-x: auto;
}

.md pre code {
    padding: 0;
    background: none;
}

/* Tabellen aus Markdown wie .table aussehen lassen. */
.md table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.md th,
.md td {
    padding: .5rem;
    border-bottom: 1px solid var(--bs-border-color);
    text-align: left;
    vertical-align: top;
}

.md thead th {
    border-bottom-width: 2px;
}

/*
 * ── Domain-Verkaufs-Overlay ───────────────────────────────────────────
 */
.sale-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1080;
    background-color: rgba(20, 32, 47, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow-y: auto;
}

.sale-overlay-card {
    background-color: var(--bs-body-bg);
    border-color: var(--jw-brass-border) !important;
    border-radius: var(--bs-border-radius-lg);
    max-width: 560px;
    width: 100%;
    padding: 1.75rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.22);
    animation: saleOverlaySlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.uppercase-tracking {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

@keyframes saleOverlaySlideIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*
 * ── Brotkrümelnavigation (Breadcrumb) ───────────────────────────────
 */
.breadcrumb-nav {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.breadcrumb-item a {
    color: var(--jw-navy);
    text-decoration: none !important;
    transition: color 0.15s ease-in-out;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    color: var(--jw-brass);
    text-decoration: none !important;
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: var(--bs-link-color);
}

[data-bs-theme="dark"] .breadcrumb-item a:hover,
[data-bs-theme="dark"] .breadcrumb-item a:focus {
    color: var(--bs-secondary);
    text-decoration: none !important;
}


