/* Layout adjustments */
.topbar-left {
    display: flex !important;
    align-items: center !important;
    padding-left: 0 !important;
}

.gva_topbar_menu {
    margin: 0 !important;
    padding: 0 !important;
}

/* Topbar user dropdown */
.topbar-right {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0.75rem;
}

.topbar-right .gva_topbar_account {
    margin-left: auto !important;
}

.topbar-right .topbar-user {
    position: relative;
    display: inline-flex;
    color: #fff !important;
}

.topbar-user[open] {
    z-index: 25;
}

.topbar-user__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.95rem;
    color: #fff !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topbar-user__toggle:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

.topbar-user__toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.topbar-user[open] .topbar-user__toggle {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.45);
}

.topbar-user__toggle::-webkit-details-marker,
.topbar-user__toggle::marker {
    display: none;
}

.topbar-user__icon {
    font-size: 1.6rem;
    color: #fff;
    line-height: 1;
}

.topbar-user__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.topbar-user__greeting {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.topbar-user__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.topbar-user__caret {
    font-size: 0.8rem;
    color: #fff;
}

.topbar-user__menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #e3e7ef;
    box-shadow: 0 8px 20px rgba(28, 39, 51, 0.15);
    padding: 0.75rem;
}

.topbar-user:not([open]) .topbar-user__menu {
    display: none;
}

.topbar-user__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar-user__item + .topbar-user__item {
    margin-top: 0.7rem;
}

.topbar-user__item a {
    display: block;
    color: #1C2733 !important;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none !important;
    padding: 0.65rem 0;
}

.topbar-user__item a:hover {
    color: #d66016 !important;
}

.topbar-user__menu nav {
    margin-top: 0.9rem;
}

.topbar-user__menu nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar-user__menu nav ul.menu {
    padding: 0;
    margin: 0;
}

.topbar-user__menu nav ul.menu li {
    margin: 0;
}

.topbar-user__menu nav li + li {
    margin-top: 0;
}

.topbar-user__menu nav a {
    display: block;
    color: #1C2733 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.55rem 0;
}

.topbar-user__menu nav a:hover {
    color: #d66016 !important;
}

.topbar-user__menu nav a[href$="/user"],
.topbar-user__menu nav a[href$="/user/"],
.topbar-user__menu nav a[href$="/user/logout"] {
    display: none !important;
}

@media (max-width: 640px) {
    .topbar-right {
        justify-content: flex-end !important;
        gap: 0.4rem;
    }

    .topbar-right .topbar-user {
        margin-left: 0;
    }

    .topbar-user__toggle {
        padding: 0.45rem 0.75rem;
        gap: 0.5rem;
    }

    .topbar-user__greeting {
        display: none;
    }

    .topbar-user__name {
        font-size: 1rem;
    }

    .topbar-user__menu {
        min-width: 200px;
        padding: 0.8rem;
    }
}
/* Topbar and header connection */
.topbar {
    border-bottom: none !important;
    background: #1C2733 !important;
    position: relative;
    z-index: 10;
    padding: 12px 0 !important;
    margin-bottom: 0 !important;
    min-height: 50px !important;
}

.header-main {
    background: #fff;
    margin-top: 0 !important;
    position: relative;
    z-index: 9;
    border-top: none !important;
}

/* ====================================
   SAFE HEADER RESPONSIVE ENHANCEMENT
   ==================================== */

/* Make header container wider but preserve Drupal columns */
.header-main .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 clamp(1rem, 4vw, 3rem) !important;
}

/* DON'T override the row flex properties - keep Drupal's col system */
.header-main-inner .row {
    width: 100% !important;
    /* REMOVED: display: flex and justify-content that broke it */
}

/* Work within the existing col-md-3 branding column */
.branding {
    /* Don't override Drupal's column system */
    display: flex !important;
    align-items: center !important;
}

/* Logo adjustments */
.branding img {
    width: clamp(160px, 14vw, 200px) !important;
    height: auto !important;
    max-width: 100% !important;
    transition: all 0.3s ease !important;
    transform-origin: center !important;
    filter: drop-shadow(0 0 0 transparent) !important;
    transform: scale(1.05) !important; /* 5% bigger */
    margin-top: 6px !important; /* Move down 2px */
}

/* Smooth logo switching states */
.branding img.switching {
    opacity: 0.5 !important;
    transform: scale(0.95) !important;
}


/* Work within the existing col-md-9 header-inner column */
.header-inner {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    height: 100% !important;
}

/* Make the main menu more responsive */
.main-menu {
    width: 100% !important;
}

.gva-navigation {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

.gva_menu.gva_menu_main {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: clamp(0.5rem, 1.5vw, 1rem) !important;
    justify-content: flex-end !important;
    transform: translateY(4px) !important;
}

.gva_menu.gva_menu_main > li > a {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem) !important;
    padding: clamp(0.5rem, 1vw, 1rem) clamp(0.8rem, 1.5vw, 1.2rem) !important;
}
/* Search region adjustments (not part of main menu) */
.gva-search-region {
  display: flex;
  align-items: center;
  transform: translate(-35px, 7px) !important;
}

/* ====================================
   TOPBAR RESPONSIVE ENHANCEMENT
   ==================================== */

/* Make topbar responsive too */
.topbar .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 clamp(1rem, 4vw, 3rem) !important;
}

.topbar .row {
    width: 100% !important;
}

/* ====================================
   COURSE GRID FIXES (UNCHANGED)
   ==================================== */

.gva-view-grid-inner.lg-block-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: clamp(1rem, 3vw, 2rem) !important;
    width: 100% !important;
}

.course-block-inner {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 350px !important;
}

.course-block .image,
.course-block .image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

.course-block .course-content {
    flex: 1 !important;
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.gva-view-grid-inner.lg-block-grid-4 .item-columns {
    width: 100% !important;
    min-width: 280px !important;
}

/* ====================================
   RESPONSIVE TYPOGRAPHY
   ==================================== */

h1, h2, h3, h4, h5, h6,
.widget.gsc-heading .title {
    font-size: clamp(1.1rem, 3vw, 2rem) !important;
    line-height: 1.3 !important;
}

body, p {
    font-size: clamp(1.6rem, 2vw, 1.05rem) !important;
    line-height: 1.6 !important;
}

/* ====================================
   MOBILE RESPONSIVENESS
   ==================================== */

@media (max-width: 768px) {
    /* Stack header elements on mobile */
    .header-main-inner .row {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .branding {
        order: 1 !important;
        justify-content: center !important;
        margin-bottom: 1rem !important;
    }
    
    .branding img {
        width: clamp(120px, 15vw, 140px) !important;
    }
    
    .header-inner {
        order: 2 !important;
        justify-content: center !important;
    }
    
    /* Make menu mobile-friendly */
    .gva_menu.gva_menu_main {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }
    
    /* Single column for course grid */
    .gva-view-grid-inner.lg-block-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .course-block-inner {
        min-height: 300px !important;
    }
}

/* ====================================
   TABLET AND DESKTOP ADJUSTMENTS
   ==================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .gva-view-grid-inner.lg-block-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    .gva-view-grid-inner.lg-block-grid-4 {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 1400px) {
    .gva-view-grid-inner.lg-block-grid-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ====================================
   PRESERVE EXISTING FUNCTIONALITY
   ==================================== */

/* Don't touch owl carousels */
.owl-carousel,
.owl-stage-outer,
.owl-stage,
.owl-item {
    /* Preserve all existing styles */
}

/* Better container spacing */
.container {
    padding-left: clamp(1rem, 3vw, 2rem) !important;
    padding-right: clamp(1rem, 3vw, 2rem) !important;
}

/* Images responsive */
img {
    max-width: 100% !important;
    height: auto !important;
}
/* ------------------------------------------------------------------------*/
/* ====================================
   STICKY HEADER - OPTION 1: SIMPLE FIXED
   ==================================== */

/* Simple fixed header - always sticky */
.header-main {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

/* Add padding to body to prevent content jump */
body {
    padding-top: 80px !important; /* Adjust based on your header height */
}

/* Keep topbar above the fixed header */
.topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
}

/* Adjust main header to sit below topbar */
.header-main {
    top: 40px !important; /* Adjust based on topbar height */
}

/* Update body padding for both topbar and header */
body {
    padding-top: 120px !important; /* topbar + header height */
}

/* ====================================
   MENU CENTERING FIX
   ==================================== */

/* First, let's fix the main header layout */
.header-main-inner .row {
    display: flex !important;
    align-items: center !important;
    min-height: 80px !important; /* Give it some breathing room */
}

/* Ensure the branding column behaves */
.header-main-inner .branding {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* This is the key fix - keep menu on the right but center it vertically */
.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important; /* Keep menu on the right */
    height: 100% !important;
    min-height: 80px !important; /* Match the row height */
}

/* Make sure the navigation container doesn't mess things up */
.gva-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important; /* Right-align the navigation */
    width: 100% !important;
}

/* The actual menu should be right-aligned */
.gva_menu.gva_menu_main {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important; /* Right-align menu items */
    gap: clamp(1rem, 2vw, 2rem) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Menu items should have consistent spacing */
.gva_menu.gva_menu_main > li {
    margin: 0 !important;
}

.gva_menu.gva_menu_main > li > a {
    padding: clamp(0.8rem, 1.5vw, 1.2rem) clamp(1rem, 2vw, 1.5rem) !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* ====================================
   TABLET AND DESKTOP SPECIFIC FIXES
   ==================================== */

/* For tablets and up - ensure proper centering */
@media (min-width: 768px) {
    .header-main-inner .row {
        align-items: center !important;
    }
    
    /* Make sure the header columns work together */
    .header-main-inner .col-md-3 {
        display: flex !important;
        align-items: center !important;
    }
    
    .header-main-inner .col-md-9 {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important; /* Keep menu on the right */
    }
    
    /* Override any conflicting styles */
    .main-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important; /* Right-align menu */
        width: 100% !important;
    }
    
    .area-main-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important; /* Right-align menu */
        width: 100% !important;
    }
    
    .area-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important; /* Right-align menu */
        width: 100% !important;
    }
}

/* ====================================
   Coloring
   ==================================== */

.icon.gv-icon-1083,
.icon.gv-icon-1084,
.icon.gv-icon-1087 {
  color: #d66016 !important;
}

.heading-line {
  background-color: #d66016 !important;
}

.block-info-title::before,
.block-info-title::after,
.field__item::before,
.field__item::after,
.gsc-heading .title::before,
.gsc-heading .title::after,
.widget .title::before,
.widget .title::after,
.heading-line span,
.course-block .field__label::before,
.testimonial-content .info .right .title a::before {
  color: #d66016 !important;
  border-color: #d66016 !important;
  fill: #d66016 !important;
}

.block-info-title::before {
  background-color: #d66016 !important;
}

.sub-title,
.sub-title span {
  color: #d66016 !important;
}

/* ====================================
   EXACT MENU FONT SIZING - MAIN & SUB MENUS
   ==================================== */

/* Main Menu Items - Even smaller, consistent Arial font */
.gva-navigation .gva_menu.gva_menu_main > li > a,
.navigation .gva_menu.gva_menu_main > li > a {
    font-size: clamp(10px, 0.9vw, 13px) !important; /* Nice and subtle! */
    font-family: 'Arial', Helvetica, sans-serif !important; 
    font-weight: 600 !important;
}

.gva-navigation .menu-item--profile {
  position: relative;
}

.gva-navigation .menu-item--profile > a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1c2733;
  padding: 0;
}

.gva-navigation .menu-item--profile > a .fa-user {
  font-size: 1.6rem;
}

.gva-navigation .menu-item--profile > a .icaret {
  display: none;
}

.gva-navigation .menu-item--profile:hover > a,
.gva-navigation .menu-item--profile:focus-within > a {
  color: #d66016;
}

/* Sub Menu Items - FORCE same exact font and size (nuclear approach) */
.gva-navigation .gva_menu.gva_menu_main .menu.sub-menu li a,
.navigation .gva_menu.gva_menu_main .menu.sub-menu li a,
.gva_menu.gva_menu_main .sub-menu li a,
.navigation .gva_menu .sub-menu > li > a {
    font-size: clamp(10px, 0.9vw, 13px) !important; /* EXACT same smaller size as main menu */
    font-family: 'Arial', Helvetica, sans-serif !important; /* EXACT same font as main menu */
    font-weight: 600 !important; /* EXACT same weight as main menu */
    padding: clamp(10px, 1.2vw, 20px) clamp(16px, 2vw, 24px) !important;
}

/* Make sure the dropdown arrows don't get affected */
.gva_menu.gva_menu_main .icaret.nav-plus {
    font-size: 16px !important; /* Keep arrows smaller */
    margin-left: 8px !important;
}

/* Optional: If you want to make the menu items taller to accommodate the bigger text */
.gva_menu.gva_menu_main > li > a {
    padding: 15px 20px !important;
    line-height: 1.2 !important;
}

/* Optional: Adjust sub-menu container if needed */
.gva_menu.gva_menu_main .menu.sub-menu {
    min-width: 200px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    padding-bottom: 8px !important;
    border: 1px solid #e3e7ef !important;
    border-radius: 6px !important;
}

/* Center profile submenu under the icon */
.gva-navigation .menu-item--profile .menu.sub-menu {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Reduce bottom spacing from last submenu item */
.gva_menu.gva_menu_main .menu.sub-menu li:last-child a {
    padding-bottom: 8px !important; /* Reduced padding but still some space */
}

/* Mobile responsive - smaller on tiny screens */
@media (max-width: 768px) {
    .gva-navigation .gva_menu.gva_menu_main > li > a,
    .gva-navigation .gva_menu.gva_menu_main .menu.sub-menu li a {
        font-size: 24px !important; /* Slightly smaller on mobile */
    }
}

.search-form__submit,
input.search-form__submit,
.search-block-form input[type="submit"],
.search-form input[type="submit"],
#edit-submit,
input.js-form-submit.form-submit[value="Suche"] {
    background-color: #d66016 !important; /* Your brand orange */
    border-color: #d66016 !important; /* Match the background */
    color: #fff !important; /* White text for contrast */
    transition: all 0.3s ease !important; /* Smooth hover effect */
}

/* Search button hover state */
.search-form__submit:hover,
input.search-form__submit:hover,
.search-block-form input[type="submit"]:hover,
.search-form input[type="submit"]:hover,
#edit-submit:hover,
input.js-form-submit.form-submit[value="Suche"]:hover {
    background-color: #b85514 !important; /* Slightly darker on hover */
    border-color: #b85514 !important; 
    color: #fff !important;
    transform: translateY(-1px) !important; /* Subtle lift effect */
    box-shadow: 0 2px 4px rgba(214, 96, 22, 0.3) !important; /* Nice shadow */
}

/* ====================================
   SEARCH BUTTON BRAND COLOR FIX
   ==================================== */

/* Search button - match brand color */
.search-form__submit,
input.search-form__submit,
.search-block-form input[type="submit"],
.search-form input[type="submit"],
#edit-submit,
input.js-form-submit.form-submit[value="Suche"] {
    background-color: #d66016 !important; /* Your brand orange */
    border-color: #d66016 !important; /* Match the background */
    color: #fff !important; /* White text for contrast */
    transition: all 0.3s ease !important; /* Smooth hover effect */
}

/* Search button hover state */
.search-form__submit:hover,
input.search-form__submit:hover,
.search-block-form input[type="submit"]:hover,
.search-form input[type="submit"]:hover,
#edit-submit:hover,
input.js-form-submit.form-submit[value="Suche"]:hover {
    background-color: #b85514 !important; /* Slightly darker on hover */
    border-color: #b85514 !important; 
    color: #fff !important;
    transform: translateY(-1px) !important; /* Subtle lift effect */
    box-shadow: 0 2px 4px rgba(214, 96, 22, 0.3) !important; /* Nice shadow */
}

/* ====================================
   TOPBAR BRAND COLOR TREATMENT
   ==================================== */

/* Login/Register links - brand color treatment */
.topbar-right .gva_topbar_menu li a {
    color: #d66016 !important; /* Brand color for login/register links */
    transition: all 0.3s ease !important;
}

.topbar-right .gva_topbar_menu li a:hover {
    color: #b85514 !important; /* Darker shade on hover */
    text-decoration: underline !important;
}

/* body .gva-body-page .button {
    background: #d66016 !important;
    background-color: #d66016 !important;
} */


/* ====================================
   BREADCRUMB BACKGROUND SIZING OPTIONS
   ==================================== */

/* Option 1: COVER - Fills entire area, might crop image (RECOMMENDED) */
.breadcrumb-style {
    background-image: url('/themes/gavias_edmix/images/breadcrumb.jpg?v=2025') !important;
    background-size: cover !important; /* Fills the whole area */
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Hide the original title */
.single-course .block-info .block-info-title {
    display: none !important;
}

/* Add a bigger "Inhalte" title above the body content */
.single-course .field--name-body::before {
    content: "Inhalte";
    display: block;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.5em !important; /* Made it bigger */
    color: #d66016; /* Your brand orange */
    border-bottom: 3px solid #d66016; /* Thicker line too */
    padding-bottom: 8px;
}

/* Make the description text bigger with more force */
.field--name-body .field__item p {
    font-size: 1.50em !important;
    line-height: 1.7 !important;
}

/* Even more specific targeting if the above doesn't work */
.single-course .field--type-text-with-summary .field__item p,
.course-block .field--name-body .field__item p {
    font-size: 1.2em !important;
    line-height: 1.5 !important;
    margin-bottom: 1em;
}


/* Clean, minimal slider arrows with your brand color */
.rev_slider .tp-rightarrow,
.rev_slider .tp-leftarrow,
.gavias_sliderlayer .tp-rightarrow,
.gavias_sliderlayer .tp-leftarrow {
    background-color: #d66016 !important;
    color: white !important;
    border: none !important; /* Remove the border completely */
}

/* Fix hover to stay your brand color */
.rev_slider .tp-rightarrow:hover,
.rev_slider .tp-leftarrow:hover,
.gavias_sliderlayer .tp-rightarrow:hover,
.gavias_sliderlayer .tp-leftarrow:hover {
    background-color: #d66016 !important; /* Keep same color on hover */
    color: white !important;
    border: none !important;
}

.highlight_content .desc p.p1 {
    font-size: 1.0em !important;
    line-height: 1.5 !important;
}

/* Override JavaScript opacity and make logos always visible */
.branding img {
    opacity: 1 !important;
    transform: scale(1.05) translateY(2px) !important;
    transition: transform 0.3s ease !important; /* Remove opacity from transition */
}


/* #################################################### Make footer container full width */

/* Remove the extra space in the outer footer container */
#footer {
    padding: 0 !important;           /* Remove all outer padding */
    margin: 0 !important;            /* Remove all outer margins */
    background: white !important;    /* Match your site background */
}

/* Make footer-inner fill the entire footer space */
#footer .footer-inner {
    padding: 0 !important;           /* Remove inner padding */
    margin: 0 !important;            /* Remove inner margins */
    background: white !important;    /* Match your site background */
}

/* Keep your content padding only where needed */
#footer .footer-center {
    padding-top: 10px !important;    /* Keep this for content spacing */
    padding-bottom: 10px !important; /* Keep this for content spacing */
}
#footer .footer-center .container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Make the footer column take full width */
#footer .footer-first {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Fix the table layout - make it responsive */
#footer .field__item table {
    width: 100% !important;
    margin-bottom: 10px !important;
    table-layout: fixed !important; /* This helps with column control */
}

/* Style the table cells properly */
#footer .field__item table td:first-child {
    width: 90% !important; /* Logo gets 90% of space */
    text-align: left !important;
    vertical-align: middle !important;
}

#footer .field__item table td:last-child {
    width: 10% !important; /* Links get 10% of space */
    vertical-align: middle !important;
}

/* Make logo really fill the space */
/* Let the image be its natural proportional size */
#footer .footer-center img {
    width: 100% !important;
    height: auto !important;           
    /* Remove max-height completely - let it be as tall as it needs */
    object-fit: contain !important;    
}

#footer .field__item ul li {
    margin-bottom: 8px !important;
}

#footer .field__item ul li a {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
}

#footer .field__item ul li a:hover {
    color: #d66016 !important; /* Your brand color */
    text-decoration: underline !important;
}

/* Remove extra paragraph spacing */
#footer .field__item p {
    margin: 0 !important;
}

/* Hide all table borders in footer */
#footer .field__item table {
    border: none !important;
    border-collapse: collapse !important;  /* Removes spacing between cells */
}

/* Hide borders on table cells */
#footer .field__item table td,
#footer .field__item table th {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Hide borders on table body and rows */
#footer .field__item table tbody,
#footer .field__item table tr {
    border: none !important;
}

.container.container-bg {
  max-width: 1400px; /* or 90%, or whatever works for your layout */
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: auto;
  margin-right: auto;
}

/* ############++++++++++++++++++++++++Clean Webform Styling*/


/* Clean form styling - full width */
.webform-submission-form {
    background: #fafafa !important;
    padding: 20px !important;
    margin: 15px 0 !important;
    border-radius: 4px !important;
    width: 100% !important;
    max-width: none !important;
    border: 1px solid #ddd !important;
    box-sizing: border-box !important;
}

/* Field spacing */
.webform-submission-form .form-item,
.webform-submission-form .js-form-item,
.webform-submission-form .form-wrapper {
    margin-bottom: 15px !important;
}

/* Labels */
.webform-submission-form label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 4px !important;
}

/* Input fields - smaller and cleaner */
.webform-submission-form input[type="text"],
.webform-submission-form input[type="email"],
.webform-submission-form input[type="tel"],
.webform-submission-form input[type="number"],
.webform-submission-form select {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    background: white !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
}

/* Simple focus */
.webform-submission-form input[type="text"]:focus,
.webform-submission-form input[type="email"]:focus,
.webform-submission-form input[type="tel"]:focus,
.webform-submission-form input[type="number"]:focus,
.webform-submission-form select:focus {
    border-color: #d66016 !important;
    outline: none !important;
}

/* Flexbox - no extra borders */
.webform-submission-form .webform-flexbox {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
}

.webform-submission-form .webform-flex {
    flex: 1 !important;
    min-width: 180px !important;
}

/* Fieldset - minimal styling */
.webform-submission-form fieldset {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
    background: none !important;
}

/* Checkbox - simple */
.webform-submission-form input[type="checkbox"] {
    margin-right: 6px !important;
    accent-color: #d66016 !important;
}

.webform-submission-form .form-checkbox + label {
    display: inline !important;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
}

/* Submit button - clean */
.webform-submission-form .form-submit {
    background-color: #d66016 !important;
    color: white !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    margin-top: 15px !important;
}

.webform-submission-form .form-submit:hover {
    background-color: #b8541c !important;
}

/* File upload - much smaller */
.webform-submission-form input[type="file"] {
    padding: 6px !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    background: white !important;
    font-size: 12px !important;
}

.webform-submission-form .form-submit[name*="upload"] {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    margin-top: 3px !important;
    margin-left: 8px !important;
}

.webform-submission-form .form-submit[name*="upload"]:hover {
    background-color: #e9e9e9 !important;
}

/* Description text */
.webform-submission-form .description,
.webform-submission-form .webform-element-description {
    font-size: 11px !important;
    color: #666 !important;
    margin-top: 2px !important;
    line-height: 1.3 !important;
}

/* Clean up wrappers */
.field--name-field-product-webform,
.field--name-field-product-webform .field__item,
.webform-ajax-form-wrapper {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .webform-submission-form {
        padding: 15px !important;
        margin: 10px 5px !important;
    }
    
    .webform-submission-form .webform-flexbox {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .webform-submission-form .webform-flex {
        min-width: 100% !important;
    }
}

/* Hide admin stuff */
.webform-submission-form .contextual {
    display: none !important;
}

/* ############################################################################# */

/* ====================================
   Profile Menu Item Visibility
   ==================================== */

/* Hide profile menu icon for anonymous users */
body:not(.logged-in) .gva-navigation .menu-item--profile {
  display: none !important;
}

/* ====================================
   Kontakt Newsletter Signup Embed
   ==================================== */

/* ====================================
   Login Page Adjustments
   ==================================== */
.page-user-login .content-main #edit-actions {
  margin-top: 2rem;
}

/* ====================================
   Zielgruppe icon (course meta)
   ==================================== */
.single-course .course-meta .meta-item .icon.icon-zielgruppe {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: FontAwesome;
  font-size: 22px;
  color: #444;
}
.single-course .course-meta .meta-item .icon.icon-zielgruppe::before {
  content: "\f0c0"; /* fa-users */
}

/* ====================================
   Kategorie icon (course meta)
   ==================================== */
.single-course .course-meta .meta-item .icon.icon-kategorie {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: FontAwesome;
  font-size: 22px;
  color: #444;
}
.single-course .course-meta .meta-item .icon.icon-kategorie::before {
  content: "\f02c"; /* fa-tags */
}

/* ====================================
   Ort icon (course meta)
   ==================================== */
.single-course .course-meta .meta-item .icon.icon-ort {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: FontAwesome;
  font-size: 22px;
  color: #444;
}
.single-course .course-meta .meta-item .icon.icon-ort::before {
  content: "\f041"; /* fa-map-marker */
}

/* ====================================
   Course filter form (views exposed form)
   ==================================== */

/* Filter form — override Drupal's display:table, use flexbox directly on the form */
#views-exposed-form-courses-block-2 {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 20px 24px 16px;
  margin-bottom: 28px;
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

/* Each dropdown field (direct child) */
#views-exposed-form-courses-block-2 > .form-item {
  flex: 1 1 180px;
  margin: 0 !important;
}

#views-exposed-form-courses-block-2 > .form-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #595a5c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#views-exposed-form-courses-block-2 .form-select {
  width: 100%;
  border-radius: 6px !important;
  border: 1px solid #ccc !important;
  padding: 9px 14px !important;
  background-color: #fff !important;
  font-size: 14px;
  color: #333;
}

/* Submit button — aligns with bottom of dropdowns */
#views-exposed-form-courses-block-2 > .form-actions {
  flex: 0 0 auto;
  margin: 0 !important;
  align-self: flex-end;
}
#views-exposed-form-courses-block-2 #edit-submit-courses {
  border-radius: 6px !important;
  padding: 10px 24px !important;
  white-space: nowrap;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
  #views-exposed-form-courses-block-2 {
    padding: 16px;
    flex-direction: column;
  }
  #views-exposed-form-courses-block-2 > .form-item,
  #views-exposed-form-courses-block-2 > .form-actions {
    width: 100%;
  }
  #views-exposed-form-courses-block-2 #edit-submit-courses {
    width: 100%;
  }
}

/* ====================================
   Equal-height course grid cards
   ==================================== */

/* Convert float-based grid to flexbox so all cards in a row stretch to same height */
.gva-view-grid-inner {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px 0;
}

/* Remove float (was the cause of unequal heights), keep as flex column */
.gva-view-grid-inner .item-columns {
  float: none !important;
  display: flex !important;
  flex-direction: column;
}

/* Anonymous wrapper div between .item-columns and .course-block */
.item-columns > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Card stretches to fill column */
.item-columns .course-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Card inner uses column flexbox */
.item-columns .course-block-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Course content grows to fill available space */
.item-columns .course-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Content inner (title, date, teacher) grows, pushing button down */
.item-columns .content-inner {
  flex: 1;
}

/* "Hier anmelden" button always sits at the bottom */
.item-columns .content-action {
  margin-top: auto;
}

/* ====================================
   Course meta: center-align rows
   ==================================== */
.single-course .course-meta {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
}
.single-course .course-meta .meta-item {
  float: none !important;
}

/* ====================================
   Course grid card — title font size
   ==================================== */
/* 20px too large, 15px too small — 17px fits 2-3 lines and stays readable */
.gva-view-grid .content-inner h4 {
  font-size: 17px !important;
  line-height: 23px !important;
}
/* ====================================
   Kursmaterial dashboard page — hide node title
   (Gavias "hide title" setting only fires on /node/NID, not embedded renders)
   ==================================== */
.kursmaterial-content .node__title {
  display: none;
}

/* Date/meta smaller than title for clear visual hierarchy */
.gva-view-grid .content-inner .course-date,
.gva-view-grid .content-inner .field--name-field-course-duration {
  font-size: 13px !important;
}

/* ====================================
   Kursmaterial "Materialien ansehen" button
   — small inline text link, not a full pill button
   ==================================== */
.btn-material {
  display: inline-block;
  margin-top: 8px;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #d66016 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em;
  text-transform: none !important;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}
.btn-material:hover {
  color: #b34e0e !important;
  text-decoration: underline;
}

/* ====================================
   Calendar view toggle — /uebersicht
   ==================================== */

/* Toggle bar (sits above the filter form) */
#integplan-calendar-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.cal-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  border: 2px solid #d66016;
  border-radius: 4px;
  background: #fff;
  color: #d66016;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.3;
}

.cal-toggle-btn:hover {
  background: #f9ece3;
  color: #b34e0e;
  border-color: #b34e0e;
}

.cal-toggle-btn.cal-toggle-active {
  background: #d66016;
  color: #fff;
  border-color: #d66016;
}

.cal-toggle-btn.cal-toggle-active:hover {
  background: #b34e0e;
  border-color: #b34e0e;
}

/* Calendar container */
#integplan-calendar-container {
  display: none;
  margin-top: 20px;
  min-height: 300px;
}

/* When calendar is active, hide the grid content but keep the filter form visible.
   .integplan-views-block is added to .views-element-container by JS — this element
   survives Drupal AJAX filter updates. Targets the Gavias grid wrapper and standard
   Views .view-content both, for robustness. */
body.integplan-cal-active .integplan-views-block .gva-view-grid,
body.integplan-cal-active .integplan-views-block .view-content {
  display: none !important;
}

/* Show the calendar container when active (positioned outside the AJAX zone). */
body.integplan-cal-active #integplan-calendar-container {
  display: block;
}

/* Hide the Anwenden submit button in calendar mode — filter changes are applied
   automatically via calendar refetch, so the button would cause confusion. */
body.integplan-cal-active #views-exposed-form-courses-block-2 [type="submit"],
body.integplan-cal-active #views-exposed-form-courses-block-2 .form-submit {
  display: none !important;
}

/* FullCalendar base overrides */
#integplan-calendar-container .fc {
  font-family: inherit;
  font-size: 14px;
}

#integplan-calendar-container .fc-toolbar-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

#integplan-calendar-container .fc-button {
  background: #d66016 !important;
  border-color: #d66016 !important;
  font-size: 13px;
}

#integplan-calendar-container .fc-button:hover {
  background: #b34e0e !important;
  border-color: #b34e0e !important;
}

#integplan-calendar-container .fc-button-active {
  background: #b34e0e !important;
  border-color: #b34e0e !important;
}

/* Default event color (fallback) */
#integplan-calendar-container .fc-event {
  background-color: #3a7fc1;
  border-color: #2e6aa8;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 3px;
}

#integplan-calendar-container .fc-event:hover {
  opacity: 0.88;
}

/* Allow event titles to wrap so the full course name is visible.
   FullCalendar clips long titles by default; this ensures they wrap instead. */
#integplan-calendar-container .fc-daygrid-event .fc-event-title {
  white-space: normal;
  overflow: visible;
  line-height: 1.25;
}

/* Give day-grid events a minimum height so even short titles aren't just a sliver. */
#integplan-calendar-container .fc-daygrid-event {
  min-height: 30px;
  align-items: flex-start;
}

/* Color-coding by Durchführungsform (field_course_category)
   Slugs generated server-side: iconv UTF-8→ASCII//TRANSLIT → strtolower → strip non-alphanumeric
   Terms: E-Learning, Fachtagung, Präsenzveranstaltung, Webinar */

/* Präsenzveranstaltung → prasenzveranstaltung */
#integplan-calendar-container .fc-event.integplan-cal-type-prasenzveranstaltung {
  background-color: #d66016 !important;  /* IntegPlan brand orange */
  border-color: #b34e0e !important;
}

/* Webinar → webinar */
#integplan-calendar-container .fc-event.integplan-cal-type-webinar {
  background-color: #e8971a !important;  /* amber / golden orange */
  border-color: #c97d10 !important;
}

/* E-Learning → elearning (excluded from calendar, kept for completeness) */
#integplan-calendar-container .fc-event.integplan-cal-type-elearning {
  background-color: #d66016 !important;
  border-color: #b34e0e !important;
}

/* Fachtagung → fachtagung */
#integplan-calendar-container .fc-event.integplan-cal-type-fachtagung {
  background-color: #a03a0a !important;  /* deep burnt orange / terracotta */
  border-color: #7d2c06 !important;
}

/* List view (mobile / listMonth) */
#integplan-calendar-container .fc-list-event:hover td {
  background: #f5f5f5;
}

#integplan-calendar-container .fc-list-event-dot {
  border-color: #d66016;
}

/* Mobile: compact toolbar */
@media (max-width: 600px) {
  #integplan-calendar-toggle {
    flex-wrap: wrap;
  }

  .cal-toggle-btn {
    font-size: 13px;
    padding: 6px 14px;
  }

  #integplan-calendar-container .fc-toolbar {
    flex-direction: column;
    gap: 8px;
  }

  #integplan-calendar-container .fc-toolbar-title {
    font-size: 15px;
  }
}

/* ── E-Learning fullscreen: hide site chrome ─────────────────────────── */
body.elearning-fs-open {
  overflow: hidden !important;
}

body.elearning-fs-open .header-main,
body.elearning-fs-open .topbar {
  display: none !important;
}

/* ── E-Learning "Kurs starten / Weitermachen" buttons — white text, all states.
   High-specificity selector beats any global a{} or a:visited{} from theme skins. */
.integplan-dashboard .elearning-modules-grid a.btn-elearning,
.integplan-dashboard .elearning-modules-grid a.btn-elearning:link,
.integplan-dashboard .elearning-modules-grid a.btn-elearning:visited,
.integplan-dashboard .elearning-modules-grid a.btn-elearning:hover,
.integplan-dashboard .elearning-modules-grid a.btn-elearning:focus,
.integplan-dashboard .elearning-modules-grid a.btn-elearning:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ── Zertifikatskurs progress page ─────────────────────────────────────────── */

.certificate-status-box {
  padding: 20px 24px;
  border-radius: 6px;
  margin-bottom: 30px;
}
.certificate-status-box--success {
  background: #e6f4ea;
  border-left: 5px solid #2e8b57;
}
.certificate-status-box--success h2 { color: #1a5c37; }
.certificate-status-box--warning {
  background: #fff8e1;
  border-left: 5px solid #f0a500;
}
.certificate-status-box--warning h2 { color: #8a5c00; }
.certificate-status-box--neutral {
  background: #f4f6f8;
  border-left: 5px solid #aab0b8;
}

.certificate-progress-header {
  margin-bottom: 24px;
}
.certificate-progress-header h2 { margin-bottom: 4px; }
.certificate-progress-header p { color: #555; margin: 0; }

.certificate-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.certificate-category {
  background: #f9fafc;
  border: 1px solid #dde1e7;
  border-radius: 6px;
  padding: 16px 20px;
}
.certificate-category--done {
  border-color: #2e8b57;
  background: #f0faf3;
}

.certificate-category__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.certificate-category__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.certificate-category__count {
  font-weight: 700;
  color: #333;
  font-size: 1rem;
}
.certificate-category--done .certificate-category__count { color: #2e8b57; }

.certificate-category__bar {
  height: 8px;
  background: #dde1e7;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.certificate-category__bar-fill {
  height: 100%;
  background: #3a7fc1;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.certificate-category--done .certificate-category__bar-fill { background: #2e8b57; }

.certificate-category__events {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: #555;
}
.certificate-category__events li { margin-bottom: 2px; }

/* ── Zertifikatskurs Booking Page ──────────────────────────────────────────── */
.termin-section { padding: 0; }

.termin-my-slot { margin-bottom: 32px; }
.termin-my-slot h2,
.termin-available h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; color: #333; }

.termin-slots-list { list-style: none; margin: 0; padding: 0; }
.termin-slot {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 6px; margin-bottom: 10px;
}
.termin-slot--available {
  background: #f5f9ff; border: 1px solid #d0e4ff;
}
.termin-slot--mine {
  background: #eaf6ed; border: 1px solid #a8d5b0;
  display: inline-flex; padding: 12px 20px; border-radius: 6px;
}
.termin-slot__icon { color: #2e8b57; font-size: 1.2rem; }
.termin-slot__date { font-weight: 500; color: #222; flex: 1; }
.termin-slot__badge {
  background: #2e8b57; color: #fff;
  font-size: 0.78rem; padding: 3px 10px; border-radius: 12px; font-weight: 600;
}
.termin-book-form { margin: 0; }
.termin-book-btn {
  background: #2a7fc1; color: #fff; border: none; padding: 8px 20px;
  border-radius: 4px; cursor: pointer; font-size: 0.9rem; font-weight: 500;
}
.termin-book-btn:hover { background: #1f6298; }
.termin-cancel-hint { font-size: 0.88rem; color: #666; margin-top: 10px; }
.termin-no-slots { color: #666; font-size: 0.95rem; padding: 16px 0; }

.certificate-cta-btn {
  display: inline-block; margin-top: 14px;
  background: #2a7fc1; color: #fff !important; padding: 10px 24px;
  border-radius: 4px; font-weight: 600; text-decoration: none;
}
.certificate-cta-btn:hover,
.certificate-cta-btn:focus { background: #1f6298; color: #fff !important; }

/* ── Certificate page — booked appointment box ─────────────────────────────── */
.certificate-termin-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 6px; margin-bottom: 20px;
  font-size: 0.95rem;
}
.certificate-termin-box--upcoming {
  background: #eaf6ed; border: 1px solid #a8d5b0; color: #1e6b38;
}
.certificate-termin-box--none {
  background: #f5f5f5; border: 1px solid #ddd; color: #666;
}
.certificate-status-box--neutral .certificate-termin-box {
  background: #eaf6ed; border: 1px solid #a8d5b0; color: #1e6b38;
  margin-top: 14px; margin-bottom: 0;
}
.certificate-termin-label { font-weight: 600; }
