:root {
  --bf-primary: #09164a;
  --bf-secondary: #536b99;
  --bf-accent: #164bff;
  --bf-light: #eef3ff;
  --bf-ink: #243453;
  --bf-muted: #5b6b85;
  --bf-border: #dbe3f2;
  --bf-paper: #f6f8ff;
  --bs-link-color: #164bff;
  --bs-link-hover-color: #1034b8;
}
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { color: var(--bf-ink); background: #fff; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--bf-primary); font-weight: 650; letter-spacing: -.045em; line-height: 1.13; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.025em; }
p { text-wrap: pretty; }
a { color: var(--bf-accent); text-underline-offset: .2em; }
a:hover { color: #1034b8; }
a, button, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, textarea, summary):focus-visible { outline: 3px solid #4976ff; outline-offset: 4px; }
::selection { color: #1034b8; background: #c3d1f2; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 10000; padding: .8rem 1.2rem; background: #fff; border: 1px solid var(--bf-border); }
.skip-link:focus { top: 1rem; }
.btn { min-height: 44px; border-radius: .5rem; padding: .7rem 1.15rem; font-size: .9rem; font-weight: 600; line-height: 1.4; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.btn i { margin-left: .65rem; }
.btn-lg { padding: .95rem 1.4rem; font-size: .95rem; }
.btn-custom { background: var(--bf-accent); border: 1px solid var(--bf-accent); color: #fff; }
.btn-custom:hover, .btn-custom:focus, .btn-custom:active { background: #123bcc !important; border-color: #123bcc !important; color: #fff !important; box-shadow: 0 4px 14px #09164a15; }
.btn-custom-outline, .btn-outline-custom { background: transparent; border: 1px solid #8d9cbe; color: var(--bf-primary); }
.btn-custom-outline:hover, .btn-outline-custom:hover { background: var(--bf-primary); border-color: var(--bf-primary); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .65rem; font-size: .92rem; font-weight: 600; text-decoration: none; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.section-space { padding: 2.5rem 0; }
.section-label, .aufenthg-section-label { display: inline-block; color: var(--bf-accent); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .65rem; }
.section-heading { max-width: 680px; margin-bottom: 1.5rem; }
.section-heading h2 { margin-bottom: .75rem; }
.section-heading p { color: var(--bf-muted); max-width: 560px; }
.heading-split { display: flex; align-items: end; justify-content: space-between; gap: 3rem; max-width: none; }
.heading-split > p { flex: 0 0 32%; margin-bottom: .4rem; }
.site-nav { position: sticky; top: 0; z-index: 1030; background: #fffffffa; border-bottom: 1px solid var(--bf-border); padding: 1rem 0; }
.navbar-brand { display: inline-flex; align-items: center; margin: 0; font-size: 1.55rem; font-weight: 750; letter-spacing: -.07em; color: var(--bf-primary); line-height: 1.2; }
/* Display the supplied square artwork in a horizontal frame, preserving the original file. */
.brand-logo { display: block; width: 248px; height: 44px; object-fit: cover; object-position: 50% 49%; }
.site-nav .navbar-nav { gap: .6rem; }
.site-nav .nav-link { color: #435173; font-size: .84rem; font-weight: 500; padding: .55rem .8rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--bf-accent); }
.site-nav .nav-link.active { font-weight: 700; }
.nav-cta { margin-left: .8rem; }
.navbar-toggler { border: 1px solid var(--bf-border); min-height: 44px; }
.ai-hero { background: var(--bf-paper); padding: 1.25rem 0 4.5rem; overflow: hidden; }
.eyebrow, .aufenthg-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .74rem; font-weight: 600; color: var(--bf-accent); }
.status-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--bf-accent); box-shadow: 0 0 0 4px #164bff0c; }
.ai-hero h1 { margin: 1.35rem 0 1.6rem; font-size: clamp(3rem, 4.65vw, 4.3rem); line-height: 1.07; letter-spacing: -.06em; }
.ai-hero h1 > span { color: #164bff; }
.hero-description { color: var(--bf-muted); font-size: 1.04rem; max-width: 31rem; line-height: 1.8; }
.hero-description strong { color: var(--bf-primary); font-weight: 600; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.3rem; margin-top: 1.8rem; }
.hero-note { display: flex; align-items: center; gap: .5rem; color: var(--bf-muted); font-size: .77rem; margin: 1.5rem 0 0; }
.demo-stage { position: relative; padding: 1.8rem 0 1.4rem 1.2rem; }
.demo-stage::before { content: ""; position: absolute; inset: 0 -2rem 0 2.5rem; background: #e5edff; border: 1px solid #ccd8f4; border-radius: 2rem; transform: rotate(-4deg); }
.demo-window { position: relative; background: #fff; border: 1px solid #c9d5f3; border-radius: .9rem; box-shadow: 0 18px 45px #19264610; overflow: hidden; }
.demo-topbar { padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-bottom: 1px solid #dde5f8; }
.demo-logo { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; font-size: .95rem; letter-spacing: -.02em; }
.demo-brand-icon { display: block; width: 32px; height: 32px; object-fit: cover; border-radius: .25rem; }
.demo-logo i { color: var(--bf-accent); margin-right: .35rem; }
.demo-badge { border: 1px solid var(--bf-border); padding: .2rem .5rem; border-radius: .3rem; font-size: .61rem; color: var(--bf-muted); }
.demo-body { padding: 1.5rem; }
.demo-kicker { color: var(--bf-primary); font-size: 1.04rem; font-weight: 600; }
.example-switcher { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.example-button { border: 1px solid var(--bf-border); border-radius: .35rem; padding: .45rem .65rem; min-height: 40px; background: #fff; color: var(--bf-muted); font-size: .7rem; font-weight: 600; }
.example-button[aria-pressed="true"] { background: #dfe6f8; border-color: #91a4d1; color: #1f3464; }
.example-button:hover { border-color: var(--bf-accent); }
.demo-prompt { display: flex; align-items: flex-start; gap: .7rem; margin: 1.3rem 0; }
.demo-avatar { width: 1.7rem; height: 1.7rem; display: inline-flex; flex: 0 0 1.7rem; align-items: center; justify-content: center; border-radius: 50%; background: #eaf0fc; color: #536b99; }
.demo-prompt p { margin: 0; font-size: .82rem; color: #3c4a6a; }
.demo-answer { background: #edf1fb; border: 1px solid #d2dcf5; border-radius: .6rem; padding: 1.1rem; }
.demo-answer-label { display: flex; gap: .4rem; align-items: center; font-weight: 650; font-size: .74rem; margin-bottom: .8rem; }
.demo-answer-label > span { margin-left: auto; font-size: .62rem; color: #3a4f7f; font-weight: 500; }
.demo-answer > p { font-size: .84rem; line-height: 1.8; min-height: 7.6rem; margin-bottom: 1rem; }
#example-answer { white-space: pre-line; }
.demo-answer-footer { border-top: 1px solid #cbd7f4; padding-top: .7rem; font-size: .65rem; color: #415279; }
.demo-disclaimer { color: var(--bf-muted); font-size: .64rem; margin: .8rem 0 0; }
.demo-source { color: var(--bf-muted); font-size: .7rem; margin: .8rem 0 0; }
.demo-caption { position: relative; display: flex; align-items: center; gap: .8rem; padding: 1.2rem .3rem 0; }
.caption-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2.3rem; height: 2.3rem; background: var(--bf-accent); color: #fff; border-radius: 50%; font-size: 1.2rem; }
.demo-caption strong, .demo-caption span:not(.caption-icon) { display: block; }
.demo-caption strong { font-size: .77rem; }
.demo-caption div > span { font-size: .68rem; color: var(--bf-muted); margin-top: .15rem; }
.audience-strip { padding: 1.9rem 0; border-top: 1px solid var(--bf-border); border-bottom: 1px solid var(--bf-border); background: var(--bf-paper); }
.audience-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.audience-strip .container > span { font-size: .72rem; color: var(--bf-muted); }
.audience-strip .container > div { display: flex; align-items: center; justify-content: space-between; gap: 2.4rem; }
.audience-strip div > span { font-size: .83rem; font-weight: 550; }
.audience-strip i { margin-right: .4rem; font-size: 1.15rem; color: #586a94; }
.application-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.application-card { display: flex; flex-direction: column; min-width: 0; padding: 2rem; border: 1px solid var(--bf-border); border-radius: .85rem; background: #fff; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.feature-icon, .aufenthg-feature-icon { width: 2.8rem; height: 2.8rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c6d4f3; background: #e9eefa; border-radius: .6rem; font-size: 1.2rem; color: var(--bf-accent); }
.card-index { font-size: .62rem; font-weight: 600; letter-spacing: .09em; color: var(--bf-muted); }
.application-card h3 { font-size: 1.5rem; margin-bottom: .9rem; hyphens: auto; overflow-wrap: anywhere; }
.application-card p { color: var(--bf-muted); font-size: .92rem; max-width: 34rem; }
.application-grid.department-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.department-card { padding: 1.5rem; }
.department-card .feature-icon { margin-bottom: 1rem; flex-shrink: 0; }
.department-card h3 { font-size: 1.2rem; line-height: 1.3; }
.department-card p { font-size: .87rem; margin-bottom: 0; }
.department-note { color: var(--bf-muted); font-size: .78rem; max-width: 52rem; margin: 1.5rem 0 0; }
.application-featured { grid-row: span 2; background: #eef3ff; padding: 2.4rem; }
.application-featured h3 { font-size: 2rem; margin-top: 1rem; }
.application-featured p { font-size: 1rem; line-height: 1.85; }
.mini-example { border-top: 1px solid #bfcae3; margin-top: auto; padding: 1.8rem 0 .5rem; font-size: 1rem; color: #32436a; }
.mini-example span { display: block; color: #3e4f78; font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.card-detail { display: flex; justify-content: space-between; gap: .5rem; font-size: .74rem; font-weight: 600; color: var(--bf-accent); margin-top: auto; }
.application-wide { grid-column: span 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; background: #f4f7fd; }
.writing-tags { display: flex; flex-direction: column; gap: .7rem; }
.writing-tags span { padding: .8rem 1rem; background: white; border: 1px solid var(--bf-border); border-radius: .4rem; font-size: .8rem; }
.writing-tags i { color: var(--bf-accent); margin-right: .5rem; }
.workflow-section { background: var(--bf-paper); border-top: 1px solid var(--bf-border); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.workflow-grid article { border-top: 1px solid #b0bcd7; padding-top: 1.5rem; }
.step-number { color: #5e74a8; display: inline-block; font-size: 2.2rem; font-weight: 350; letter-spacing: -.06em; margin-bottom: 1.3rem; }
.workflow-grid p { color: var(--bf-muted); font-size: .9rem; }
.responsibility-section { background: #101e50; padding: 5.5rem 0; color: #c7d0e4; }
.responsibility-section h2 { color: #eaeffa; }
.responsibility-section .section-label { color: #a8c7ff; }
.responsibility-section p { margin: 1.4rem 0; max-width: 34rem; color: #b7c2da; }
.responsibility-section .text-link { color: #b9c9ee; }
.responsibility-list > div { display: flex; gap: 1.1rem; padding: 1.3rem 0; border-bottom: 1px solid #ffffff24; }
.responsibility-list > div:last-child { border-bottom: 0; }
.responsibility-list > div > i { color: #a8c7ff; font-size: 1.4rem; }
.responsibility-list h3 { color: #eaeffa; font-size: 1rem; letter-spacing: -.01em; }
.responsibility-list p { margin: .6rem 0 0; font-size: .85rem; }
.bridge-card { background: #e6ecfa; border: 1px solid #ccd8f4; border-radius: 1rem; padding: 3rem; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 3rem; }
.bridge-card h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.bridge-card p { color: var(--bf-muted); max-width: 33rem; margin: 1rem 0 1.5rem; }
.bridge-visual { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border: 1px solid #c4d2f2; border-radius: .75rem; background: #ffffffa8; transform: rotate(2deg); }
.bridge-visual > i { font-size: 2.1rem; margin-bottom: .7rem; color: var(--bf-accent); }
.bridge-visual > span { font-size: .8rem; padding: .7rem; background: #e9eefa; border-radius: .3rem; }
.product-bridge { padding-bottom: 1rem; }
.faq-section p { color: var(--bf-muted); }
.faq-list details { border-bottom: 1px solid var(--bf-border); }
.faq-list details:first-child { border-top: 1px solid var(--bf-border); }
.faq-list summary { position: relative; list-style: none; font-size: .98rem; font-weight: 600; cursor: pointer; padding: .9rem 2rem .9rem 0; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .4rem; font-size: 1.3rem; top: .6rem; color: var(--bf-accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > p { margin: 0; padding: 0 2rem 1rem 0; font-size: .92rem; line-height: 1.85; }
.contact-section { padding: 2.5rem 0; background: #edf2ff; border-top: 1px solid #c4d2f3; }
.contact-copy h2 { margin: .3rem 0 1rem; }
.contact-copy > p { color: var(--bf-muted); }
.contact-next { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-next li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.contact-next li > span { border: 1px solid #b9c5e0; border-radius: 50%; flex: 0 0 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; font-size: .65rem; color: #394c79; }
.contact-next strong { font-size: .88rem; font-weight: 600; }
.contact-next p { font-size: .83rem; color: var(--bf-muted); margin: .2rem 0 0; }
.contact-email { font-size: .9rem; overflow-wrap: anywhere; }
.contact-form { background: #fff; border: 1px solid #c7d4f3; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 12px 40px #24345308; }
.contact-form h3 { font-size: 1.3rem; }
.form-intro { font-size: .75rem; color: var(--bf-muted); margin-bottom: 1rem; }
.form-label { font-size: .82rem; font-weight: 600; margin-bottom: .45rem; }
.form-control { border: 1px solid #c3ccdf; border-radius: .4rem; padding: .8rem .9rem; font-size: .9rem; background: #fcfdff; color: var(--bf-ink); }
.form-control::placeholder { color: #5c6e99; font-size: .8rem; opacity: 1; }
.form-control:focus { border-color: var(--bf-accent); box-shadow: 0 0 0 3px #164bff18; }
.form-check-input:checked { background-color: var(--bf-accent); border-color: var(--bf-accent); }
.form-check-input:focus { box-shadow: 0 0 0 3px #164bff18; border-color: var(--bf-accent); }
.form-check-label { font-size: .78rem; }
.form-text { font-size: .73rem; color: var(--bf-muted); margin-top: .6rem; }
.form-footnote { text-align: center; font-size: .68rem; color: var(--bf-muted); margin: 1rem 0 0; }
.field-error { color: #ad3026; font-size: .82rem; margin-top: .35rem; }
.honeypot { position: absolute; left: -10000px; }
.site-footer { background: #09133b; color: #b6c0d9; padding: 2rem 0 1rem; }
.site-footer a { color: #c6d4f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .navbar-brand { padding: .5rem .35rem; border-radius: .5rem; background: #fff; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; padding-bottom: 1.5rem; }
.footer-main p { margin: 1rem 0 0; font-size: .85rem; }
.footer-main h2 { font-size: .74rem; letter-spacing: .02em; color: #e5ebfa; margin: .6rem 0 1.1rem; }
.footer-main > div > a:not(.navbar-brand) { display: block; font-size: .8rem; margin: .6rem 0; overflow-wrap: anywhere; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #ffffff22; padding-top: 1rem; font-size: .72rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* Aufenthaltsrecht */
.aufenthg-hero { background: #101e50; padding: 1.25rem 0 5rem; color: #fff; }
.aufenthg-eyebrow { color: #aabbe4; }
.aufenthg-hero h1 { font-size: clamp(2.7rem, 4.4vw, 4rem); color: #fff; margin: 1.3rem 0 1.5rem; line-height: 1.1; }
.aufenthg-hero h1 span { display: block; color: #a8c7ff; }
.aufenthg-hero h1 .aufenthg-title-line { color: #fff; }
.aufenthg-hero .lead { color: #bfc9e0; font-size: 1.05rem; line-height: 1.85; max-width: 36rem; }
.aufenthg-hero .btn-light { background: #e0eaff; border-color: #e0eaff; color: #101e50; }
.aufenthg-hero-points { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 1.8rem; font-size: .75rem; color: #c3d1f2; }
.aufenthg-hero-points i { margin-right: .3rem; color: #a8c7ff; }
.aufenthg-video-card { padding: 1rem; background: #ffffff0b; border: 1px solid #ffffff30; border-radius: 1rem; }
.aufenthg-video-label { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: space-between; padding: 0 .25rem .9rem; font-size: .78rem; }
.aufenthg-video-label .small { color: #bfc9e0; }
.video-slot { border-radius: .65rem; overflow: hidden; background: #e4eaf9; }
.video-slot iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.yt-consent-placeholder { background: #e4eaf9; color: #203054; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; text-align: center; }
.yt-consent-placeholder .small { color: #3f5077; }
.aufenthg-intro { padding: 1.25rem 0; border-bottom: 1px solid var(--bf-border); background: var(--bf-paper); }
.aufenthg-stat { display: flex; align-items: center; gap: 1rem; }
.aufenthg-stat > i { color: var(--bf-accent); font-size: 1.5rem; }
.aufenthg-stat strong, .aufenthg-stat span { display: block; }
.aufenthg-stat strong { font-size: .9rem; }
.aufenthg-stat span { color: var(--bf-muted); font-size: .75rem; }
.aufenthg-section, .aufenthg-process, .aufenthg-calculator, .aufenthg-about { padding: 2.5rem 0; }
.aufenthg-heading { max-width: 700px; margin: 0 0 1.5rem; }
.aufenthg-heading p, .aufenthg-process .row > div > p, .aufenthg-calculator .col-lg-5 > p, .aufenthg-about p { color: var(--bf-muted); margin-top: 1rem; }
.aufenthg-feature { border: 1px solid var(--bf-border); border-radius: .7rem; padding: 1.25rem; height: 100%; }
.aufenthg-feature-icon { margin-bottom: 1rem; }
.aufenthg-feature h3 { font-size: 1.2rem; }
.aufenthg-feature p { color: var(--bf-muted); font-size: .9rem; margin-bottom: 0; }
.aufenthg-process { background: var(--bf-paper); }
.aufenthg-step { position: relative; background: #fff; border: 1px solid var(--bf-border); padding: 1.25rem; border-radius: .7rem; height: 100%; }
.aufenthg-step > span { position: absolute; top: 1rem; right: 1.4rem; color: #52689a; font-size: 1.8rem; font-weight: 350; }
.aufenthg-step > i { color: var(--bf-accent); display: block; font-size: 1.5rem; margin: .5rem 0 1rem; }
.aufenthg-step p { color: var(--bf-muted); font-size: .9rem; margin-bottom: 0; }
.aufenthg-responsibility { display: flex; align-items: center; gap: 1.2rem; background: var(--bf-primary); padding: 1.5rem 2rem; color: #fff; border-radius: .7rem; margin-top: 1.5rem; }
.aufenthg-responsibility > i { font-size: 1.6rem; color: #a8c7ff; }
.aufenthg-responsibility strong, .aufenthg-responsibility span { display: block; }
.aufenthg-responsibility strong { font-size: .92rem; }
.aufenthg-responsibility span { color: #bfc9e0; font-size: .82rem; margin-top: .25rem; }
.aufenthg-calculator-note { display: flex; gap: .7rem; color: var(--bf-muted); font-size: .82rem; margin-top: 1.5rem; }
.aufenthg-calculator-card { padding: 2rem; border: 1px solid var(--bf-border); background: var(--bf-paper); border-radius: 1rem; }
.aufenthg-calculator-card .input-group-text { background: #dce5f8; border-color: #c3ccdf; color: #2e416d; }
.aufenthg-result { margin-top: 1.5rem; border-top: 1px solid #bcc7df; padding-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.aufenthg-result span, .aufenthg-result strong { display: block; }
.aufenthg-result span { color: var(--bf-muted); font-size: .75rem; }
.aufenthg-result strong { color: var(--bf-primary); font-size: clamp(1.35rem, 2.7vw, 2rem); font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; }
.calculator-time { color: #2f416a; font-size: .85rem; margin: 1rem 0 0; }
.calculator-assumptions { font-size: .72rem; color: var(--bf-muted); margin: 1.3rem 0 0; }
.aufenthg-about { background: var(--bf-paper); }

/* Shared utility, legal and consent pages */
.bg-light-blue { background: var(--bf-light); }
.service-icon, .icon { color: var(--bf-secondary); }
.badge-soft { background: #dfe6f8; color: #1f3464; }
.shadow-sm-rounded, .content-card { border-radius: 1rem; box-shadow: 0 8px 24px #09164a10; }
.check-list li { margin-bottom: .5rem; }
.equal-card { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.equal-card .section { margin-bottom: 1rem; }
.equal-card .grow { flex: 1 1 auto; }
.equal-card .end { margin-top: 1rem; }
.thank-you { min-height: 65vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 1.25rem; text-align: center; }
.legal-content { max-width: 920px; padding-top: 4rem; padding-bottom: 4rem; }
.legal-content h1 { margin-bottom: 2rem; }
.legal-content section { margin-bottom: 2rem; }
.legal-content h3 { font-size: 1.3rem; }
.page-header { background: var(--bf-primary); color: #fff; padding: 3.5rem 0; margin-bottom: 2rem; }
.page-header h1 { color: #fff; overflow-wrap: anywhere; }
.content-wrap { overflow-wrap: anywhere; }
.toc { position: sticky; top: 7rem; }
.toc .list-group-item { border: 0; padding: .5rem .25rem; font-size: .85rem; }
.toc a { color: var(--bf-primary); text-decoration: none; }
.badge-updated { background: #ffffff20; }
.muted { color: var(--bf-muted); }
.back-to-top { position: fixed; bottom: 1rem; right: 1rem; }
.cookie-bar { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 9999; color: var(--bf-ink); background: #fff; border: 1px solid #acb9d7; border-radius: .8rem; box-shadow: 0 5px 35px #09164a20; padding: 1.25rem; font-size: .8rem; max-height: 70vh; overflow-y: auto; }
.cookie-bar > .container { gap: 1rem !important; }
.cookie-bar .flex-grow-1 { flex-basis: 55%; }
.cookie-bar a.link-light { color: var(--bf-accent) !important; }
.cookie-bar .btn-light, .cookie-bar .btn-outline-light { background: #e5ebfa; color: var(--bf-primary); border: 1px solid #abb8d7; font-size: .78rem; }
.cookie-bar .btn-light:hover, .cookie-bar .btn-outline-light:hover { background: #cdd9f4; border-color: var(--bf-accent); }
.cookie-settings-page { background: var(--bf-paper); }
.cookie-settings-wrap { max-width: 1120px; padding-top: 4rem; padding-bottom: 5rem; }
.cookie-settings-hero { margin: 0 auto 2.5rem; max-width: 760px; }
.cookie-settings-hero .lead { color: var(--bf-muted); }
.cookie-settings-icon, .cookie-category-icon { display: inline-flex; align-items: center; justify-content: center; background: #d2ddf6; color: var(--bf-accent); border-radius: .8rem; width: 3rem; height: 3rem; font-size: 1.4rem; }
.cookie-settings-icon { width: 4rem; height: 4rem; margin-bottom: 1.25rem; }
.cookie-settings-eyebrow { color: var(--bf-accent); letter-spacing: .12em; }
.cookie-settings-note { padding: 1.25rem; border: 1px solid #afbddd; border-radius: .75rem; background: #e0e8f9; }
.cookie-setting-card { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--bf-border); border-radius: .8rem; background: #fff; }
.cookie-status { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .35rem .6rem; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.cookie-status-required, .cookie-status-inactive { background: #e5ebf9; color: #3d4c71; }
.cookie-status-active { background: #d2dcf5; color: #1e3469; }
.cookie-setting-description, .cookie-settings-footer { color: var(--bf-muted); }
@media (min-width: 1400px) { .container { max-width: 1200px; } }
@media (max-width: 1199.98px) {
  .audience-strip .container > div { gap: 1.3rem; }
  .site-nav .navbar-nav { gap: .1rem; }
  .demo-body { padding: 1.1rem; }
}
@media (max-width: 991.98px) {
  .application-grid.department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { padding: .8rem 0; }
  .site-nav .navbar-collapse { padding-top: 1rem; }
  .site-nav .nav-link { padding: .8rem .2rem; }
  .nav-cta { margin: .5rem 0; }
  .section-space, .contact-section, .aufenthg-section, .aufenthg-process, .aufenthg-calculator, .aufenthg-about { padding: 2rem 0; }
  .ai-hero, .aufenthg-hero { padding: 1.25rem 0 3.5rem; }
  .ai-hero h1 { font-size: clamp(3rem, 7vw, 4.2rem); }
  .hero-description { max-width: 38rem; }
  .demo-stage { max-width: 620px; margin: 1rem auto 0; padding-left: 0; }
  .demo-stage::before { right: -.7rem; left: 1.5rem; }
  .demo-body { padding: 1.5rem; }
  .demo-answer > p { min-height: 0; }
  .audience-strip .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .audience-strip .container > div { flex-wrap: wrap; gap: .8rem 2rem; }
  .heading-split { display: block; }
  .heading-split > p { margin-top: 1.2rem; }
  .workflow-grid { gap: 1.7rem; }
  .bridge-card { padding: 2rem; gap: 2rem; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: span 2; }
  .toc { position: static; }
}
@media (max-width: 767.98px) {
  .application-grid { grid-template-columns: 1fr; }
  .application-featured { grid-row: auto; }
  .application-wide { grid-column: auto; grid-template-columns: 1fr; gap: 1rem; }
  .application-featured .mini-example { margin-top: 1.5rem; }
  .workflow-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .workflow-grid article { padding-top: 1rem; }
  .step-number { margin-bottom: .6rem; }
  .bridge-card { grid-template-columns: 1fr; }
  .bridge-visual { transform: none; }
  .aufenthg-intro .row { --bs-gutter-y: 1.5rem; }
}
@media (max-width: 575.98px) {
  .application-grid.department-grid { grid-template-columns: 1fr; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .row.g-5 { --bs-gutter-x: 2rem; --bs-gutter-y: 2rem; }
  .navbar-brand { font-size: 1.35rem; }
  .brand-logo { width: 200px; height: 38px; }
  .section-space, .contact-section, .aufenthg-section, .aufenthg-process, .aufenthg-calculator, .aufenthg-about { padding: 1.75rem 0; }
  .ai-hero, .aufenthg-hero { padding-top: 1rem; }
  .ai-hero h1 { font-size: clamp(2.55rem, 10.5vw, 3.7rem); }
  .hero-description { font-size: .95rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-note { font-size: .72rem; }
  .demo-stage { padding-top: 1rem; }
  .demo-topbar { padding: .85rem; }
  .demo-body { padding: 1rem; }
  .demo-badge { font-size: .55rem; }
  .demo-prompt p, .demo-answer > p { font-size: .78rem; }
  .demo-answer { padding: .85rem; }
  .demo-answer-footer { font-size: .62rem; }
  .demo-caption { padding-left: .2rem; }
  .audience-strip { padding: 1.5rem 0; }
  .audience-strip .container > div { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
  .audience-strip div > span { font-size: .74rem; }
  .audience-strip i { font-size: .9rem; }
  .application-card, .application-featured { padding: 1.5rem; }
  .application-featured h3 { font-size: 1.8rem; margin-top: 0; }
  .section-heading { margin-bottom: 1.25rem; }
  .responsibility-section { padding: 3.5rem 0; }
  .bridge-card { padding: 1.5rem; }
  .contact-form { padding: 1.4rem; }
  .contact-next { margin: 1.25rem 0; }
  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-main > div:first-child { grid-column: auto; }
  .footer-bottom nav { gap: 1rem; }
  .aufenthg-hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); overflow-wrap: anywhere; }
  .aufenthg-hero .btn { width: 100%; }
  .aufenthg-video-card .btn { width: auto; }
  .aufenthg-responsibility { padding: 1.25rem; align-items: flex-start; }
  .aufenthg-calculator-card { padding: 1.25rem; }
  .aufenthg-result { grid-template-columns: 1fr; }
  .cookie-bar { bottom: .5rem; left: .5rem; right: .5rem; padding: 1rem; }
  .cookie-bar > .container { padding: 0; }
  .cookie-bar .ms-auto { margin-left: 0 !important; width: 100%; }
  .cookie-bar .btn { flex: 1; padding: .6rem; }
  .cookie-settings-wrap { padding-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-nav, .site-footer, .cookie-bar, .contact-section, .back-to-top { display: none !important; }
  body { color: #000; }
  .section-space, .aufenthg-section { padding: 1.5rem 0; }
  .demo-stage::before { display: none; }
}

