/* ============================================================
   TaKaTiKi Konzerte – Frontend Styles
   ============================================================ */

/* --- List -------------------------------------------------- */

.tk-konzerte {
    font-family: inherit;
    max-width: 100%;
    margin: 0 0 2em;
}

.tk-main-title {
    font-size: 1.8em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 1.2em;
}

.tk-section {
    margin-bottom: 2em;
}

.tk-section-header {
    background: #f0f0f0;
    font-size: 0.95em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.45em 0.75em;
    margin: 0 0 0.6em;
    color: #333;
}

.tk-list {
    display: flex;
    flex-direction: column;
    gap: 0.55em;
}

.tk-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5em;
    padding: 0.15em 0;
    font-size: 1em;
    line-height: 1.5;
}

.tk-text {
    flex: 1;
}

.tk-empty {
    color: #999;
    font-style: italic;
    margin: 0;
}

/* Venue link */
.tk-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: #aaa;
}
.tk-text a:hover {
    text-decoration-color: currentColor;
}

/* Optional label in form */
.tk-label-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #888;
}

/* Add button — between sections */
.tk-btn-add {
    display: inline-block;
    margin: 0.8em 0 1.4em;
    padding: 0.45em 0.9em;
    font-size: 0.82em;
    font-weight: 600;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.15s;
    font-family: inherit;
}
.tk-btn-add:hover { background: #333; }

/* --- Admin action buttons (edit / delete inline) ----------- */

.tk-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.tk-item:hover .tk-actions {
    opacity: 1;
}

.tk-btn-edit,
.tk-btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
    padding: 0.2em 0.35em;
    border-radius: 3px;
    line-height: 1;
    transition: background 0.1s;
}

.tk-btn-edit  { color: #555; }
.tk-btn-delete { color: #c0392b; }

.tk-btn-edit:hover  { background: #eee; }
.tk-btn-delete:hover { background: #fdecea; }

/* --- "Konzert hinzufügen" button --------------------------- */

.tk-btn-add {
    display: inline-block;
    margin-top: 0.5em;
    padding: 0.5em 1em;
    font-size: 0.85em;
    font-weight: 600;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.15s;
}

.tk-btn-add:hover { background: #333; }

/* --- Modal ------------------------------------------------- */

.tk-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tk-modal-overlay[hidden] {
    display: none;
}

.tk-modal {
    background: #fff;
    border-radius: 6px;
    padding: 2em;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.tk-modal h3 {
    margin: 0 0 1.2em;
    font-size: 1.15em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tk-modal-close {
    position: absolute;
    top: 0.9em;
    right: 1em;
    background: none;
    border: none;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0.1em 0.3em;
}

.tk-modal-close:hover { color: #000; }

/* --- Form -------------------------------------------------- */

.tk-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    margin-bottom: 1em;
}

.tk-form-group label {
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #444;
}

.tk-form-group input {
    padding: 0.5em 0.65em;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.tk-form-group input:focus {
    outline: none;
    border-color: #333;
}

/* --- Live preview ------------------------------------------ */

.tk-preview {
    background: #f7f7f7;
    border-left: 3px solid #ccc;
    padding: 0.55em 0.8em;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 1.2em;
    border-radius: 0 3px 3px 0;
    min-height: 2em;
    word-break: break-word;
}

.tk-preview:empty { display: none; }

/* --- Form footer ------------------------------------------- */

.tk-form-footer {
    display: flex;
    gap: 0.6em;
}

.tk-btn-primary {
    padding: 0.55em 1.2em;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.tk-btn-primary:hover { background: #333; }

.tk-btn-primary:disabled {
    background: #999;
    cursor: not-allowed;
}

.tk-btn-secondary {
    padding: 0.55em 1em;
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9em;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.tk-btn-secondary:hover {
    border-color: #888;
    color: #222;
}

/* --- Status messages --------------------------------------- */

.tk-message {
    margin-top: 0.9em;
    padding: 0.5em 0.8em;
    border-radius: 3px;
    font-size: 0.88em;
}

.tk-message[hidden] { display: none; }

.tk-message.success {
    background: #eafaf1;
    color: #1e8449;
    border: 1px solid #a9dfbf;
}

.tk-message.error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}
