/* ============================================
   CVIS Frontend Layout Stylesheet
   Pixel-perfect copy from cvissite FrontendLayout.vue
   Tailwind classes converted to CSS
   ============================================ */

@import url('https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap');

/* CSS Custom Properties (CVIS Colors from tailwind.config.js) */
:root {
    --cvis-green: #347928;
    --cvis-green-1: #4b7544;
    --cvis-color-2: #C0EBA6;
    --cvis-color-3: #FFFBE6;
    --cvis-color-4: #fdedb4;
    --cvis-color-5: #FCCD2A;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #1f2937;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cvis-color-3, #FFFBE6); /* bg-cvisColor3 like parent div in About.vue */
    color: var(--gray-900);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container (max-w-7xl = 1280px) */
.container {
    max-width: 80rem; /* 1280px */
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}


@media (min-width: 1024px) {
    .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* ============================================
   Navigation Bar (Fixed)
   bg-white border-b border-cvisGreen fixed top-0 z-50 w-full lg:py-2
   ============================================ */
.navbar {
    background: white;
    border-bottom: 1px solid var(--cvis-green);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
}

main.content-area {
    padding-top: calc(4rem + 1px);
}

@media (min-width: 1024px) {
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    main.content-area {
        padding-top: calc(5rem + 1px);
    }
}

/* flex justify-between h-16 */
.navbar-content {
    display: flex;
    align-items: center;
    height: 4rem; /* 64px */
    /* KEIN space-between! Logo → Menu (40px) → flex-grow → Actions */
}

/* Logo - shrink-0 flex items-center */
.navbar-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.navbar-brand a {
    display: block;
}

.logo-img {
    display: block;
    height: 2.25rem; /* h-9 = 36px */
    width: auto;
}

/* Desktop Menu - hidden space-x-8 sm:-my-px sm:ms-10 lg:flex */
.navbar-menu-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .navbar-menu-desktop {
        display: flex;
        align-items: center;
        height: 100%; /* Volle Höhe des navbar-content */
        gap: 2rem; /* space-x-8 = 2rem */
        margin-left: 2.5rem; /* sm:ms-10 = 40px */
        margin-top: -1px; /* sm:-my-px */
        margin-bottom: -1px;
    }
}

/* Nav List - Desktop navbar styling */
.navbar-menu-desktop .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%; /* Volle Höhe des navbar-content */
    gap: 2rem; /* space-x-8 = 2rem */
}

.navbar-menu-desktop .nav-list li {
    display: flex;
    align-items: center;
    height: 100%; /* Volle Höhe des navbar-content */
}

/* Nav Links - Exakt wie im Original NavLink.vue */
/* Scoped to navbar-menu-desktop container to prevent affecting mobile menu */
.navbar-menu-desktop .nav-list a,
.navbar-menu-desktop .nav-list .nav-link,
.navbar-menu-desktop .nav-list a:link,
.navbar-menu-desktop .nav-list a:visited,
.navbar-menu-desktop .nav-list .nav-link:link,
.navbar-menu-desktop .nav-list .nav-link:visited {
    display: inline-flex;
    align-items: center;
    height: 100%; /* Volle Höhe der Navbar (h-16 = 4rem) */
    padding-left: 0.25rem; /* px-1 */
    padding-right: 0.25rem;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 2px solid transparent; /* border-b-2 border-transparent */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    line-height: 1.25rem; /* leading-5 */
    color: #4b7544 !important; /* text-cvisGreen1 = #4b7544 (Original: nicht aktiv) - !important um Browser-Styles zu überschreiben */
    text-decoration: none !important; /* Keine Unterstreichung */
    transition: color 150ms ease-in-out, border-color 150ms ease-in-out; /* transition duration-150 ease-in-out */
}

/* Hover state - exakt wie im Original: hover:text-gray-700 hover:border-gray-300 */
.navbar-menu-desktop .nav-list a:hover,
.navbar-menu-desktop .nav-list .nav-link:hover {
    color: #374151 !important; /* hover:text-gray-700 = #374151 */
    border-bottom-color: #d1d5db !important; /* hover:border-gray-300 = #d1d5db */
    text-decoration: none !important; /* Keine Unterstreichung beim Hover */
}

/* Focus state - exakt wie im Original */
.navbar-menu-desktop .nav-list a:focus,
.navbar-menu-desktop .nav-list .nav-link:focus {
    outline: none; /* focus:outline-none */
    color: #374151 !important; /* focus:text-gray-700 = #374151 */
    border-bottom-color: #d1d5db !important; /* focus:border-gray-300 = #d1d5db */
    text-decoration: none !important;
}

/* Active state - exakt wie im Original: border-b-2 border-cvisGreen1 text-cvisGreen */
/* Border ist 2px breit, nur unten, color cvisGreen1 wenn aktiv */
.navbar-menu-desktop .nav-list a.active,
.navbar-menu-desktop .nav-list .nav-link.active {
    border-bottom: 2px solid #4b7544 !important; /* border-b-2 border-cvisGreen1 = #4b7544, 2px breit */
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    color: #347928 !important; /* text-cvisGreen = #347928 */
    text-decoration: none !important;
}

.navbar-menu-desktop .nav-list a.active:focus,
.navbar-menu-desktop .nav-list .nav-link.active:focus {
    border-bottom-color: #4b7544 !important; /* focus:border-cvisGreen1 = #4b7544 */
    color: #347928 !important; /* focus:outline-none focus:border-cvisGreen1 */
    text-decoration: none !important;
}

/* Navbar Actions - hidden space-x-8 sm:-my-px sm:ms-10 sm:flex */
.navbar-actions {
    display: none;
    flex-shrink: 0;
    align-items: center;
}

@media (min-width: 1024px) {
    .navbar-actions {
        display: flex;
        gap: 2rem;
        margin-left: auto; /* Pusht nach rechts! */
        margin-right: 0;
        margin-top: -1px;
        margin-bottom: -1px;
    }
}

/* Language Selector (Dropdown) */
.language-selector {
    position: relative;
    height: 100%;
}

.lang-button {
    height: 100%;
    display: inline-flex;
    align-items: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-top: 0.25rem;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: var(--gray-500);
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    transition: all 150ms;
}

.lang-button:hover {
    color: var(--gray-700);
    border-bottom-color: #d1d5db;
}

.lang-button:focus {
    outline: none;
    color: var(--gray-700);
    border-bottom-color: #d1d5db;
}

.lang-arrow {
    margin-left: 0.5rem;
    margin-right: -0.125rem;
    width: 1rem;
    height: 1rem;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: max-content; /* Passt sich an Inhalt an! */
    z-index: 10;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 0.5rem 1rem; /* px-4 py-2 wie Original DropdownLink */
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem; /* leading-5 */
    color: var(--gray-700); /* text-gray-700 */
    text-decoration: none;
    transition: background 150ms ease-in-out;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background: var(--gray-100);
}

/* Database Link - inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 text-sm font-medium leading-5 text-gray-900 */
.database-link {
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-top: 0.25rem;
    border-bottom: 2px solid #818cf8; /* indigo-400 */
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: var(--gray-900);
    text-decoration: none;
    transition: all 150ms;
}

.database-link:hover {
    border-bottom-color: #4f46e5; /* indigo-700 */
}

.database-link:focus {
    outline: none;
    border-bottom-color: #4f46e5;
}

.external-icon {
    margin-left: 0.5rem;
    margin-right: -0.125rem;
    width: 1rem;
    height: 1rem;
}

/* Mobile Navbar Right - -me-2 flex items-center lg:hidden */
.mobile-navbar-right {
    margin-right: -0.5rem; /* -me-2 */
    margin-left: auto; /* Bleibt rechts! */
    display: flex;
    align-items: center;
    gap: 0; /* Minimaler Abstand */
}

@media (min-width: 1024px) {
    .mobile-navbar-right {
        display: none;
    }
}

/* Database Link Wrapper - space-x-8 sm:-my-px sm:ms-10 flex */
.database-link-wrapper {
    display: flex;
}

@media (min-width: 640px) {
    .database-link-wrapper {
        margin-top: -1px; /* sm:-my-px */
        margin-bottom: -1px;
    }
}

.database-link-mobile {
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-top: 0.25rem;
    border-bottom: 2px solid #818cf8;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: var(--gray-900);
    text-decoration: none;
    transition: all 150ms;
}

.database-link-mobile:hover {
    border-bottom-color: #4f46e5;
}

.database-link-mobile .external-icon {
    margin-left: 0.5rem;
    margin-right: -0.125rem;
    width: 1rem;
    height: 1rem;
}

/* Mobile Toggle - Exact copy: p-2 rounded-md text-gray-400 */
.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem; /* p-2 */
    border-radius: 0.375rem; /* rounded-md */
    color: var(--gray-400); /* text-gray-400 */
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 150ms ease-in-out, background 150ms ease-in-out;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle:hover {
    color: var(--gray-500); /* hover:text-gray-500 */
    background: var(--gray-100); /* hover:bg-gray-100 */
}

.mobile-menu-toggle:focus {
    outline: none;
    background: var(--gray-100); /* focus:bg-gray-100 */
    color: var(--gray-500); /* focus:text-gray-500 */
}

/* SVG inside button - size-6 (24x24px) */
.mobile-menu-toggle svg {
    width: 1.5rem; /* size-6 = 24px */
    height: 1.5rem;
}

.size-6 {
    width: 1.5rem;
    height: 1.5rem;
}

    /* Mobile Menu - fixed z-50 navbar-menu w-full h-full top-0 left-0 right-0 bottom-0 overscroll-auto bg-cvisColor3 */
    .mobile-menu {
        position: fixed;
        z-index: 50;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        background: var(--cvis-color-3); /* FFFBE6 - Beige */
        transform: translateX(100%);
        transition: transform 300ms ease-in-out;
    }

.mobile-menu.active {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none;
    }
}

/* Mobile Nav - fixed top-0 bottom-0 left-0 flex flex-col w-full overflow-y-auto bg-gradient-to-bl from-flsNavbarColorMid to-white */
/* KORREKTUR: Kein Gradient, nur beige! */
.mobile-menu-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-y: auto;
    background: var(--cvis-color-3); /* Pure beige */
}

/* Mobile Header - flex items-center justify-end px-10 py-6 mb-8 EXACT */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 2.5rem; /* px-10 = 40px */
    padding-right: 2.5rem;
    padding-top: 1.5rem; /* py-6 = 24px */
    padding-bottom: 1.5rem;
    margin-bottom: 2rem; /* mb-8 = 32px */
}

/* Mobile Close Button - p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 */
.mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--gray-400);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 150ms;
}

.mobile-menu-close:hover {
    color: var(--gray-500);
    background: var(--gray-100);
}

.mobile-menu-close:focus {
    outline: none;
    background: var(--gray-100);
    color: var(--gray-500);
}

.close-icon {
    width: 1.5rem; /* size-6 */
    height: 1.5rem;
}

/* Utility class - mx-auto */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Logo - flex justify-center, mb-12 w-32 sm:w-44 */
.mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem; /* mb-12 = 48px */
}

.mobile-logo img {
    width: 8rem; /* w-32 = 128px */
}

@media (min-width: 640px) {
    .mobile-logo img {
        width: 11rem; /* w-44 = 176px */
    }
}

/* Mobile Nav List - ul with space-y-6 */
/* Mobile Menu Navigation - scoped to mobile-menu-nav container */
.mobile-menu-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* group flex justify-center + space-y-6 */
.mobile-menu-nav .nav-list li {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem; /* space-y-6 = 24px */
}

.mobile-menu-nav .nav-list li:last-child {
    margin-bottom: 0;
}

/* Mobile Nav Links - m-auto flex items-center uppercase block text-4xl font-normal text-center */
.mobile-menu-nav .nav-list a {
    margin: auto;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 1.875rem; /* Kleiner auf sehr kleinen Screens */
    font-weight: 400; /* font-normal */
    text-align: center;
    color: var(--gray-900); /* Schwarz */
    text-decoration: none;
    transition: color 200ms;
}

/* Responsive Schriftgröße */
@media (min-width: 480px) {
    .mobile-menu-nav .nav-list a {
        font-size: 2.25rem; /* text-4xl = 36px */
    }
}

.mobile-menu-nav .nav-list a:hover {
    color: var(--gray-700);
}

/* ============================================
    Content Area
    ============================================ */
.content-area {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.content-area .blocks-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.content-area .blocks-container > * {
    scroll-margin-top: 120px;
}

/* ============================================
   Footer - bg-cvisGreen1 text-cvisColor3
   ============================================ */
.footer {
    background: var(--cvis-green-1); /* #4b7544 */
    color: var(--cvis-color-3); /* #FFFBE6 */
    padding: 1.5rem 0; /* py-6, horizontal inset sits on the container */
}

.footer .container {
    padding-left: 1rem; /* p-4 */
    padding-right: 1rem;
}

.navbar .container {
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .navbar .container {
        padding-left: 1.5rem; /* sm:px-6 */
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .navbar .container {
        padding-left: 2rem; /* lg:px-8 */
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding-top: 2rem; /* lg:py-8 */
        padding-bottom: 2rem;
    }
}

/* Footer Grid - Responsive 2-column layout */
.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* Office Section */
.footer-office {
    flex: 1;
    max-width: 100%;
}

@media (min-width: 768px) {
    .footer-office {
        max-width: 60%; /* Begrenzt Breite, damit Text umbricht */
    }
}

@media (min-width: 1024px) {
    .footer-office {
        max-width: 50%;
    }
}

.office-title {
    margin-bottom: 0.5rem;
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    text-transform: uppercase;
    color: var(--cvis-color-4); /* Gelb */
    word-wrap: break-word;
    line-height: 1.75rem; /* text-lg */
}

.office-info {
    list-style: none;
    font-weight: 500; /* font-medium, ohne text-sm: 16px */
    font-size: 1rem;
}

.office-info li {
    margin-bottom: 0.5rem;
    color: var(--cvis-color-3); /* Beige */
    word-wrap: break-word; /* Zeilenumbruch bei langen Wörtern */
    overflow-wrap: break-word;
}

/* Lange Texte umbrechen auf schmalen Screens */
@media (max-width: 640px) {
    .office-info li {
        max-width: 100%;
        line-height: 1.6;
    }
}

.office-link {
    color: inherit;
    text-decoration: none;
    transition: text-decoration 150ms;
}

.office-link:hover {
    text-decoration: underline;
}

/* Footer Logo - mb-6 md:mb-0 */
.footer-logo {
    display: flex;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-logo {
        margin-bottom: 0;
        justify-content: flex-end;
    }
}

.footer-logo-img {
    height: 6rem; /* Kleiner auf Mobile */
    width: auto;
    margin-right: 0.75rem;
}

@media (min-width: 640px) {
    .footer-logo-img {
        height: 8rem; /* Mittel auf Tablets */
    }
}

@media (min-width: 1024px) {
    .footer-logo-img {
        height: 10rem; /* h-40 = 160px auf Desktop */
    }
}

/* Footer Bottom - sm:flex sm:items-center sm:justify-between */
.footer-bottom {
    padding-top: 1.5rem; /* my-6 */
    border-top: 1px solid #e5e7eb; /* sm:mx-auto */
}

@media (min-width: 640px) {
    .footer-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer-bottom {
        padding-top: 2rem; /* lg:my-8 */
    }
}

/* Copyright - text-sm sm:text-center */
.copyright {
    font-size: 0.875rem;
    text-align: center;
    color: var(--cvis-color-3); /* Beige */
    line-height: 1.5;
    word-wrap: break-word;
    max-width: 100%;
}

@media (min-width: 640px) {
    .copyright {
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .copyright {
        text-align: left;
    }
}

/* Footer Links - flex mt-4 space-x-6 justify-end md:mt-0 */
.footer-links {
    display: flex;
    margin-top: 1rem;
    gap: 1.5rem; /* space-x-6 */
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .footer-links {
        margin-top: 0;
    }
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem; /* ohne text-sm, erbt die 16px der Seite */
    transition: color 150ms;
}

.footer-links a:hover {
    color: white; /* Bleibt weiß, NICHT gelb */
    text-decoration: underline;
}

/* ============================================
   Block Styles (Base)
   ============================================ */
.block {
    margin-bottom: 2rem;
}

.block:last-child {
    margin-bottom: 0;
}

.page-block-section .page-block-cards .page-block-inner{
    padding: 0;
}

.page-block-section .page-block-events .page-block-inner{
    padding: 0;
}

.page-block-section .page-block {
    padding-top: 0;
    padding-bottom: 0;
}

/* ============================================
   Hero Section (CVIS Style)
   Based on app.css from CVIS project
   ============================================ */
.page-block-hero {
    margin: 0 auto;
    border-bottom: 1px solid var(--cvis-green); /* border-b border-cvisGreen */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    background: var(--cvis-green-1); /* bg-cvisGreen1 = #4b7544 */
}

.page-block {
    margin: 0 auto;
    display: flow-root;
    padding-top: 2rem; /* py-8 */
    padding-bottom: 2rem;
}

.page-block-hero {
    padding-top: 1.5rem; /* py-6 */
    padding-bottom: 1.5rem;
}

.page-block-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
    box-sizing: border-box;
}

.page-block-hero .page-block-inner {
    padding-left: 2rem; /* px-2 + px-6 */
    padding-right: 2rem;
    margin-bottom: 0.5rem; /* mb-2 */
}

.page-block-form .page-block-inner {
    padding: 0;
}

.page-ueber-uns .page-block-columns  {
    text-align: center;
}

.page-ueber-uns .page-block-columns .section-title {
    font-weight: 400;
    margin-bottom: 1.5rem; /* mb-6 */
}

.page-kontakt .page-block-text .page-block-inner,
.page-impressum .page-block-text .page-block-inner {
    padding: 0;
}

.page-kontakt .text-content {
    padding-right: 2rem;
}

.page-kontakt .text-content,
.page-impressum .text-content {
    color: rgba(0, 0, 0, 0.5);
}

.page-kontakt .text-content a,
.page-impressum .text-content a {
    color: inherit;
}

.page-kontakt .text-content h3,
.page-impressum .text-content > h2:not(:has(strong)),
.page-impressum .text-content > p {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75rem;
    text-transform: none;
    color: inherit;
}

.page-kontakt .text-content h2,
.page-impressum .text-content h2:has(strong) {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.75rem;
    text-transform: uppercase;
    color: inherit;
}

.page-kontakt .text-content h2 strong,
.page-kontakt .text-content h3 strong,
.page-impressum .text-content h2 strong,
.page-kontakt .text-content li strong,
.page-impressum .text-content li strong {
    font-size: inherit;
    font-weight: inherit;
}

.page-kontakt .text-content h2:empty,
.page-kontakt .text-content p:empty,
.page-impressum .text-content h2:empty,
.page-impressum .text-content p:empty {
    display: none;
}

.page-kontakt .text-content ul,
.page-impressum .text-content ul {
    list-style: none !important;
    margin: 0 0 2rem !important;
    padding-left: 0 !important;
    font-weight: 500;
}

.page-kontakt .text-content li,
.page-impressum .text-content li {
    margin: 0 0 0.5rem !important;
    padding-left: 0 !important;
    list-style: none !important;
    font-weight: 500;
}

.page-kontakt .text-content li p,
.page-impressum .text-content li p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.page-kontakt .text-content > p {
    margin: 0 0 2rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: inherit;
}

.page-kontakt .form-schema-title,
.page-impressum .form-schema-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.75rem;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .page-kontakt .text-content h3,
    .page-impressum .text-content > h2:not(:has(strong)),
    .page-impressum .text-content > p {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}



@media (max-width: 768px) {
    .page-kontakt .page-block-section .section-content {
        flex-direction: column !important;
    }
    .page-kontakt .text-content {
        padding-right: 0;
    }
}


@media (min-width: 640px) {
    .page-block-hero .page-block-inner {
        padding-left: 2.5rem; /* px-2 + sm:px-8 */
        padding-right: 2.5rem;
    }
}

@media (min-width: 768px) {
    .page-block-hero .page-block-inner {
        padding-left: 3rem; /* px-2 + md:px-10 */
        padding-right: 3rem;
    }
}

@media (min-width: 1024px) {
    .page-block-hero {
        padding-top: 1rem; /* lg:py-4 */
        padding-bottom: 1rem;
    }

    .page-block-inner {
        padding-left: 1.5rem; /* lg:px-6 */
        padding-right: 1.5rem;
    }

    .page-block-hero .page-block-inner {
        padding-left: 4.5rem; /* lg:px-6 + lg:px-12 */
        padding-right: 4.5rem;
        margin-bottom: 1rem; /* lg:mb-4 */
    }
}

.hero-block .hero-title {
    margin-top: 1rem; /* mt-4 */
    margin-bottom: 0.5rem; /* mb-2 */
    font-size: 1.875rem; /* text-3xl */
    line-height: 2.25rem; /* text-3xl line-height */
    color: var(--cvis-color-4); /* text-cvisColor4 = #fdedb4 (gelb) */
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}

@media (min-width: 640px) {
    .hero-block .hero-title {
        margin-top: 1.5rem; /* sm:mt-6 */
        margin-bottom: 0.75rem; /* sm:mb-3 */
        font-size: 2.25rem; /* sm:text-4xl */
        line-height: 2.5rem; /* text-4xl line-height */
    }
}

@media (min-width: 768px) {
    .hero-block .hero-title {
        margin-top: 2rem; /* md:mt-8 */
        font-size: 3rem; /* md:text-5xl */
        line-height: 1; /* text-5xl line-height */
    }
}

.hero-block .hero-subtitle {
    margin-top: 0.5rem; /* mt-2 */
    margin-bottom: 0.75rem; /* mb-3 */
    font-size: 1.25rem; /* text-xl */
    line-height: 1.75rem; /* text-xl line-height */
    color: var(--cvis-color-3); /* text-cvisColor3 = #FFFBE6 (beige) */
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}

@media (min-width: 640px) {
    .hero-block .hero-subtitle {
        margin-top: 0.75rem; /* sm:mt-3 */
        margin-bottom: 1rem; /* sm:mb-4 */
        font-size: 1.5rem; /* sm:text-2xl */
        line-height: 2rem; /* text-2xl line-height */
    }
}

@media (min-width: 768px) {
    .hero-block .hero-subtitle {
        margin-bottom: 1.5rem; /* md:mb-6 */
        font-size: 1.875rem; /* md:text-3xl */
        line-height: 2.25rem; /* text-3xl line-height */
    }
}

/* ============================================
   Documents Block (CVIS Style)
   Based on Documents.vue and File.vue from CVIS project
   ============================================ */

/* Documents Section - on bg-cvisColor3 background */
.documents-section {
    background: var(--cvis-color-3); /* #FFFBE6 */
    color: rgba(0, 0, 0, 0.5); /* text-black/50 from Documents.vue */
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

/* Documents Grid - responsive layout matching Tailwind breakpoints
   Tailwind breakpoints: sm=640px, md=768px, lg=1024px, xl=1280px, 2xl=1536px
   Layout: 1 col < 768px, 2 cols at md (768px+), 3 cols at lg (1024px+)
*/
.documents-grid {
    max-width: 1280px; /* max-w-screen-xl */
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr; /* Default: 1 column for mobile */
    gap: 2rem; /* gap-8 */
    width: 100%; /* Ensure full width */
}

@media (min-width: 768px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) {
    .documents-grid {
        grid-template-columns: repeat(3, 1fr); /* lg:grid-cols-3 */
    }
}

/* Ensure grid items are equal width */
.documents-grid > * {
    min-width: 0; /* Prevent grid items from overflowing */
}

/* Section Title - matches app.css section-title */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cvis-green);
    margin-bottom: 1rem;
}

/* Document Group Column */
.doc-group-column {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent overflow in grid */
}

/* Document Group Container - white box with cvisGreen border */
.doc-group-container {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid var(--cvis-green);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.doc-group-container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.doc-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.doc-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem 0.375rem 0 0; /* rounded-t-md */
    background: #ffffff;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    margin-bottom: 0;
}

.doc-item:last-child {
    margin-bottom: 0;
}

.doc-link:hover .doc-item,
.doc-item:hover {
    border-color: rgba(75, 117, 68, 0.6);
    box-shadow: 0 12px 24px -10px rgba(75, 117, 68, 0.4);
    transform: translateY(-2px);
    background: var(--cvis-color-2, #C0EBA6);
}

.doc-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.doc-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    color: rgba(0, 0, 0, 0.5); /* text-black/50 */
}

.doc-date {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.doc-show-more {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.btn-show-more {
    background: none;
    border: none;
    color: var(--cvis-green, #347928);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.btn-show-more:hover,
.btn-show-more:focus {
    color: rgba(75, 117, 68, 0.85);
    outline: none;
}

/* ============================================
   Events Block (CVIS Style)
   Based on Events.vue and Event.vue from CVIS project
   ============================================ */

/* Events Section - on bg-cvisColor3 background */
.events-section {
    background: var(--cvis-color-3); /* #FFFBE6 */
    color: rgba(0, 0, 0, 0.5); /* text-black/50 */
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* Below hero section */
    padding: 0;
}

/* Events Grid - responsive layout matching Tailwind breakpoints */
.events-grid {
    max-width: 1280px; /* max-w-screen-xl */
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem; /* gap-8 */
    width: 100%;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* lg:grid-cols-3 */
    }
}

.events-grid > * {
    min-width: 0; /* Prevent grid items from overflowing */
}

.events-grid .event-item {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--cvis-green);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    text-decoration: none;
}


.events-list-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    background: white;
    border-radius: 0.5rem; /* rounded-lg */
    border: 1px solid var(--cvis-green);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    padding: 1.5rem; /* p-6 */
}

.events-list-container .event-row {
    border-bottom: 1px solid var(--cvis-green);
    margin-bottom: 1rem; /* mb-4 */
}

.events-list-container .event-item {
    display: block;
    padding: 0.5rem; /* p-2 */
    border-radius: 0.375rem 0.375rem 0 0; /* rounded-t-md */
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.events-list-container .event-item:hover,
.events-list-container .event-item:focus-visible {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04); /* shadow-xl */
    background-color: var(--cvis-color-2, #C0EBA6);
}

.events-list-container .event-item-date {
    text-transform: none;
    letter-spacing: 0;
}

.events-list-container .events-empty {
    text-align: center;
    padding: 1rem;
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    color: #111827;
}

.events-grid .event-item:hover,
.events-grid .event-item:focus-visible {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--cvis-green, #347928);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    transform: translateY(-2px);
    background-color: var(--cvis-color-2, #C0EBA6);
}

.event-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.event-item-type {
    font-weight: 600;
    color: var(--page-accent-color, #2563eb);
}

.event-item-date {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
    text-transform: none;
    letter-spacing: 0;
}

.event-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.events-grid .event-item-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    letter-spacing: -0.025em; /* tracking-tight */
    margin-bottom: 0.5rem; /* mb-2 */
}

.event-item-description {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

.events-empty {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Utility Classes for Tailwind-style classes used in blocks */
.bg-cvisColor3 {
    background-color: var(--cvis-color-3, #FFFBE6);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.text-cvisGreen {
    color: var(--cvis-green, #347928);
}

.border-cvisGreen {
    border-color: var(--cvis-green, #347928) !important;
    border-width: 1px !important;
}

.max-w-screen-md {
    max-width: 768px;
}

.max-w-screen-xl {
    max-width: 1280px;
}

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

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

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

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

/* Gap utilities */
.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

@media (min-width: 768px) {
    .md\:gap-12 {
        gap: 3rem;
    }
}

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

/* Responsive Card Grid - 1 column below 1024px, dynamic columns above */
.card-grid-responsive {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 1024px) {
    .card-grid-responsive.card-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .card-grid-responsive.card-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .card-grid-responsive.card-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .card-grid-responsive.card-grid-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .card-grid-responsive.card-grid-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Padding utilities */
.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

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

/* Border utilities */
.border-b {
    border-bottom-width: 1px;
}

/* Text utilities */
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

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

/* Section title - matching frontend */
.section-title {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--cvis-green, #347928);
    margin-bottom: 0.75rem;
}

.section-description {
    margin-bottom: 1.5rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* Agenda heading on the home list: text-3xl font-semibold leading-tight */
.page-aktuell .page-block-events .section-title {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}
/* Section block styling for CVIS layout */
.section-block {
    width: 100%;
}

.section-content {
    box-sizing: border-box;
}

/* Section child blocks - prevent overflow */
.section-child-block {
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Remove padding for form blocks in sections to avoid double padding */
.section-child-block[data-block-type="form"] {
    padding: 0;
}

/* Ensure events blocks in sections allow outline visibility */
.section-child-block[data-block-type="events"] {
    overflow: visible !important;
    position: relative !important;
}

/* Ensure events-section doesn't block parent outline - remove background in workspace */
.section-child-block[data-block-type="events"] .events-section {
    outline: none !important;
    position: relative !important;
    z-index: 0 !important;
    background: transparent !important;
}

.section-child-block > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Content center utility */
.content-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image height utility (h20 = h-20 = 5rem = 80px) */
.h20 {
    height: 5rem; /* 80px */
    width: auto;
}

/* Flex utilities */
.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

/* Card styling utilities */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--gradient-from, white), var(--gradient-to, #f3f4f6));
}

.from-white {
    --gradient-from: white;
}

.to-gray-100 {
    --gradient-to: #f3f4f6;
}

.rounded-lg {
    border-radius: 0.5rem;
}

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

.gap-4 {
    gap: 1rem;
}

.flex-col {
    flex-direction: column;
}

.leading-normal {
    line-height: 1.5;
}

.font-bold {
    font-weight: 700;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.mt-2 {
    margin-top: 0.5rem;
}

.p-6 {
    padding: 1.5rem;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border {
    border-width: 1px;
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

/* Text Block Content Styles - matching About.vue */
/* Apply to all content in sections, not just direct children */
section ul,
section ol {
    padding-left: 2.5rem !important; /* ml-10 = 2.5rem = 40px */
    margin-bottom: 1.25rem !important; /* mb-5 = 1.25rem = 20px */
    list-style-position: outside;
}

section ul {
    list-style-type: disc !important; /* list-disc */
}

section ol {
    list-style-type: decimal !important;
}

section li {
    margin-top: 1rem !important; /* space-y-4 = 1rem = 16px */
    margin-bottom: 0 !important;
}

section li:first-child {
    margin-top: 0 !important;
}

/* Also apply to nested lists within section content */
section div ul,
section div ol {
    padding-left: 2.5rem !important;
    margin-bottom: 1.25rem !important;
}

section div ul {
    list-style-type: disc !important;
}

section div ol {
    list-style-type: decimal !important;
}

section div li {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

section div li:first-child {
    margin-top: 0 !important;
}


/* Exclude form radio items from section list styles - must be more specific */
section ul.form-radio-group > li,
section ul.form-radio-group li.form-radio-item,
section .form-radio-item,
section ul[class*="items-center"][class*="sm:flex"] > li,
section ul[class*="items-center"][class*="sm:flex"] li {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}


/* Special styling for mb-2 class on li (like in Office component) */
section ul li.mb-2 {
    margin-bottom: 0.5rem !important;
}

section p {
    line-height: 1.6;
    margin-bottom: 0;
}

section p + p {
    margin-top: 1rem; /* Space between paragraphs */
}

section ul + p,
section ol + p,
section div ul + p,
section div ol + p {
    margin-top: 0; /* No extra margin after lists (lists already have mb-5) */
}

/* Apply spacing classes */
.ml-10 {
    margin-left: 2.5rem; /* 40px */
}

.mb-5 {
    margin-bottom: 1.25rem; /* 20px */
}

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

.space-y-4 > * + * {
    margin-top: 1rem; /* 16px */
}

/* Card hover effects and green border - matching About.vue */
section section.hover\:shadow-2xl {
    transition: box-shadow 0.3s ease;
}

section section.hover\:shadow-2xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark mode support */
.dark\:bg-gray-800 {
    background-color: #1f2937;
}

.dark\:border-gray-700 {
    border-color: #374151;
}

.dark\:bg-gray-700 {
    background-color: #374151;
}

.dark\:text-white {
    color: white;
}

.dark\:text-gray-400 {
    color: #9ca3af;
}

.dark\:text-cvisColor2 {
    color: var(--cvis-color-2, #C0EBA6);
}

/* Ensure bg-white class works correctly */
.bg-white {
    background-color: white !important;
}

/* CVIS Form Styling - Based on ContactForm.vue */
.bg-gray-50 {
    background-color: #f9fafb !important;
}

.border-cvisGreen1 {
    border-color: var(--cvis-green-1, #4b7544) !important;
    border-width: 1px;
}

.bg-cvisGreen1 {
    background-color: var(--cvis-green-1, #4b7544) !important;
}

.hover\:bg-cvisGreen:hover {
    background-color: var(--cvis-green, #347928) !important;
}

.text-cvisColor4 {
    color: var(--cvis-color-4, #fdedb4) !important;
}

.mb-5 {
    margin-bottom: 1.25rem !important;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.p-2\.5 {
    padding: 0.625rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.w-full {
    width: 100%;
}

.focus\:ring-4:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-blue-300:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.font-medium {
    font-weight: 500;
}

/* Form input focus states */
.focus\:ring-blue-500:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.focus\:border-blue-500:focus {
    border-color: #3b82f6;
}

/* Checkbox styling */
.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.text-blue-600 {
    color: #2563eb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.focus\:ring-blue-500:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.ml-2 {
    margin-left: 0.5rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.ml-auto {
    margin-left: auto;
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:w-auto {
        width: auto;
    }
}

/* ============================================
   Generic Form Styles (CVIS Layout)
   These styles apply to ALL forms in the layout.
   Radio buttons and grid fields layout are handled generically.
   ============================================ */

/* Form container */
.form-container {
    max-width: 46rem;
}

/* Radio button flex layout - ensure items are side by side and same height */
/* Legacy support for old class names */

/* Grid layout for form fields */
.grid[class*="grid-cols-2"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem;
}

.grid[class*="grid-cols-2"] > div {
    margin-bottom: 0 !important;
}

/* Form input styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Fieldset styles - remove default browser border */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    padding: 0;
    margin: 0;
}

/* ============================================
   Generic Form Classes
   These classes are used by formFieldRenderer for layout-agnostic form rendering
   Layout-specific styling should be defined here
   ============================================ */

/* Form Input Styles */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.625rem 0.625rem;
    border: 1px solid var(--cvis-green-1, #4b7544);
    border-radius: 0.5rem;
    background-color: #f8fbf4;
    font-size: .875rem;
    line-height: 1.25rem;
    color: #1f2937;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 0.5rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #347928;
    box-shadow: 0 0 0 3px rgba(52, 121, 40, 0.18);
    outline: none;
}

/* Radio Button Group */
.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    margin: 0 0 0.5rem 0;
    list-style: none;
}

.form-radio-item {
    display: flex;
    align-items: center;
}

.form-radio-item-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.form-radio-input {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--cvis-green-1, #4b7544);
    border-radius: 50%;
}

.form-radio-label {
    margin: 0;
    color:rgb(0, 0, 0);
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.form-radio-group.form-radio-inline {
    flex-direction: row;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--cvis-green-1, #4b7544);
    border-radius: 0.5rem;
    gap: 0;
    overflow: hidden;
}

.form-radio-group.form-radio-inline .form-radio-item {
    flex: 1 1 0%;
    border-right: 1px solid #e5e7eb;
    margin: 0;
    padding: 0;
}

.form-radio-group.form-radio-inline .form-radio-item:last-child {
    border-right: none;
}

.form-radio-group.form-radio-inline .form-radio-item-inner {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
}

/* Checkbox Styles */
.form-checkbox-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--cvis-green, #347928);
}

.card-link-wrapper {
    decoration: none;
}

.form-checkbox-label {
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.85);
}

.form-checkbox-helper {
    font-size: 0.95rem;
    color: rgba(31, 59, 32, 0.65);
}

/* Submit Button */
.form-submit-wrapper {
    display: block;
    text-align: left;
    margin-top: 1rem;
}

.form-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--cvis-green, #347928);
    background-color: var(--cvis-green, #347928);
    color: #ffffff;
    letter-spacing: 0.02em;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.form-submit-button:hover,
.form-submit-button:focus {
    background-color: var(--cvis-green-1, #4b7544);
    box-shadow: 0 18px 35px -18px rgba(52, 121, 40, 0.6);
    transform: translateY(-1px);
    outline: none;
}

.form-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Runtime Form Wrapper */
.form-embed-container, .form-wrapper {
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}


.form-title {
    margin: 0 0 1.25rem;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
    color: var(--cvis-green-darker, #1f3b20);
}

.form-description {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.75rem;
    color: rgba(31, 59, 32, 0.75);
}

/* ============================================
   Specific Form Styles (by form key)
   Forms automatically get a class "form-{key}" for CSS targeting.
   Use this section to add form-specific styles that override or extend
   the generic form styles above.
   
   Example: A form with key "orderForm" gets the class "form-orderform"
   ============================================ */

/* Order Form (key: "orderForm") specific styles */
.form-orderform {
    max-width: 46rem;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid var(--cvis-green-1, #4b7544);
    border-radius: 0.5rem;
    box-shadow: 0 18px 35px -20px rgba(15, 23, 42, 0.45);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    padding: 24px;
}

.form-orderform:hover {
    box-shadow: 0 28px 45px -18px rgba(15, 23, 42, 0.5);
}

.form-block-description {
    margin-bottom: 1.5rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.form-schema-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #347928;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.form-schema-description {
    color: #475569;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.form-fieldset-legend {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.form-checkbox-row {
    display: inline-flex;            /* Checkbox + Label nebeneinander */
    align-items: center;
    margin: 0;
}

.form-checkbox-label {
    display: inline-flex;            /* überschreibt das block-Label */
    align-items: center;
    margin-left: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color:rgb(0, 0, 0);
}

.form-radio-item {
    display: flex;
    align-items: center;
}

.form-radio-item-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.form-radio-input {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--cvis-green-1, #4b7544);
    border-radius: 50%;
}

.form-radio-label {
    margin: 0;
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.form-radio-group.form-radio-inline {
    flex-direction: row;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--cvis-green-1, #4b7544);
    border-radius: 0.5rem;
    gap: 0;
    overflow: hidden;
}

.form-radio-group.form-radio-inline .form-radio-item {
    flex: 1 1 0%;
    border-right: 1px solid #e5e7eb;
    margin: 0;
    padding: 0;
}

.form-radio-group.form-radio-inline .form-radio-item:last-child {
    border-right: none;
}

.form-radio-group.form-radio-inline .form-radio-item-inner {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
}


.form-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    background-color: var(--cvis-green-1, #4b7544);
    color: var(--cvis-color-4, #fdedb4);
    text-align: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-submit-button:hover,
.form-submit-button:focus {
    background-color: var(--cvis-green, #347928);
    outline: none;
}

.form-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-submit-button:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

@media (min-width: 640px) {
    .form-submit-button {
        width: auto;
    }
}

.form-grid-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.form-grid-cell {
    margin-bottom: 0;
}



/* Form Block Styling - Specific styles per form type */
/* OrderForm: Card layout with border, padding, shadow */
.formBlock.orderform,
.formBlock.orderForm,
.formBlock.examform,
.formBlock.examForm,
.formBlock.eventform,
.formBlock.eventForm {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ContactForm: No card styling (no border, no padding, no shadow) */
.formBlock.contactForm {
    /* No additional styling - inherits default */
}

/* ExamForm: Card layout with border, padding, shadow (similar to OrderForm) */
/* EventForm: no additional wrapper styling */
.formBlock.eventform,
.formBlock.eventForm {
    /* inherits reset above */
}

/* Event Form Modal: Event info display */
.event-form-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    border-left: 4px solid var(--cvis-green, #347928);
}

.event-form-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.event-form-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}


.form-field label {
    display: block;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
}

.form-field label .form-required,
.form-field label span {
    color: #ef4444;
}

.doc-item-hidden {
    display: none;
}

/* ============================================
   Columns Block (CVIS Style)
   ============================================ */
.columns-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
}

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

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

@media (min-width: 768px) {
    .columns-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .columns-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

.column-item {
    text-align: center;
    padding: 1.5rem;
}

.columns-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.columns-icon {
    font-size: 2rem;
    color: var(--page-accent-color, #2563eb);
    margin-bottom: 1rem;
    display: block;
}

.columns-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.columns-text {
    color: #6b7280;
    margin: 0;
}

/* ============================================
   Cards Block (CVIS Style)
   ============================================ */
.cards-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
}

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

.cards-grid-2,
.cards-grid-3,
.cards-grid-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .cards-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cards-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

.card-item {
    display: block;
    position: relative;
}

.card-link-wrapper {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
    cursor: pointer;
}

.card-link-wrapper:focus {
    outline: none;
}

.card-shell {
    padding: 1.5rem;
    background: linear-gradient(to right, white, #f3f4f6);
    border: 1px solid var(--cvis-green, #347928);
    border-radius: 0.75rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-link-wrapper:hover .card-shell,
.card-link-wrapper:focus-visible .card-shell,
.card-shell:hover,
.card-shell:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.35);
}

.card-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .card-inner {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}

.card-media {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .card-media {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
}

.card-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--cvis-green, #347928);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.35);
}

.card-body {
    flex: 1;
    padding: 0;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #111827;
}

.card-subtitle {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cvis-green, #347928);
}

.card-description {
    color: #374151;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
    Documents Block (CVIS Style)
    Based on File.vue and DocumentGrid.vue
    ============================================ */