/* --------------------------------------
 * VARIABLES
 * ------------------------------------ */
:root {
    /* Color variables */
    --sidebar-bg-hover: rgb(233, 233, 233);
    --link-color: #1c1c1c;
    --primary-color: #ff6600;
    --secondary-color: #1e4980;
    --seperator-color: #e0e0e0;
    --heading-color: #1c1e21;

    /* Font stack */
    --base-font-family: Ubuntu;
    --corporate-design-font-family: "SpaceGrotesk";

    /* Table color variables */
    --table-border: #e0e0e0;
    --table-header-bg: #dedede;
    --table-header-text: #2e3032;
    --table-row-bg: #ffffff;
    --table-row-alt-bg: #f9f9f9;
    --table-row-hover-bg: #f3f4f6;
    --table-cell-border: #e5e5e5;
    --table-text: #1c1e21;
    --table-cell-text: #3c3f43;
    --table-code-bg: #f6f8fa;

    /* Header height variable */
    --header-height: 64px;
}

/* --------------------------------------
 * GENERAL LAYOUT
 * ------------------------------------ */
.page-layout {
    display: flex; /* Horizontal layout */
    flex-direction: row;
}

body {
    padding-right: 0 !important; /* Prevent horizontal scroll if default padding is added */
    font-family: var(--base-font-family);
    color: #1c1c1c;
}

#content {
    container-type: inline-size;
    container-name: content;
}

/* --------------------------------------
 * TYPOGRAPHY: HEADINGS AND FONTS
 * ------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 3rem;
    margin-bottom: 1rem;
    word-spacing: 0; /* override AsciiDoctor's stylesheet */
    font-family: var(--corporate-design-font-family);
}

/* Heading font sizes */
h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #555; /* Slightly muted */
}


/* --------------------------------------
 * CLICKABLE ANCHORS
 * ------------------------------------ */

a.anchor-copy-link {
    text-decoration: none;
    margin-left: 0.2em;
    opacity: 0;
    transition: opacity 0.2s ease;
}
  
h1:hover a.anchor-copy-link,
h2:hover a.anchor-copy-link,
h3:hover a.anchor-copy-link,
h4:hover a.anchor-copy-link,
h5:hover a.anchor-copy-link,
h6:hover a.anchor-copy-link {
    opacity: 1;
}
  


/* --------------------------------------
 * LINK STYLES (Main content area)
 * ------------------------------------ */
#content a {
    color: var(--primary-color);
    text-decoration: none;
}

#content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --------------------------------------
 * SIDEBAR NAVIGATION
 * ------------------------------------ */
.sidebar {
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    min-width: 300px;
    height: calc(100vh - var(--header-height));
    background: #fff;
    border-right: 1px solid var(--seperator-color);
    padding: 0 1rem 1rem 0;
    font-family: var(--base-font-family);
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar ul {
    list-style: none;
    margin: 22px 0 0 11px;
    padding: 0;
}

.sidebar li {
    position: relative;
}

.sidebar a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--link-color);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--corporate-design-font-family);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.25s;
}

.sidebar a:hover {
    background: var(--sidebar-bg-hover);
}

/* Hover color for non-active links only */
.sidebar a:not(.active-color):hover {
    color: var(--link-color) !important;
}

/* Expandable submenu arrow */
.sidebar li.has-submenu > a::after {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border: solid rgb(165, 165, 165);
    border-width: 0 3px 3px 0;
    transform: rotate(-45deg);
    margin-left: 1rem;
    transition: transform 0.25s ease;
}

.sidebar ul ul {
    border-left: 2px solid var(--seperator-color);
    padding-left: 0.5rem;
}

.sidebar ul ul ul {
    border-left: 2px dashed var(--seperator-color);
    padding-left: 0.5rem;
}

.sidebar ul ul ul ul {
    border-left: 2px dotted var(--seperator-color);
    padding-left: 0.5rem;
}

/* Rotate arrow when open */
.sidebar li.open > a::after {
    transform: rotate(45deg);
}

/* Submenu collapse/expand */
.sidebar li ul {
    max-height: 0;
    overflow: hidden;
    margin-top: 0.2rem;
    margin-left: 1rem;
}

.sidebar li.open > ul {
    max-height: 1100px;
}

/* Parent active color */
/*.sidebar li.open > a {*/
/*    color: var(--primary-color);*/
/*}*/

/* Submenu link style */
.sidebar li ul li a {
    font-weight: 400;
    font-size: 1rem;
    font-family: var(--base-font-family);
}

/* Active/focus styles */
.sidebar li > a:active
{
    color: var(--primary-color);
}

.sidebar a.active-color,
.sidebar a.active-color:hover,
.sidebar li.open > a.active-color {
    color: var(--primary-color) !important;
}

/* Sidebar header (only for mobile) */
.sidebar-header {
    display: none; /* hide by default */
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--seperator-color);
}

/* Logo inside sidebar */
.sidebar-logo {
    height: 24px;
    width: auto;
}

/* Close button */
.sidebar-close {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--link-color);
}

/* Overlay to dim the background when sidebar is open */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* semi-transparent black */
    z-index: 900; /* less than sidebar but above page */
    display: none; /* hidden by default */
}

/* Show the overlay when active */
.sidebar-overlay.active {
    display: block;
}

/* Sidebar drawer behavior on narrow screens */
@media (max-width: 996px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.open .sidebar-header {
        display: flex;
    }
}


/* --------------------------------------
 * TABLE OF CONTENTS (TOC)
 * ------------------------------------ */
#toc {
    background-color: #fff !important;
    position: sticky !important;
    top: var(--header-height) !important;
    min-width: 200px;
    z-index: 0 !important;
    font-family: var(--base-font-family);
}

#toctitle {
    display: none; /* Hide TOC title */
}

#toc li {
    margin: 11px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

#toc ul {
    font-family: var(--base-font-family);
}

#toc a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

/* Hover for TOC links (except active) */
#toc a:not(.toc-active):hover {
    color: var(--primary-color);
}

/* Active TOC link */
#toc a:active,
#toc a.toc-active {
    color: var(--primary-color);
}

/* Hide TOC on small screens */
@media (max-width: 996px) {
    #toc {
        display: none;
    }
}


/* --------------------------------------
 * HEADER
 * ------------------------------------ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: black;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #ccc;
    font-family: sans-serif;
    min-height: var(--header-height);
}

.header-logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* --------------------------------------
 * DOCSEARCH BUTTON
 * ------------------------------------ */
.DocSearch-Button {
    color: #c3cad1;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: #3a3f45;
    border-radius: 40px;
    cursor: pointer;
    font-family: sans-serif;
    transition: border 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.DocSearch-Button:hover {
    border: 2px solid var(--primary-color);
    background-color: #2e3238;
    color: #f0f3f7;
}

.DocSearch-Button-Container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.DocSearch-Button-Placeholder {
    font-size: 14px;
}

.DocSearch-Button-Key {
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #d7dcdc;
    font-size: 10px;
    font-family: monospace;
}

/* --------------------------------------
 * TABLE STYLES
 * ------------------------------------ */
table {
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: var(--table-text);
    background-color: var(--table-row-bg);
    border: none !important;
    margin: 1.5rem 0;
}

table.tableblock, th.tableblock, td.tableblock {
    border: none;
}

table thead {
    background-color: var(--table-header-bg);
}

table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--table-header-text);
    white-space: nowrap;
}

table td {
    padding: 0.75rem 1rem;
    color: var(--table-cell-text);
}

/* Alternating row background */
table tbody tr:nth-child(odd) {
    background-color: var(--table-row-alt-bg);
}

/* Inline code block style */
table code {
    background-color: var(--table-code-bg);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
}

/* --------------------------------------
 * UTILITY CLASSES
 * ------------------------------------ */
.active-color {
    color: var(--primary-color); /* Reusable class for active links */
}

.is-hidden {
    display: none;
}

/* --------------------------------------
 * FOOTER
 * ------------------------------------ */
#footer {
    display: none; /* Hide footer completely */
}

/* Footer Styles */
.footer {
    background: #2d2d2d;
    background-image: url('https://revolutionpi.com/forum/styles/we_universal/theme/images/footer-bg-web.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 121px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 364px repeat(4, 1fr);
    gap: 0;
}

.footer-column {
    position: relative;
}

.footer-column h4 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #FF6600;
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
}

.footer-column h4::after {
    font-family: "icons";
    content: "\f111";
    transition: transform 0.3s ease;
    margin-left: auto;

}

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

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

.footer-column ul li.caption {
    color: #fff;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.footer-column .btn.action-primary {
    background-image:linear-gradient(100.19deg,#f90 61.76%,#f60 81.08%);
    background-position: 100% 0;
    background-size:200% 100%;
    background-color: #FF6600;
    color: white;
    font-family:"SpaceGrotesk", serif;
    padding: 20px 42px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-position 0.2s ease-in-out;
    margin-top: 1rem;
    line-height: 1;
    text-align: center;
}

.footer-column .btn.action-primary:hover {
    background-color: #ff7d26;
    text-decoration: none;
    background-position: 0 0;
}

.footer-column ul li a {
    font-family:"UbuntuReg", serif;
    color: #fff;
    background-image: linear-gradient(to right, #ff6600, #ff6600);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: bottom left;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
    line-height: 1;
    margin-bottom: 10px;
    transition:background-size .3s ease-in-out;
}

.footer-column ul li a:hover {
    color: #ff6600;
    background-size: 100% 1px;

}

/* Mobile Styles */
@media (max-width: 768px) {
    .footer {
        background-image: url('https://revolutionpi.com/forum/styles/we_universal/theme/images/footer-bg-web-mobile.jpg');
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }


    /* Erste Spalte bleibt immer offen */
    .footer-column:first-child h4 {
        padding: 1rem 0;
        margin-bottom: 1rem;
        background: transparent;
        padding-left: 0;
        margin-left: 0;
        margin-right: 0;
        cursor: default;
        border-bottom: 1px solid #444444;
    }

    .footer-column:first-child h4::after {
        display: none;
    }

    .footer-column:first-child ul {
        max-height: none;
        overflow: visible;
        padding: 0;
        margin-bottom: 1rem;
    }

    /* Spalten 2-5 mit Accordion-Funktionalität */
    .footer-column:not(:first-child) h4 {
        padding: 0 1rem;
        margin-top: 0;
        margin-bottom: 10px;
        border-bottom: none;
        background: transparent;
        margin-left: -1rem;
        margin-right: -1rem;
        cursor: pointer;

    }

    .footer-column:not(:first-child) h4::after {
        display: block;
        right: 1rem;

    }

    .footer-column:not(:first-child).active h4::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .footer-column:not(:first-child) ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        background: transparent;
    }

    .footer-column:not(:first-child).active ul {
        max-height: 400px;
        padding: 0.5rem 0;
    }

    .footer-column ul li {
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 575.98px) {
	.footer-column .btn.action-primary {
        width: 100%;
        text-align: center;
    }  
}

/* Desktop hover effects */
@media (min-width: 769px) {
    .footer-column h4 {
        cursor: text;
        font-size: 24px;
    }

    .footer-column h4::after {display: none;}

}

/* Alternative accordion style */
.accordion-style .footer-column:not(:first-child) h4 {
    background: linear-gradient(135deg, #555, #444);
    padding: 1rem;
    margin: 0;
    border-radius: 5px 5px 0 0;
}

.accordion-style .footer-column:not(:first-child).active h4 {
    border-radius: 5px 5px 0 0;
}

.accordion-style .footer-column:not(:first-child) ul {
    background: #3a3a3a;
    border-radius: 0 0 5px 5px;
}

.legal {margin-top: 150px;}
.footertitles {color: #ff6600; font-size: 24px;text-transform: uppercase}
.rudyhead svg {fill: #000;height:18px;}
.rudyhead {padding:34px 0;width: 100%;}

.rudyhead-wrapper {max-width: 1280px;padding:0 20px;margin: 0 auto;display: block;}
.community {font-size: 18.9px; font-family:"SpaceGrotesk", serif;color: #000;line-height: 1.1;}

.forabg, .forumbg, .cp-main table.table1 {border:1px solid #888;}

.legal-section {
    margin-top: 2rem;
    text-align: center;
}

.legal-list {
    margin: 0;
    text-align: right;
    padding: 0;
    list-style: none;

}

@media (max-width: 768px) {
    .legal-list {text-align: left;}
}


.legal-item {
    display: inline-block;
    margin-right: 2rem;
}

.legal-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-family:"UbuntuReg", serif;
    background-image: linear-gradient(to right, #ff6600, #ff6600);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: bottom left;
    transition: color 0.3s ease;
    transition:background-size .3s ease-in-out;
}

.legal-link:hover {
    text-decoration: none;
    background-size: 100% 1px;
}




.sociallinks-link {
    background-image: none;
    display: flex;
    height: 44px;
    width: 44px;
    -webkit-box-pack:center;
    -ms-flex-pack:center;
    background-color: #ff6600;
    color: #fff !important;
    justify-content: center;
    border-radius: 10px;
    align-items:center;
    transition: opacity .2s ease-in-out!important;
}

.sociallinks-link:hover {opacity: 0.7;}


.sociallinks-link-icon {
    font-size: 22px;
    opacity: 1;

}


.sociallinks-list {display:flex;flex-wrap: wrap;gap:15px;margin: 0;padding: 0;}


.bootstrappackageicon-linkedin:before { font-family: "icons";color: #fff;
    content:"\f108";opacity: 1;font-feature-settings:normal;font-style: normal;font-variant: normal;font-weight: 400!important;text-transform: none;-webkit-font-smoothing:antialiased;transition: opacity .2s ease-in-out!important;}

.bootstrappackageicon-youtube:before { font-family: "icons";color: #fff;
    content:"\f101";opacity: 1;font-feature-settings:normal;font-style: normal;font-variant: normal;font-weight: 400!important;text-transform: none;-webkit-font-smoothing:antialiased;transition: opacity .2s ease-in-out!important;}


.bootstrappackageicon-linkedin:before, .bootstrappackageicon-linkedin:hover::before
{   font-family: "icons";
    content:"\f108";
    color: #fff;
    z-index: 2;
    background-size:auto;
}

.bootstrappackageicon-youtube:before, .bootstrappackageicon-youtube:hover::before
{   font-family: "icons";
    content:"\f101";
    color: #fff;
    z-index: 2;
    background-size:auto;
}


/* --------------------------------------
 * ASCIIDOC HEADER
 * ------------------------------------ */
#header {
    padding: 0; /* Remove top padding */
}

#header > h1:only-child {
    border: none; /* Remove bottom border on first heading */
}

/* --------------------------------------
 * RESPONSIVE DESIGN
 * ------------------------------------ */

/* Hide burger on wide screens */
.burger-menu {
    display:none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    width: 31px;
    height: 24px;
    cursor: pointer;
    padding: 6px;
    border-radius: 0;
    box-sizing:content-box;
}

/*!* Hover effect *!*/
/*.burger-menu:hover {*/
/*    background-color: #f3f3f3;*/
/*}*/

/* Bar design */
.burger-menu .bar { 
    width:19px;
    height: 3px;
    background-color: white;
    border-radius: 0;
    transition: all 0.3s ease;
}

.burger-menu:hover .bar {
    background-color: var(--primary-color);
}

/* Show burger on narrow screens only */
@media (max-width: 996px) {
    .burger-menu {
        display: flex;
    }
}

/* --------------------------------------
 * LANGUAGE SWITCH
 * ------------------------------------ */

.dropdown-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    border-radius: 2px;
    transform: rotate(45deg); /* down arrow */
    vertical-align: middle;
    position: relative;
    top: -1px; /* lift slightly */
}

.language-switcher-dropdown {
    position: relative;
    display: inline-block;
    min-width: 100px;
}

.lang-list {
    display: none;
    position: absolute;
    top: 100%;
    left: -50px;
    background: var(--table-code-bg);
    list-style: none;
    padding: 0;
    margin: 5px 0;
    box-shadow: 0 5px 40px #0003;
    border-radius: 6px;
    min-width: 160px;
    z-index: 10;
    font-family: var(--base-font-family);
}

.lang-toggle {
    color: #c3cad1;
    font-family: var(--base-font-family);
}


.lang-toggle:hover {
    color: var(--primary-color);
}

.language-switcher-dropdown.open .lang-list {
    display: block;
}

.lang-list button {
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    border-radius: 4px;
    text-align: left;
    font-weight: 700;
}

.lang-list button:hover {
    color:#ff6600;
}

.lang-list button.active-lang {
    background-color:transparent;
    color:#ff6600;
}

.lang-list button.active-lang:hover {
    color:#000;
}

button.lang-toggle {
    background: none;
    border: none;
}

/* --------------------------------------
 * Style adaptions
 * ------------------------------------ */

/* Reduce gaps between lines that contain  ▷, ❯ or ❯❯ */
.paragraph p {
    margin-bottom: 0.5rem;
}

.paragraph.lead>p, #preamble>.sectionbody>[class=paragraph]:first-of-type p {
    font-size: 1.0625rem;
}

span.menuseq {
    color: var(--secondary-color);
    font-weight: 700;
}

.action-level-1, .action-level-3 {
    text-indent: -17.5px;
    margin-left: 17.5px;
}

.action-level-2 {
    text-indent: -17.5px;
    margin-left: 33px;
}

em {
    color: var(--secondary-color);
    font-weight: bold;
    font-style: normal;
}

/* Style the button descriptors */

.button {
    color: var(--secondary-color);
    /*border: 1px solid var(--secondary-color);*/
    /*border-radius: 4px;*/
    /*padding: 1px 2px;*/
    /*cursor: pointer;*/
    /*box-shadow: 0 1px 3px rgba(142, 142, 142, 0.2);*/
}

/* --------------------------------------
 * ADMONITIONS
 * ------------------------------------ */

/* General */
.admonitionblock{
    border-radius: 7px;
    box-shadow: 0 1px 2px #0000001a;
}

/* Remove italic from title */
.admonitionblock td.content>.title {
    font-style: normal;
    color: black;
}

/* Override some fonts from AsciiDoctor's default stylesheet */
.admonitionblock>table td.icon .title {
    font-family: var(--base-font-family);
}
.admonitionblock td.content>.title {
    font-family: var(--base-font-family);
}

/* Warning */
.admonitionblock.warning {
    border-left: 5px solid #e6a700;
}

.admonitionblock.warning tr {
    background-color: #fff8e6;
}

/* Notice */
.admonitionblock.important {
    border-left: 5px solid #4cb3d4;
}

.admonitionblock.important tr {
    background-color: #eef9fd;
}

/* Note */
.admonitionblock.note {
    border-left: 5px solid #d4d5d8;
}

/* --------------------------------------
 * Scroll to top button
 * ------------------------------------ */

html {
    scroll-behavior: smooth;
}

.scroll-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    background: #494949;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: background-color 0.3s ease,
                opacity 0.3s ease,
                transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: var(--primary-color);
}

.scroll-to-top .scroll-top-icon {
    border-left: 1px solid;
    border-top: 1px solid;
    content: "";
    height: 30%;
    left: 18px;
    top:21px;
    position: absolute;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    width: 30%;
}

/* --------------------------------------
 * OVERVIEW CARD DESIGN
 * ------------------------------------ */

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin: 25px 0 50px;
}

@container content (max-width: 850px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container content (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}


.card {
    width: 288px;
    height: 340px;
    aspect-ratio: 288/340;
    border: 3px solid #eee;
    border-radius: 11px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-headline{
    color: grey;
    margin-bottom: 5px;
}

.card-title {
    color: var(--primary-color);
    font-family: var(--corporate-design-font-family);
    font-weight: bold;
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

.card-header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 28px;
    position: absolute;
    bottom: 10px;
    right: 15px;

    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;

    cursor: pointer;
    pointer-events: none;
}

.card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.card-link:hover {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.card-teaser-text {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto; /* REMOVE fixed height */
}


/* --------------------------------------
 * Google Search
 * ------------------------------------ */

.gsc-wrapper, .gssb_a, .gssb_a td, .gsc-control-cse .gsc-table-result, .gsc-control-cse table.gsc-search-box td.gsc-input, .gsc-results .gs-webResult div.gs-visibleUrl, .gsc-completion-container table span {font-family:"UbuntuReg", arial, sans-serif!important;}
.gsc-control-cse .gs-result .gs-title, .gs-webResult .gs-per-result-labels .gs-label, .gs-webResult .gs-per-result-labels span {font-family:"SpaceGrotesk", arial, sans-serif!important;font-weight: 700;}
.gsc-results-wrapper-overlay {background: #fff!important;border-radius: 15px!important;}
.gsc-webResult.gsc-result, .gsc-results .gsc-imageResult {background-color:#fff!important;border-color: #fff!important;}
.gsc-control-cse {padding: 0!important;border:0!important;background-color: transparent!important;}
.gsc-search-box table {margin: 0!important;background-color: transparent!important}
.gsc-control-cse table tbody tr:nth-child(odd) {background-color: transparent!important}
.gsc-search-button-v2 {padding: 6px 0!important;}
.gsc-search-button-v2 svg {height: 20px!important;width: 20px!important;}
.gsc-search-button-v2, .gsc-search-button-v2:hover, .gsc-search-button-v2:focus {background: transparent!important;border:0!important;}
.gsc-input-box {border-radius: 5px!important;}
.gsc-input table tr td {padding:0 0.625em!important;}
.gsc-search-box table tr td {padding:0 0.625em!important;}
.gsc-input-box table tr td {padding:0 0.625em!important;}
.gsc-input-box .gsib_a, .gsc-input-box .gsib_b {line-height: 27px!important;}
.gsc-input-box .gsst_a .gscb_a {color: #f00;}
.gsc-control-cse form.gsc-search-box {margin-bottom: 0!important;}
.gsc-control-cse table.gsc-search-box td.gsc-input {padding-right: 0!important;}
.gsc-results-wrapper-overlay {font-size: 1rem!important;line-height: 1.3!important;}
.gsc-above-wrapper-area table {margin: 0!important;}
.gsc-refinementHeader {padding: 6px 12px!important;}
.gsc-result-info, td.gsc-result-info-container {padding: 0!important;}
.gsc-result-info {color: #1c1c1c!important;}
.gsc-refinementHeader.gsc-refinementhActive, .gsc-refinementHeader.gsc-refinementhInactive, .gsc-tabHeader.gsc-tabhInactive {font-size: 1rem!important;;border-color:#f60!important;}
.gsc-refinementHeader.gsc-refinementhActive {background-color:#ff6600!important;color: #fff!important;border-radius: 10px 10px 0 0!important;}
.gsc-refinementHeader.gsc-refinementhInactive, .gsc-tabHeader.gsc-tabhInactive {background:transparent!important;color: #ff6600!important;}
.gsc-refinementsArea {border-bottom: 1px solid #ff6600!important;}
.gsc-results .gsc-cursor-box .gsc-cursor-page {background-color:transparent!important;color:#ff6600!important;font-size: 1rem!important;font-weight: 700!important;}
.gsc-results .gs-webResult div.gs-visibleUrl {color:#1f1f1f!important;font-weight:700!important;font-size: 0.8125rem!important;}
.gsc-webResult.gsc-result {margin-bottom:10px!important;padding:15px 10px!important;}

.gsc-search-box.gsc-search-box-tools td.gsc-input {
	background:transparent;
	display:block;
	overflow:hidden;
	height:100%;
	-webkit-transition:all .3s ease-in-out;
	transition:all .3s ease-in-out;
	width:0;
}

.gsc-search-box.gsc-search-box-tools.__focused td.gsc-input {
	width:250px;
}

@media (min-width: 768px) {
    .gsce-wrapper {display:flex;}
}

@media (max-width: 996px) {
    .sidebar {width:100%;max-width:inherit;background:#f0f0f0;}
}
 
.gsce-wrapper-mobile .gsc-search-button-v2 svg {
    fill:#000;
}

.gsce-wrapper-mobil .gsc-input-box {
    border:1px solid #555;background:#fff;
}

@media (min-width: 997px) {
    .gsce-wrapper-mobile, .language-switcher-wrapper-mobile {display:none;}
}


.gsc-refinementsArea {border:0!important;border-radius:0!important;}
.gsc-refinementsGradient {display:none!important;}
.gsce-wrapper-mobile {margin-left:7px;padding:1rem 0;}
.gsce-wrapper-mobile .gsc-results-wrapper-overlay {width:95%;left:2.5%;right:2.5%;}
.sidebar .gsce-wrapper-mobile a.gs-title {display:block;padding:0}
 
.language-switcher-wrapper-mobile {margin:0 0 0 11px;padding:1rem 0;}
.language-switcher-wrapper-mobile .lang-toggle {color:#000;font-family:"SpaceGrotesk",serif;font-weight:700;}
.language-switcher-wrapper-mobile .lang-list {left:-11px!important;min-width:60px!important}
.language-switcher-wrapper-mobile .dropdown-arrow, .language-switcher-wrapper-desktop .dropdown-arrow {display:none;}
.language-switcher-wrapper-desktop .lang-toggle {font-weight:700;color:#fff!important;}
.language-switcher-wrapper-desktop .lang-list {min-width:60px;padding-left:0;left:0;}

.gsce-wrapper-mobile .gsc-search-box.gsc-search-box-tools td.gsc-input, .gsce-wrapper-mobile .gsc-search-box.gsc-search-box-tools.__focused td.gsc-input {
    float:right;
    width:100%;
}

@media (max-width: 767px) {.gsce-wrapper, .language-switcher-wrapper-desktop {
    display:none;}
}