/*
Theme Name: Rohrbach Theme
Theme URI: https://wp-theme.z-ric.de
Author: Cedric Pönisch
Author URI: https://wp-theme.z-ric.de
Description: Modern WordPress theme for organizations and associations with member portal, RSVP system, approval workflow support, and modular feature system
Version: v0.43.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orgtheme
Tags: custom, tailwind, organization, association, club, portal, rsvp, events
*/

/* Theme-Primärfarbe – Fallback, wird per Customizer (wp_head) überschrieben */
:root {
    --primary: #dc2626;
    --primary-hover: #b91c1c;
    --primary-active: #991b1b;
    --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: var(--font-body);
}

body {
    margin: 0;
    font-family: var(--font-body);
    line-height: inherit;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, [type='button'], [type='reset'], [type='submit'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

a {
    color: inherit;
    text-decoration: inherit;
}

/* Utility Classes */
.font-sans { font-family: var(--font-body); }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-800 { background-color: #1f2937; }
.bg-white { background-color: #ffffff; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-600 { background-color: var(--primary); }
.bg-red-700 { background-color: var(--primary-hover); }
.bg-red-800 { background-color: var(--primary-active); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-red-600 { --tw-gradient-from: var(--primary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(220, 38, 38, 0)); }
.to-red-800 { --tw-gradient-to: var(--primary-active); }
.from-red-500 { --tw-gradient-from: #ef4444; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 68, 68, 0)); }
.to-red-700 { --tw-gradient-to: var(--primary-hover); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-red-100 { color: #fee2e2; }
.text-red-600 { color: var(--primary); }
.text-red-700 { color: var(--primary-hover); }
.text-red-800 { color: var(--primary-active); }

.min-h-screen { min-height: 100vh; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 0.375rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-96 { height: 24rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-48 { width: 12rem; }
.max-w-none { max-width: none; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-xs { max-width: 20rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pl-3 { padding-left: 0.75rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-4 { padding-right: 1rem; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.my-px { margin-top: 1px; margin-bottom: 1px; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-6 { margin-left: 1.5rem; }
.ml-10 { margin-left: 2.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.-mr-2 { margin-right: -0.5rem; }
.-my-px { margin-top: -1px; margin-bottom: -1px; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-l-4 { border-left-width: 4px; }
.border-t { border-top-width: 1px; }
.border-transparent { border-color: transparent; }
.border-white { border-color: #ffffff; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-700 { border-color: #374151; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-4 { line-height: 1rem; }

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

.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:bg-red-800:hover { background-color: var(--primary-active); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-red-100:hover { color: #fee2e2; }
.hover\:text-red-600:hover { color: var(--primary); }
.hover\:text-red-800:hover { color: var(--primary); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* Prose (for content) */
.prose { color: #374151; max-width: 65ch; }
.prose.max-w-none { max-width: none; }
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose h1 { font-size: 2.25em; margin-top: 0; margin-bottom: 0.8888889em; line-height: 1.1111111; font-weight: 800; }
.prose h2 { font-size: 1.5em; margin-top: 2em; margin-bottom: 1em; line-height: 1.3333333; font-weight: 700; }
.prose h3 { font-size: 1.25em; margin-top: 1.6em; margin-bottom: 0.6em; line-height: 1.6; font-weight: 600; }
.prose ul { margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; }
.prose li { margin-top: 0.5em; margin-bottom: 0.5em; }
.prose img { margin-top: 2em; margin-bottom: 2em; }
.prose-lg { font-size: 1.125rem; line-height: 1.7777778; }

/* Ensure Gutenberg blocks use full width */
.prose.max-w-none .wp-block-image,
.prose.max-w-none .wp-block-gallery,
.prose.max-w-none .wp-block-columns,
.prose.max-w-none .wp-block-group,
.prose.max-w-none .wp-block-cover {
    max-width: 100%;
    width: 100%;
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:flex { display: flex; }
    .sm\:hidden { display: none; }
    .sm\:items-center { align-items: center; }
    .sm\:ml-6 { margin-left: 1.5rem; }
    .sm\:ml-10 { margin-left: 2.5rem; }
    .sm\:-my-px { margin-top: -1px; margin-bottom: -1px; }
}

@media (min-width: 768px) {
    .md\:p-12 { padding: 3rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Custom Styles */
nav a.active {
    border-bottom-color: #ffffff;
}

/* Menu Button Styling */
.menu-buttons ul {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-buttons li {
    margin: 0;
    padding: 0;
    position: relative;
}

.menu-buttons > ul > li > a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: none;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    color: #ffffff;
    transition: all 150ms ease-in-out;
}

.menu-buttons > ul > li > a:hover {
    background-color: var(--primary-active);
}

.menu-buttons > ul > li > a:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Dropdown arrow for menu items with children */
.menu-buttons li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 150ms ease-in-out;
}

/* Submenu styling */
.menu-buttons ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 50;
    flex-direction: column;
    gap: 0;
}

/* Invisible bridge between button and dropdown */
.menu-buttons ul ul::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.menu-buttons li:hover > ul,
.menu-buttons li:focus-within > ul {
    display: flex;
}

.menu-buttons ul ul li {
    width: 100%;
}

.menu-buttons ul ul a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 0;
    transition: background-color 150ms ease-in-out;
}

.menu-buttons ul ul a:hover {
    background-color: #fef2f2;
    color: var(--primary);
}

/* Remove arrow from submenu items */
.menu-buttons ul ul li.menu-item-has-children > a::after {
    display: none;
}

.min-w-0 {
    min-width: 0;
}

button {
    cursor: pointer;
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Expandable Cards - Limit preview text */
.expandable-card {
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.expandable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

.expandable-card img {
    object-fit: contain !important;
}

/* Limit text preview to 3 lines */
.expandable-card .card-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide full content on card */
.expandable-card .card-full-content {
    display: none;
}

/* Expandable Image with Text */
.expandable-image-text {
    cursor: pointer;
    transition: opacity 0.2s ease;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.expandable-image-text:hover {
    opacity: 0.85;
}

.expandable-image-text img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Linked Cards */
.linked-card-wrapper {
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.linked-card-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

.linked-card-wrapper img {
    object-fit: contain !important;
}

.linked-card-wrapper .card-link-target {
    margin-top: 1rem;
}

.linked-card-wrapper .card-link-target .wp-block-button__link {
    background-color: var(--primary) !important;
    border-radius: 0.5rem;
}

.linked-card-wrapper .card-link-target .wp-block-button__link:hover {
    background-color: var(--primary-hover) !important;
}

/* Download Section */
.download-section {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.download-section h2 {
    margin-bottom: 1rem;
    color: #111827;
}

.download-section .wp-block-separator {
    margin: 1.5rem 0;
    border-color: #e5e7eb;
}

/* Styled Download Items using File Block */
.styled-download-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.styled-download-item:last-child {
    border-bottom: none;
}

.styled-download-item:hover {
    background-color: #f9fafb;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 0.5rem;
}

/* Add icon before file block */
.styled-download-item::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background-color: #fef2f2;
    border-radius: 0.5rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23dc2626" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z" /></svg>');
    background-size: 28px 28px;
    background-position: center;
    background-repeat: no-repeat;
}

.styled-download-item a {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    text-decoration: none !important;
}

.styled-download-item a:hover {
    color: var(--primary) !important;
}

.styled-download-item .wp-block-file__button {
    background-color: var(--primary) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    border: none !important;
    color: white !important;
    margin-left: auto !important;
}

.styled-download-item .wp-block-file__button:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .styled-download-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .styled-download-item .wp-block-file__button {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    /* Larger touch targets for mobile (min 44px) */
    button, .button, a.button, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing on mobile */
    .p-6 { padding: 1rem; }
    .p-8 { padding: 1.5rem; }
    .px-4 { padding-left: 1rem; padding-right: 1rem; }
    .py-8 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    
    /* Optimize font sizes for mobile readability */
    .text-4xl { font-size: 2rem; line-height: 1.2; }
    .text-5xl { font-size: 2.5rem; line-height: 1.1; }
    .text-3xl { font-size: 1.75rem; line-height: 1.3; }
    
    /* Better card spacing on mobile */
    .gap-6 { gap: 1rem; }
    .gap-8 { gap: 1.5rem; }
    
    /* Ensure tables scroll horizontally on mobile */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better form inputs on mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Stack flex items on mobile when needed */
    .flex-wrap { flex-wrap: wrap; }
    
    /* Better modal/dialog sizing on mobile */
    .max-w-7xl { max-width: 100%; }
    .max-w-4xl { max-width: 100%; }
    
    /* Improve hero section on mobile */
    .shadow-xl.p-8 { padding: 1.5rem; }
    .shadow-xl.p-12 { padding: 2rem; }
    
    /* Better card padding on mobile */
    .rounded-lg.shadow-md .p-6 { padding: 1rem; }
    
    /* Improve navigation menu items on mobile */
    nav .space-y-1 a {
        padding: 0.75rem 1rem;
        display: block;
    }
    
    /* Better statistics cards on mobile */
    .bg-white.rounded-lg.shadow-md.p-6 {
        padding: 1rem;
    }
    
    /* Optimize event cards on mobile */
    .bg-white.rounded-lg.shadow-md.overflow-hidden .p-6 {
        padding: 1rem;
    }
    
    /* Better RSVP button sizing on mobile */
    .rsvp-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Improve table responsiveness */
    table {
        font-size: 0.875rem;
    }
    
    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Hide less important table columns on mobile */
    .hide-mobile {
        display: none;
    }
}

/* Mobile Menu Styles */
.mobile-menu-button {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.mobile-menu-button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.mobile-menu-button svg {
    display: block;
    width: 2rem;
    height: 2rem;
    stroke: currentColor;
}

.mobile-submenu-toggle svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list > li {
    margin: 0;
    padding: 0;
}

.mobile-menu-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.mobile-menu-link {
    display: block;
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 150ms ease-in-out;
}

.mobile-menu-link:hover {
    background-color: var(--primary-active);
}

.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-left: 0.5rem;
    color: #ffffff;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 150ms ease-in-out;
    min-width: 44px;
    min-height: 44px;
}

.mobile-submenu-toggle:hover {
    background-color: var(--primary-active);
}

.mobile-submenu-toggle.active svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease-in-out;
}

.mobile-submenu.active {
    max-height: 1000px;
}

.mobile-submenu li {
    margin: 0;
    padding: 0;
}

.mobile-submenu .mobile-menu-link {
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-submenu .mobile-menu-link:hover {
    background-color: var(--primary-active);
    color: #ffffff;
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    /* Optimize grid layouts for tablets */
    .grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    /* Better spacing for tablets */
    .gap-6 { gap: 1.25rem; }
}


/* Qualification Cards - Background Colors */
.bg-red-50 { background-color: #fef2f2; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-green-50 { background-color: #f0fdf4; }

/* Qualification Cards - Border Colors */
.border-red-200 { border-color: #fecaca; }
.border-yellow-200 { border-color: #fef08a; }
.border-green-200 { border-color: #bbf7d0; }

.border-red-300 { border-color: #fca5a5; }
.border-yellow-300 { border-color: #fde047; }
.border-green-300 { border-color: #86efac; }

/* Qualification Cards - Badge Colors */
.bg-red-600 { background-color: var(--primary); }
.bg-yellow-600 { background-color: #ca8a04; }
.bg-green-600 { background-color: #16a34a; }

/* Qualification Cards - Text Colors */
.text-red-700 { color: var(--primary-hover); }
.text-yellow-700 { color: #a16207; }
.text-yellow-800 { color: #854d0e; }
.text-yellow-600 { color: #ca8a04; }

/* Warning Banner */
.border-yellow-400 { border-color: #facc15; }
.border-l-4 { border-left-width: 4px; }

/* Activity Report Formatting in Modal */

/* Scrollbar in Card-Modal verstecken */
.card-modal-scroll::-webkit-scrollbar { display: none; }
.prose {
    color: #374151;
    max-width: 65ch;
}

.prose p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose p:first-child {
    margin-top: 0;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose p:empty {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose br {
    display: block;
    content: "";
    margin-top: 0.25em;
}

.prose strong {
    color: #111827;
    font-weight: 600;
}

.prose em {
    font-style: italic;
}

.prose ul,
.prose ol {
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: var(--primary-active);
}

.prose blockquote {
    font-style: italic;
    border-left: 4px solid var(--primary);
    padding-left: 1em;
    margin: 1.5em 0;
    color: #6b7280;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #111827;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose h1 { font-size: 1.875rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.125rem; }

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5em 0;
}

.prose-sm {
    font-size: 0.875rem;
    line-height: 1.7142857;
}

.max-w-none {
    max-width: none;
}

/* Hide activity meta column in admin */
.wp-list-table .column-activity_meta {
    display: none !important;
}

/* Ensure images in cards start at the top without spacing */
.news-card img,
.activity-card img {
    display: block;
    margin: 0;
}

.news-card > *:first-child,
.activity-card > *:first-child {
    margin-top: 0;
}

/* Events Table Styling */
.events-table-wrapper {
    border-radius: 0.5rem;
    overflow: hidden;
}

.events-table {
    border-collapse: collapse;
}

.events-table thead th {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.events-table tbody tr:last-child {
    border-bottom: none;
}

/* Responsive table for mobile */
@media (max-width: 768px) {
    .events-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .events-table {
        min-width: 800px;
    }
    
    .events-table th,
    .events-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
}


/* Force white text in hero banners - override all Gutenberg color classes */
div[style*="background-color"] h1,
div[style*="background-color"] h2,
div[style*="background-color"] h3,
div[style*="background-color"] p,
div[style*="background-color"] div:not(.flex):not(.flex-wrap),
div[style*="background-color"] span {
    color: inherit !important;
}

/* Specifically target hero banners with red background */
div[style*="background-color: #dc2626"] h1,
div[style*="background-color: #dc2626"] h2,
div[style*="background-color: #dc2626"] h3,
div[style*="background-color: #dc2626"] p {
    color: #ffffff !important;
}

/* Primary buttons (white background) should have red text */
div[style*="background-color: #dc2626"] a.bg-white {
    color: var(--primary) !important;
    background-color: #ffffff !important;
}

/* Secondary buttons (transparent with border) should have white text */
div[style*="background-color: #dc2626"] a[style*="border: 2px solid white"] {
    color: #ffffff !important;
    border: 2px solid white !important;
}

/* Make sure button text is visible */
div[style*="background-color: #dc2626"] .flex.flex-wrap a {
    text-decoration: none !important;
}


/* Fix Gutenberg button text visibility */
.wp-block-button__link {
    color: #ffffff !important;
}

.wp-block-button__link[style*="background-color"] {
    color: #ffffff !important;
}

/* Ensure button text is always visible regardless of background */
a.wp-block-button__link {
    text-decoration: none !important;
}

/* Footer navigation: keine Bullet-Points */
footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
