/* ─── REVISA Intranet ─── */
/* Based on the original REVISA corporate website styling */

:root {
    --bs-primary: #12448d;
    --bs-primary-rgb: 18, 68, 141;
    --bs-info: #7a9dd1;
    --bs-info-rgb: 122, 157, 209;
    --bs-warning: #f27c21;
    --bs-warning-rgb: 242, 124, 33;
    --bs-light: #f5f5fa;
    --bs-light-rgb: 245, 245, 250;
    --bs-white-rgb: 255, 255, 255;
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: #3e4a59;
    --bs-body-bg: #fff;
    --paragraph-spacer: 1rem;
    --app-bevel-size-y: 100px;
    --app-bevel-rotation: -2.5deg;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--bs-body-color);
    font-family: var(--bs-body-font-family);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background: #fff;
}

/* ─── Typography (REVISA original) ─── */
.h1, .h2, .h3, h1, h2, h3, h4 {
    color: #12448d;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    margin-top: 0;
}
h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.3438rem + 1.1256vw); }
h3 { font-size: calc(1.3125rem + .75vw); }
h4 { font-size: calc(1.2813rem + .3756vw); }
@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.188rem; }
    h3 { font-size: 1.875rem; }
    h4 { font-size: 1.563rem; }
}
p {
    color: #3e4a59;
    font-size: 1.125rem;
    margin-bottom: var(--paragraph-spacer);
    margin-top: 0;
}
a { color: #12448d; text-decoration: underline; }
a:hover { color: #0e3671; }

/* ─── Container (REVISA original) ─── */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: .75rem;
    padding-right: .75rem;
    width: 100%;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ─── Row / Grid (REVISA original) ─── */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--bs-gutter-x) * -.5);
    margin-right: calc(var(--bs-gutter-x) * -.5);
    margin-top: calc(var(--bs-gutter-y) * -1);
}
.row > * {
    flex-shrink: 0;
    margin-top: var(--bs-gutter-y);
    max-width: 100%;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
    width: 100%;
}
.col { flex: 1 0 0%; }
.col-md-4 { width: 100%; }
.col-md-6 { width: 100%; }
.col-lg-5 { width: 100%; }
.col-lg-6 { width: 100%; }
.col-lg-7 { width: 100%; }
@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 auto; width: 33.33333%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .row-cols-md-3 > * { flex: 0 0 auto; width: 33.333%; }
}
@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.333%; }
}
@media (min-width: 1200px) {
    .col-xl-4 { flex: 0 0 auto; width: 33.333%; }
    .col-xl-6 { flex: 0 0 auto; width: 50%; }
}
.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
.g-0 { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.gy-5 { --bs-gutter-y: 3rem; }

/* ─── Buttons (REVISA original) ─── */
.badge, .btn, .lnk {
    font-weight: 500;
    letter-spacing: .0625rem;
    text-transform: uppercase;
}
.btn {
    --app-btn-min-width: 14.375rem;
    border: 2px solid transparent;
    border-radius: 0;
    font-size: .938rem;
    min-width: var(--app-btn-min-width);
    padding: 1.125rem 3.125rem;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out;
}
.btn-primary {
    background-color: #12448d;
    border-color: #12448d;
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #0f3a78;
    border-color: #0e3671;
    color: #fff;
}
.btn-warning, .btn.btn-warning {
    background-color: #f27c21;
    border-color: #f27c21;
    color: #fff;
}
.btn-info, .btn.btn-info {
    background-color: #7a9dd1;
    border-color: #7a9dd1;
    color: #fff;
}
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.btn-sm {
    padding: .5rem 1.25rem;
    min-width: auto;
    font-size: .813rem;
}
.btn.btn-mobile-round {
    --app-btn-min-height: 3.375rem;
    align-items: center;
    border-radius: 100px !important;
    display: inline-flex;
    font-size: .875em;
    justify-content: center;
    min-height: var(--app-btn-min-height);
    min-width: 0;
    padding: 0 2.125rem;
}

/* ─── Links with arrows (REVISA original) ─── */
.lnk {
    font-size: .938rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.lnk.lnk-icon-arrow-right::after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23.168' height='14.6'%3E%3Cpath d='m14.456 13.191 5.07-5.074H.001V6.111h19.148l-4.693-4.7 1.408-1.41 7.3 7.3-7.3 7.3Z' fill='%2312448D'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 1.438rem 1.438rem;
    content: "";
    height: 1.438rem;
    margin-left: .5rem;
    width: 1.438rem;
}
.lnk.lnk-info { color: var(--bs-info); }
.lnk.lnk-light { color: #fff; }
.lnk.lnk-icon-arrow-right.lnk-info::after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23.168' height='14.6'%3E%3Cpath d='m14.456 13.191 5.07-5.074H.001V6.111h19.148l-4.693-4.7 1.408-1.41 7.3 7.3-7.3 7.3Z' fill='%237A9DD1'/%3E%3C/svg%3E");
}
.lnk.lnk-icon-arrow-right.lnk-light::after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23.168' height='14.6'%3E%3Cpath d='m14.456 13.191 5.07-5.074H.001V6.111h19.148l-4.693-4.7 1.408-1.41 7.3 7.3-7.3 7.3Z' fill='%23fff'/%3E%3C/svg%3E");
}

/* ─── Cards (REVISA original) ─── */
.card {
    word-wrap: break-word;
    background-clip: border-box;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}
.card-body { flex: 1 1 auto; padding: 1rem; }
.card-img-top { border-top-left-radius: calc(.25rem - 1px); border-top-right-radius: calc(.25rem - 1px); width: 100%; }
.card-img-overlay {
    border-radius: calc(.25rem - 1px);
    bottom: 0; left: 0; padding: 1rem; position: absolute; right: 0; top: 0;
}
.shadow-card { box-shadow: 5px 5px 20px rgba(0,0,0,.2); }

/* ─── Ratio boxes (REVISA original) ─── */
.ratio { position: relative; width: 100%; }
.ratio::before { content: ""; display: block; padding-top: var(--bs-aspect-ratio); }
.ratio > * { height: 100%; left: 0; position: absolute; top: 0; width: 100%; }
.ratio-4x3 { --bs-aspect-ratio: 75%; }
.ratio-4x5 { --bs-aspect-ratio: 125%; }
.ratio-21x9 { --bs-aspect-ratio: 42.857%; }
.img-obj-fit, .ratio > img { object-fit: cover; }
.img-fluid { height: auto; max-width: 100%; }

/* ─── Bevel (REVISA original) ─── */
.bevel { min-height: 100px; position: relative; }
.bevel::after, .bevel::before {
    height: var(--app-bevel-size-y);
    left: 0;
    position: absolute;
    width: 100%;
}
.bevel.bevel-primary::after, .bevel.bevel-primary::before { background-color: #12448d; }
.bevel.bevel-warning::after, .bevel.bevel-warning::before { background-color: #f27c21; }
.bevel.bevel-light::after, .bevel.bevel-light::before { background-color: #f5f5fa; }
.bevel.bevel-top { padding-top: var(--app-bevel-size-y); }
.bevel.bevel-top::before {
    bottom: 100%;
    content: "";
    margin-bottom: calc(var(--app-bevel-size-y) / -2);
    transform: skewY(var(--app-bevel-rotation));
}
.bevel.bevel-bottom::after {
    content: "";
    margin-top: calc(var(--app-bevel-size-y) / -2);
    top: 100%;
    transform: skewY(var(--app-bevel-rotation));
}
.bevel.bevel-bottom-outline { margin-bottom: calc(var(--app-bevel-size-y) * 2); }
.bevel.bevel-zindex-2 { z-index: 2; }
@media (max-width: 575.98px) {
    .bevel { --app-bevel-size-y: 50px; }
    .bevel.bevel-bottom-outline { margin-bottom: var(--app-bevel-size-y); }
}

/* ─── Section system (clean bevel approach) ─── */
.sec {
    position: relative;
    padding: 6rem 0 5rem;
}
.sec--white { background: #fff; }
.sec--light { background: #f5f5fa; }
.sec--primary { background: #12448d; }
.sec--warning { background: #f27c21; }
.sec--dark { background: #1a1a2e; }
.sec--primary h2, .sec--primary h3, .sec--primary h4, .sec--primary p { color: #fff; }
.sec--warning h2, .sec--warning h3, .sec--warning h4, .sec--warning p { color: #fff; }
.sec--dark h2, .sec--dark h3, .sec--dark h4, .sec--dark p { color: #fff; }

/*
 * Bevel: a skewed pseudo-element of the SAME color as the section,
 * placed in the gap between sections. No z-index tricks needed.
 * The previous section gets extra padding-bottom via :has().
 */
.sec--bevel-top {
    padding-top: 8rem;
}
.sec--bevel-top::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -5px;
    right: -5px;
    height: 100px;
    background: inherit;
    transform: skewY(-2.5deg);
}

/* Give the section BEFORE a bevel section extra bottom padding */
.sec:has(+ .sec--bevel-top) {
    padding-bottom: 7rem;
}

/* Legacy compat */
.section-primary { background-color: #12448d; }
.section-primary h2, .section-primary h3, .section-primary p { color: #fff; }
.section-warning { background-color: #f27c21; }
.section-warning p, .section-warning h2, .section-warning h3 { color: #fff; }
.section-light { background-color: #f5f5fa; }

@media (max-width: 575.98px) {
    .sec { padding: 4rem 0 3.5rem; }
    .sec--bevel-top { padding-top: 5.5rem; }
    .sec--bevel-top::before { height: 60px; top: -30px; }
    .sec:has(+ .sec--bevel-top) { padding-bottom: 5rem; }
}

/* ─── List groups (REVISA original) ─── */
.list-group-lined {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--paragraph-spacer);
}
.list-group-lined > li {
    border-bottom: 1px solid #c8c8c8;
    font-weight: 500;
    letter-spacing: .5px;
    padding: 1.25rem 1rem;
    text-transform: uppercase;
}
.section-warning .list-group-lined > li { border-color: #fff; }

.list-group-icon-check { --list-icon-check-size: 1.625rem; }
.list-group-icon-check > li {
    display: flex;
}
.list-group-icon-check > li::before {
    background-color: rgba(122,157,209,.23);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.115' height='12.626'%3E%3Cpath d='m5.314 12.626-.848-.814L.308 7.823a1 1 0 0 1-.029-1.414 1 1 0 0 1 1.412-.029l3.311 3.175L11.291.432a1 1 0 0 1 1.393-.256 1 1 0 0 1 .256 1.391Z' fill='%2312448D'/%3E%3C/svg%3E");
    background-position: 50%;
    background-repeat: no-repeat;
    border-radius: 50%;
    content: "";
    height: var(--list-icon-check-size);
    margin-right: 1.875rem;
    min-width: var(--list-icon-check-size);
    width: var(--list-icon-check-size);
}

/* ─── Badge (REVISA original) ─── */
.badge {
    font-size: .813rem;
    padding: .625rem 1.625rem;
    border-radius: .25rem;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

/* ─── Keyfacts circles (REVISA original) ─── */
.circle-box {
    --circle-box-size: 25rem;
    --circle-dot-size: 1.25rem;
    height: var(--circle-box-size);
    width: var(--circle-box-size);
}
@media (max-width: 1499.98px) { .circle-box { --circle-box-size: 20rem; } }
@media (max-width: 1299.98px) { .circle-box { height: 100%; width: auto; } }

/* ─── Header / Navbar ─── */
.navbar-revisa {
    background-color: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow .3s ease, background-color .3s ease;
}
.navbar-revisa.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.12);
}
.navbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.navbar-brand-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.navbar-brand-logo svg {
    height: 28px;
    width: auto;
}
.navbar-brand-label {
    font-size: 1.25rem;
    font-weight: 300;
    color: #12448d;
    letter-spacing: .5px;
    border-left: 2px solid #c8c8c8;
    padding-left: .75rem;
}
.navbar-brand-logo:hover .navbar-brand-label { color: #0e3671; }

/* Nav links */
.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0;
}
.navbar-nav li { margin: 0; }
.navbar-nav a {
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 1.25rem;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #3e4a59;
    transition: color .15s ease, border-color .15s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}
.navbar-nav a:hover {
    color: #12448d;
    border-bottom-color: #f27c21;
}
.navbar-nav-admin {
    color: #7a9dd1 !important;
    margin-left: .5rem;
    border: 1px solid #7a9dd1 !important;
    border-bottom: 1px solid #7a9dd1 !important;
    height: auto !important;
    padding: .5rem 1.25rem !important;
    border-radius: 100px;
    font-size: .75rem !important;
    transition: all .15s ease !important;
}
.navbar-nav-admin:hover {
    background: #7a9dd1 !important;
    color: #fff !important;
    border-bottom-color: #7a9dd1 !important;
}

/* Burger menu (mobile) */
.navbar-burger {
    display: none;
    background: none;
    border: 1px solid #c8c8c8;
    border-radius: .25rem;
    width: 48px;
    height: 48px;
    cursor: pointer;
    padding: 12px 10px;
    flex-direction: column;
    justify-content: space-between;
}
.navbar-burger span {
    display: block;
    height: 2px;
    background: #3e4a59;
    border-radius: 1px;
    transition: all .2s ease;
}

/* Mobile nav overlay */
.navbar-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #12448d;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.navbar-mobile.open {
    opacity: 1;
    visibility: visible;
}
.navbar-mobile-inner {
    text-align: center;
}
.navbar-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.navbar-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.navbar-mobile li + li {
    margin-top: .5rem;
}
.navbar-mobile a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    padding: 1rem 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background .15s ease;
    border-radius: .25rem;
}
.navbar-mobile a:hover {
    background: rgba(255,255,255,.1);
}

@media (max-width: 991px) {
    .navbar-nav { display: none; }
    .navbar-burger { display: flex; }
}
@media (min-width: 992px) {
    .navbar-mobile { display: none !important; }
}

/* ─── Hero ─── */
.hero-section {
    background-color: #12448d;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-section .card { border: 0; border-radius: 0; }
.hero-section .card-img-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}
.hero-section .card-img-overlay::before {
    background: #12448d;
    background: linear-gradient(-90deg, rgba(18,68,141,0), #12448d 70%, #12448d);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}
.hero-section .card-img-overlay > * { position: relative; z-index: 1; }
.hero-section h1 { color: #fff; font-weight: 300; margin-bottom: .75rem; }
.hero-section p { color: rgba(255,255,255,.85); font-size: 1.25rem; }

/* ─── Nav tabs (REVISA original) ─── */
.nav-section {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}
.nav-section a {
    display: inline-block;
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: background .2s;
    border: 1px solid rgba(255,255,255,.1);
}
.nav-section a:hover {
    background: rgba(255,255,255,.22);
    color: #fff;
}

/* ─── Section label ─── */
.section-label {
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 500;
    margin-bottom: .5rem;
    display: block;
}
.section-label-muted { color: rgba(255,255,255,.55); }
.section-label-info { color: #7a9dd1; }

/* ─── Statement Box (REVISA original) ─── */
.asset_box_statement .card-img-overlay {
    background: linear-gradient(-90deg, #12448d, rgba(18,68,141,0) 75%, rgba(18,68,141,0));
}
@media (max-width: 991.98px) {
    .asset_box_statement .card-img-overlay {
        position: relative;
        bottom: auto; left: auto; right: auto; top: auto;
    }
}

/* ─── Occasion list ─── */
.occasion-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--paragraph-spacer);
}
.occasion-list > li {
    border-bottom: 1px solid rgba(255,255,255,.2);
    font-weight: 500;
    letter-spacing: .5px;
    padding: 1.25rem 1rem;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: .938rem;
}
.occasion-list > li:last-child { border-bottom: none; }
.occasion-date {
    font-size: .813rem;
    opacity: .65;
    letter-spacing: .25px;
    font-weight: 400;
    text-transform: none;
}

/* ─── Newcomer card ─── */
.newcomer-card { text-align: center; }
.newcomer-card .card-body { padding: 2rem 1.5rem; }
.newcomer-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.newcomer-card h4 { margin-bottom: .75rem; }
.newcomer-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.newcomer-facts li {
    padding: .75rem .5rem;
    border-bottom: 1px solid #eee;
    font-size: .938rem;
    color: #3e4a59;
    display: flex;
    align-items: center;
}
.newcomer-facts li:last-child { border-bottom: none; }
.newcomer-facts--preview { max-height: 120px; overflow: hidden; }
.newcomer-subtitle {
    font-size: .875rem;
    color: #6c757d;
    margin-bottom: .75rem;
    font-weight: 500;
}
.btn-mehr-erfahren {
    display: inline-block;
    margin-top: 1rem;
    padding: .625rem 1.5rem;
    background: #12448d;
    color: #fff;
    border: none;
    border-radius: .25rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}
.btn-mehr-erfahren:hover { background: #0e3671; }
.newcomer-card:hover .btn-mehr-erfahren { background: #0e3671; }

/* ─── Newcomer Modal ─── */
.nc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.nc-overlay.active { display: flex; }

.nc-modal {
    background: #fff;
    border-radius: .75rem;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,.3);
    animation: ncFadeIn .25s ease;
}
@keyframes ncFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.nc-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,.9);
    border: none;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    line-height: 1;
}
.nc-modal-close:hover { background: #fff; }

.nc-modal-body {
    display: flex;
    flex-direction: column;
}

.nc-modal-left {
    position: relative;
}
.nc-modal-left img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: .75rem .75rem 0 0;
    display: block;
}
.nc-modal-left-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    border-radius: 0 0 0 0;
}
.nc-modal-left-overlay h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: .125rem;
}
.nc-modal-left-overlay p {
    color: rgba(255,255,255,.8);
    font-size: .938rem;
    font-weight: 400;
    margin: 0;
}

.nc-modal-right {
    padding: 1.75rem 2rem 2rem;
}

.nc-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin-bottom: 1.25rem;
}
.nc-modal-badge {
    display: inline-block;
    background: #12448d;
    color: #fff;
    padding: .3rem .875rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .25px;
}
.nc-modal-badge--light {
    background: #f0f1f5;
    color: #3e4a59;
}

.nc-modal-quote {
    background: #f8f9fb;
    border-left: 3px solid #12448d;
    padding: 1.125rem 1.25rem;
    margin: 0 0 1.25rem;
    font-style: italic;
    font-size: .975rem;
    color: #3e4a59;
    border-radius: 0 .375rem .375rem 0;
    line-height: 1.6;
}

.nc-modal-desc {
    font-size: .938rem;
    line-height: 1.75;
    color: #3e4a59;
}

@media (min-width: 768px) {
    .nc-modal-body {
        flex-direction: row;
    }
    .nc-modal-left {
        width: 42%;
        flex-shrink: 0;
    }
    .nc-modal-left img {
        height: 100%;
        max-height: none;
        border-radius: .75rem 0 0 .75rem;
    }
    .nc-modal-left-overlay {
        border-radius: 0;
    }
    .nc-modal-right {
        width: 58%;
        overflow-y: auto;
        max-height: 85vh;
    }
}

.newcomer-facts li::before {
    content: "";
    display: inline-block;
    width: 1.625rem;
    height: 1.625rem;
    min-width: 1.625rem;
    background-color: rgba(122,157,209,.23);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.115' height='12.626'%3E%3Cpath d='m5.314 12.626-.848-.814L.308 7.823a1 1 0 0 1-.029-1.414 1 1 0 0 1 1.412-.029l3.311 3.175L11.291.432a1 1 0 0 1 1.393-.256 1 1 0 0 1 .256 1.391Z' fill='%2312448D'/%3E%3C/svg%3E");
    background-position: 50%;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin-right: 1rem;
}

/* ─── Event card ─── */
.event-card {
    background: #fff;
    border-radius: .25rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.125);
    display: flex;
    flex-direction: column;
}
.event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.event-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.event-card h4 { margin-bottom: 1rem; color: #12448d; }
.event-keyfacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.event-keyfact {
    background: #f5f5fa;
    padding: .75rem;
    border-radius: .25rem;
    font-size: .875rem;
    text-align: center;
    color: #12448d;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: auto;
    padding-top: 1.25rem;
}
.event-link {
    display: block;
    padding: .75rem 1rem;
    background: #12448d;
    color: #fff;
    border-radius: .25rem;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: background .2s;
}
.event-link:hover {
    background: #0e3671;
    color: #fff;
}

/* ─── News body clamp ─── */
.news-body-clamp {
    font-size: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Link cards ─── */
.link-card {
    background: #fff;
    padding: 2rem;
    border-radius: .25rem;
    height: 100%;
    border: 1px solid rgba(0,0,0,.125);
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}
.link-card:hover { box-shadow: 5px 5px 20px rgba(0,0,0,.15); }
.link-card .link-category {
    font-size: .813rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #f27c21;
    margin-bottom: .5rem;
}
.link-card h4 { font-size: 1.25rem; margin-bottom: .75rem; }
.link-card p { font-size: 1rem; flex-grow: 1; }

/* ─── Footer (REVISA original) ─── */
.footer-revisa {
    background-color: #12448d;
    color: #fff;
    padding: 3rem 0 2rem;
}
.footer-revisa p { color: rgba(255,255,255,.5); font-size: .875rem; margin: 0; }
.footer-revisa a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-revisa a:hover { color: #fff; }

/* ═══════════════════════════════ */
/* ─── Admin Styles ─── */
/* ═══════════════════════════════ */

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    background: #12448d;
    width: 240px;
    min-height: 100vh;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.admin-sidebar-brand {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .375rem;
    margin-bottom: 2rem;
    padding: 0 .75rem;
}
.admin-sidebar-brand svg { height: 22px; width: auto; }
.admin-sidebar-label {
    font-size: .75rem;
    font-weight: 400;
    color: rgba(255,255,255,.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar a {
    color: rgba(255,255,255,.7);
    display: block;
    padding: .75rem 1rem;
    text-decoration: none;
    border-radius: .25rem;
    font-size: .875rem;
    transition: background .15s;
}
.admin-sidebar a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-sidebar a.active { background: rgba(255,255,255,.15); color: #fff; font-weight: 500; }
.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-content { flex: 1; background: #f5f5fa; padding: 2rem; overflow-y: auto; }
.admin-content h2 { font-weight: 400; margin-bottom: 1.5rem; }

.admin-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-card h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: .25rem;
    border: 1px solid rgba(0,0,0,.125);
    text-decoration: none;
    display: block;
    transition: box-shadow .2s;
}
.admin-stat:hover { box-shadow: 5px 5px 20px rgba(0,0,0,.1); }
.admin-stat .number { font-size: 2.5rem; font-weight: 300; color: #12448d; line-height: 1; margin-bottom: .5rem; }
.admin-stat .label { font-size: .813rem; text-transform: uppercase; letter-spacing: .5px; color: #6c757d; font-weight: 500; }

/* Flash */
.flash-message { padding: .875rem 1.25rem; margin-bottom: 1rem; border-radius: .25rem; font-size: .875rem; }
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ─── Section Order List (Admin) ─── */
.section-order-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 550px;
}
.section-order-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    margin-bottom: .5rem;
    cursor: grab;
    font-weight: 500;
    transition: background .15s, box-shadow .15s;
    user-select: none;
}
.section-order-list li:hover { background: #e9ecef; }
.section-order-list li.dragging {
    opacity: .5;
    background: #dee2e6;
}
.section-order-list li.drag-over {
    border-color: #12448d;
    box-shadow: 0 0 0 2px rgba(18,68,141,.25);
}
.drag-handle {
    color: #adb5bd;
    font-size: 1.125rem;
    cursor: grab;
}

/* ─── Color Picker (Admin) ─── */
.color-picker-group {
    display: flex;
    gap: .375rem;
    align-items: center;
}
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
    padding: 0;
    outline: none;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active {
    border-color: #12448d;
    box-shadow: 0 0 0 2px rgba(18,68,141,.4);
    transform: scale(1.15);
}

/* Forms */
.form-control {
    border: 1px solid #ced4da;
    border-radius: .25rem;
    padding: .5rem .75rem;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.form-control:focus { border-color: #12448d; outline: none; box-shadow: 0 0 0 .25rem rgba(18,68,141,.25); }
.form-label { display: block; font-weight: 500; margin-bottom: .375rem; font-size: .875rem; }
.form-group { margin-bottom: 1rem; }
select.form-control { appearance: auto; }
textarea.form-control { min-height: 100px; resize: vertical; }

/* Table */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: .75rem; border-bottom: 1px solid #dee2e6; text-align: left; vertical-align: top; }
.table th { font-weight: 600; font-size: .813rem; text-transform: uppercase; letter-spacing: .5px; color: #6c757d; background: #f8f9fa; }
.table tr:hover { background: #f8f9fa; }

/* ─── Utilities (REVISA original) ─── */
.text-white { color: #fff !important; }
.text-primary { color: #12448d !important; }
.text-info { color: #7a9dd1 !important; }
.text-warning { color: #f27c21 !important; }
.bg-primary { background-color: #12448d !important; }
.bg-warning { background-color: #f27c21 !important; }
.bg-light { background-color: #f5f5fa !important; }
.bg-white { background-color: #fff !important; }
.fw-light { font-weight: 300; }
.fw-medium { font-weight: 500 !important; }
.ls-medium { letter-spacing: .5px; }
.text-hyphens { hyphens: auto; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-6 { margin-top: 4rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-6 { margin-bottom: 4rem !important; }
.me-2 { margin-right: .5rem !important; }
.ms-2 { margin-left: .5rem !important; }
.ms-auto { margin-left: auto !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pt-6 { padding-top: 4rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.pb-6 { padding-bottom: 4rem !important; }
.pb-7 { padding-bottom: 5rem !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-none { text-decoration: none !important; }
.rounded-0 { border-radius: 0 !important; }
.border-0 { border: 0 !important; }
.opacity-100 { opacity: 1 !important; }
@media (min-width: 768px) {
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .mb-md-0 { margin-bottom: 0 !important; }
    .mt-md-6 { margin-top: 4rem !important; }
    .pb-md-7 { padding-bottom: 5rem !important; }
}
@media (min-width: 992px) {
    .mt-lg-0 { margin-top: 0 !important; }
    .mb-lg-5 { margin-bottom: 3rem !important; }
}
@media (max-width: 768px) {
    .admin-sidebar { width: 180px; padding: 1rem .5rem; }
    .admin-content { padding: 1rem; }
}

/* ─── Scroll-Lock für Modals (z.B. Newcomer-Popup) ─── */
html.modal-open,
body.modal-open {
    overflow: hidden;
    touch-action: none;
}

/* ─── Seminars ─── */
.seminar-card {
    background: #fff;
    border-radius: .5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.seminar-card:hover { transform: translateY(-2px); }
.seminar-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.seminar-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.seminar-card-body h4 { margin-bottom: .75rem; color: #12448d; }
.seminar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin-bottom: .75rem;
}
.seminar-badge {
    display: inline-block;
    padding: .25rem .625rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: #e9ecf2;
    color: #12448d;
}
.seminar-badge--online   { background: #e1ecff; color: #12448d; }
.seminar-badge--praesenz { background: #fff1e0; color: #b54f0a; }
.seminar-badge--hybrid   { background: #ecf6e6; color: #2d6a16; }
.seminar-badge--spots    { background: #e6f4ea; color: #186b2c; }
.seminar-badge--full     { background: #fbe1e1; color: #a8201a; }
.seminar-desc { font-size: .95rem; margin-bottom: .75rem; color: #3e4a59; }
.seminar-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: .9rem;
}
.seminar-facts li { padding: .25rem 0; color: #3e4a59; }
.seminar-facts strong { color: #12448d; font-weight: 600; }
.seminar-register { margin-top: auto; }
.seminar-register-toggle {
    cursor: pointer;
    list-style: none;
    text-align: center;
    display: inline-block;
}
.seminar-register-toggle::-webkit-details-marker { display: none; }
.seminar-form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .75rem;
    padding: .75rem;
    background: #f5f5fa;
    border-radius: .375rem;
}
.seminar-form input,
.seminar-form textarea {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #d0d4dc;
    border-radius: .25rem;
    font: inherit;
    font-size: .9rem;
}
.seminar-form textarea { resize: vertical; min-height: 60px; }
.seminar-full-msg {
    color: #a8201a;
    font-size: .9rem;
    font-style: italic;
    margin: 0;
}

/* ─── Kommentare ─── */
.comments-block { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid rgba(0,0,0,.08); }
.sec--primary .comments-block,
.sec--warning .comments-block,
.sec--dark    .comments-block { border-top-color: rgba(255,255,255,.18); }
.comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
}
.comments-list > li {
    padding: .5rem .75rem;
    background: rgba(0,0,0,.03);
    border-radius: .375rem;
    margin-bottom: .375rem;
    font-size: .875rem;
    text-transform: none;
    letter-spacing: normal;
}
.sec--primary .comments-list > li,
.sec--warning .comments-list > li,
.sec--dark    .comments-list > li { background: rgba(255,255,255,.12); color: #fff; }
.comments-meta { font-size: .8rem; opacity: .75; margin-bottom: .15rem; }
.comments-body { line-height: 1.4; }
.comments-toggle {
    cursor: pointer;
    font-size: .8rem;
    color: #12448d;
    text-decoration: underline;
    list-style: none;
    user-select: none;
}
.comments-toggle::-webkit-details-marker { display: none; }
.sec--primary .comments-toggle,
.sec--warning .comments-toggle,
.sec--dark    .comments-toggle { color: rgba(255,255,255,.9); }
.comments-form {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    margin-top: .5rem;
    padding: .625rem;
    background: rgba(0,0,0,.04);
    border-radius: .375rem;
}
.sec--primary .comments-form,
.sec--warning .comments-form,
.sec--dark    .comments-form { background: rgba(255,255,255,.15); }
.comments-form input,
.comments-form textarea {
    padding: .375rem .5rem;
    border: 1px solid #d0d4dc;
    border-radius: .25rem;
    font: inherit;
    font-size: .85rem;
}
.comments-form textarea { resize: vertical; min-height: 50px; }
.comments-form button { align-self: flex-start; }

/* ─── Admin-Tabelle + Badge ─── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.admin-table th,
.admin-table td {
    text-align: left;
    padding: .625rem .75rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}
.admin-table th {
    background: #f5f5fa;
    color: #12448d;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.admin-badge {
    display: inline-block;
    padding: .25rem .625rem;
    background: #12448d;
    color: #fff;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

/* ─── Flash-Toasts (öffentliche Seite) ─── */
.flash-stack {
    position: fixed;
    top: 90px;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 360px;
    transition: opacity .4s;
}
.flash-stack--hidden { opacity: 0; pointer-events: none; }
.flash-toast {
    padding: .75rem 1rem;
    border-radius: .375rem;
    background: #fff;
    border-left: 4px solid #12448d;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    font-size: .9rem;
}
.flash-toast--success { border-left-color: #2d6a16; }
.flash-toast--error   { border-left-color: #a8201a; }
