/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-weight: 300;
    font-size: 18px;
    line-height: 1.9;
    width: 100%;
    overflow-x: hidden;
}

a {
    transition: .3s all ease;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

h1, h2, h3, h4, h5 {
    color: #000;
    font-family: "Josefin Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

/* ============================================================
   LAYOUT – kein .wrap mehr, volle Breite
   ============================================================ */
.wrap {
    width: 100%;
    margin: 0;
    background: #fff;
}

/* Innerer Container – fluid mit komfortablen Abständen */
.container,
.container-fluid {
    width: 100%;
    padding-right: 2rem;
    padding-left: 2rem;
    margin-right: auto;
    margin-left: auto;
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    font-weight: 400;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

header .navbar {
    padding: 0 2rem;
    background: transparent !important;
    font-weight: bold;
    width: 100%;
}

header .navbar-brand {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-weight: 400;
}

header .navbar .navbar-nav.absolute-right {
    margin-left: auto;
}

header .navbar .nav-link {
    padding: 1.5rem 1rem;
    font-size: 17px;
    outline: none !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: color .2s ease;
}

header .navbar .dropdown-menu {
    font-size: 16px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    min-width: 13em;
    margin-top: 0;
}

header .navbar .dropdown-menu .dropdown-item {
    padding: 10px 20px;
    transition: background .2s ease;
}

header .navbar .dropdown-menu .dropdown-item:hover,
header .navbar .dropdown-menu .dropdown-item.active {
    background: cornflowerblue;
    color: #fff;
}

.logo-top {
    display: inline-flex;
    align-items: center;
}

.top-bar {
    background: cornflowerblue;
    padding: 8px 2rem;
    width: 100%;
}

.top-bar .social a,
.top-bar .search-icon a {
    color: #fff;
    opacity: .6;
    padding: 5px;
    transition: opacity .2s;
}

.top-bar .social a:hover,
.top-bar .search-icon a:hover {
    opacity: 1;
}

.top-bar .social { text-align: left; }
.top-bar .search-icon { text-align: right; }

.navbar .container > div {
    border-bottom: 1px solid #e6e6e6;
}

/* ============================================================
   HERO
   ============================================================ */
.site-hero {
    background-size: cover;
    background-position: center center;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

.site-hero.overlay {
    position: relative;
}

.site-hero.overlay::before {
    content: "";
    background: rgba(0,0,0,0.45);
    position: absolute;
    inset: 0;
    z-index: 1;
}

.site-hero > .container {
    position: relative;
    z-index: 2;
}

.site-hero .site-hero-inner {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

.site-hero h1,
.site-hero p {
    color: #fff;
    line-height: 1.4;
}

.site-hero h1 {
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.site-hero .lead {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #fff;
    opacity: .9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.site-hero-innerpage,
.site-hero-innerpage .site-hero-inner {
    min-height: 50vh;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.site-section {
    padding: 4rem 0;
    width: 100%;
}

.site-section.py-md { padding: 3rem 0; }
.site-section.py-sm { padding: 1rem 0; }
.site-section.py-lg { padding: 6rem 0; }

/* ============================================================
   BANNER
   ============================================================ */
.banner {
    padding-right: 0 !important;
    padding-left: 0 !important;
    width: 100%;
}

.banner .alert {
    margin-bottom: 1px;
    border: 1px solid transparent;
    border-radius: 0 !important;
}

.banner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.alert-custom {
    background: #0066AA;
    color: #fff;
}

.banner-link {
    text-decoration: underline;
    color: white;
    transition: all .3s ease-in;
}

.banner-link:hover { color: #f4f4f4; }

.alert-dismissible { padding-right: 20px !important; }

.alert-dismissible .close {
    position: relative;
    top: 6px;
    display: inline-block;
    color: #0066AA;
    opacity: 1;
    background: #fff;
    border-radius: 50%;
    padding: 8px 14px;
}

/* ============================================================
   CARDS & BOXES
   ============================================================ */
.box {
    overflow: hidden;
    border-radius: 12px;
    display: block;
    transition: transform .25s ease, box-shadow .25s ease;
}

.box img {
    width: 100%;
    transition: transform .3s ease;
}

.box .box-body {
    padding: 24px;
    border: 1px solid #e9ecef;
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: .3s all ease;
}

.box h2 {
    font-size: 18px;
    font-family: "Josefin Sans", sans-serif;
}

.box.hover:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.box.hover:hover img { transform: scale(1.05); }
.box.hover:hover .box-body { background: cornflowerblue; color: #fff; border-color: cornflowerblue; }
.box.hover:hover h2 { color: #fff; }

/* ============================================================
   BLOG ENTRIES
   ============================================================ */
.blog-entries .blog-entry {
    display: block;
    transition: .3s all ease;
    margin-bottom: 30px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.blog-entries .blog-entry:hover,
.blog-entries .blog-entry:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
}

.blog-entries .blog-entry .blog-content-body {
    padding: 20px;
    border: 1px solid #efefef;
    border-top: none;
}

.blog-entries .blog-entry h2 { font-size: 18px; line-height: 1.5; }
.blog-entries .blog-entry p  { font-size: 14px; color: gray; }
.blog-entries .post-meta      { margin-bottom: 20px; font-size: 14px; color: #b3b3b3; }

/* ============================================================
   MEDIA FEATURE
   ============================================================ */
.media-feature {
    padding: 32px;
    transition: .2s all ease-out;
    background: #fff;
    z-index: 1;
    position: relative;
    border-bottom: 4px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.media-feature .icon { font-size: 56px; color: cornflowerblue; }
.media-feature h3    { font-size: 16px; text-transform: uppercase; }

.media-feature:hover,
.media-feature:focus {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-bottom: 4px solid cornflowerblue;
}

/* ============================================================
   MEDIA CUSTOM
   ============================================================ */
.media-custom {
    background: #fff;
    transition: .3s all ease;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    top: 0;
}

.media-custom:hover,
.media-custom:focus {
    top: -4px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.media-custom:hover img,
.media-custom:focus img { transform: scale(1.05); }

.media-custom img { transition: .3s all ease; }
.media-custom .media-body { padding: 28px; }
.media-custom .media-body h3 { font-size: 20px; }

/* ============================================================
   OWL CAROUSEL / SLIDER
   ============================================================ */
.owl-carousel.home-slider { z-index: 1; position: relative; width: 100%; }

.owl-carousel.home-slider .slider-item {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

.owl-carousel.home-slider .slider-item::before {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    content: "";
}

.owl-carousel.home-slider .slider-item .slider-text {
    color: #fff;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
}

.owl-carousel.home-slider .slider-item .slider-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
}

.owl-carousel.home-slider .slider-item .slider-text p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #fff;
    font-weight: 300;
}

.owl-carousel.home-slider .owl-nav {
    opacity: 0;
    visibility: hidden;
    transition: .3s all ease;
}

.owl-carousel.home-slider:hover .owl-nav {
    opacity: 1;
    visibility: visible;
}

.owl-carousel .owl-nav { position: absolute; top: 50%; width: 100%; }

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
    position: absolute;
    transform: translateY(-50%);
}

.owl-carousel .owl-nav .owl-prev { left: 1.5rem !important; }
.owl-carousel .owl-nav .owl-next { right: 1.5rem !important; }

.owl-carousel .owl-dots { text-align: center; }
.owl-carousel .owl-dots .owl-dot {
    width: 10px; height: 10px; margin: 5px;
    border-radius: 50%; background: #e6e6e6;
    display: inline-block;
}
.owl-carousel .owl-dots .owl-dot.active { background: cornflowerblue; }

.owl-carousel.home-slider .owl-dots {
    position: absolute;
    bottom: 2rem;
    width: 100%;
}

/* ============================================================
   BUTTONS & FORMS
   ============================================================ */
.btn, .form-control {
    outline: none;
    box-shadow: none !important;
    border-radius: 8px;
}

.btn {
    transition: .25s all ease;
    padding: 10px 28px;
    font-weight: 500;
}

.btn.btn-primary {
    color: #fff;
    border-width: 2px;
    border-radius: 8px;
}

.btn.btn-primary:hover,
.btn.btn-primary:active,
.btn.btn-primary:focus {
    border-color: cornflowerblue;
    background: cornflowerblue;
    box-shadow: 0 4px 16px rgba(100,149,237,0.35) !important;
}

.btn.btn-outline-white {
    border-width: 2px;
    border-color: #fff;
    color: #fff;
    border-radius: 8px;
}

.btn.btn-outline-white:hover { background: #fff; color: #000; }

.btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important; }

.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 16px;
    font-size: 16px;
    transition: border-color .2s;
}

.form-control:focus { border-color: cornflowerblue; outline: none; }

textarea.form-control { height: inherit; }

/* ============================================================
   CATEGORY BADGE
   ============================================================ */
.category {
    display: inline-block;
    background: cornflowerblue;
    padding: 3px 12px;
    line-height: 1.5;
    font-size: 12px;
    border-radius: 20px;
    text-transform: uppercase;
    color: #fff !important;
    margin-right: 8px;
    letter-spacing: .1em;
}

/* ============================================================
   A-BLOCK
   ============================================================ */
.a-block {
    display: block;
    background-size: cover;
    background-position: center center;
    padding: 40px 60px;
    position: relative;
    margin-bottom: 24px;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
}

.a-block::before {
    background: #000;
    position: absolute;
    content: "";
    z-index: 1;
    opacity: .3;
    transition: .3s all ease;
    inset: 0;
    border-radius: 16px;
}

.a-block:hover::before { opacity: .45; }

.a-block .text { position: relative; z-index: 2; }
.a-block .text h3,
.a-block .text p { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1a1a2e;
    padding: 4rem 0 2rem;
    width: 100%;
}

.site-footer h3 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .2em;
}

.site-footer p  { color: rgba(255,255,255,0.55); }
.site-footer a  { color: rgba(255,255,255,0.8); transition: opacity .2s; }
.site-footer a:hover { opacity: .5; }

.blog-entry-footer .post-meta { color: white; font-size: 15px; }

.copyright { font-size: 13px; color: rgba(255,255,255,0.4); }
.border-t   { border-top: 1px solid rgba(255,255,255,0.1); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { padding-left: 3rem; }

.sidebar-box {
    margin-bottom: 3rem;
    font-size: 15px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.sidebar-box .heading {
    font-size: 17px;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid cornflowerblue;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.bg {
    position: absolute;
    width: 100%; height: 100%;
    left: 0; top: 0;
    z-index: -1;
    filter: blur(10px);
}

.truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 1px;
}

.text-black  { color: #000 !important; }
.heading     { color: #000; }
.img-bg      { background-size: cover; }
.overflow    { position: relative; overflow-x: hidden; }

.heading.border-bottom {
    position: relative;
    padding-bottom: 24px;
}

.heading.border-bottom::before {
    bottom: 0;
    position: absolute;
    content: "";
    width: 50px;
    height: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: cornflowerblue;
    border-radius: 2px;
}

.validation_error { color: red; font-style: italic; }
input.validation_error { border: 1px solid red; font-style: normal; color: #495057; }

.thumbnail {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    height: 120px;
    display: inline-block;
    margin-left: 15px;
    transition: box-shadow .2s;
}
.thumbnail:hover { box-shadow: 0 0 0 3px rgba(100,149,237,0.4); }

.card-footer:hover { cursor: pointer; }
#component_list { color: black !important; }
.steps { text-align: center; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { margin-bottom: 4rem; text-align: center; display: block; }

.pagination li { margin: 0 2px 3px; display: inline-block; }

.pagination li a {
    border-radius: 50% !important;
    width: 42px; height: 42px;
    line-height: 42px;
    padding: 0; margin: 0;
    display: inline-block;
    text-align: center;
    transition: .2s;
}

.pagination li a:hover {
    background: cornflowerblue;
    color: #fff;
    border: 1px solid transparent;
}

.pagination li.active a { border: 1px solid transparent !important; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
    position: fixed;
    width: 96px; height: 96px;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease-out, visibility 0s linear .2s;
    z-index: 9999;
}

#loader.fullscreen {
    left: 0; top: 0;
    width: 100%; height: 100%;
    transform: none;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

#loader.show {
    transition: opacity .4s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

#loader .circular {
    animation: loader-rotate 2s linear infinite;
    position: absolute;
    left: calc(50% - 24px);
    top: calc(50% - 24px);
    display: block;
}

#loader .path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: loader-dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
}

@keyframes loader-rotate { 100% { transform: rotate(360deg); } }

@keyframes loader-dash {
    0%   { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50%  { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; }
    100% { stroke-dasharray: 89, 200; stroke-dashoffset: -136px; }
}

/* ============================================================
   ELEMENT ANIMATE
   ============================================================ */
.element-animate { opacity: 0; visibility: hidden; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .sidebar { padding-left: 0; margin-top: 2rem; }

    header .navbar { padding: 0 1rem; }

    .a-block { padding: 24px; height: auto; min-height: 220px; }

    .site-hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); }

    .owl-carousel.home-slider .slider-item { height: 70vh; min-height: 400px; }
}

@media (max-width: 767.98px) {
    header .navbar { background: #f8f9fa !important; }
    header .navbar .nav-link { padding: .6rem 0; }

    .top-bar { padding: 8px 1rem; }

    .container { padding-right: 1rem; padding-left: 1rem; }

    .site-section { padding: 2.5rem 0; }
}
