
/* default styles for extension "tx_frontend" */
    .ce-align-left { text-align: left; }
    .ce-align-center { text-align: center; }
    .ce-align-right { text-align: right; }

    .ce-table td, .ce-table th { vertical-align: top; }

    .ce-textpic, .ce-image, .ce-nowrap .ce-bodytext, .ce-gallery, .ce-row, .ce-uploads li, .ce-uploads div { overflow: hidden; }

    .ce-left .ce-gallery, .ce-column { float: left; }
    .ce-center .ce-outer { position: relative; float: right; right: 50%; }
    .ce-center .ce-inner { position: relative; float: right; right: -50%; }
    .ce-right .ce-gallery { float: right; }

    .ce-gallery figure { display: table; margin: 0; }
    .ce-gallery figcaption { display: table-caption; caption-side: bottom; }
    .ce-gallery img { display: block; }
    .ce-gallery iframe { border-width: 0; }
    .ce-border img,
    .ce-border iframe {
        border: px solid ;
        padding: px;
    }

    .ce-intext.ce-right .ce-gallery, .ce-intext.ce-left .ce-gallery, .ce-above .ce-gallery {
        margin-bottom: px;
    }
    .ce-image .ce-gallery { margin-bottom: 0; }
    .ce-intext.ce-right .ce-gallery { margin-left: px; }
    .ce-intext.ce-left .ce-gallery { margin-right: px; }
    .ce-below .ce-gallery { margin-top: px; }

    .ce-column { margin-right: px; }
    .ce-column:last-child { margin-right: 0; }

    .ce-row { margin-bottom: px; }
    .ce-row:last-child { margin-bottom: 0; }

    .ce-above .ce-bodytext { clear: both; }

    .ce-intext.ce-left ol, .ce-intext.ce-left ul { padding-left: 40px; overflow: auto; }

    /* Headline */
    .ce-headline-left { text-align: left; }
    .ce-headline-center { text-align: center; }
    .ce-headline-right { text-align: right; }

    /* Uploads */
    .ce-uploads { margin: 0; padding: 0; }
    .ce-uploads li { list-style: none outside none; margin: 1em 0; }
    .ce-uploads img { float: left; padding-right: 1em; vertical-align: top; }
    .ce-uploads span { display: block; }

    /* Table */
    .ce-table { width: 100%; max-width: 100%; }
    .ce-table th, .ce-table td { padding: 0.5em 0.75em; vertical-align: top; }
    .ce-table thead th { border-bottom: 2px solid #dadada; }
    .ce-table th, .ce-table td { border-top: 1px solid #dadada; }
    .ce-table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0,0,0,.05); }
    .ce-table-bordered th, .ce-table-bordered td { border: 1px solid #dadada; }

    /* Space */
    .frame-space-before-extra-small { margin-top: 1em; }
    .frame-space-before-small { margin-top: 2em; }
    .frame-space-before-medium { margin-top: 3em; }
    .frame-space-before-large { margin-top: 4em; }
    .frame-space-before-extra-large { margin-top: 5em; }
    .frame-space-after-extra-small { margin-bottom: 1em; }
    .frame-space-after-small { margin-bottom: 2em; }
    .frame-space-after-medium { margin-bottom: 3em; }
    .frame-space-after-large { margin-bottom: 4em; }
    .frame-space-after-extra-large { margin-bottom: 5em; }

    /* Frame */
    .frame-ruler-before:before { content: ''; display: block; border-top: 1px solid rgba(0,0,0,0.25); margin-bottom: 2em; }
    .frame-ruler-after:after { content: ''; display: block; border-bottom: 1px solid rgba(0,0,0,0.25); margin-top: 2em; }
    .frame-indent { margin-left: 15%; margin-right: 15%; }
    .frame-indent-left { margin-left: 33%; }
    .frame-indent-right { margin-right: 33%; }

body {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 300;
}

.hero-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 60, 129, 0.2);
}

.smart-suggestions-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    margin-top: 8px !important;
    background: white !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e5e7eb !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.search-container {
    position: relative !important;
    z-index: 1000 !important;
}

/* Ensure body and html don't clip dropdowns */
body, html {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Hero section should allow content to extend below */
.hero-section {
    overflow: visible !important;
    z-index: 100 !important;
}

/* Ensure other sections don't interfere */
section:not(.hero-section) {
    z-index: 1 !important;
}
.card-hover {
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-keywords {
    margin-bottom: auto;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.keyword-container {
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1e5aa8 #f1f5f9;
}

.keyword-container::-webkit-scrollbar {
    width: 4px;
}

.keyword-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.keyword-container::-webkit-scrollbar-thumb {
    background: #1e5aa8;
    border-radius: 2px;
}

.compact-description {
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}
.fade-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}
.theme-image {
    border-radius: 8px;
    object-fit: cover;
}
.card-image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}
.card-image-overlay img {
    transition: transform 0.3s ease;
    border-radius: 0.75rem 0.75rem 0 0;
}
.card-hover:hover img {
    transform: scale(1.05);
}

/* Spezielle Regel für lange Keywords */
.keyword-button-long {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Sehr starke Zentrierungsregeln für TYPO3 */
body * {
    box-sizing: border-box !important;
}

section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

.max-w-4xl, .max-w-6xl {
    max-width: 72rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

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

/* Grid-Zentrierungsfix */
.grid {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Container Reset */
div[class*="max-w"] {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Theme Card Highlighting */
.theme-highlighted {
    animation: highlightPulse 8s ease-in-out infinite;
    border: 4px solid #1e5aa8 !important;
    box-shadow: 0 0 40px rgba(30, 90, 168, 0.6) !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Extra Glow-Ring um die Kachel */
.theme-highlighted::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid rgba(30, 90, 168, 0.3);
    border-radius: 12px;
    animation: glowRing 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(30, 90, 168, 0.6);
        border-color: #1e5aa8;
    }
    25% {
        transform: scale(1.03);
        box-shadow: 0 0 50px rgba(30, 90, 168, 0.8);
        border-color: #0066cc;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(30, 90, 168, 0.9);
        border-color: #0052a3;
    }
    75% {
        transform: scale(1.03);
        box-shadow: 0 0 50px rgba(30, 90, 168, 0.8);
        border-color: #0066cc;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(30, 90, 168, 0.6);
        border-color: #1e5aa8;
    }
}

@keyframes glowRing {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    25% {
        opacity: 1;
        transform: scale(1);
    }
    75% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Smart Suggestion Enhanced Buttons */
.smart-suggestion-enhanced {
    position: relative;
}

.smart-suggestion-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

.smart-action-btn {
    flex: 1;
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.smart-action-copy {
    background-color: #1e5aa8;
    color: white;
}

.smart-action-copy:hover {
    background-color: #0f3e75;
}

.smart-action-goto {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.smart-action-goto:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.text-primary {
    color: #003c81 !important;
}

.text-info {
    color: #4a7bc8 !important;
}

.text-white {
    color: #ffffff !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
.px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.h4 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin-bottom: .5rem;
    font-weight: 600;
}

main a:not(.btn):not(.imglink):not([role=button]):not([data-toggle]):not(.input-group-addon):not(.exclude-link-design), .c-layout-sidebar-content a:not(.btn):not(.imglink):not([role=button]):not([data-toggle]):not(.input-group-addon):not(.exclude-link-design) {
    color: #003c81;
    font-weight: 400;
    text-decoration: none;
    padding-bottom: 0px;
    border-bottom: 2px dotted #ffd100;
}
