/* Basics load first JS! */
.tk-hidden {
    display: none !important; /* [TK-CLEANUP] must beat .wp-core-ui .button */
}
/* [TK-CLEANUP] replaces inline style in frontend dialog title */
.ter-kal-dialog-title-text {
    vertical-align: middle;
}
/* ------------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------------- */
/* Base for jQuery UI Widget and Form Elements */
.ui-widget .excluding-days-display,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    color: #495057;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}

.ui-widget .excluding-days-display,
.ui-widget input,
.ui-widget textarea {
    width: 96%;
}

.ui-widget button,
.ui-button {
    display: inline-block;
    width: auto;
    margin: 0.2rem;
    border: none;
}


/* ------------------------------------------------------------------------------- */

.ui-widget input:focus,
.ui-widget select:focus,
.ui-widget textarea:focus,
.ui-widget button:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.ui-widget input[disabled],
.ui-widget select[disabled],
.ui-widget textarea[disabled],
.ui-widget button[disabled],
fieldset[disabled] .ui-widget input,
fieldset[disabled] .ui-widget select,
fieldset[disabled] .ui-widget textarea,
fieldset[disabled] .ui-widget button {
    background: #e9ecef;
    opacity: 1;
}

.ui-widget input[type='checkbox'] {
    display: inline-block;
    width: 1rem;
    margin: 0 1.4rem 0 0;
}



.ui-widget .ui_info {
    font-size: 0.8rem;
    color: #9ecdff;
}


/* ------------------------------------------------------------------------------- */
/* Bootstrap-like button classes */
.bootstrap_button_line {
    display: flex;
    flex-wrap: wrap;
}
.bootstrap_button_line .bootstrap_button,
.ui-widget button.bootstrap_button,
.bootstrap_button {
    width: auto;
    font-weight: 600;
    background-color: #fff;
    /*background: #0056b3;*/
    /*color: #fff;*/
    white-space: nowrap;
    border: 1px solid #898989;
    font-size: 0.8rem;
    line-height: 1.6;
    border-radius: 0.25rem;
    /*margin-left: 0.5rem;*/
    margin: 0.2rem 0 0.2rem 0.15rem;
    /*padding: 0.375rem 0.75rem;*/
    padding: 0.2rem 0.4rem;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}
/* Color variants - default state */
.bootstrap_button_line .bootstrap_primary,
.ui-widget button.bootstrap_primary,
.bootstrap_primary {
    color: #0056b3;
    border-color: #0056b3;
}
.bootstrap_button_line .bootstrap_info,
.bootstrap_info {
    color: #17a2b8;
    border-color: #17a2b8;
}
.bootstrap_button_line .bootstrap_success,
.bootstrap_success {
    color: #28a745;
    border-color: #28a745;
}
.bootstrap_button_line .bootstrap_warning,
.bootstrap_warning {
    color: #ffc107;
    border-color: #ffc107;
}
.bootstrap_button_line .bootstrap_dark,
.bootstrap_dark {
    color: #343a40;
    border-color: #343a40;
}

.ter-kal-button-form .button-danger,
.button-danger {
    background-color: #dc3232;
    color: #fff;
    border-color: #a31919;
}
.ter-kal-button-form .button-danger:hover,
.button-danger:hover {
    background-color: #a31919;
    color: #fff;
    border-color: #dc3232;
}

/* Hover states - unified pattern */
.ui-widget button.bootstrap_primary:hover,
.bootstrap_primary:hover,
.bootstrap_info:hover,
.bootstrap_success:hover,
.bootstrap_warning:hover,
.bootstrap_dark:hover {
    color: #fff;
    border-color: #898989;
}
.ui-widget button.bootstrap_primary:hover,
.bootstrap_primary:hover {
    background-color: #0056b3;
}
.bootstrap_info:hover {
    background-color: #17a2b8;
}
.bootstrap_success:hover {
    background-color: #28a745;
}
.bootstrap_warning:hover {
    background-color: #ffc107;
}
.bootstrap_dark:hover {
    background-color: #343a40;
}
/* ------------------------------------------------------------------------------- */

.event-title {
    font-weight: 600;
    font-size: 1.6rem;
}

.event-time {
    font-weight: 600;
    font-size: 1rem;
}

/* ---------------------------- */
.ter_kal_info {
    font-size: 0.9rem;
    color: #495057;
}
/* ---------------------------- */

.event-details-html {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.event-subdetail-item {
    font-size: 0.7rem;
    color: #666666;
}




/* ------------------------------------------------------------------------------- */
/* Image Formatting - From termin_kalender_format_buttons.js */
.wp-block-image {
    max-width: 100%;
    height: auto;
}
/* ------------------------------------------------------------------------------- */

/* [TK-SHARE] 2026-11-23: Zentrales natives <dialog> Share-Popup (Free + PRO, Frontend + Admin) */
dialog.termin-kalender-share-dialog {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    width: min(440px, 92vw);
    max-width: 92vw;
    max-height: 88vh;
    margin: auto;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    box-sizing: border-box;
}

dialog.termin-kalender-share-dialog[open] {
    display: flex;
    flex-direction: column;
}

dialog.termin-kalender-share-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.termin-kalender-share-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.termin-kalender-share-dialog-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.termin-kalender-share-dialog-close {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
}

.termin-kalender-share-dialog-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.termin-kalender-share-dialog-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.termin-kalender-share-preview {
    margin: 0;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 165px;
    overflow-y: auto;
}

.termin-kalender-share-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.termin-kalender-share-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.termin-kalender-share-action:hover,
.termin-kalender-share-action:focus,
.termin-kalender-share-action:visited {
    color: #ffffff;
    filter: brightness(0.92);
    text-decoration: none;
}

.termin-kalender-share-action:active {
    transform: translateY(1px);
}

.termin-kalender-share-action--wa { background: #16a34a; }
.termin-kalender-share-action--mail { background: #475569; }
.termin-kalender-share-action--tg { background: #0284c7; }
.termin-kalender-share-action--sms { background: #15803d; }
.termin-kalender-share-action--fb { background: #1877f2; }
.termin-kalender-share-action--msg { background: #0084ff; }
.termin-kalender-share-action--x { background: #0f172a; }
.termin-kalender-share-action--li { background: #0a66c2; }
.termin-kalender-share-action--copy { background: #2271b1; }
.termin-kalender-share-action--native {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.termin-kalender-share-action--native:hover,
.termin-kalender-share-action--native:focus,
.termin-kalender-share-action--native:visited {
    color: #0f172a;
    background: #e2e8f0;
    filter: none;
}

.termin-kalender-copy-helper {
    position: fixed;
    left: -9999px;
    opacity: 0;
}

/* [TK-SHARE] 2026-11-23: Deep-Link Hervorhebung (?tk_event / ?tk_msg) */
.termin-kalender-deeplink-highlight {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.18);
    transition: box-shadow 0.4s ease, outline-color 0.4s ease;
}






