/* ============================================================
   ImmoAO.de — Design System
   Brand: Rot #c0392b | Dunkel #1a1a2e | Weiß #ffffff
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #c0392b; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

/* === VARIABLES === */
:root {
    --red:       #c0392b;
    --red-dark:  #962d22;
    --red-light: #e74c3c;
    --dark:      #1a1a2e;
    --gray:      #6b7280;
    --gray-light:#f3f4f6;
    --gray-mid:  #e5e7eb;
    --white:     #ffffff;
    --shadow:    0 2px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --radius:    8px;
    --radius-lg: 14px;
    --max-w:     1200px;
    --content-w: 800px;
    --header-h:  64px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: #1a1a2e; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 2rem 0 .75rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 1.5rem 0 .5rem; }
h4 { font-size: 1.1rem; margin: 1.25rem 0 .4rem; }
p  { margin-bottom: 1rem; }

/* === LAYOUT === */
.container    { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.content-wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 20px; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .75rem 1.5rem; border-radius: var(--radius);
    font-weight: 600; font-size: .95rem; cursor: pointer;
    border: none; text-decoration: none; transition: all .2s;
    white-space: nowrap;
}
.btn-primary  { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; color: #fff; }
.btn-outline  { background: transparent; border: 2px solid var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; text-decoration: none; }
.btn-sm       { padding: .5rem 1rem; font-size: .875rem; }
.btn-block    { display: flex; justify-content: center; width: 100%; margin-top: 1.5rem; }

/* === DESKTOP HEADER === */
.site-header {
    position: sticky; top: 0; z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--gray-mid);
    box-shadow: var(--shadow);
    height: var(--header-h);
}
.header-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
    height: 100%; display: flex; align-items: center; gap: 2rem;
}
.site-logo img { height: 36px; width: auto; }
.main-nav ul   { list-style: none; padding: 0; display: flex; gap: 1.75rem; }
.main-nav a    { font-weight: 500; color: #1a1a2e; font-size: .95rem; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--red); text-decoration: none; }
.header-cta    { margin-left: auto; }

/* === MOBILE HEADER — SEPARAT === */
.mobile-header {
    display: none;
    position: sticky; top: 0; z-index: 300;
    background: #fff; border-bottom: 1px solid var(--gray-mid);
    box-shadow: var(--shadow); height: var(--header-h);
}
.mobile-header-inner {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: space-between; padding: 0 16px;
}
.site-logo-mobile img { height: 32px; width: auto; }
.mobile-burger {
    background: none; border: none; cursor: pointer;
    padding: 8px; display: flex; flex-direction: column;
    gap: 5px; width: 40px; margin-left: auto;
}
.mobile-burger span {
    display: block; height: 2px; background: #1a1a2e;
    border-radius: 2px; transition: all .25s;
}
.mobile-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-burger.open span:nth-child(2) { opacity: 0; }
.mobile-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.mobile-drawer {
    position: fixed; top: 0; right: -105vw; width: min(360px, 92vw); height: 100dvh;
    background: #fff; z-index: 400; overflow-y: auto; overflow-x: hidden;
    transition: right .28s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 32px rgba(0,0,0,.18);
    display: flex; flex-direction: column;
}
.mobile-drawer.open { right: 0; }

/* Drawer Header */
.md-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--gray-mid);
    flex-shrink: 0;
}
.md-brand { display: flex; align-items: center; gap: 10px; }
.md-brand-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--red); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden; padding: 6px;
}
.md-brand-text { display: flex; flex-direction: column; gap: 1px; }
.md-brand-name { font-size: .95rem; font-weight: 600; color: #1a1a2e; line-height: 1.2; }
.md-brand-name strong { font-weight: 800; }
.md-brand-sub  { font-size: .75rem; color: var(--gray); }
.md-close {
    background: #f3f4f6; border: none; border-radius: 50%;
    width: 32px; height: 32px; font-size: 1.25rem; cursor: pointer;
    color: #6b7280; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s;
}
.md-close:hover { background: #e5e7eb; }

/* Search */
.md-search { padding: 12px 16px; flex-shrink: 0; }
.md-search-inner {
    display: flex; align-items: center; gap: 10px;
    background: #f3f4f6; border-radius: 50px;
    padding: 10px 16px; color: #9ca3af; text-decoration: none;
    font-size: .9rem; transition: background .15s;
}
.md-search-inner:hover { background: #e9eaec; text-decoration: none; color: #6b7280; }
.md-search-inner svg { flex-shrink: 0; }

/* Section Label */
.md-section-label {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em;
    color: #9ca3af; padding: 8px 20px 4px;
    flex-shrink: 0;
}

/* Category List */
.md-cat-list { flex-shrink: 0; }
.md-cat-item {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 16px; text-decoration: none; color: #1a1a2e;
    border-bottom: 1px solid #f3f4f6; transition: background .12s;
}
.md-cat-item:hover { background: #fafafa; text-decoration: none; }
.md-cat-img {
    width: 52px; height: 52px; border-radius: 10px;
    object-fit: cover; flex-shrink: 0;
}
.md-cat-info { flex: 1; min-width: 0; }
.md-cat-name  { display: block; font-size: .95rem; font-weight: 600; color: #1a1a2e; }
.md-cat-count { display: block; font-size: .8rem; color: #6b7280; margin-top: 1px; }
.md-chevron   { flex-shrink: 0; color: #d1d5db; }

/* CTAs */
.md-ctas {
    margin-top: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
    border-top: 1px solid var(--gray-mid); flex-shrink: 0;
}
.md-cta-outline {
    display: block; text-align: center; padding: 13px;
    border: 1.5px solid #d1d5db; border-radius: var(--radius);
    color: #1a1a2e; font-weight: 600; font-size: .95rem;
    text-decoration: none; transition: border-color .15s, background .15s;
}
.md-cta-outline:hover { border-color: #9ca3af; background: #f9fafb; text-decoration: none; }
.md-cta-primary {
    display: block; text-align: center; padding: 13px;
    background: #1a1a2e; border-radius: var(--radius);
    color: #fff; font-weight: 700; font-size: .95rem;
    text-decoration: none; transition: background .15s;
}
.md-cta-primary:hover { background: #111827; text-decoration: none; color: #fff; }

.mobile-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 350;
    backdrop-filter: blur(2px);
}
.mobile-overlay.show { display: block; }

/* === RESPONSIVE: Show/Hide === */
@media (max-width: 1024px) {
    .site-header   { display: none; }
    .mobile-header { display: flex; }
}
@media (min-width: 1025px) {
    .mobile-header   { display: none !important; }
    .mobile-drawer   { display: none !important; }
    .mobile-overlay  { display: none !important; }
}

/* === HERO === */
.hero {
    background:
        linear-gradient(rgba(12,8,22,.68) 0%, rgba(40,10,10,.78) 100%),
        url('/uploads/neubauhaus-fertig-sonnig-garten-familie-koeln-immoao.webp') center/cover no-repeat;
    color: #fff; padding: 5rem 0 4rem; text-align: center;
}
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3); border-radius: 2rem;
    padding: .35rem 1rem; font-size: .85rem; margin-bottom: 1.25rem;
    letter-spacing: .04em;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.hero p   { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 2rem; justify-content: center;
    margin-top: 3rem; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.75rem; color: var(--red-light); font-weight: 800; }
.hero-stat span   { font-size: .85rem; color: rgba(255,255,255,.7); }

/* === CARDS === */
.card {
    background: #fff; border: 1px solid var(--gray-mid);
    border-radius: var(--radius-lg); padding: 1.5rem;
    transition: box-shadow .2s, transform .2s;
    overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-img { margin: -1.5rem -1.5rem 1.25rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.card-img img { width: 100%; height: 200px; object-fit: cover; }
.card-cat  { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin-bottom: .4rem; }
.card-title { font-size: 1.05rem; font-weight: 700; color: #1a1a2e; margin-bottom: .5rem; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--red); text-decoration: none; }
.card-excerpt { font-size: .9rem; color: var(--gray); line-height: 1.5; margin-bottom: .75rem; }
.card-meta  { font-size: .8rem; color: var(--gray); display: flex; gap: 1rem; flex-wrap: wrap; }

/* === SECTION HEADERS === */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: .5rem; }
.section-header p  { color: var(--gray); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-tag {
    display: inline-block; background: #fef2f2; color: var(--red);
    border: 1px solid #fecaca; border-radius: 2rem;
    padding: .25rem .85rem; font-size: .8rem; font-weight: 600;
    margin-bottom: .75rem; letter-spacing: .04em; text-transform: uppercase;
}

/* === GRIDS === */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

/* === HOME SECTIONS === */
.section { padding: 4rem 0; }
.section-gray { background: var(--gray-light); }
.section-dark { background: #1a1a2e; color: #fff; }
.section-dark h2 { color: #fff; }

/* Category Hub Cards */
.hub-card {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.5rem; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--gray-mid);
    transition: all .2s; text-decoration: none; color: inherit;
}
.hub-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--red); text-decoration: none; }
.hub-img {
    width: 56px; height: 56px; border-radius: var(--radius);
    object-fit: cover; flex-shrink: 0;
}
.hub-content h3 { margin: 0 0 .3rem; font-size: 1.05rem; color: #1a1a2e; }
.hub-content p  { margin: 0; font-size: .88rem; color: var(--gray); line-height: 1.45; }

/* === SINGLE POST === */
.post-layout {
    display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem;
    max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 20px;
    align-items: start;
}
.post-main { min-width: 0; }
.post-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }

@media (max-width: 1024px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
}

.post-header { padding: 2.5rem 0 0; }
.post-header .breadcrumb { margin-bottom: 1rem; }
.post-cat-badge {
    display: inline-block; background: #fef2f2; color: var(--red);
    border: 1px solid #fecaca; border-radius: 2rem;
    padding: .3rem .9rem; font-size: .8rem; font-weight: 600;
    margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .04em;
}
.post-meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    font-size: .85rem; color: var(--gray); margin: 1rem 0 1.5rem;
}
.post-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.post-thumb img { width: 100%; height: 380px; object-fit: cover; }
.article-img { margin: 2rem 0; border-radius: var(--radius-lg); overflow: hidden; }
.article-img img { width: 100%; height: 380px; object-fit: cover; }
.article-img figcaption { font-size: .82rem; color: #6b7280; padding: .45rem 0 0; font-style: italic; }

/* Post Content */
.post-content { font-size: 1.02rem; line-height: 1.75; }
.post-content h2 { font-size: 1.6rem; margin: 2.5rem 0 .75rem; padding-top: .5rem; border-top: 3px solid #fef2f2; }
.post-content h3 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.post-content h4 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.post-content p  { margin-bottom: 1.1rem; }
.post-content ul, .post-content ol { margin: .75rem 0 1.25rem; }
.post-content li { margin-bottom: .4rem; }
.post-content strong { color: #1a1a2e; font-weight: 700; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.post-content table th { background: #1a1a2e; color: #fff; padding: .75rem 1rem; text-align: left; }
.post-content table td { padding: .65rem 1rem; border-bottom: 1px solid var(--gray-mid); }
.post-content table tr:nth-child(even) td { background: var(--gray-light); }
.post-content .info-box {
    background: #fef2f2; border-left: 4px solid var(--red);
    padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}
.post-content .tip-box {
    background: #f0fdf4; border-left: 4px solid #16a34a;
    padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}

/* Scroll table wrapper on mobile */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* TOC */
.toc {
    background: var(--gray-light); border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem;
}
.toc h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); margin: 0 0 .75rem; }
.toc ol  { margin: 0; padding-left: 1.25rem; }
.toc li  { margin-bottom: .35rem; }
.toc a   { font-size: .92rem; color: #1a1a2e; }
.toc a:hover { color: var(--red); }

/* FAQ */
.faq-block { margin: 2rem 0; }
.faq-item   { border-bottom: 1px solid var(--gray-mid); }
.faq-question {
    width: 100%; text-align: left; background: none; border: none;
    padding: 1rem 0; font-size: 1rem; font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    color: #1a1a2e;
}
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--red); transition: transform .2s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 1rem; font-size: .95rem; color: #374151; }
.faq-item.open .faq-answer { display: block; }

/* Sidebar */
.sidebar-box {
    background: var(--gray-light); border-radius: var(--radius-lg);
    padding: 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-box h4 { font-size: 1rem; margin-bottom: 1rem; border-bottom: 2px solid var(--red); padding-bottom: .5rem; }
.related-list  { list-style: none; padding: 0; }
.related-list li { border-bottom: 1px solid var(--gray-mid); }
.related-list a  { display: block; padding: .65rem 0; font-size: .9rem; color: #1a1a2e; }
.related-list a:hover { color: var(--red); text-decoration: none; }

/* === BLOG ARCHIVE === */
.archive-header { background: var(--gray-light); padding: 3rem 0 2rem; }
.archive-header h1 { margin-bottom: .5rem; }
.cat-filter {
    display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.5rem 0;
}
.cat-pill {
    padding: .4rem .9rem; border-radius: 2rem; font-size: .85rem;
    font-weight: 500; border: 1px solid var(--gray-mid); background: #fff;
    color: #1a1a2e; cursor: pointer; text-decoration: none; transition: all .2s;
}
.cat-pill:hover, .cat-pill.active { background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; }

/* === BREADCRUMB === */
.breadcrumb { font-size: .85rem; color: var(--gray); display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--gray-mid); }

/* === PAGINATION === */
.pagination { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin: 2.5rem 0; }
.page-btn {
    padding: .55rem .9rem; border-radius: var(--radius);
    border: 1px solid var(--gray-mid); background: #fff;
    font-size: .9rem; color: #1a1a2e; cursor: pointer;
    text-decoration: none; transition: all .2s;
}
.page-btn:hover, .page-btn.active { background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; }

/* === TRUST BAR === */
.trust-bar {
    background: #1a1a2e; padding: 1.25rem 0;
    display: flex; gap: 2rem; justify-content: center;
    flex-wrap: wrap;
}
.trust-item { color: rgba(255,255,255,.8); font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.trust-item::before { content: '✓'; color: var(--red-light); font-weight: 700; }

/* === STEP LIST === */
.step-list { list-style: none; padding: 0; counter-reset: steps; }
.step-item {
    counter-increment: steps; display: flex; gap: 1rem;
    margin-bottom: 1.5rem; align-items: flex-start;
}
.step-num {
    flex-shrink: 0; width: 36px; height: 36px;
    background: var(--red); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
}
.step-content h4 { margin: .1rem 0 .3rem; }

/* === FOOTER === */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,.8); padding: 3.5rem 0 0; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
    padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .footer-logo img { height: 34px; width: auto; margin-bottom: .85rem; filter: brightness(0) invert(1); }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a  { color: rgba(255,255,255,.6); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 0; flex-wrap: wrap; gap: .75rem;
    font-size: .83rem; color: rgba(255,255,255,.45);
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,.45); }
.footer-legal a:hover { color: rgba(255,255,255,.8); text-decoration: none; }

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* === UTILITY === */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* === HERO POST (single page hero) === */
.post-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1a1a 100%);
    color: #fff; padding: 3.5rem 0 2.5rem;
}
.post-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.post-hero .breadcrumb span { color: rgba(255,255,255,.3); }
.post-hero .breadcrumb { color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.post-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: 780px; }
.post-hero .post-meta { color: rgba(255,255,255,.6); }

/* === 404 === */
.error-page { text-align: center; padding: 6rem 1rem; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--gray-mid); line-height: 1; }
.error-page h2 { margin: 1rem 0 .5rem; }

/* === READING PROGRESS BAR === */
.reading-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--red); z-index: 9999; width: 0%; transition: width .1s;
}

/* === TOOLTIPS === */
.tip {
    border-bottom: 1px dashed #9ca3af;
    cursor: help;
    position: relative;
    display: inline;
}
.tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #f9fafb;
    font-size: .78rem;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    line-height: 1.45;
    padding: 7px 12px;
    border-radius: 7px;
    width: 230px;
    white-space: normal;
    z-index: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.tip:hover::after,
.tip.show::after { opacity: 1; }
@media (max-width: 600px) {
    .tip::after { left: 0; transform: none; width: min(230px, 80vw); }
}

/* === EXTERNE LINKS BOX === */
.ext-links-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    margin: 2rem 0 1rem;
}
.ext-links-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #9ca3af;
    margin-bottom: .7rem !important;
}
.ext-links-box ul {
    list-style: none;
    padding: 0; margin: 0;
}
.ext-links-box li {
    padding: .45rem 0;
    font-size: .88rem;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
}
.ext-links-box li:last-child { border-bottom: none; }
.ext-links-box a {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}
.ext-links-box a:hover { text-decoration: underline; }
.ext-domain { color: #9ca3af; font-size: .82em; }
