/* ============================================
   TH Partner Hub – Custom Styles
   Apple-inspiriertes Design
   ============================================ */

/* --- Basis --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Kacheln / Tiles --- */
.tile {
    display: block;
    position: relative;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.08),
        0 4px 12px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.tile:active {
    transform: translateY(-2px) scale(0.99);
}

.tile-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.tile:hover .tile-arrow {
    color: #6b7280;
    transform: translateX(3px);
}

/* --- Auth-Inputs --- */
.auth-input:focus {
    background: white;
}

/* --- Flash Messages --- */
.flash-message {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Fade In --- */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Rechner-Inputs --- */
.calc-input:focus {
    background: white;
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* --- Selection --- */
::selection {
    background: #1f2937;
    color: white;
}
