/* ============================================================
   RXF-solution.at – Main Stylesheet
   Design: Modern Engineering, Premium Cyan Accent, Fluid Grids
   ============================================================ */

:root {
    --primary: #00A6EB;          /* Blau CI */
    --primary-dark: #008cc2;     /* Darker Blau CI for hovers */
    --accent: #00A6EB;
    --dark-bg: #1B1C20;          /* Schwarz CI */
    --light-bg: #f9fbfd;         
    --white: #ffffff;
    --text-main: #1B1C20;        /* Schwarz CI for main text */
    --text-muted: #626262;       
    --border-color: #AEAFB2;     /* Grau CI for borders/lines */
    --danger: #CC3300;           /* Rot CI */
    --font-heading: 'Audiowide', sans-serif;
    --font-body: 'Ubuntu', sans-serif;
    --trans: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 166, 235, 0.15);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.625;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--trans);
}

a:hover {
    color: var(--primary-dark);
}

/* ── LAYOUT CONTAINER ──────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center !important;
}

/* ── HEADER & NAVIGATION ───────────────────────────────────── */
#Header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

#Top_bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
}

#logo img {
    height: 44px;
    width: auto;
    transition: var(--trans);
}

#logo:hover img {
    opacity: 0.9;
}

/* Desktop Navigation Menu */
#menu {
    display: block;
}

.menu-main {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-main li a {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.1px;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
}

.menu-main li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--trans);
}

.menu-main li a:hover {
    color: var(--primary);
}

.menu-main li a:hover::after,
.menu-main li.active a::after {
    width: 100%;
}

.menu-main li.active a {
    color: var(--primary);
}

/* AI Portal Link - Special Styling */
.menu-main li.menu-item-ai a,
.menu-mobile li.menu-item-ai a {
    color: #ff9f43 !important;
    font-weight: bold;
    border: 1px solid #ff9f43;
    padding: 6px 12px;
    border-radius: 4px;
    transition: var(--trans);
}

.menu-main li.menu-item-ai a::after {
    display: none;
}

.menu-main li.menu-item-ai a:hover,
.menu-mobile li.menu-item-ai a:hover {
    background-color: #ff9f43;
    color: var(--dark-bg) !important;
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.5);
}

/* Mobile Toggle Hamburger Button */
.responsive-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 105;
}

.hamburger-box {
    width: 26px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 26px;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.hamburger-inner {
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Hamburger active transformation */
.responsive-menu-toggle.active .hamburger-inner {
    transform: rotate(45deg);
}

.responsive-menu-toggle.active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.responsive-menu-toggle.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* ── MOBILE MENU DRAWER ──────────────────────────────────────── */
#Side_slide {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #111422;
    z-index: 104;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

#Side_slide.active {
    right: 0;
}

#Side_slide .close-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

#Side_slide .close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: var(--trans);
}

#Side_slide .close-btn:hover {
    color: var(--primary);
}

.menu-mobile {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-mobile li a {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 16px;
    display: block;
    padding: 8px 0;
}

.menu-mobile li.active a,
.menu-mobile li a:hover {
    color: var(--primary);
}

#body_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 103;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

#body_overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── HOMEPAGE SLIDER ─────────────────────────────────────────── */
.mfn-main-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slider-container .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.mfn-main-slider .slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 1, 25, 0.8) 0%, rgba(0, 1, 25, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 3;
    pointer-events: none;
}

.slider-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    align-items: center;
}

.slider-caption {
    max-width: 650px;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.slider-caption h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slider-caption p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* ── SUBPAGE BANNER ──────────────────────────────────────────── */
.subheader-section {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.subheader-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 1, 25, 0.7);
    z-index: 1;
}

.subheader-section .container {
    position: relative;
    z-index: 2;
}

.subheader-title {
    font-family: var(--font-heading);
    font-size: 42px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ── SECTION CORE STYLING ────────────────────────────────────── */
.section {
    padding: 80px 0;
    position: relative;
}

.section_wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── HOMEPAGE WELCOME SECTION ────────────────────────────────── */
.welcome-section {
    text-align: center;
    padding: 80px 0 60px;
}

.welcome-section h1 {
    font-size: 32px;
    line-height: 1.3;
    color: var(--primary); /* Cyan */
    margin-bottom: 20px;
}

.welcome-section .subtitle {
    font-size: 18px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

.welcome-text p {
    margin-bottom: 15px;
}

/* ── TITLE SECTION FOR KOMPETENZEN ───────────────────────────── */
.title-section {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 46px 0;
}

.title-section h2 {
    margin: 0;
    color: var(--white) !important;
    font-size: 26px;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 30px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

/* ── LANDING COMPETENCE SECTION ──────────────────────────────── */
/* ── LANDING COMPETENCE SECTION ──────────────────────────────── */
.competence-section, .competences-section {
    background-color: var(--white);
}

.competence-intro, .intro-text {
    max-width: 850px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
}

.competence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.competence-card, .story_box {
    background-color: var(--white);
    border-radius: 8px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--trans);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.story_box a {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
    color: inherit;
}

.competence-card:hover, .story_box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.icon-wrapper, .photo_wrapper {
    width: 90px;
    height: 90px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper img, .photo_wrapper img {
    max-height: 80px;
    transition: var(--trans);
}

.competence-card:hover .icon-wrapper img,
.story_box:hover .photo_wrapper img {
    transform: scale(1.08);
}

.competence-card h3, .story_box h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.4;
}

.competence-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-arrow {
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.btn-arrow::after {
    content: '→';
    font-size: 16px;
    transition: var(--trans);
}

.competence-card:hover .btn-arrow::after {
    transform: translateX(4px);
}

/* ── DETAIL SUBPAGES GENERAL STYLING ────────────────────────── */
.detail-content-section {
    padding: 60px 0 40px;
}

.detail-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
}

.detail-intro p {
    margin-bottom: 20px;
}

/* Grid configurations for subpages */
.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.col {
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 30px;
    box-shadow: var(--shadow);
}

.col-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.col-body ul,
.col-body-large ul {
    list-style: none;
    padding-left: 0;
}

.col-body ul li,
.col-body-large ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.col-body ul li::before,
.col-body-large ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
    top: 0;
}

.col-body-large ul li {
    font-size: 17px;
    margin-bottom: 15px;
}

.doc-info-text {
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-main);
}

/* Accordion Component inside activities Columns */
.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--trans);
}

.accordion-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(14, 165, 231, 0.08);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--trans);
}

.accordion-header:hover {
    background-color: #f7f9fa;
    color: var(--primary);
}

.acc-icon {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    padding: 0 20px 20px;
}

.accordion-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.accordion-content img {
    margin: 10px auto 0;
    border-radius: 4px;
    box-shadow: var(--shadow);
    max-height: 180px;
    object-fit: cover;
}

/* ── SCHWERPUNKTE SECTION & GRID ────────────────────────────── */
.focuses-section {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.focus-card {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 30px;
    box-shadow: var(--shadow);
}

.focus-card-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.focus-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.focus-card:hover .focus-card-img img,
.focus-card-wide:hover .focus-card-img img,
.col:hover .focus-card-img img {
    transform: scale(1.05);
}

.focus-card-wide .focus-card-img {
    height: 200px;
}

.focus-card h4, 
.focus-card-wide h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.focus-card ul, 
.focus-card-wide ul {
    list-style: none;
    padding-left: 0;
}

.focus-card ul li, 
.focus-card-wide ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 15px;
}

.focus-card ul li::before, 
.focus-card-wide ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 16px;
}

.focus-grid-wide {
    margin-top: 30px;
}

.focus-card-wide {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 35px;
    box-shadow: var(--shadow);
}

.focus-card-wide p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.two-subcols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Card inner for custom subpage list boxes */
.col-inner-card {
    padding: 10px 0;
}

.col-inner-card ul {
    list-style: none;
    padding-left: 0;
}

.col-inner-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-muted);
}

.col-inner-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ── GOOGLE MAPS SECTION ───────────────────────────────────── */
.map-section {
    width: 100%;
    line-height: 0;
}

.map-section iframe {
    display: block;
    width: 100%;
}

/* ── LEGAL PAGES CONTENT ─────────────────────────────────────── */
.legal-content-section {
    padding: 60px 0 80px;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

.legal-text h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-main);
    margin-top: 35px;
    margin-bottom: 15px;
}

.legal-text p {
    margin-bottom: 20px;
}

.legal-text a {
    text-decoration: underline;
}

.align_center {
    text-align: center !important;
}

.align_left {
    text-align: left !important;
}

.creator-credits {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* ── KONTAKT PAGE FORM STYLING ──────────────────────────────── */
.contact-info-block {
    margin: 40px auto 0;
    max-width: 400px;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.contact-info-block h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info-block p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    border: 1px solid #ccd5db;
    border-radius: 4px;
    transition: var(--trans);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 231, 0.15);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: normal;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--trans);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Alerts Success/Error display */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.4;
}

.alert-success {
    background-color: #e6fffa;
    color: #0b6955;
    border: 1px solid #b2f5ea;
}

.alert-error {
    background-color: #fff5f5;
    color: var(--danger);
    border: 1px solid #feb2b2;
}

/* ── FOOTER SECTION ──────────────────────────────────────────── */
#Footer {
    background-color: var(--primary);
    color: var(--white);
    margin-top: auto;
}

.widgets_wrapper {
    padding: 70px 0;
}

.widgets_wrapper .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    color: var(--white);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    transition: var(--trans);
}

.footer-column ul li a:hover,
.footer-column ul li.active a {
    color: var(--white);
    text-decoration: underline;
}

.footer-column a {
    color: var(--white);
}

.footer-column a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-logo {
    max-width: 180px;
}

.footer_copy {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 25px 0;
}

.footer_copy .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Back to Top Button style */
#back_to_top {
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--trans);
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

#back_to_top.visible {
    opacity: 1;
    visibility: visible;
}

#back_to_top:hover {
    background-color: var(--primary-dark);
}

/* ── COOKIE NOTICE (Matches Company Standard) ──────────────── */
.cookie-notice-wrapper {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e1e4e8;
    z-index: 1000;
    padding: 16px 24px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-notice-wrapper.visible {
    bottom: 0;
}

.cookie-notice-wrapper.hidden {
    display: none !important;
}

.cookie-notice-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cn-text-container {
    color: #0ea5e7; /* Company standard cyan color */
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.cn-buttons-container {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.cn-button {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--trans);
}

.cn-accept {
    background-color: #0ea5e7;
    color: #ffffff;
}

.cn-accept:hover {
    background-color: #0b8ec9;
}

.cn-info {
    background-color: transparent;
    color: #626262;
    border: 1px solid #d1d5da;
}

.cn-info:hover {
    background-color: #f6f8fa;
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE MEDIA QUERIES ──────────────────────────────── */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    #menu {
        display: none; /* Hide desktop nav */
    }
    
    .responsive-menu-toggle {
        display: block; /* Show hamburger toggle */
    }
    
    /* Competence grid becomes 2 columns */
    .competence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .story-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Subpages column settings */
    .three-columns {
        grid-template-columns: 1fr;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
    }
    
    .two-subcols {
        grid-template-columns: 1fr;
    }
    
    .widgets_wrapper .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slider-caption h1 {
        font-size: 32px;
    }
    
    .slider-caption p {
        font-size: 16px;
    }
    
    .subheader-title {
        font-size: 32px;
    }
    
    /* Competence grid becomes 1 column */
    .competence-grid, .story-grid {
        grid-template-columns: 1fr;
    }
    
    .widgets_wrapper .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cookie-notice-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .cn-buttons-container {
        width: 100%;
        justify-content: center;
    }
    
    .footer_copy .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    #back_to_top {
        bottom: 75px; /* Adjust layout position to clear cookie banner if open */
    }
}
