/*
 Theme Name:   Blocksy Child - AK Integration
 Theme URI:    https://ak-integration-lappersdorf.de
 Description:  Custom Child Theme für den Arbeitskreis Integration Lappersdorf
 Author:       AK Integration Lappersdorf
 Author URI:   https://ak-integration-lappersdorf.de
 Template:     blocksy
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  blocksy-child-ak-integration
*/

/* ==========================================================================
   AK Integration Lappersdorf - Custom Styles
   Design Philosophy: "Warm Professionalism"
   ========================================================================== */

/* RTL Support for Arabic */
[dir="rtl"] .ak-hero-content,
[dir="rtl"] .ak-about-modern {
    direction: rtl;
}

[dir="rtl"] .ak-hero-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .ak-about-modern {
    flex-direction: row-reverse;
}

[dir="rtl"] .ak-activity-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .ak-link-arrow {
    direction: rtl;
}

[lang="ar"] {
    font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

[lang="fa"], [lang="prs"] {
    font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
    direction: rtl;
}

[lang="am"] {
    font-family: 'Noto Sans Ethiopic', 'Segoe UI', sans-serif;
}

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Primary Colors */
    --ak-primary: #C75E3B;
    --ak-primary-hover: #B54E2D;
    --ak-secondary: #2A7A7A;
    --ak-secondary-hover: #1F6666;
    
    /* Accent Colors */
    --ak-accent-amber: #E8A838;
    --ak-accent-sage: #8FB069;
    
    /* Neutral Colors */
    --ak-background: #FDF8F3;
    --ak-text: #2D2D2D;
    --ak-gray-medium: #6B6B6B;
    --ak-gray-light: #E8E4E0;
    --ak-white: #FFFFFF;
    
    /* Typography */
    --ak-font-heading: 'Nunito', sans-serif;
    --ak-font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --ak-section-padding: 80px;
    --ak-section-padding-mobile: 48px;
    --ak-container-max: 1200px;
    
    /* Border Radius */
    --ak-radius-button: 8px;
    --ak-radius-card: 12px;
    --ak-radius-large: 16px;
    
    /* Shadows */
    --ak-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --ak-shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --ak-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --ak-transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header .ct-logo img,
.site-branding img,
.site-logo img {
    max-height: 80px !important;
    width: auto !important;
}

header nav a,
.site-header .ct-header-menu > ul > li > a {
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif !important;
    letter-spacing: 0.3px !important;
}

/* --------------------------------------------------------------------------
   Global Styles
   -------------------------------------------------------------------------- */
body {
    font-family: var(--ak-font-body);
    background-color: var(--ak-background);
    color: var(--ak-text);
    line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ak-font-heading);
    color: var(--ak-text);
    line-height: 1.3;
}

h1 {
    font-size: 48px;
    font-weight: 800;
}

h2 {
    font-size: 36px;
    font-weight: 700;
}

h3 {
    font-size: 28px;
    font-weight: 700;
}

h4 {
    font-size: 22px;
    font-weight: 600;
}

h5 {
    font-size: 18px;
    font-weight: 600;
}

h6 {
    font-size: 16px;
    font-weight: 600;
}

p {
    font-size: 16px;
    margin-bottom: 1.5em;
}

.lead-text {
    font-size: 18px;
    line-height: 1.8;
}

/* Links */
a {
    color: var(--ak-secondary);
    transition: var(--ak-transition);
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.wp-block-button__link,
.ak-btn-primary {
    background-color: var(--ak-primary) !important;
    color: var(--ak-white) !important;
    border-radius: var(--ak-radius-button) !important;
    padding: 14px 28px !important;
    font-family: var(--ak-font-heading);
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--ak-transition);
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    line-height: 1.4;
}

.wp-block-button__link:hover,
.ak-btn-primary:hover {
    background-color: var(--ak-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--ak-shadow-medium);
}

.ak-btn-secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--ak-secondary) !important;
    border: 2px solid var(--ak-secondary) !important;
    border-radius: var(--ak-radius-button) !important;
    padding: 12px 26px !important;
    font-family: var(--ak-font-heading);
    font-weight: 600;
    transition: var(--ak-transition);
}

.ak-btn-secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--ak-secondary) !important;
    color: var(--ak-white) !important;
}

/* --------------------------------------------------------------------------
   Header Styles
   -------------------------------------------------------------------------- */
header[data-id="type-1"] {
    background-color: var(--ak-white);
    box-shadow: var(--ak-shadow-soft);
}

.site-branding .site-title {
    font-family: var(--ak-font-heading);
    font-weight: 700;
    color: var(--ak-text);
}

/* Hide only the black site-title text, keep logo visible */
.site-branding .site-title a {
    font-size: 0;
    line-height: 0;
    color: transparent;
}
.site-branding .site-title a img {
    display: block;
}

/* Navigation */
.ct-header nav a {
    font-family: var(--ak-font-body);
    font-weight: 500;
    color: var(--ak-text);
    transition: var(--ak-transition);
}

.ct-header nav a:hover {
    color: var(--ak-primary);
}

/* Header CTA Button */
.ct-header .ct-button {
    background-color: var(--ak-primary);
    border-radius: var(--ak-radius-button);
}

.ct-header .ct-button:hover {
    background-color: var(--ak-primary-hover);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.ak-hero {
    background: linear-gradient(135deg, var(--ak-background) 0%, #F5EDE5 100%);
    padding: var(--ak-section-padding) 0;
    position: relative;
    overflow: hidden;
}

.ak-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(199, 94, 59, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.ak-hero h1 {
    color: var(--ak-text);
    margin-bottom: 24px;
}

.ak-hero .motto {
    font-size: 24px;
    color: var(--ak-secondary);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Quick Info Bar / Stats Section
   -------------------------------------------------------------------------- */
.ak-stats-bar {
    background-color: var(--ak-white);
    padding: 40px 0;
    box-shadow: var(--ak-shadow-soft);
}

.ak-stat-item {
    text-align: center;
    padding: 20px;
}

.ak-stat-number {
    font-family: var(--ak-font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--ak-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.ak-stat-label {
    font-size: 14px;
    color: var(--ak-gray-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Cards (Activity Cards, Info Cards)
   -------------------------------------------------------------------------- */
.ak-card {
    background-color: var(--ak-white);
    border-radius: var(--ak-radius-card);
    padding: 32px;
    box-shadow: var(--ak-shadow-soft);
    transition: var(--ak-transition);
    height: 100%;
}

.ak-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ak-shadow-hover);
}

.ak-card-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(199, 94, 59, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ak-card-icon svg,
.ak-card-icon i {
    font-size: 28px;
    color: var(--ak-primary);
}

.ak-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.ak-card p {
    color: var(--ak-gray-medium);
    margin-bottom: 16px;
}

/* Activity Card Specific */
.ak-activity-card {
    border-top: 4px solid var(--ak-primary);
}

.ak-activity-card.teal {
    border-top-color: var(--ak-secondary);
}

.ak-activity-card.amber {
    border-top-color: var(--ak-accent-amber);
}

.ak-activity-card.sage {
    border-top-color: var(--ak-accent-sage);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.ak-section {
    padding: var(--ak-section-padding) 0;
}

.ak-section-light {
    background-color: var(--ak-background);
}

.ak-section-white {
    background-color: var(--ak-white);
}

.ak-section-teal {
    background-color: var(--ak-secondary);
    color: var(--ak-white);
}

.ak-section-teal h2,
.ak-section-teal h3,
.ak-section-teal p {
    color: var(--ak-white);
}

.ak-section-title {
    text-align: center;
    margin-bottom: 48px;
}

.ak-section-title h2 {
    margin-bottom: 16px;
}

.ak-section-title p {
    font-size: 18px;
    color: var(--ak-gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.ak-testimonial {
    background-color: var(--ak-white);
    border-radius: var(--ak-radius-card);
    padding: 40px;
    box-shadow: var(--ak-shadow-soft);
    position: relative;
}

.ak-testimonial::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 120px;
    color: rgba(199, 94, 59, 0.1);
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

.ak-testimonial-text {
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.ak-testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ak-testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--ak-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ak-font-heading);
    font-weight: 700;
    color: var(--ak-secondary);
}

.ak-testimonial-name {
    font-weight: 600;
    color: var(--ak-text);
}

.ak-testimonial-role {
    font-size: 14px;
    color: var(--ak-gray-medium);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.ak-cta-section {
    background: linear-gradient(135deg, var(--ak-primary) 0%, #D97A5A 100%);
    padding: var(--ak-section-padding) 0;
    text-align: center;
}

.ak-cta-section h2,
.ak-cta-section p {
    color: var(--ak-white);
}

.ak-cta-section .ak-btn-primary {
    background-color: var(--ak-white) !important;
    color: var(--ak-primary) !important;
}

.ak-cta-section .ak-btn-primary:hover {
    background-color: var(--ak-background) !important;
}

/* --------------------------------------------------------------------------
   Award Badge / Integration Prize
   -------------------------------------------------------------------------- */
.ak-award-badge {
    background: linear-gradient(135deg, var(--ak-accent-amber) 0%, #D4922E 100%);
    color: var(--ak-white);
    padding: 24px 32px;
    border-radius: var(--ak-radius-card);
    display: inline-flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--ak-shadow-medium);
}

.ak-award-badge-icon {
    font-size: 48px;
}

.ak-award-badge-text h4 {
    color: var(--ak-white);
    margin-bottom: 4px;
}

.ak-award-badge-text p {
    margin: 0;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Team Section
   -------------------------------------------------------------------------- */
.ak-team-member {
    text-align: center;
    padding: 32px;
}

.ak-team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--ak-gray-light);
}

.ak-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ak-team-name {
    font-size: 22px;
    margin-bottom: 4px;
}

.ak-team-role {
    color: var(--ak-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.ak-contact-info {
    background-color: var(--ak-white);
    border-radius: var(--ak-radius-card);
    padding: 40px;
    box-shadow: var(--ak-shadow-soft);
}

.ak-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.ak-contact-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(42, 122, 122, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ak-contact-icon svg,
.ak-contact-icon i {
    color: var(--ak-secondary);
    font-size: 20px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer.ct-footer {
    background-color: var(--ak-text);
    color: var(--ak-white);
}

footer.ct-footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer.ct-footer a:hover {
    color: var(--ak-primary);
}

.ak-footer-logo {
    margin-bottom: 24px;
}

.ak-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 12px;
    transition: var(--ak-transition);
}

.ak-footer-social a:hover {
    background-color: var(--ak-primary);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.ak-form input[type="text"],
.ak-form input[type="email"],
.ak-form input[type="tel"],
.ak-form textarea,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea {
    background-color: var(--ak-white);
    border: 2px solid var(--ak-gray-light);
    border-radius: var(--ak-radius-button);
    padding: 14px 18px;
    font-family: var(--ak-font-body);
    font-size: 16px;
    transition: var(--ak-transition);
    min-height: 44px;
}

.ak-form input:focus,
.ak-form textarea:focus,
.wpforms-form input:focus,
.wpforms-form textarea:focus {
    border-color: var(--ak-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 122, 122, 0.1);
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
/* Focus states */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--ak-secondary);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ak-primary);
    color: var(--ak-white);
    padding: 8px 16px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    .ak-section {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    .ak-section {
        padding: var(--ak-section-padding-mobile) 0;
    }
    
    .ak-card {
        padding: 24px;
    }
    
    .ak-stat-number {
        font-size: 36px;
    }
    
    .ak-testimonial {
        padding: 24px;
    }
    
    .ak-hero .motto {
        font-size: 20px;
    }
}

/* --------------------------------------------------------------------------
   RTL Support (for Arabic)
   -------------------------------------------------------------------------- */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .ak-contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .ak-testimonial-author {
    flex-direction: row-reverse;
}

/* --------------------------------------------------------------------------
   Gutenberg Block Overrides
   -------------------------------------------------------------------------- */
.wp-block-columns {
    gap: 32px;
}

.wp-block-group.has-background {
    padding: 40px;
    border-radius: var(--ak-radius-card);
}

.wp-block-cover {
    border-radius: var(--ak-radius-large);
    overflow: hidden;
}

.wp-block-separator {
    border-color: var(--ak-gray-light);
}

.wp-block-separator.is-style-wide {
    border-bottom-width: 2px;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-primary { color: var(--ak-primary) !important; }
.text-secondary { color: var(--ak-secondary) !important; }
.text-amber { color: var(--ak-accent-amber) !important; }
.text-sage { color: var(--ak-accent-sage) !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.bg-primary { background-color: var(--ak-primary) !important; }
.bg-secondary { background-color: var(--ak-secondary) !important; }
.bg-light { background-color: var(--ak-background) !important; }
.bg-white { background-color: var(--ak-white) !important; }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 16px !important; }
.mt-2 { margin-top: 32px !important; }
.mb-2 { margin-bottom: 32px !important; }
.mt-3 { margin-top: 48px !important; }
.mb-3 { margin-bottom: 48px !important; }

.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pt-1 { padding-top: 16px !important; }
.pb-1 { padding-bottom: 16px !important; }
.pt-2 { padding-top: 32px !important; }
.pb-2 { padding-bottom: 32px !important; }

/* --------------------------------------------------------------------------
   Contact Form Styles
   -------------------------------------------------------------------------- */
.ak-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.ak-form-row {
    margin-bottom: 24px;
}

.ak-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ak-text);
}

.ak-form-row input[type="text"],
.ak-form-row input[type="email"],
.ak-form-row input[type="tel"],
.ak-form-row select,
.ak-form-row textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--ak-gray-light);
    border-radius: var(--ak-radius-button);
    font-family: var(--ak-font-body);
    font-size: 16px;
    transition: var(--ak-transition);
    background-color: var(--ak-white);
}

.ak-form-row input:focus,
.ak-form-row select:focus,
.ak-form-row textarea:focus {
    outline: none;
    border-color: var(--ak-secondary);
    box-shadow: 0 0 0 3px rgba(42, 122, 122, 0.1);
}

.ak-form-row textarea {
    resize: vertical;
    min-height: 150px;
}

.ak-form-privacy {
    font-size: 14px;
}

.ak-form-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    cursor: pointer;
}

.ak-form-privacy input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ak-form-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 16px 24px;
    border-radius: var(--ak-radius-button);
    margin-bottom: 24px;
    text-align: center;
}

.ak-form-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 16px 24px;
    border-radius: var(--ak-radius-button);
    margin-bottom: 24px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Partner Cards
   -------------------------------------------------------------------------- */
.ak-partner-card {
    transition: var(--ak-transition);
}

.ak-partner-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ak-shadow-medium);
}

/* ==========================================================================
   MODERN REDESIGN 2026
   Inspired by contemporary web design: diagonal elements, asymmetric layouts,
   bold typography, more whitespace, visual depth
   ========================================================================== */

/* --------------------------------------------------------------------------
   Modern Hero Section - Full Width with Diagonal Cut
   -------------------------------------------------------------------------- */
.ak-hero-modern {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--ak-background) 0%, #F5EDE5 50%, var(--ak-white) 100%);
    overflow: hidden;
    padding: 0;
}

.ak-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: var(--ak-secondary);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.ak-hero-modern::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(199, 94, 59, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.ak-hero-modern .ak-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ak-hero-modern .ak-hero-text {
    padding-right: 40px;
}

.ak-hero-modern .ak-hero-label {
    display: inline-block;
    background: rgba(199, 94, 59, 0.1);
    color: var(--ak-primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.ak-hero-modern h1 {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--ak-text);
}

.ak-hero-modern h1 span {
    color: var(--ak-primary);
    display: block;
}

.ak-hero-modern .ak-hero-subtitle {
    font-size: 22px;
    color: var(--ak-secondary);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 24px;
}

.ak-hero-modern .ak-hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--ak-gray-medium);
    margin-bottom: 40px;
    max-width: 500px;
}

.ak-hero-modern .ak-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ak-hero-modern .ak-hero-image-container {
    position: relative;
    z-index: 10;
}

.ak-hero-modern .ak-hero-image-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ak-shadow-hover);
    transform: rotate(-3deg);
}

.ak-hero-modern .ak-hero-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.ak-hero-modern .ak-hero-image-accent {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ak-shadow-medium);
    border: 5px solid var(--ak-white);
    transform: rotate(5deg);
    z-index: 11;
}

.ak-hero-modern .ak-hero-image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ak-hero-modern .ak-hero-badge {
    position: absolute;
    top: -20px;
    right: 20px;
    background: linear-gradient(135deg, var(--ak-accent-amber) 0%, #D4922E 100%);
    color: var(--ak-white);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--ak-shadow-medium);
    z-index: 12;
    text-align: center;
}

.ak-hero-modern .ak-hero-badge-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.ak-hero-modern .ak-hero-badge-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Modern Stats Section - Floating Cards
   -------------------------------------------------------------------------- */
.ak-stats-modern {
    position: relative;
    margin-top: -60px;
    z-index: 20;
    padding: 0 5%;
}

.ak-stats-modern .ak-stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ak-stats-modern .ak-stat-card {
    background: var(--ak-white);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--ak-shadow-medium);
    transition: var(--ak-transition);
    border-bottom: 4px solid transparent;
}

.ak-stats-modern .ak-stat-card:nth-child(1) { border-bottom-color: var(--ak-primary); }
.ak-stats-modern .ak-stat-card:nth-child(2) { border-bottom-color: var(--ak-secondary); }
.ak-stats-modern .ak-stat-card:nth-child(3) { border-bottom-color: var(--ak-accent-amber); }
.ak-stats-modern .ak-stat-card:nth-child(4) { border-bottom-color: var(--ak-accent-sage); }

.ak-stats-modern .ak-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ak-shadow-hover);
}

.ak-stats-modern .ak-stat-number {
    font-family: var(--ak-font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--ak-text);
    line-height: 1;
    margin-bottom: 8px;
}

.ak-stats-modern .ak-stat-label {
    font-size: 14px;
    color: var(--ak-gray-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Modern Section with Diagonal Background
   -------------------------------------------------------------------------- */
.ak-section-modern {
    padding: 120px 5%;
    position: relative;
}

.ak-section-modern.ak-diagonal-bg {
    background: linear-gradient(175deg, var(--ak-background) 0%, var(--ak-background) 50%, var(--ak-white) 50%, var(--ak-white) 100%);
}

.ak-section-modern .ak-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.ak-section-modern .ak-section-label {
    display: inline-block;
    background: rgba(42, 122, 122, 0.1);
    color: var(--ak-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.ak-section-modern h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.ak-section-modern .ak-section-subtitle {
    font-size: 18px;
    color: var(--ak-gray-medium);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Modern Image Mosaic / Collage
   -------------------------------------------------------------------------- */
.ak-image-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ak-image-mosaic .ak-mosaic-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.ak-image-mosaic .ak-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ak-image-mosaic .ak-mosaic-item:hover img {
    transform: scale(1.05);
}

.ak-image-mosaic .ak-mosaic-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.ak-image-mosaic .ak-mosaic-item .ak-mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: var(--ak-white);
}

.ak-image-mosaic .ak-mosaic-item .ak-mosaic-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ak-image-mosaic .ak-mosaic-item .ak-mosaic-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Modern Activity Cards - Horizontal Layout
   -------------------------------------------------------------------------- */
.ak-activities-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.ak-activity-modern {
    display: flex;
    background: var(--ak-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ak-shadow-soft);
    transition: var(--ak-transition);
}

.ak-activity-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--ak-shadow-hover);
}

.ak-activity-modern .ak-activity-image {
    width: 180px;
    flex-shrink: 0;
    position: relative;
}

.ak-activity-modern .ak-activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ak-activity-modern .ak-activity-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--ak-white));
}

.ak-activity-modern .ak-activity-content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ak-activity-modern .ak-activity-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.ak-activity-modern h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--ak-text);
}

.ak-activity-modern p {
    font-size: 15px;
    color: var(--ak-gray-medium);
    margin-bottom: 12px;
    line-height: 1.6;
}

.ak-activity-modern .ak-activity-time {
    font-size: 13px;
    color: var(--ak-secondary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Modern About Section - Asymmetric Layout
   -------------------------------------------------------------------------- */
.ak-about-modern {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.ak-about-modern.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.ak-about-modern.reverse .ak-about-images {
    order: 2;
}

.ak-about-modern .ak-about-images {
    position: relative;
    padding: 40px;
}

.ak-about-modern .ak-about-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--ak-shadow-hover);
}

.ak-about-modern .ak-about-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.ak-about-modern .ak-about-image-float {
    position: absolute;
    width: 45%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ak-shadow-medium);
    border: 5px solid var(--ak-white);
}

.ak-about-modern .ak-about-image-float.top-right {
    top: 0;
    right: 0;
}

.ak-about-modern .ak-about-image-float.bottom-left {
    bottom: 0;
    left: 0;
}

.ak-about-modern .ak-about-image-float img {
    width: 100%;
    height: auto;
    display: block;
}

.ak-about-modern .ak-about-content h2 {
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 24px;
    line-height: 1.2;
}

.ak-about-modern .ak-about-content .ak-highlight {
    color: var(--ak-primary);
}

.ak-about-modern .ak-about-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ak-gray-medium);
    margin-bottom: 24px;
}

.ak-about-modern .ak-about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.ak-about-modern .ak-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ak-about-modern .ak-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(42, 122, 122, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ak-about-modern .ak-feature-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--ak-text);
}

/* --------------------------------------------------------------------------
   Modern CTA Section - Full Width with Pattern
   -------------------------------------------------------------------------- */
.ak-cta-modern {
    background: linear-gradient(135deg, var(--ak-primary) 0%, #D97A5A 100%);
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

.ak-cta-modern::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.ak-cta-modern::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.ak-cta-modern .ak-cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--ak-white);
}

.ak-cta-modern h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
    color: var(--ak-white);
}

.ak-cta-modern p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 40px;
    color: var(--ak-white);
}

.ak-cta-modern .ak-btn-white {
    background: var(--ak-white) !important;
    color: var(--ak-primary) !important;
    padding: 16px 36px !important;
    font-size: 17px;
    border-radius: 12px !important;
}

.ak-cta-modern .ak-btn-white:hover {
    background: var(--ak-background) !important;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Modern Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ak-hero-modern::before {
        width: 100%;
        height: 38%;
        top: auto;
        bottom: 0;
        clip-path: polygon(0 55%, 100% 0, 100% 100%, 0% 100%);
    }
    
    .ak-hero-modern .ak-hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 100px 5%;
    }
    
    .ak-hero-modern .ak-hero-text {
        padding-right: 0;
        text-align: center;
    }
    
    .ak-hero-modern .ak-hero-buttons {
        justify-content: center;
    }
    
    .ak-hero-modern .ak-hero-image-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .ak-stats-modern .ak-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ak-about-modern {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .ak-about-modern.reverse .ak-about-images {
        order: 0;
    }
    
    .ak-activities-modern {
        grid-template-columns: 1fr;
    }
    
    .ak-image-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }
    
    .ak-image-mosaic .ak-mosaic-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .ak-hero-modern {
        min-height: auto;
    }
    
    .ak-hero-modern .ak-hero-content {
        padding: 80px 5%;
    }
    
    .ak-hero-modern .ak-hero-image-accent {
        width: 120px;
        height: 120px;
        bottom: -20px;
        left: -20px;
    }
    
    .ak-hero-modern .ak-hero-badge {
        padding: 12px 16px;
    }
    
    .ak-stats-modern {
        margin-top: -40px;
    }
    
    .ak-stats-modern .ak-stats-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ak-stats-modern .ak-stat-card {
        padding: 24px 20px;
    }
    
    .ak-stats-modern .ak-stat-number {
        font-size: 36px;
    }
    
    .ak-section-modern {
        padding: 80px 5%;
    }
    
    .ak-activity-modern {
        flex-direction: column;
    }
    
    .ak-activity-modern .ak-activity-image {
        width: 100%;
        height: 180px;
    }
    
    .ak-activity-modern .ak-activity-image::after {
        display: none;
    }
    
    .ak-about-modern .ak-about-features {
        grid-template-columns: 1fr;
    }
    
    .ak-image-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .ak-image-mosaic .ak-mosaic-item {
        height: 200px;
    }
    
    .ak-image-mosaic .ak-mosaic-item.large {
        grid-column: span 1;
        height: 280px;
    }
}

/* ============================================
   FIX: Ressourcen-Ehrenamtliche Boxen
   ============================================ */
.ak-section .wp-block-columns {
    overflow: visible;
}

.ak-section .ak-card {
    overflow: visible;
    height: auto;
}

.ak-section .wp-block-column {
    overflow: visible;
}

/* ============================================
   PARTNER LOGOS
   ============================================ */
.ak-partner-logo {
    background: var(--ak-white);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--ak-shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.ak-partner-logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--ak-shadow-medium);
}

.ak-partner-logo img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.ak-partner-logo span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ak-gray-medium);
}

/* ============================================
   ADDITIONAL MOBILE RESPONSIVENESS
   ============================================ */
@media (max-width: 1024px) {
    /* Quick Links Grid */
    .ak-section-modern > div > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Values Grid */
    .ak-section-modern div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Team Grid */
    .ak-section-modern div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Onboarding Steps */
    .ak-section-modern div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px !important;
    }
    
    /* Award Section */
    .ak-section-modern div[style*="display: flex"][style*="gap: 48px"] {
        flex-direction: column !important;
    }
    
    /* News Grid */
    .ak-section-modern div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Contact Grid */
    .ak-section-modern div[style*="grid-template-columns: 1fr 1.2fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Donate Section */
    .ak-section-modern div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 48px"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    /* Values Grid Mobile */
    .ak-section-modern div[style*="grid-template-columns: repeat(4, 1fr)"],
    .ak-section-modern div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Requirements Grid */
    .ak-section-modern div[style*="display: grid"][style*="gap: 32px"] {
        grid-template-columns: 1fr !important;
    }
    
    /* CTA Buttons */
    .ak-cta-modern .ak-cta-content div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .ak-cta-modern .ak-cta-content div[style*="display: flex"] a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Hero Buttons */
    .ak-hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ak-hero-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Partner Logos */
    .ak-partner-logo {
        min-height: 120px;
        padding: 20px;
    }
    
    .ak-partner-logo img {
        max-width: 100px;
        max-height: 50px;
    }
    
    /* Events List */
    .ak-section-modern div[style*="display: flex"][style*="gap: 24px"][style*="align-items: flex-start"] {
        flex-direction: column !important;
    }
    
    /* FAQ Items */
    .ak-section-modern div[style*="border-radius: 16px"][style*="padding: 24px"] h4 {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    /* Hero Text */
    .ak-hero-modern h1 {
        font-size: 32px !important;
    }
    
    .ak-hero-description {
        font-size: 16px !important;
    }
    
    /* Section Headers */
    .ak-section-header h2 {
        font-size: 28px !important;
    }
    
    /* CTA Section */
    .ak-cta-modern {
        padding: 60px 5% !important;
    }
    
    .ak-cta-modern h2 {
        font-size: 24px !important;
    }
    
    /* Activity Cards */
    .ak-activity-modern .ak-activity-content h3 {
        font-size: 18px !important;
    }
    
    /* About Content */
    .ak-about-content h2 {
        font-size: 28px !important;
    }
    
    /* Partner Grid */
    .ak-section-modern div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   MOBILE HEADER & MENU FIXES
   ============================================ */

/* Hide "More" dropdown - show all menu items - AGGRESSIVE */
.ct-header-menu .menu-item-has-children.ct-more-items,
.ct-header .ct-more-items,
header .ct-more-items,
[data-id="menu"] .ct-more-items,
.menu-item.ct-more-items,
li.ct-more-items,
.ct-menu-more,
[class*="more-items"],
.menu-item a[href="#more"],
.menu-item:has(> a:empty),
nav .ct-more-items {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Force all menu items to show */
.ct-header-menu > li,
[data-id="menu"] > ul > li {
    display: flex !important;
    visibility: visible !important;
}

/* ============================================
   AK PAGE HERO (compact photo hero for inner pages)
   ============================================ */
.ak-page-hero {
    margin-top: 0;
    min-height: 280px !important;
    max-height: 340px;
}
.ak-page-hero > div {
    padding-top: 60px !important;
    padding-bottom: 50px !important;
}

/* Offset for sticky header */
@media (min-width: 1000px) {
    .ak-page-hero {
        padding-top: 0;
    }
}
@media (max-width: 768px) {
    .ak-page-hero {
        min-height: 220px !important;
    }
    .ak-page-hero > div {
        padding-top: 40px !important;
        padding-bottom: 36px !important;
    }
    .ak-page-hero h1 {
        font-size: 28px !important;
    }
}

/* Menü näher am Logo (nur nicht-DE; Deutsch passt wie es ist) */
@media (min-width: 1000px) {
    body.lang-non-de .ct-header [data-row="middle"] .ct-container {
        justify-content: flex-start !important;
        gap: 40px !important;
    }
}

/* ============================================
   STICKY HEADER: large on load, shrinks on scroll
   ============================================ */
.ct-header {
    transition: padding 0.3s ease, box-shadow 0.3s ease !important;
}

/* Initial taller state (handled via JS below in functions.php) */
.ct-header.ak-header-large [data-row="middle"] {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}
.ct-header.ak-header-large [data-id="logo"] img,
.ct-header.ak-header-large .site-branding .site-title a img {
    max-height: 80px !important;
}

/* Shrunk state after scroll */
.ct-header.ak-header-small [data-row="middle"] {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}
.ct-header.ak-header-small [data-id="logo"] img,
.ct-header.ak-header-small .site-branding .site-title a img {
    max-height: 44px !important;
    transition: max-height 0.3s ease !important;
}

/* Mobile: more breathing room at top, larger initial header */
@media (max-width: 999px) {
    .ct-header [data-row="middle"] {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        min-height: 70px !important;
    }
    .ct-header.ak-header-small [data-row="middle"] {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        min-height: 52px !important;
    }
    /* Extra top breathing room for the whole page on mobile */
    body {
        padding-top: 0 !important;
    }
    /* lang switcher already styled above */
}

/* ============================================
   HIDE THEME page-title (we use our own hero h1)
   ============================================ */
.entry-header .page-title,
.page-header .page-title,
.site-content .page-title,
h1.page-title {
    display: none !important;
}

/* Mobile Header Logo Fix */
@media (max-width: 999px) {
    /* Force logo visibility on mobile */
    .ct-header .site-logo-container,
    .ct-header [data-id="logo"],
    .ct-header .ct-logo,
    header .site-logo,
    header .custom-logo-link,
    header .site-branding {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
    }

    /* Logo image itself */
    .ct-header [data-id="logo"] img,
    .ct-header .ct-logo img,
    header .ct-logo img,
    header img[src*="logo"],
    .ct-header img:not([src*="icon"]):not([src*="avatar"]) {
        max-height: 55px !important;
        width: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile Menu Cleanup */
    .ct-mobile-menu .menu-item a {
        font-size: 16px !important;
        padding: 12px 20px !important;
    }
    
    /* Hide other-language links (sprachabhängig via body.lang-xx) – Desktop + Mobile */
    body.lang-de .ct-header-menu .menu-item a[href*="/en"],
    body.lang-de .ct-mobile-menu .menu-item a[href*="/en"],
    body.lang-de .ct-panel .menu-item a[href*="/en"],
    body.lang-de .ct-header-menu .menu-item a[href*="/fr"],
    body.lang-de .ct-mobile-menu .menu-item a[href*="/fr"],
    body.lang-de .ct-panel .menu-item a[href*="/fr"],
    body.lang-de .ct-header-menu .menu-item a[href*="/uk"],
    body.lang-de .ct-mobile-menu .menu-item a[href*="/uk"],
    body.lang-de .ct-panel .menu-item a[href*="/uk"],
    body.lang-de .ct-header-menu .menu-item a[href*="/ar"],
    body.lang-de .ct-mobile-menu .menu-item a[href*="/ar"],
    body.lang-de .ct-panel .menu-item a[href*="/ar"],
    body.lang-de .ct-header-menu .menu-item a[href*="/ru"],
    body.lang-de .ct-mobile-menu .menu-item a[href*="/ru"],
    body.lang-de .ct-panel .menu-item a[href*="/ru"],
    body.lang-de .ct-header-menu .menu-item a[href*="/fa"],
    body.lang-de .ct-mobile-menu .menu-item a[href*="/fa"],
    body.lang-de .ct-panel .menu-item a[href*="/fa"],
    body.lang-de .ct-header-menu .menu-item a[href*="/prs"],
    body.lang-de .ct-mobile-menu .menu-item a[href*="/prs"],
    body.lang-de .ct-panel .menu-item a[href*="/prs"],
    body.lang-de .ct-header-menu .menu-item a[href*="/am"],
    body.lang-de .ct-mobile-menu .menu-item a[href*="/am"],
    body.lang-de .ct-panel .menu-item a[href*="/am"],
    body.lang-en .ct-mobile-menu .menu-item a[href*="/fr"],
    body.lang-en .ct-mobile-menu .menu-item a[href*="/uk"],
    body.lang-en .ct-mobile-menu .menu-item a[href*="/ar"],
    body.lang-en .ct-mobile-menu .menu-item a[href*="/ru"],
    body.lang-en .ct-mobile-menu .menu-item a[href*="/fa"],
    body.lang-en .ct-mobile-menu .menu-item a[href*="/prs"],
    body.lang-en .ct-mobile-menu .menu-item a[href*="/am"],
    body.lang-fr .ct-mobile-menu .menu-item a[href*="/en"],
    body.lang-fr .ct-mobile-menu .menu-item a[href*="/uk"],
    body.lang-fr .ct-mobile-menu .menu-item a[href*="/ar"],
    body.lang-fr .ct-mobile-menu .menu-item a[href*="/ru"],
    body.lang-fr .ct-mobile-menu .menu-item a[href*="/fa"],
    body.lang-fr .ct-mobile-menu .menu-item a[href*="/prs"],
    body.lang-fr .ct-mobile-menu .menu-item a[href*="/am"],
    body.lang-uk .ct-mobile-menu .menu-item a[href*="/en"],
    body.lang-uk .ct-mobile-menu .menu-item a[href*="/fr"],
    body.lang-uk .ct-mobile-menu .menu-item a[href*="/ar"],
    body.lang-uk .ct-mobile-menu .menu-item a[href*="/ru"],
    body.lang-uk .ct-mobile-menu .menu-item a[href*="/fa"],
    body.lang-uk .ct-mobile-menu .menu-item a[href*="/prs"],
    body.lang-uk .ct-mobile-menu .menu-item a[href*="/am"],
    body.lang-ar .ct-mobile-menu .menu-item a[href*="/en"],
    body.lang-ar .ct-mobile-menu .menu-item a[href*="/fr"],
    body.lang-ar .ct-mobile-menu .menu-item a[href*="/uk"],
    body.lang-ar .ct-mobile-menu .menu-item a[href*="/ru"],
    body.lang-ar .ct-mobile-menu .menu-item a[href*="/fa"],
    body.lang-ar .ct-mobile-menu .menu-item a[href*="/prs"],
    body.lang-ar .ct-mobile-menu .menu-item a[href*="/am"],
    body.lang-ru .ct-mobile-menu .menu-item a[href*="/en"],
    body.lang-ru .ct-mobile-menu .menu-item a[href*="/fr"],
    body.lang-ru .ct-mobile-menu .menu-item a[href*="/uk"],
    body.lang-ru .ct-mobile-menu .menu-item a[href*="/ar"],
    body.lang-ru .ct-mobile-menu .menu-item a[href*="/fa"],
    body.lang-ru .ct-mobile-menu .menu-item a[href*="/prs"],
    body.lang-ru .ct-mobile-menu .menu-item a[href*="/am"],
    body.lang-fa .ct-mobile-menu .menu-item a[href*="/en"],
    body.lang-fa .ct-mobile-menu .menu-item a[href*="/fr"],
    body.lang-fa .ct-mobile-menu .menu-item a[href*="/uk"],
    body.lang-fa .ct-mobile-menu .menu-item a[href*="/ar"],
    body.lang-fa .ct-mobile-menu .menu-item a[href*="/ru"],
    body.lang-fa .ct-mobile-menu .menu-item a[href*="/prs"],
    body.lang-fa .ct-mobile-menu .menu-item a[href*="/am"],
    body.lang-prs .ct-mobile-menu .menu-item a[href*="/en"],
    body.lang-prs .ct-mobile-menu .menu-item a[href*="/fr"],
    body.lang-prs .ct-mobile-menu .menu-item a[href*="/uk"],
    body.lang-prs .ct-mobile-menu .menu-item a[href*="/ar"],
    body.lang-prs .ct-mobile-menu .menu-item a[href*="/ru"],
    body.lang-prs .ct-mobile-menu .menu-item a[href*="/fa"],
    body.lang-prs .ct-mobile-menu .menu-item a[href*="/am"],
    body.lang-am .ct-mobile-menu .menu-item a[href*="/en"],
    body.lang-am .ct-mobile-menu .menu-item a[href*="/fr"],
    body.lang-am .ct-mobile-menu .menu-item a[href*="/uk"],
    body.lang-am .ct-mobile-menu .menu-item a[href*="/ar"],
    body.lang-am .ct-mobile-menu .menu-item a[href*="/ru"],
    body.lang-am .ct-mobile-menu .menu-item a[href*="/fa"],
    body.lang-am .ct-mobile-menu .menu-item a[href*="/prs"] {
        display: none !important;
    }
    /* On non-DE: hide links that don't match current language (incl. German root) */
    body.lang-en .ct-header-menu .menu-item a:not([href="#"]):not([href*="/en"]),
    body.lang-en .ct-mobile-menu .menu-item a:not([href="#"]):not([href*="/en"]),
    body.lang-en .ct-panel .menu-item a:not([href="#"]):not([href*="/en"]) { display: none !important; }
    body.lang-fr .ct-header-menu .menu-item a:not([href="#"]):not([href*="/fr"]),
    body.lang-fr .ct-mobile-menu .menu-item a:not([href="#"]):not([href*="/fr"]),
    body.lang-fr .ct-panel .menu-item a:not([href="#"]):not([href*="/fr"]) { display: none !important; }
    body.lang-uk .ct-header-menu .menu-item a:not([href="#"]):not([href*="/uk"]),
    body.lang-uk .ct-mobile-menu .menu-item a:not([href="#"]):not([href*="/uk"]),
    body.lang-uk .ct-panel .menu-item a:not([href="#"]):not([href*="/uk"]) { display: none !important; }
    body.lang-ar .ct-header-menu .menu-item a:not([href="#"]):not([href*="/ar"]),
    body.lang-ar .ct-mobile-menu .menu-item a:not([href="#"]):not([href*="/ar"]),
    body.lang-ar .ct-panel .menu-item a:not([href="#"]):not([href*="/ar"]) { display: none !important; }
    body.lang-ru .ct-header-menu .menu-item a:not([href="#"]):not([href*="/ru"]),
    body.lang-ru .ct-mobile-menu .menu-item a:not([href="#"]):not([href*="/ru"]),
    body.lang-ru .ct-panel .menu-item a:not([href="#"]):not([href*="/ru"]) { display: none !important; }
    body.lang-fa .ct-header-menu .menu-item a:not([href="#"]):not([href*="/fa"]),
    body.lang-fa .ct-mobile-menu .menu-item a:not([href="#"]):not([href*="/fa"]),
    body.lang-fa .ct-panel .menu-item a:not([href="#"]):not([href*="/fa"]) { display: none !important; }
    body.lang-prs .ct-header-menu .menu-item a:not([href="#"]):not([href*="/prs"]),
    body.lang-prs .ct-mobile-menu .menu-item a:not([href="#"]):not([href*="/prs"]),
    body.lang-prs .ct-panel .menu-item a:not([href="#"]):not([href*="/prs"]) { display: none !important; }
    body.lang-am .ct-header-menu .menu-item a:not([href="#"]):not([href*="/am"]),
    body.lang-am .ct-mobile-menu .menu-item a:not([href="#"]):not([href*="/am"]),
    body.lang-am .ct-panel .menu-item a:not([href="#"]):not([href*="/am"]) { display: none !important; }
    
    /* Hide Impressum from main mobile menu */
    .ct-mobile-menu .menu-item a[href*="impressum"] {
        display: none !important;
    }
}

/* ============================================
   MOBILE MENU: Light color theme (not black)
   ============================================ */
.ct-mobile-menu,
.ct-drawer-canvas,
[data-behaviour="drawer"],
.ct-panel,
.ct-toggle-dropdown-mobile {
    --ak-menu-panel-icon: #1a1a1a;
    background-color: #F8F4EF !important;
    color: var(--ak-text) !important;
}

/* Blocksy uses --theme-icon-color for dropdown chevrons — override so they match X button */
.ct-mobile-menu .ct-menu-link,
.ct-panel .ct-menu-link,
.ct-mobile-menu nav[class*="menu"] .ct-menu-link,
.ct-panel nav[class*="menu"] .ct-menu-link,
.ct-mobile-menu .menu-item-has-children .ct-menu-link,
.ct-panel .menu-item-has-children .ct-menu-link {
    --theme-icon-color: var(--ak-menu-panel-icon) !important;
}

.ct-mobile-menu a,
.ct-panel a,
.ct-drawer-canvas a {
    color: var(--ak-text) !important;
}

.ct-mobile-menu a:hover,
.ct-panel a:hover {
    color: var(--ak-primary) !important;
}

/* Mobile menu header/close button */
.ct-panel .ct-panel-inner,
.ct-toggle-dropdown-mobile .ct-panel-inner {
    background-color: #F8F4EF !important;
}

/* Mobile menu item separators */
.ct-mobile-menu .menu-item {
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

/* Sub-menu toggle arrow — same color as close (X), visible before hover (not only on :hover) */
.ct-mobile-menu .menu-item-has-children > a,
.ct-panel .menu-item-has-children > a,
.ct-toggle-dropdown-mobile .menu-item-has-children > a {
    color: var(--ak-text) !important;
}

.ct-mobile-menu .menu-item-has-children > a .ct-sub-arrow,
.ct-panel .ct-sub-arrow,
.ct-panel [data-type="sub-menu"] .ct-sub-arrow,
.ct-toggle-dropdown-mobile .ct-sub-arrow {
    color: var(--ak-menu-panel-icon) !important;
    border-color: var(--ak-menu-panel-icon) !important;
    opacity: 1 !important;
    transition: none !important;
}

.ct-mobile-menu .menu-item-has-children > a:hover .ct-sub-arrow,
.ct-panel .menu-item-has-children > a:hover .ct-sub-arrow,
.ct-toggle-dropdown-mobile .menu-item-has-children > a:hover .ct-sub-arrow {
    color: var(--ak-menu-panel-icon) !important;
    border-color: var(--ak-menu-panel-icon) !important;
    opacity: 1 !important;
}

.ct-mobile-menu .menu-item-has-children > a .ct-sub-arrow svg,
.ct-panel .ct-sub-arrow svg,
.ct-toggle-dropdown-mobile .ct-sub-arrow svg,
.ct-mobile-menu .menu-item-has-children > a svg,
.ct-panel .menu-item-has-children > a svg {
    color: var(--ak-menu-panel-icon) !important;
    opacity: 1 !important;
    transition: none !important;
}

.ct-mobile-menu .menu-item-has-children > a:hover .ct-sub-arrow svg,
.ct-panel .menu-item-has-children > a:hover .ct-sub-arrow svg {
    color: var(--ak-menu-panel-icon) !important;
}

/* Stroke chevrons (typical); avoid forcing fill so outline icons stay correct */
.ct-mobile-menu .menu-item-has-children > a svg path,
.ct-panel .menu-item-has-children > a svg path,
.ct-mobile-menu .menu-item-has-children > a svg polyline,
.ct-panel .menu-item-has-children > a svg polyline,
.ct-mobile-menu .menu-item-has-children > a svg line,
.ct-panel .menu-item-has-children > a svg line,
.ct-mobile-menu .ct-sub-arrow svg path,
.ct-panel .ct-sub-arrow svg path,
.ct-mobile-menu .menu-item-has-children > a:hover .ct-sub-arrow svg path,
.ct-panel .menu-item-has-children > a:hover .ct-sub-arrow svg path {
    stroke: var(--ak-menu-panel-icon) !important;
}

.ct-mobile-menu .menu-item-has-children > a svg path[fill]:not([fill="none"]),
.ct-panel .menu-item-has-children > a svg path[fill]:not([fill="none"]),
.ct-mobile-menu .menu-item-has-children > a:hover svg path[fill]:not([fill="none"]),
.ct-panel .menu-item-has-children > a:hover svg path[fill]:not([fill="none"]) {
    fill: var(--ak-menu-panel-icon) !important;
}

/* Some Blocksy layouts: dropdown toggle is a sibling button (same icon color as X, no hover delay) */
.ct-mobile-menu .menu-item-has-children > button,
.ct-panel .menu-item-has-children > button {
    color: var(--ak-menu-panel-icon) !important;
    opacity: 1 !important;
    transition: none !important;
}

.ct-mobile-menu .menu-item-has-children > button svg,
.ct-panel .menu-item-has-children > button svg,
.ct-mobile-menu .menu-item-has-children > button .ct-sub-arrow,
.ct-panel .menu-item-has-children > button .ct-sub-arrow {
    color: var(--ak-menu-panel-icon) !important;
    opacity: 1 !important;
    transition: none !important;
}

.ct-mobile-menu .menu-item-has-children > button svg path,
.ct-panel .menu-item-has-children > button svg path,
.ct-mobile-menu .menu-item-has-children > button svg polyline,
.ct-panel .menu-item-has-children > button svg polyline {
    stroke: var(--ak-menu-panel-icon) !important;
}

/* Close (X) button — same token as sub-arrows */
.ct-panel .ct-toggle-close,
.ct-panel .ct-drawer-close,
[data-id="close-panel"],
.ct-close-panel,
.ct-panel button.ct-toggle-close svg,
.ct-panel button[aria-label*="lose"] svg,
.ct-panel .ct-toggle svg {
    color: var(--ak-menu-panel-icon) !important;
    fill: var(--ak-menu-panel-icon) !important;
    stroke: var(--ak-menu-panel-icon) !important;
    opacity: 1 !important;
}

/* ============================================
   WOHNUNGSSUCHE HERO: Mobile fix
   ============================================ */
@media (max-width: 768px) {
    /* Hero on wohnungssuche: stack image below text, no overflow */
    .ak-hero-modern .ak-hero-image-container {
        position: relative !important;
        margin-top: 32px !important;
        width: 100% !important;
    }

    .ak-hero-modern .ak-hero-image-main {
        width: 100% !important;
        height: 220px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .ak-hero-modern .ak-hero-image-main img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .ak-hero-modern .ak-hero-image-accent {
        position: absolute !important;
        bottom: -20px !important;
        left: 16px !important;
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        border: 3px solid white !important;
        box-shadow: var(--ak-shadow-medium) !important;
    }

    .ak-hero-modern .ak-hero-image-accent img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* ============================================
   LANGUAGE SWITCHER: Label always visible on desktop
   ============================================ */
@media (min-width: 769px) {
    .ak-lang-switcher-bar .ak-lang-label {
        display: inline !important;
        font-weight: 600;
        color: rgba(255,255,255,0.95);
        margin-right: 10px;
    }

    .ak-lang-switcher-flags {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
    }
}

/* ============================================
   CUSTOM FOOTER – hell, Logo, Seiten, Sprachwahl
   ============================================ */
.ak-footer-custom {
    background: linear-gradient(180deg, #F8F5F1 0%, #EDE8E2 100%);
    color: var(--ak-text);
    padding: 48px 5% 24px;
    margin-top: 0;
    border-top: 1px solid var(--ak-gray-light);
}

.ak-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ak-footer-top {
    display: grid;
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) minmax(140px, 180px);
    gap: 40px 32px;
    align-items: start;
    margin-bottom: 32px;
}

/* Spalten wie Hauptmenü: Über uns | Für Geflüchtete | Für Ehrenamtliche (+ Sprache) */
.ak-footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 36px;
    align-items: flex-start;
    justify-content: flex-start;
}

.ak-footer-col {
    flex: 1 1 150px;
    min-width: 130px;
    max-width: 220px;
}

.ak-footer-col ul {
    display: block;
}

@media (max-width: 900px) {
    .ak-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .ak-footer-brand { grid-column: 1 / -1; }
    .ak-footer-nav { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .ak-footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ak-footer-col {
        max-width: none;
    }
}

.ak-footer-brand .ak-footer-logo-img {
    max-height: 56px;
    width: auto;
    display: block;
    margin-bottom: 8px;
}

.ak-footer-tagline {
    font-size: 13px;
    color: var(--ak-gray-medium);
    margin: 0;
    max-width: 200px;
}

.ak-footer-nav h4,
.ak-footer-lang h4,
.ak-footer-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ak-gray-medium);
    margin: 0 0 12px;
}

.ak-footer-nav ul,
.ak-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ak-footer-col li {
    margin: 0 0 6px;
}

.ak-footer-nav a,
.ak-footer-lang a {
    color: var(--ak-text);
    text-decoration: none;
    font-size: 14px;
}

.ak-footer-nav a:hover,
.ak-footer-lang a:hover {
    color: var(--ak-primary);
}

.ak-footer-lang-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ak-footer-lang a {
    padding: 4px 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
    font-size: 12px;
}

.ak-footer-lang a:hover,
.ak-footer-lang a.active {
    background: var(--ak-secondary);
    color: white;
}

.ak-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--ak-gray-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: var(--ak-gray-medium);
}

.ak-footer-bottom a {
    color: var(--ak-text);
    text-decoration: none;
}

.ak-footer-bottom a:hover {
    color: var(--ak-primary);
}

/* ============================================
   IMPROVED LANGUAGE SWITCHER
   ============================================ */
.ak-lang-switcher-bar {
    background: linear-gradient(135deg, var(--ak-secondary), #1F6666);
    padding: 10px 0 12px;
    text-align: center;
    position: relative;
    z-index: 100;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.ak-lang-switcher-bar::-webkit-scrollbar { display: none; }

.ak-lang-switcher-bar .ak-lang-label {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-right: 12px;
}

.ak-lang-switcher-bar a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ak-lang-switcher-bar a:hover {
    background: rgba(255,255,255,0.2);
}

.ak-lang-switcher-bar a.active {
    background: white;
    color: var(--ak-secondary);
}

.ak-lang-switcher-bar .ak-flag {
    font-size: 16px;
}

/* ============================================
   STICKY WOHNUNG BUTTON
   ============================================ */
.ak-sticky-wohnung-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
}

.ak-sticky-wohnung {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #D4522A 0%, #E8753D 100%);
    color: white !important;
    padding: 16px 28px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(199, 94, 59, 0.55), 0 2px 8px rgba(0,0,0,0.2);
    text-decoration: none !important;
    font-weight: 800;
    font-size: 16px;
    font-family: var(--ak-font-heading);
    transition: all 0.3s ease;
    animation: ak-sticky-pulse 2.5s ease-in-out infinite;
    letter-spacing: 0.2px;
    border: 2px solid rgba(255,255,255,0.25);
}

.ak-sticky-wohnung:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 40px rgba(199, 94, 59, 0.65);
    color: white !important;
}

.ak-sticky-wohnung .ak-sticky-icon {
    font-size: 24px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

@keyframes ak-sticky-pulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(199, 94, 59, 0.55), 0 2px 8px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 8px 40px rgba(199, 94, 59, 0.8), 0 2px 8px rgba(0,0,0,0.2); }
}

@media (max-width: 768px) {
    .ak-sticky-wohnung-wrap {
        bottom: 18px;
        right: 18px;
    }
    .ak-sticky-wohnung {
        padding: 13px 20px;
        font-size: 14px;
        gap: 10px;
    }
    
    .ak-sticky-wohnung .ak-sticky-icon {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .ak-lang-switcher-bar {
        padding: 12px 10px 14px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* Label on its own row */
    .ak-lang-switcher-bar .ak-lang-label {
        display: block !important;
        font-size: 11px;
        font-weight: 600;
        color: rgba(255,255,255,0.9);
        white-space: nowrap;
        line-height: 1.3;
        width: 100%;
        text-align: center;
        /* Show only EN · FR · UK · AR portion */
    }

    /* Flags row */
    .ak-lang-switcher-flags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }

    /* Mobile: flags only, no text */
    .ak-lang-switcher-bar a {
        padding: 4px 6px;
        font-size: 0;
        gap: 0;
        margin: 0 1px;
        border-radius: 6px;
        flex-shrink: 0;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .ak-lang-switcher-bar a .ak-flag {
        font-size: 17px;
    }

    .ak-lang-switcher-bar a.active {
        outline: 2px solid white;
        border-radius: 6px;
    }
}

/* ============================================
   CONTACT FORM: Dropdown select visibility fix
   ============================================ */
.ak-contact-form select,
.ak-contact-form select#ak_subject {
    display: block !important;
    width: 100% !important;
    padding: 14px 40px 16px 16px !important;
    border: 2px solid var(--ak-gray-light) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background-color: var(--ak-white) !important;
    color: var(--ak-text) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 52px !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 10 !important;
    clip: unset !important;
    clip-path: none !important;
    line-height: 1.6 !important;
    box-sizing: border-box !important;
}

.ak-contact-form .ak-form-row {
    overflow: visible !important;
    position: relative !important;
}

.ak-contact-form select:focus {
    outline: none !important;
    border-color: var(--ak-secondary) !important;
    box-shadow: 0 0 0 3px rgba(42, 122, 122, 0.15) !important;
}

/* ============================================
   MOBILE FIXES
   ============================================ */

/* Ehrennadel / News card: prevent right-side overflow */
@media (max-width: 768px) {
    /* News section cards */
    .ak-section-modern div[style*="max-width: 1000px"] > div {
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    /* Ehrennadel card inner flex */
    .ak-section-modern div[style*="background: linear-gradient(135deg, var(--ak-secondary)"] {
        padding: 28px 20px !important;
        overflow: hidden !important;
    }
    
    .ak-section-modern div[style*="background: linear-gradient(135deg, var(--ak-secondary)"] > div {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Contact teaser box */
    .ak-about-modern.reverse {
        flex-direction: column !important;
    }
    
    .ak-about-modern.reverse .ak-about-content {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Contact info text won't overflow */
    .ak-about-content p strong {
        display: block;
    }
    
    /* Integrationspreis card mobile */
    .ak-section-modern div[style*="background: linear-gradient(135deg, var(--ak-accent-amber)"] {
        padding: 24px 20px !important;
        flex-direction: column !important;
    }
    
    .ak-section-modern div[style*="background: linear-gradient(135deg, var(--ak-accent-amber)"] > div[style*="width: 200px"] {
        width: 100% !important;
        height: 140px !important;
    }
}

/* ============================================
   MOBILE MENU: language + submenu fix
   ============================================ */
@media (max-width: 999px) {
    /* Blocksy mobile menu: indent sub-menu items */
    .ct-mobile-menu .sub-menu {
        padding-left: 20px !important;
        border-left: 3px solid var(--ak-primary) !important;
        margin-left: 16px !important;
    }
    
    .ct-mobile-menu .sub-menu .menu-item a {
        font-size: 14px !important;
        opacity: 0.85;
        padding: 8px 16px !important;
    }
    
    /* Top-level items are slightly bolder */
    .ct-mobile-menu > ul > li > a,
    .ct-mobile-menu > div > ul > li > a {
        font-weight: 600 !important;
        font-size: 16px !important;
    }
    
    
    /* Ensure logo shows in mobile header */
    .ct-header[data-transparent="true"] [data-id="logo"] img,
    .ct-header [data-id="logo"] img {
        max-height: 50px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* site-title ausgeblendet (Logo reicht) */
}

/* ============================================
   Sommerfest-Foto-Mosaike & Streifen
   ============================================ */
.ak-sommerfest-mosaic img,
.ak-sommerfest-strip img {
    display: block;
}

/* Homepage Neuigkeiten: Blocksy --has-wide überschreiben, max 1000px wie Ehrennadel/Integrationspreis */
.ak-neuigkeiten-inner {
    max-width: 1000px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.ak-sommerfest-home-card {
    max-width: 1000px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .ak-sommerfest-mosaic {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: none !important;
        grid-auto-rows: auto !important;
    }
    /* Inline desktop grid positions break the 2-column mobile layout — reset flow */
    .ak-sommerfest-mosaic img {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 140px !important;
        height: auto !important;
    }
    .ak-sommerfest-mosaic img:first-child {
        grid-column: 1 / -1 !important;
        min-height: 220px !important;
    }
    .ak-sommerfest-mosaic img:last-child {
        grid-column: 1 / -1 !important;
    }
    .ak-sommerfest-strip {
        grid-template-columns: 1fr !important;
    }
    .ak-sommerfest-strip img {
        height: 200px !important;
    }

    /* Homepage: Sommerfest-Neuigkeit — flex row can leave a narrow image column on small screens */
    .ak-sommerfest-home-card-row {
        flex-direction: column !important;
    }
    .ak-sommerfest-home-card-media {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        max-width: 100% !important;
    }
    .ak-sommerfest-home-card-media img {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: 280px !important;
        object-fit: cover !important;
    }
}

/* ============================================
   SEARCH MODAL FIX: Ensure readable text
   ============================================ */
#search-modal,
#search-modal.ct-panel {
    background-color: rgba(18, 21, 25, 0.98) !important;
}
#search-modal .ct-search-form input[type="search"],
#search-modal .ct-search-form .modal-field {
    color: #ffffff !important;
    --theme-form-text-initial-color: #ffffff !important;
    --theme-form-text-focus-color: #ffffff !important;
    caret-color: #ffffff !important;
}
#search-modal .ct-search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
.search-results .ct-search-form input[type="search"],
.search-page .ct-search-form input[type="search"],
body.search .ct-search-form input[type="search"],
form.search-form input[type="search"] {
    color: var(--ak-text, #2D2D2D) !important;
    --theme-form-text-initial-color: var(--ak-text, #2D2D2D) !important;
    border-color: var(--ak-gray-light, #E8E4E0) !important;
}

/* ============================================
   HEADER–CONTENT GAP: Weniger Abstand unter Menüleiste
   ============================================ */
.site-main .ct-container-full[data-vertical-spacing*="top"],
.ct-container-full[data-vertical-spacing*="top"],
[data-content="normal"] .ct-container-full {
    padding-top: 40px !important;
}

@media (max-width: 999.98px) {
    .site-main .ct-container-full[data-vertical-spacing*="top"],
    .ct-container-full[data-vertical-spacing*="top"],
    [data-content="normal"] .ct-container-full {
        padding-top: 32px !important;
    }
}
