/**
 * NF Event Manager - Frontend Styles
 */

/* ============================================
   CSS Variables
   ============================================ */

:root {
    --nfem-primary: #2563eb;
    --nfem-primary-dark: #1d4ed8;
    --nfem-secondary: #64748b;
    --nfem-success: #22c55e;
    --nfem-danger: #ef4444;
    --nfem-warning: #f59e0b;
    --nfem-text: #1e293b;
    --nfem-text-light: #64748b;
    --nfem-border: #e2e8f0;
    --nfem-bg: #f8fafc;
    --nfem-white: #ffffff;
    --nfem-radius: 8px;
    --nfem-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --nfem-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --nfem-transition: all 0.2s ease;
}

/* ============================================
   Buttons
   ============================================ */

.nfem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    border-radius: var(--nfem-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--nfem-transition);
}

.nfem-btn-primary {
    background: var(--nfem-primary);
    color: var(--nfem-white);
    border-color: var(--nfem-primary);
}

.nfem-btn-primary:hover {
    background: var(--nfem-primary-dark);
    border-color: var(--nfem-primary-dark);
    color: var(--nfem-white);
}

.nfem-btn-secondary {
    background: transparent;
    color: var(--nfem-primary);
    border-color: var(--nfem-primary);
}

.nfem-btn-secondary:hover {
    background: var(--nfem-primary);
    color: var(--nfem-white);
}

.nfem-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ============================================
   Kalender
   ============================================ */

.nfem-calendar-wrapper {
    background: var(--nfem-white);
    border-radius: var(--nfem-radius);
    box-shadow: var(--nfem-shadow);
    overflow: hidden;
    position: relative;
}

.nfem-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--nfem-bg);
    border-bottom: 1px solid var(--nfem-border);
}

.nfem-calendar-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--nfem-text);
}

.nfem-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--nfem-white);
    border: 1px solid var(--nfem-border);
    border-radius: var(--nfem-radius);
    cursor: pointer;
    transition: var(--nfem-transition);
    color: var(--nfem-text);
}

.nfem-calendar-nav:hover {
    background: var(--nfem-primary);
    border-color: var(--nfem-primary);
    color: var(--nfem-white);
}

.nfem-calendar-today {
    padding: 8px 16px;
    background: var(--nfem-white);
    border: 1px solid var(--nfem-border);
    border-radius: var(--nfem-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--nfem-transition);
    margin-left: auto;
    margin-right: 10px;
}

.nfem-calendar-today:hover {
    background: var(--nfem-primary);
    border-color: var(--nfem-primary);
    color: var(--nfem-white);
}

/* ============================================
   Kalender Suche
   ============================================ */

.nfem-calendar-search {
    padding: 15px 20px;
    background: var(--nfem-bg);
    border-bottom: 1px solid var(--nfem-border);
    position: relative;
}

.nfem-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
}

.nfem-search-icon {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nfem-text-light);
    pointer-events: none;
}

.nfem-search-icon svg {
    width: 20px;
    height: 20px;
}

.nfem-search-input {
    width: 100%;
    height: 44px;
    padding: 0 80px 0 16px;
    font-size: 15px;
    border: 1px solid var(--nfem-border);
    border-radius: var(--nfem-radius);
    background: var(--nfem-white);
    transition: var(--nfem-transition);
    line-height: 44px;
    box-sizing: border-box;
}

.nfem-search-input:focus {
    outline: none;
    border-color: var(--nfem-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nfem-search-input::placeholder {
    color: var(--nfem-text-light);
}

.nfem-search-clear {
    position: absolute;
    right: 40px;
    top: 0;
    bottom: 0;
    width: 32px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--nfem-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--nfem-transition);
}

.nfem-search-clear svg {
    width: 18px;
    height: 18px;
    transition: var(--nfem-transition);
}

.nfem-search-clear:hover {
    color: var(--nfem-text);
}

.nfem-search-clear:hover svg {
    transform: scale(1.1);
}

.nfem-search-results {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--nfem-white);
    border: 1px solid var(--nfem-border);
    border-radius: var(--nfem-radius);
    box-shadow: var(--nfem-shadow-lg);
    max-height: 350px;
    overflow-y: auto;
    z-index: 100;
}

.nfem-search-results-list {
    padding: 8px 0;
}

.nfem-search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--nfem-transition);
}

.nfem-search-result-item:hover {
    background: var(--nfem-bg);
}

.nfem-search-result-color {
    width: 4px;
    height: 100%;
    min-height: 36px;
    border-radius: 2px;
    flex-shrink: 0;
}

.nfem-search-result-content {
    flex: 1;
    min-width: 0;
}

.nfem-search-result-title {
    font-weight: 500;
    color: var(--nfem-text);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nfem-search-online {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: #22c55e;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.nfem-search-result-date {
    font-size: 13px;
    color: var(--nfem-text-light);
}

.nfem-search-message {
    padding: 15px;
    text-align: center;
    color: var(--nfem-text-light);
    font-size: 14px;
}

.nfem-search-loading {
    padding: 20px;
    text-align: center;
}

.nfem-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid var(--nfem-border);
    border-top-color: var(--nfem-primary);
    border-radius: 50%;
    animation: nfem-spin 0.8s linear infinite;
    display: inline-block;
}

.nfem-calendar-grid {
    padding: 10px;
}

.nfem-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--nfem-border);
}

.nfem-calendar-weekdays span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--nfem-text-light);
}

.nfem-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding-top: 10px;
}

.nfem-calendar-day {
    min-height: 100px;
    padding: 8px;
    border: 1px solid var(--nfem-border);
    border-radius: 4px;
    transition: var(--nfem-transition);
    cursor: default;
    overflow: hidden;
}

.nfem-calendar-day:hover {
    background: var(--nfem-bg);
}

.nfem-calendar-day.nfem-other-month {
    background: var(--nfem-bg);
    opacity: 0.5;
}

.nfem-calendar-day.nfem-today {
    border-color: var(--nfem-primary);
    background: rgba(37, 99, 235, 0.05);
}

.nfem-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nfem-text);
    margin-bottom: 5px;
}

.nfem-today .nfem-day-number {
    background: var(--nfem-primary);
    color: var(--nfem-white);
    border-radius: 50%;
}

.nfem-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    width: 100%;
}

.nfem-day-event {
    display: block;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--nfem-white);
    background: var(--nfem-primary);
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: var(--nfem-transition);
    text-decoration: none;
    max-width: 100%;
    min-width: 0;
}

.nfem-day-event:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Online Event */
.nfem-day-event.nfem-online-event {
    position: relative;
}

.nfem-online-icon {
    font-size: 10px;
    margin-right: 2px;
}

.nfem-day-more {
    font-size: 11px;
    color: var(--nfem-text-light);
    padding: 2px 6px;
}

/* Calendar Loading */
.nfem-calendar-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nfem-calendar-wrapper.nfem-loading .nfem-calendar-loading {
    display: flex;
}

.nfem-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--nfem-border);
    border-top-color: var(--nfem-primary);
    border-radius: 50%;
    animation: nfem-spin 0.8s linear infinite;
}

@keyframes nfem-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Event Liste
   ============================================ */

.nfem-list-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.nfem-event-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Teaser-Stil: Kompakte klickbare Karte */
.nfem-event-item.nfem-event-teaser {
    display: flex !important;
    align-items: center !important;
    gap: 16px;
    background: var(--nfem-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--nfem-border);
    border-left: 4px solid var(--nfem-primary);
    padding: 16px;
    transition: var(--nfem-transition);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
}

.nfem-event-item.nfem-event-teaser:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    border-color: var(--nfem-primary);
    border-left-color: var(--nfem-primary);
    background: #fafbff;
}

.nfem-event-item.nfem-event-teaser .nfem-event-date-badge {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    background: linear-gradient(135deg, var(--nfem-primary) 0%, var(--nfem-primary-dark) 100%);
    color: var(--nfem-white);
    border-radius: 10px;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.nfem-event-item.nfem-event-teaser .nfem-event-day {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.nfem-event-item.nfem-event-teaser .nfem-event-month {
    font-size: 11px !important;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.nfem-event-item.nfem-event-teaser .nfem-event-content {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.nfem-event-item.nfem-event-teaser .nfem-event-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--nfem-text) !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nfem-event-item.nfem-event-teaser:hover .nfem-event-title {
    color: var(--nfem-primary) !important;
}

.nfem-event-item.nfem-event-teaser .nfem-event-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px !important;
    color: var(--nfem-text-light);
}

.nfem-event-item.nfem-event-teaser .nfem-event-meta span {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}

.nfem-event-item.nfem-event-teaser .nfem-event-meta svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.nfem-event-item.nfem-event-teaser .nfem-event-price {
    font-weight: 600 !important;
    color: var(--nfem-text) !important;
}

/* Pfeil rechts */
.nfem-event-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    color: var(--nfem-text-light);
    opacity: 0.4;
    transition: var(--nfem-transition);
}

.nfem-event-item.nfem-event-teaser:hover .nfem-event-arrow {
    opacity: 1;
    color: var(--nfem-primary);
    transform: translateX(3px);
}

/* Online Badge kompakter */
.nfem-event-item.nfem-event-teaser .nfem-online-badge {
    padding: 3px 8px !important;
    font-size: 10px !important;
    margin-left: 0 !important;
}

/* ============================================
   Posts Teaser Styles (wie Events, aber für normale Beiträge)
   ============================================ */

.nfem-posts-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

/* Posts-Datum-Badge - leicht andere Farbe (Grau statt Blau) */
.nfem-post-teaser .nfem-post-date-badge {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.25) !important;
}

/* Posts-Border links - Grau */
.nfem-post-teaser {
    border-left-color: #475569 !important;
}

.nfem-post-teaser:hover {
    border-color: #475569 !important;
    border-left-color: #475569 !important;
}

/* Kategorie-Badge für Posts */
.nfem-post-category {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 20px;
    margin-left: 0;
}

/* Post Excerpt */
.nfem-post-teaser .nfem-post-excerpt {
    font-size: 13px !important;
    color: var(--nfem-text-light);
    line-height: 1.5;
}

/* Keine Posts gefunden */
.nfem-no-posts {
    text-align: center;
    padding: 30px;
    color: var(--nfem-text-light);
    background: var(--nfem-bg);
    border-radius: 12px;
}

/* Online Badge */
.nfem-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.nfem-event-online {
    color: #10b981 !important;
}

.nfem-event-online svg {
    color: #10b981 !important;
}

.nfem-event-price {
    font-weight: 600;
    color: var(--nfem-text) !important;
}

/* Math Captcha */
.nfem-field-type-captcha {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed var(--nfem-primary);
    border-radius: var(--nfem-radius);
    padding: 15px;
    margin-bottom: 20px;
}

.nfem-field-type-captcha label {
    font-weight: 600;
    color: var(--nfem-primary);
    margin-bottom: 10px;
    display: block;
}

.nfem-captcha-input {
    max-width: 120px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.nfem-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.nfem-event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--nfem-text-light);
}

.nfem-event-meta svg {
    color: var(--nfem-secondary);
}

.nfem-event-excerpt {
    font-size: 14px;
    color: var(--nfem-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.nfem-event-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nfem-event-image {
    width: 200px;
    height: 140px;
    border-radius: var(--nfem-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.nfem-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nfem-no-events {
    text-align: center;
    padding: 40px;
    background: var(--nfem-bg);
    border-radius: var(--nfem-radius);
    color: var(--nfem-text-light);
}

/* Pagination */
.nfem-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.nfem-pagination a,
.nfem-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--nfem-white);
    border: 1px solid var(--nfem-border);
    border-radius: var(--nfem-radius);
    font-size: 14px;
    color: var(--nfem-text);
    text-decoration: none;
    transition: var(--nfem-transition);
}

.nfem-pagination a:hover {
    background: var(--nfem-primary);
    border-color: var(--nfem-primary);
    color: var(--nfem-white);
}

.nfem-pagination .current {
    background: var(--nfem-primary);
    border-color: var(--nfem-primary);
    color: var(--nfem-white);
}

/* ============================================
   Anmeldeformular
   ============================================ */

.nfem-registration-form-wrapper {
    max-width: 100%;
    margin: 0;
}

.nfem-registration-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.nfem-form-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nfem-form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.nfem-form-field > label {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 14px;
    font-weight: 500;
    color: var(--nfem-text);
    padding-bottom: 6px;
    line-height: 1.4;
}

.nfem-form-field > label::before {
    content: '';
    flex: 1 1 auto;
}

/* Volle Breite für bestimmte Felder */
.nfem-form-field.nfem-field-full,
.nfem-form-field:has(textarea),
.nfem-form-field:has(.nfem-radio-group),
.nfem-form-field:has(.nfem-checkbox-group),
.nfem-consent-field,
.nfem-captcha-field,
.nfem-form-submit,
.nfem-field-heading,
.nfem-field-divider {
    grid-column: 1 / -1;
}

.nfem-form-field.nfem-field-full > label,
.nfem-form-field:has(textarea) > label,
.nfem-form-field:has(.nfem-radio-group) > label,
.nfem-form-field:has(.nfem-checkbox-group) > label {
    flex: 0 0 auto;
}

.nfem-form-field.nfem-field-full > label::before,
.nfem-form-field:has(textarea) > label::before,
.nfem-form-field:has(.nfem-radio-group) > label::before,
.nfem-form-field:has(.nfem-checkbox-group) > label::before {
    display: none;
}

/* Heading und Divider Styles */
.nfem-field-heading {
    margin: 10px 0 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--nfem-border);
    font-size: 16px;
    font-weight: 600;
    color: var(--nfem-text);
}

.nfem-field-divider {
    margin: 10px 0;
    border: none;
    border-top: 1px solid var(--nfem-border);
}

.nfem-required {
    color: var(--nfem-danger);
    margin-left: 2px;
}

.nfem-input,
.nfem-textarea,
.nfem-select,
.nfem-form-field input[type="text"],
.nfem-form-field input[type="email"],
.nfem-form-field input[type="tel"],
.nfem-form-field input[type="number"],
.nfem-form-field input[type="date"],
.nfem-form-field input[type="url"],
.nfem-form-field textarea,
.nfem-form-field select,
.nfem-registration-form input[type="text"],
.nfem-registration-form input[type="email"],
.nfem-registration-form input[type="tel"],
.nfem-registration-form input[type="number"],
.nfem-registration-form input[type="date"],
.nfem-registration-form input[type="url"],
.nfem-registration-form textarea,
.nfem-registration-form select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--nfem-border);
    border-radius: var(--nfem-radius);
    background: var(--nfem-white);
    color: var(--nfem-text);
    transition: var(--nfem-transition);
    box-sizing: border-box;
}

.nfem-input:focus,
.nfem-textarea:focus,
.nfem-select:focus,
.nfem-form-field input:focus,
.nfem-form-field textarea:focus,
.nfem-form-field select:focus,
.nfem-registration-form input:focus,
.nfem-registration-form textarea:focus,
.nfem-registration-form select:focus {
    outline: none;
    border-color: var(--nfem-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nfem-input::placeholder,
.nfem-textarea::placeholder,
.nfem-form-field input::placeholder,
.nfem-form-field textarea::placeholder,
.nfem-registration-form input::placeholder,
.nfem-registration-form textarea::placeholder {
    color: var(--nfem-text-light);
}

.nfem-textarea,
.nfem-form-field textarea,
.nfem-registration-form textarea {
    resize: vertical;
    min-height: 100px;
}

.nfem-radio-group,
.nfem-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nfem-radio-label,
.nfem-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--nfem-text);
    cursor: pointer;
}

.nfem-radio-label input,
.nfem-checkbox-label input {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Checkbox im Formular (z.B. Consent) */
.nfem-consent-field .nfem-checkbox-label,
.nfem-form-field .nfem-checkbox-label {
    font-weight: normal;
}

.nfem-consent-field .nfem-checkbox-label input,
.nfem-form-field .nfem-checkbox-label input {
    width: auto;
    padding: 0;
}

.nfem-form-messages {
    margin-top: 15px;
}

.nfem-form-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--nfem-radius);
    color: var(--nfem-danger);
    font-size: 14px;
}

/* Consent/Zustimmungsfeld */
.nfem-consent-field {
    background: #fffbeb;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #fde68a;
    margin-top: 20px;
    grid-column: 1 / -1;
}

.nfem-consent-field .nfem-checkbox-label {
    line-height: 1.6;
    font-size: 13px;
    color: #78350f;
}

.nfem-consent-field a {
    color: #b45309;
    text-decoration: underline;
}

.nfem-consent-field a:hover {
    color: #92400e;
}

/* Captcha Feld */
.nfem-captcha-field {
    background: var(--nfem-bg);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--nfem-border);
    margin-top: 10px;
    grid-column: 1 / -1;
}

.nfem-captcha-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--nfem-text);
    margin-bottom: 6px;
}

.nfem-captcha-field label svg {
    color: #10b981;
}

.nfem-captcha-field input {
    max-width: 80px;
    padding: 8px 10px;
}

.nfem-form-submit {
    margin-top: 25px;
    grid-column: 1 / -1;
}

.nfem-form-buttons {
    display: flex;
    gap: 12px;
}

.nfem-form-buttons .nfem-btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nfem-form-buttons .nfem-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
    box-shadow: none;
}

.nfem-form-buttons .nfem-btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-2px);
}

.nfem-form-buttons .nfem-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nfem-form-buttons .nfem-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Success State */
.nfem-registration-success {
    text-align: center;
    padding: 40px;
    background: var(--nfem-white);
    border-radius: var(--nfem-radius);
    box-shadow: var(--nfem-shadow);
}

.nfem-success-icon {
    color: var(--nfem-success);
    margin-bottom: 20px;
}

.nfem-registration-success h3 {
    margin: 0 0 10px 0;
    color: var(--nfem-success);
}

.nfem-registration-success p {
    margin: 0;
    color: var(--nfem-text-light);
}

/* ============================================
   Modal
   ============================================ */

.nfem-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

.nfem-modal.nfem-modal-open {
    display: flex;
}

.nfem-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.nfem-modal-content {
    position: relative;
    background: var(--nfem-white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    width: 95%;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    animation: nfem-modal-in 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes nfem-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nfem-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--nfem-text);
    transition: var(--nfem-transition);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nfem-modal-close:hover {
    background: var(--nfem-white);
    transform: scale(1.1);
}

.nfem-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1 1 auto;
}

/* Fixer Footer für Buttons - scrollt NICHT mit */
.nfem-modal-fixed-footer {
    flex-shrink: 0;
    padding: 0 30px 30px 30px;
    background: white;
}

.nfem-modal-fixed-footer:empty {
    display: none;
}

/* Event-Detail Container */
.nfem-event-detail {
    display: flex;
    flex-direction: column;
}

.nfem-modal-image {
    margin: 0;
    height: 180px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.nfem-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Online-Event Badge */
.nfem-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.nfem-modal-badge svg {
    width: 14px;
    height: 14px;
}

.nfem-modal-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--nfem-text);
    line-height: 1.3;
}

.nfem-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--nfem-bg);
    border-radius: 12px;
}

.nfem-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--nfem-text);
}

.nfem-modal-meta-item svg {
    color: var(--nfem-primary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.nfem-modal-excerpt {
    font-size: 14px;
    color: var(--nfem-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.nfem-modal-description {
    font-size: 15px;
    color: var(--nfem-text);
    line-height: 1.7;
    margin: 20px 0;
    padding: 20px;
    background: var(--nfem-bg);
    border-radius: 12px;
    border-left: 4px solid var(--nfem-primary);
}

.nfem-modal-description p {
    margin: 0 0 12px 0;
}

.nfem-modal-description p:last-child {
    margin-bottom: 0;
}

.nfem-modal-online-link {
    margin: 20px 0;
}

.nfem-modal-footer {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--nfem-border);
}

/* Modal Buttons - im fixen Footer */
.nfem-modal-buttons {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--nfem-border);
}

.nfem-modal-buttons .nfem-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nfem-modal-buttons .nfem-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.nfem-modal-buttons .nfem-btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-2px);
}

.nfem-modal-buttons .nfem-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nfem-modal-buttons .nfem-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Anmeldung Section im Modal */
.nfem-modal-registration {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--nfem-border);
}

.nfem-modal-registration h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--nfem-text);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nfem-modal-registration h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--nfem-primary);
    border-radius: 2px;
}

.nfem-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal Registration Form */
.nfem-registration-form-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--nfem-border);
    overflow: visible;
}

.nfem-registration-form-container h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--nfem-text);
}

/* Deaktiviere label::before im Modal - verhindert Überlappung */
.nfem-modal-body .nfem-form-field > label {
    display: block;
    flex: none;
}

.nfem-modal-body .nfem-form-field > label::before {
    display: none !important;
    content: none !important;
}

/* 3-Spalten Grid für Formulare im Modal */
.nfem-registration-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
    align-items: stretch; /* Alle Felder gleich hoch */
}

.nfem-registration-form .nfem-form-field {
    margin-bottom: 0;
}

/* Volle Breite für bestimmte Felder */
.nfem-registration-form .nfem-form-field:has(textarea),
.nfem-registration-form .nfem-consent-field,
.nfem-registration-form .nfem-form-submit,
.nfem-registration-form .nfem-field-heading,
.nfem-registration-form .nfem-field-divider,
.nfem-registration-form .nfem-form-field:has(.nfem-checkbox-group),
.nfem-registration-form .nfem-form-field:has(.nfem-radio-group) {
    grid-column: 1 / -1;
}

/* Fallback für Browser ohne :has() Support */
.nfem-registration-form .nfem-captcha-field {
    grid-column: 1 / -1;
}

.nfem-modal-body .nfem-registration-form .nfem-form-field {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

/* Label bleibt oben mit normalem Abstand */
.nfem-modal-body .nfem-registration-form .nfem-form-field > label {
    flex: 0 0 auto;
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--nfem-text);
    margin-bottom: 6px;
}

/* Input wird nach unten geschoben */
.nfem-modal-body .nfem-registration-form .nfem-form-field > input,
.nfem-modal-body .nfem-registration-form .nfem-form-field > select,
.nfem-modal-body .nfem-registration-form .nfem-form-field > textarea {
    flex-shrink: 0;
    margin-top: auto;
}

/* Checkbox/Radio-Gruppen: kein auto-margin */
.nfem-modal-body .nfem-registration-form .nfem-form-field:has(.nfem-checkbox-group),
.nfem-modal-body .nfem-registration-form .nfem-form-field:has(.nfem-radio-group) {
    display: block;
}

.nfem-registration-closed {
    margin-top: 20px;
    padding: 20px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--nfem-radius);
    color: #92400e;
    text-align: center;
}

.nfem-registration-closed p {
    margin: 0 0 15px 0;
}

.nfem-registration-closed .nfem-btn {
    margin-top: 10px;
}

.nfem-no-registration {
    margin-top: 20px;
    text-align: center;
}

.nfem-no-registration .nfem-btn {
    display: inline-block;
    padding: 14px 28px;
}

.nfem-registration-success {
    margin-top: 20px;
    padding: 20px;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: var(--nfem-radius);
    color: #065f46;
    text-align: center;
}

.nfem-registration-success p {
    margin: 0;
}

.nfem-form-message {
    margin-top: 10px;
    grid-column: 1 / -1;
}

/* ============================================
   Mobile Day Events List (Modal)
   ============================================ */

.nfem-day-events-list {
    padding: 10px 0;
}

.nfem-day-events-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--nfem-text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nfem-border);
}

.nfem-day-events-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nfem-day-events-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--nfem-bg);
    border-radius: var(--nfem-radius);
    text-decoration: none;
    transition: var(--nfem-transition);
}

.nfem-day-events-item:hover {
    background: var(--nfem-border);
}

.nfem-day-events-color {
    width: 8px;
    height: 100%;
    min-height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}

.nfem-day-events-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nfem-day-events-info strong {
    color: var(--nfem-text);
    font-size: 15px;
}

.nfem-day-events-info small {
    color: var(--nfem-text-light);
    font-size: 13px;
}

/* ============================================
   Info & Error Messages
   ============================================ */

.nfem-info,
.nfem-error {
    padding: 16px 20px;
    border-radius: var(--nfem-radius);
    font-size: 14px;
}

.nfem-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.nfem-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--nfem-danger);
}

/* ============================================
   Responsive - Tablet (max 992px)
   ============================================ */

@media (max-width: 992px) {
    .nfem-calendar-day {
        min-height: 90px;
        padding: 6px;
    }
    
    .nfem-day-event {
        font-size: 11px;
        padding: 2px 5px;
    }
    
    .nfem-online-icon {
        display: none;
    }
    
    /* Formular - Tablet: 2 Spalten */
    .nfem-registration-form,
    .nfem-form-fields {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    /* Event Liste - Tablet */
    .nfem-event-item.nfem-event-teaser {
        padding: 14px;
    }
    
    .nfem-event-item.nfem-event-teaser .nfem-event-title {
        font-size: 15px !important;
    }
}

/* ============================================
   Responsive - Small Tablet / Large Phone (max 768px)
   ============================================ */

@media (max-width: 768px) {
    .nfem-calendar-wrapper {
        border-radius: var(--nfem-radius);
    }
    
    .nfem-calendar-header {
        padding: 12px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nfem-calendar-title {
        font-size: 18px;
    }
    
    .nfem-calendar-nav {
        width: 36px;
        height: 36px;
    }
    
    .nfem-calendar-today {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .nfem-calendar-search {
        padding: 10px 12px;
    }
    
    .nfem-search-input-wrapper {
        height: 40px;
    }
    
    .nfem-search-input {
        height: 40px;
        padding: 0 70px 0 12px;
        font-size: 14px;
        line-height: 40px;
    }
    
    .nfem-search-results {
        left: 12px;
        right: 12px;
    }
    
    .nfem-calendar-grid {
        padding: 8px;
    }
    
    .nfem-calendar-weekdays span {
        font-size: 11px;
    }
    
    .nfem-calendar-day {
        min-height: 70px;
        padding: 4px;
    }
    
    .nfem-day-number {
        width: 22px;
        height: 22px;
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .nfem-day-event {
        font-size: 9px;
        padding: 2px 4px;
        border-radius: 2px;
    }
    
    .nfem-day-more {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    /* Event Liste */
    .nfem-event-item {
        grid-template-columns: auto 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .nfem-event-date-badge {
        width: 55px;
        height: 55px;
    }
    
    .nfem-event-day {
        font-size: 20px;
    }
    
    .nfem-event-month {
        font-size: 11px;
    }
    
    .nfem-event-title {
        font-size: 16px;
    }
    
    .nfem-event-image {
        display: none;
    }
    
    /* Formular - Mobile: 1 Spalte */
    .nfem-registration-form,
    .nfem-form-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .nfem-form-field {
        grid-column: 1 !important;
    }
    
    .nfem-form-field > label {
        flex: 0 0 auto;
    }
    
    .nfem-form-field > label::before {
        display: none;
    }
    
    /* Modal */
    .nfem-modal {
        padding: 30px 15px;
    }
    
    .nfem-modal-content {
        max-height: calc(100vh - 60px);
        border-radius: 12px;
    }
    
    .nfem-modal-body {
        padding: 20px;
        overflow-y: auto;
    }
    
    .nfem-modal-image {
        height: 140px;
        border-radius: 12px 12px 0 0;
    }
    
    .nfem-modal-title {
        font-size: 20px;
    }
    
    .nfem-modal-meta {
        padding: 15px;
    }
    
    .nfem-captcha-field,
    .nfem-consent-field {
        padding: 15px;
    }
}

/* ============================================
   Responsive - Phone (max 576px)
   ============================================ */

@media (max-width: 576px) {
    .nfem-calendar-header {
        padding: 10px;
    }
    
    .nfem-calendar-title {
        font-size: 16px;
        flex: 1;
        text-align: center;
    }
    
    .nfem-calendar-today {
        display: none;
    }
    
    .nfem-calendar-grid {
        padding: 5px;
    }
    
    .nfem-calendar-weekdays {
        padding: 8px 0;
    }
    
    .nfem-calendar-weekdays span {
        font-size: 10px;
    }
    
    .nfem-calendar-days {
        gap: 1px;
        padding-top: 5px;
    }
    
    .nfem-calendar-day {
        min-height: 55px;
        padding: 3px;
        border-radius: 3px;
    }
    
    .nfem-day-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .nfem-day-events {
        gap: 1px;
    }
    
    .nfem-day-event {
        font-size: 8px;
        padding: 1px 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Nur 2 Events anzeigen */
    .nfem-day-event:nth-child(n+3) {
        display: none;
    }
    
    .nfem-day-more {
        font-size: 8px;
    }
    
    /* Event Liste - Teaser Mobile */
    .nfem-event-item.nfem-event-teaser {
        padding: 12px;
        gap: 12px;
    }
    
    .nfem-event-item.nfem-event-teaser .nfem-event-date-badge {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        border-radius: 8px;
    }
    
    .nfem-event-item.nfem-event-teaser .nfem-event-day {
        font-size: 18px !important;
    }
    
    .nfem-event-item.nfem-event-teaser .nfem-event-month {
        font-size: 9px !important;
    }
    
    .nfem-event-item.nfem-event-teaser .nfem-event-content {
        gap: 4px;
    }
    
    .nfem-event-item.nfem-event-teaser .nfem-event-title {
        font-size: 14px !important;
    }
    
    .nfem-event-item.nfem-event-teaser .nfem-event-meta {
        gap: 8px;
        font-size: 12px !important;
    }
    
    .nfem-event-arrow {
        width: 24px;
        min-width: 24px;
    }
    
    .nfem-event-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    /* Online Badge kleiner */
    .nfem-event-item.nfem-event-teaser .nfem-online-badge {
        padding: 2px 6px !important;
        font-size: 9px !important;
    }
    
    /* Formular - Mobile: 1 Spalte */
    .nfem-registration-form,
    .nfem-form-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .nfem-form-field {
        grid-column: 1 !important;
    }
    
    .nfem-form-field > label {
        flex: 0 0 auto;
    }
    
    .nfem-form-field > label::before {
        display: none;
    }
    
    .nfem-form-field label {
        font-size: 13px;
    }
    
    .nfem-input,
    .nfem-select,
    .nfem-textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Buttons untereinander auf Mobile */
    .nfem-form-buttons {
        flex-direction: column;
    }
    
    .nfem-form-buttons .nfem-btn {
        width: 100%;
    }
    
    .nfem-modal-buttons {
        flex-direction: column;
    }
    
    .nfem-modal-buttons .nfem-btn {
        width: 100%;
    }
    
    /* Modal */
    .nfem-modal {
        padding: 20px 10px;
    }
    
    .nfem-modal-content {
        max-height: calc(100vh - 40px);
        border-radius: var(--nfem-radius);
    }
    
    .nfem-modal-body {
        padding: 15px;
        overflow-y: auto;
    }
    
    .nfem-modal-fixed-footer {
        padding: 0 15px 15px 15px;
    }
    
    .nfem-modal-title {
        font-size: 18px;
        padding-right: 30px;
    }
    
    .nfem-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
    
    .nfem-modal-actions {
        flex-direction: column;
    }
    
    .nfem-modal-actions .nfem-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Responsive - Small Phone (max 400px)
   ============================================ */

@media (max-width: 400px) {
    .nfem-calendar-header {
        padding: 8px;
    }
    
    .nfem-calendar-nav {
        width: 32px;
        height: 32px;
    }
    
    .nfem-calendar-nav svg {
        width: 16px;
        height: 16px;
    }
    
    .nfem-calendar-title {
        font-size: 14px;
    }
    
    .nfem-calendar-grid {
        padding: 4px;
    }
    
    .nfem-calendar-weekdays span {
        font-size: 9px;
    }
    
    .nfem-calendar-day {
        min-height: 45px;
        padding: 2px;
    }
    
    .nfem-day-number {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    /* Events als Punkte anzeigen */
    .nfem-day-events {
        display: none;
    }
    
    .nfem-calendar-day.nfem-has-events {
        position: relative;
        cursor: pointer;
    }
    
    .nfem-calendar-day.nfem-has-events:active {
        background: var(--nfem-bg);
    }
    
    .nfem-calendar-day.nfem-has-events::after {
        content: '';
        position: absolute;
        bottom: 3px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background: var(--nfem-primary);
        border-radius: 50%;
    }
    
    /* Event Items */
    .nfem-event-date-badge {
        width: 45px;
        height: 45px;
    }
    
    .nfem-event-day {
        font-size: 18px;
    }
    
    .nfem-event-month {
        font-size: 10px;
    }
    
    .nfem-event-content {
        padding-right: 55px;
    }
    
    .nfem-event-title {
        font-size: 14px;
    }
    
    .nfem-event-meta span {
        font-size: 11px;
    }
    
    /* Captcha */
    .nfem-field-type-captcha {
        padding: 10px;
    }
    
    .nfem-captcha-input {
        max-width: 100px;
        font-size: 16px;
    }
    
    /* Consent */
    .nfem-consent-field {
        padding: 10px;
    }
    
    .nfem-consent-field .nfem-checkbox-label {
        font-size: 12px;
    }
}

/* ============================================
   Touch-Optimierungen
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets */
    .nfem-calendar-nav {
        min-width: 44px;
        min-height: 44px;
    }
    
    .nfem-calendar-today {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    .nfem-day-event {
        min-height: 24px;
        display: flex;
        align-items: center;
    }
    
    /* Hover-Effekte entfernen */
    .nfem-calendar-day:hover {
        background: transparent;
    }
    
    .nfem-calendar-nav:hover,
    .nfem-calendar-today:hover {
        background: var(--nfem-white);
        border-color: var(--nfem-border);
        color: var(--nfem-text);
    }
    
    .nfem-calendar-nav:active,
    .nfem-calendar-today:active {
        background: var(--nfem-primary);
        border-color: var(--nfem-primary);
        color: var(--nfem-white);
    }
    
    .nfem-day-event:hover {
        opacity: 1;
        transform: none;
    }
    
    .nfem-day-event:active {
        opacity: 0.8;
    }
}

/* ============================================
   Landscape Phone Optimierung
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
    .nfem-calendar-day {
        min-height: 60px;
    }
    
    .nfem-modal-content {
        max-height: calc(100vh - 20px);
    }
    
    .nfem-modal-image {
        height: 100px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .nfem-calendar-nav,
    .nfem-calendar-today,
    .nfem-modal,
    .nfem-form-submit {
        display: none !important;
    }
    
    .nfem-calendar-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .nfem-day-event {
        background: #eee !important;
        color: #000 !important;
        border: 1px solid #000;
    }
}
